diff options
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/boards/ST_NUCLEO_L476RG/board.h | 12 | ||||
-rw-r--r-- | os/hal/boards/ST_NUCLEO_L476RG/cfg/board.chcfg | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/os/hal/boards/ST_NUCLEO_L476RG/board.h b/os/hal/boards/ST_NUCLEO_L476RG/board.h index 3aeba5695..f0b1af863 100644 --- a/os/hal/boards/ST_NUCLEO_L476RG/board.h +++ b/os/hal/boards/ST_NUCLEO_L476RG/board.h @@ -376,11 +376,11 @@ PIN_AFIO_AF(GPIOA_SWDIO, 0) | \
PIN_AFIO_AF(GPIOA_SWCLK, 0) | \
PIN_AFIO_AF(GPIOA_PIN15, 0))
-#define VAL_GPIOA_ASCR (PIN_ASCR_DISABLED(GPIOA_ARD_A0) | \
- PIN_ASCR_DISABLED(GPIOA_ARD_A1) | \
+#define VAL_GPIOA_ASCR (PIN_ASCR_ENABLED(GPIOA_ARD_A0) | \
+ PIN_ASCR_ENABLED(GPIOA_ARD_A1) | \
PIN_ASCR_DISABLED(GPIOA_ARD_D1) | \
PIN_ASCR_DISABLED(GPIOA_ARD_D0) | \
- PIN_ASCR_DISABLED(GPIOA_ARD_A2) | \
+ PIN_ASCR_ENABLED(GPIOA_ARD_A2) | \
PIN_ASCR_DISABLED(GPIOA_ARD_D13) | \
PIN_ASCR_DISABLED(GPIOA_ARD_D12) | \
PIN_ASCR_DISABLED(GPIOA_ARD_D11) | \
@@ -525,7 +525,7 @@ PIN_AFIO_AF(GPIOB_PIN13, 0) | \
PIN_AFIO_AF(GPIOB_PIN14, 0) | \
PIN_AFIO_AF(GPIOB_PIN15, 0))
-#define VAL_GPIOB_ASCR (PIN_ASCR_DISABLED(GPIOB_ARD_A3) | \
+#define VAL_GPIOB_ASCR (PIN_ASCR_ENABLED(GPIOB_ARD_A3) | \
PIN_ASCR_DISABLED(GPIOB_PIN1) | \
PIN_ASCR_DISABLED(GPIOB_PIN2) | \
PIN_ASCR_DISABLED(GPIOB_ARD_D3) | \
@@ -674,8 +674,8 @@ PIN_AFIO_AF(GPIOC_BUTTON, 0) | \
PIN_AFIO_AF(GPIOC_PIN14, 0) | \
PIN_AFIO_AF(GPIOC_PIN15, 0))
-#define VAL_GPIOC_ASCR (PIN_ASCR_DISABLED(GPIOC_ARD_A5) | \
- PIN_ASCR_DISABLED(GPIOC_ARD_A4) | \
+#define VAL_GPIOC_ASCR (PIN_ASCR_ENABLED(GPIOC_ARD_A5) | \
+ PIN_ASCR_ENABLED(GPIOC_ARD_A4) | \
PIN_ASCR_DISABLED(GPIOC_PIN2) | \
PIN_ASCR_DISABLED(GPIOC_PIN3) | \
PIN_ASCR_DISABLED(GPIOC_PIN4) | \
diff --git a/os/hal/boards/ST_NUCLEO_L476RG/cfg/board.chcfg b/os/hal/boards/ST_NUCLEO_L476RG/cfg/board.chcfg index bd7b13461..9815f9adf 100644 --- a/os/hal/boards/ST_NUCLEO_L476RG/cfg/board.chcfg +++ b/os/hal/boards/ST_NUCLEO_L476RG/cfg/board.chcfg @@ -29,7 +29,7 @@ Resistor="Floating"
Mode="Analog"
Alternate="0"
- AnalogSwitch="Disabled"
+ AnalogSwitch="Enabled"
PinLock="Disabled" />
<pin1
ID="ARD_A1"
@@ -39,7 +39,7 @@ Resistor="Floating"
Mode="Analog"
Alternate="0"
- AnalogSwitch="Disabled"
+ AnalogSwitch="Enabled"
PinLock="Disabled" />
<pin2
ID="ARD_D1 USART_TX"
@@ -69,7 +69,7 @@ Resistor="Floating"
Mode="Analog"
Alternate="0"
- AnalogSwitch="Disabled"
+ AnalogSwitch="Enabled"
PinLock="Disabled" />
<pin5
ID="ARD_D13 LED_GREEN"
@@ -191,7 +191,7 @@ Resistor="Floating"
Mode="Analog"
Alternate="0"
- AnalogSwitch="Disabled"
+ AnalogSwitch="Enabled"
PinLock="Disabled" />
<pin1
ID=""
@@ -353,7 +353,7 @@ Resistor="Floating"
Mode="Analog"
Alternate="0"
- AnalogSwitch="Disabled"
+ AnalogSwitch="Enabled"
PinLock="Disabled" />
<pin1
ID="ARD_A4"
@@ -363,7 +363,7 @@ Resistor="Floating"
Mode="Analog"
Alternate="0"
- AnalogSwitch="Disabled"
+ AnalogSwitch="Enabled"
PinLock="Disabled" />
<pin2
ID=""
|