From 78fa3a2203129637482a2580bb5948d01798f9bc Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 11 Dec 2015 11:11:45 +0000 Subject: [PATCH] Nucleo32 fixed some pins, ADCv3 compiles. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8583 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/boards/ST_NUCLEO32_F031K6/board.h | 12 +++++------ .../boards/ST_NUCLEO32_F031K6/cfg/board.chcfg | 6 +++--- os/hal/boards/ST_NUCLEO32_F042K6/board.h | 12 +++++------ .../boards/ST_NUCLEO32_F042K6/cfg/board.chcfg | 6 +++--- os/hal/boards/ST_NUCLEO32_F303K8/board.h | 12 +++++------ .../boards/ST_NUCLEO32_F303K8/cfg/board.chcfg | 6 +++--- os/hal/ports/STM32/LLD/ADCv3/adc_lld.h | 16 +++++++++++++- testhal/STM32/STM32L4xx/GPT-ADC/main.c | 21 ++++++++++++------- 8 files changed, 55 insertions(+), 36 deletions(-) diff --git a/os/hal/boards/ST_NUCLEO32_F031K6/board.h b/os/hal/boards/ST_NUCLEO32_F031K6/board.h index 12867057e..471ea4e1d 100644 --- a/os/hal/boards/ST_NUCLEO32_F031K6/board.h +++ b/os/hal/boards/ST_NUCLEO32_F031K6/board.h @@ -222,8 +222,8 @@ * PA2 - VCP_TX (alternate 1). * PA3 - ARD_A2 (input pullup). * PA4 - ARD_A3 (input pullup). - * PA5 - ARD_A4 (input floating). - * PA6 - ARD_A5 (input floating). + * PA5 - ARD_A4 (input pullup). + * PA6 - ARD_A5 (input pullup). * PA7 - ARD_A6 (input pullup). * PA8 - ARD_D9 (input pullup). * PA9 - ARD_D1 (input pullup). @@ -287,8 +287,8 @@ PIN_PUPDR_FLOATING(GPIOA_VCP_TX) | \ PIN_PUPDR_PULLUP(GPIOA_ARD_A2) | \ PIN_PUPDR_PULLUP(GPIOA_ARD_A3) | \ - PIN_PUPDR_FLOATING(GPIOA_ARD_A4) | \ - PIN_PUPDR_FLOATING(GPIOA_ARD_A5) | \ + PIN_PUPDR_PULLUP(GPIOA_ARD_A4) | \ + PIN_PUPDR_PULLUP(GPIOA_ARD_A5) | \ PIN_PUPDR_PULLUP(GPIOA_ARD_A6) | \ PIN_PUPDR_PULLUP(GPIOA_ARD_D9) | \ PIN_PUPDR_PULLUP(GPIOA_ARD_D1) | \ @@ -342,7 +342,7 @@ * PB5 - ARD_D11 (input pullup). * PB6 - ARD_D5 ARD_A5_ALT (input pullup). * PB7 - ARD_D4 ARD_A4_ALT (input pullup). - * PB8 - PIN8 (input floating). + * PB8 - PIN8 (input pullup). * PB9 - PIN9 (input pullup). * PB10 - PIN10 (input pullup). * PB11 - PIN11 (input pullup). @@ -407,7 +407,7 @@ PIN_PUPDR_PULLUP(GPIOB_ARD_D11) | \ PIN_PUPDR_PULLUP(GPIOB_ARD_D5) | \ PIN_PUPDR_PULLUP(GPIOB_ARD_D4) | \ - PIN_PUPDR_FLOATING(GPIOB_PIN8) | \ + PIN_PUPDR_PULLUP(GPIOB_PIN8) | \ PIN_PUPDR_PULLUP(GPIOB_PIN9) | \ PIN_PUPDR_PULLUP(GPIOB_PIN10) | \ PIN_PUPDR_PULLUP(GPIOB_PIN11) | \ diff --git a/os/hal/boards/ST_NUCLEO32_F031K6/cfg/board.chcfg b/os/hal/boards/ST_NUCLEO32_F031K6/cfg/board.chcfg index 0ede126ec..cd8ab4332 100644 --- a/os/hal/boards/ST_NUCLEO32_F031K6/cfg/board.chcfg +++ b/os/hal/boards/ST_NUCLEO32_F031K6/cfg/board.chcfg @@ -61,7 +61,7 @@ Type="PushPull" Level="Low" Speed="High" - Resistor="Floating" + Resistor="PullUp" Mode="Input" Alternate="0" />