diff options
author | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-05-05 00:55:57 +0000 |
---|---|---|
committer | Rocco Marco Guglielmi <roccomarco.guglielmi@live.com> | 2016-05-05 00:55:57 +0000 |
commit | a21ea7128bf738c458449ac51361fbb45834f447 (patch) | |
tree | 3f51634edbbf0622814825308dba4054409c3baa /os/hal/boards/ST_NUCLEO32_F042K6 | |
parent | 59aa6038ef358b38f8e28eb5e1c3b8ca208c1521 (diff) | |
download | ChibiOS-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_F042K6')
-rw-r--r-- | os/hal/boards/ST_NUCLEO32_F042K6/board.h | 10 | ||||
-rw-r--r-- | os/hal/boards/ST_NUCLEO32_F042K6/board.mk | 4 | ||||
-rw-r--r-- | os/hal/boards/ST_NUCLEO32_F042K6/cfg/board.chcfg | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/os/hal/boards/ST_NUCLEO32_F042K6/board.h b/os/hal/boards/ST_NUCLEO32_F042K6/board.h index f8b724f1a..c72001256 100644 --- a/os/hal/boards/ST_NUCLEO32_F042K6/board.h +++ b/os/hal/boards/ST_NUCLEO32_F042K6/board.h @@ -18,7 +18,7 @@ #define _BOARD_H_
/*
- * Setup for STMicroelectronics NUCLEO32-F042K6 board.
+ * Setup for STMicroelectronics STM32 Nucleo32-F042K6 board.
*/
/*
@@ -337,7 +337,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).
@@ -354,7 +354,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) | \
@@ -402,7 +402,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) | \
@@ -418,7 +418,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_F042K6/board.mk b/os/hal/boards/ST_NUCLEO32_F042K6/board.mk index 23a500885..04b2f9ca1 100644 --- a/os/hal/boards/ST_NUCLEO32_F042K6/board.mk +++ b/os/hal/boards/ST_NUCLEO32_F042K6/board.mk @@ -1,5 +1,5 @@ # List of all the board related files.
-BOARDSRC = ${CHIBIOS}/os/hal/boards/ST_NUCLEO32_F042K6/board.c
+BOARDSRC = $(CHIBIOS)/os/hal/boards/ST_NUCLEO32_F042K6/board.c
# Required include directories
-BOARDINC = ${CHIBIOS}/os/hal/boards/ST_NUCLEO32_F042K6
+BOARDINC = $(CHIBIOS)/os/hal/boards/ST_NUCLEO32_F042K6
diff --git a/os/hal/boards/ST_NUCLEO32_F042K6/cfg/board.chcfg b/os/hal/boards/ST_NUCLEO32_F042K6/cfg/board.chcfg index fb9324c08..b5e2e230b 100644 --- a/os/hal/boards/ST_NUCLEO32_F042K6/cfg/board.chcfg +++ b/os/hal/boards/ST_NUCLEO32_F042K6/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" |