aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards/ST_NUCLEO32_L031K6
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-05-05 00:55:57 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-05-05 00:55:57 +0000
commita21ea7128bf738c458449ac51361fbb45834f447 (patch)
tree3f51634edbbf0622814825308dba4054409c3baa /os/hal/boards/ST_NUCLEO32_L031K6
parent59aa6038ef358b38f8e28eb5e1c3b8ca208c1521 (diff)
downloadChibiOS-a21ea7128bf738c458449ac51361fbb45834f447.tar.gz
ChibiOS-a21ea7128bf738c458449ac51361fbb45834f447.tar.bz2
ChibiOS-a21ea7128bf738c458449ac51361fbb45834f447.zip
Completed STM32L0xx port adding STM32L011xx support,
Added STM32 Nucleo32-L011K4 board files Added demo NIL-STM32L011K4-NUCLEO32 git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9414 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/boards/ST_NUCLEO32_L031K6')
-rw-r--r--os/hal/boards/ST_NUCLEO32_L031K6/board.h8
-rw-r--r--os/hal/boards/ST_NUCLEO32_L031K6/cfg/board.chcfg6
2 files changed, 7 insertions, 7 deletions
diff --git a/os/hal/boards/ST_NUCLEO32_L031K6/board.h b/os/hal/boards/ST_NUCLEO32_L031K6/board.h
index e5f1e46b0..79dd70a90 100644
--- a/os/hal/boards/ST_NUCLEO32_L031K6/board.h
+++ b/os/hal/boards/ST_NUCLEO32_L031K6/board.h
@@ -357,7 +357,7 @@
* PB0 - ARD_D3 (input pullup).
* PB1 - ARD_D6 (input pullup).
* PB2 - PIN2 (input pullup).
- * PB3 - ARD_D13 LED_GREEN (input pullup).
+ * PB3 - ARD_D13 LED_GREEN (output pushpull maximum).
* PB4 - ARD_D12 (input pullup).
* PB5 - ARD_D11 (input pullup).
* PB6 - ARD_D5 ARD_A5_ALT (input pullup).
@@ -374,7 +374,7 @@
#define VAL_GPIOB_MODER (PIN_MODE_INPUT(GPIOB_ARD_D3) | \
PIN_MODE_INPUT(GPIOB_ARD_D6) | \
PIN_MODE_INPUT(GPIOB_PIN2) | \
- PIN_MODE_INPUT(GPIOB_ARD_D13) | \
+ PIN_MODE_OUTPUT(GPIOB_ARD_D13) | \
PIN_MODE_INPUT(GPIOB_ARD_D12) | \
PIN_MODE_INPUT(GPIOB_ARD_D11) | \
PIN_MODE_INPUT(GPIOB_ARD_D5) | \
@@ -422,7 +422,7 @@
#define VAL_GPIOB_PUPDR (PIN_PUPDR_PULLUP(GPIOB_ARD_D3) | \
PIN_PUPDR_PULLUP(GPIOB_ARD_D6) | \
PIN_PUPDR_PULLUP(GPIOB_PIN2) | \
- PIN_PUPDR_PULLUP(GPIOB_ARD_D13) | \
+ PIN_PUPDR_FLOATING(GPIOB_ARD_D13) | \
PIN_PUPDR_PULLUP(GPIOB_ARD_D12) | \
PIN_PUPDR_PULLUP(GPIOB_ARD_D11) | \
PIN_PUPDR_PULLUP(GPIOB_ARD_D5) | \
@@ -438,7 +438,7 @@
#define VAL_GPIOB_ODR (PIN_ODR_HIGH(GPIOB_ARD_D3) | \
PIN_ODR_HIGH(GPIOB_ARD_D6) | \
PIN_ODR_HIGH(GPIOB_PIN2) | \
- PIN_ODR_HIGH(GPIOB_ARD_D13) | \
+ PIN_ODR_LOW(GPIOB_ARD_D13) | \
PIN_ODR_HIGH(GPIOB_ARD_D12) | \
PIN_ODR_HIGH(GPIOB_ARD_D11) | \
PIN_ODR_HIGH(GPIOB_ARD_D5) | \
diff --git a/os/hal/boards/ST_NUCLEO32_L031K6/cfg/board.chcfg b/os/hal/boards/ST_NUCLEO32_L031K6/cfg/board.chcfg
index 41e308c5b..0a0e4ab89 100644
--- a/os/hal/boards/ST_NUCLEO32_L031K6/cfg/board.chcfg
+++ b/os/hal/boards/ST_NUCLEO32_L031K6/cfg/board.chcfg
@@ -173,10 +173,10 @@
<pin3
ID="ARD_D13 LED_GREEN"
Type="PushPull"
- Level="High"
+ Level="Low"
Speed="Maximum"
- Resistor="PullUp"
- Mode="Input"
+ Resistor="Floating"
+ Mode="Output"
Alternate="0" />
<pin4
ID="ARD_D12"