summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/mphalport.h
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/mphalport.h')
-rw-r--r--stmhal/mphalport.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/stmhal/mphalport.h b/stmhal/mphalport.h
index 9bd4f4b4e8..65de2ab863 100644
--- a/stmhal/mphalport.h
+++ b/stmhal/mphalport.h
@@ -8,13 +8,15 @@
#define MP_HAL_UNIQUE_ID_ADDRESS (0x1fff7a10)
#elif defined(MCU_SERIES_F7)
#define MP_HAL_UNIQUE_ID_ADDRESS (0x1ff0f420)
+#elif defined(MCU_SERIES_L4)
+#define MP_HAL_UNIQUE_ID_ADDRESS (0x1fff7590)
#else
#error mphalport.h: Unrecognized MCU_SERIES
#endif
// Basic GPIO functions
#define GPIO_read_pin(gpio, pin) (((gpio)->IDR >> (pin)) & 1)
-#if defined(MCU_SERIES_F7)
+#if defined(MCU_SERIES_F7) || defined(MCU_SERIES_L4)
#define GPIO_set_pin(gpio, pin_mask) (((gpio)->BSRR) = (pin_mask))
#define GPIO_clear_pin(gpio, pin_mask) (((gpio)->BSRR) = ((pin_mask) << 16))
#else