From a21ea7128bf738c458449ac51361fbb45834f447 Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Thu, 5 May 2016 00:55:57 +0000 Subject: 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 --- os/hal/boards/ST_NUCLEO32_F031K6/cfg/board.chcfg | 6 +- os/hal/boards/ST_NUCLEO32_F042K6/board.h | 10 +- os/hal/boards/ST_NUCLEO32_F042K6/board.mk | 4 +- os/hal/boards/ST_NUCLEO32_F042K6/cfg/board.chcfg | 6 +- os/hal/boards/ST_NUCLEO32_F303K8/board.h | 10 +- os/hal/boards/ST_NUCLEO32_F303K8/board.mk | 4 +- os/hal/boards/ST_NUCLEO32_F303K8/cfg/board.chcfg | 6 +- os/hal/boards/ST_NUCLEO32_L011K4/board.c | 124 +++ os/hal/boards/ST_NUCLEO32_L011K4/board.h | 930 +++++++++++++++++++++++ os/hal/boards/ST_NUCLEO32_L011K4/board.mk | 5 + os/hal/boards/ST_NUCLEO32_L011K4/cfg/board.chcfg | 799 +++++++++++++++++++ os/hal/boards/ST_NUCLEO32_L031K6/board.h | 8 +- os/hal/boards/ST_NUCLEO32_L031K6/cfg/board.chcfg | 6 +- 13 files changed, 1888 insertions(+), 30 deletions(-) create mode 100644 os/hal/boards/ST_NUCLEO32_L011K4/board.c create mode 100644 os/hal/boards/ST_NUCLEO32_L011K4/board.h create mode 100644 os/hal/boards/ST_NUCLEO32_L011K4/board.mk create mode 100644 os/hal/boards/ST_NUCLEO32_L011K4/cfg/board.chcfg (limited to 'os/hal/boards') diff --git a/os/hal/boards/ST_NUCLEO32_F031K6/cfg/board.chcfg b/os/hal/boards/ST_NUCLEO32_F031K6/cfg/board.chcfg index 8cd278de0..a31562edb 100644 --- a/os/hal/boards/ST_NUCLEO32_F031K6/cfg/board.chcfg +++ b/os/hal/boards/ST_NUCLEO32_F031K6/cfg/board.chcfg @@ -173,10 +173,10 @@ + + + + resources/gencfg/processors/boards/stm32l0xx/templates + .. + 3.0.x + + STMicroelectronics STM32 Nucleo32-L011K4 + ST_NUCLEO32_L011K4 + + STM32L011xx + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 @@