From 72c3417c88c7133ce4e38c49e7d25befea877131 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 25 Dec 2017 16:14:03 +0000 Subject: More H7-related changes. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11182 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/STM32/RT-STM32H743I-NUCLEO144/Makefile | 2 +- .../debug/RT-STM32H743I-NUCLEO144 (OpenOCD, Flash and Run).launch | 4 ++-- demos/STM32/RT-STM32H743I-NUCLEO144/halconf.h | 2 +- demos/STM32/RT-STM32H743I-NUCLEO144/main.c | 8 ++++---- demos/STM32/RT-STM32H743I-NUCLEO144/mcuconf.h | 6 ++---- 5 files changed, 10 insertions(+), 12 deletions(-) (limited to 'demos') diff --git a/demos/STM32/RT-STM32H743I-NUCLEO144/Makefile b/demos/STM32/RT-STM32H743I-NUCLEO144/Makefile index 27657cab7..fd027130d 100644 --- a/demos/STM32/RT-STM32H743I-NUCLEO144/Makefile +++ b/demos/STM32/RT-STM32H743I-NUCLEO144/Makefile @@ -5,7 +5,7 @@ # Compiler options here. ifeq ($(USE_OPT),) - USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 + USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16 endif # C specific options here (added to USE_OPT). diff --git a/demos/STM32/RT-STM32H743I-NUCLEO144/debug/RT-STM32H743I-NUCLEO144 (OpenOCD, Flash and Run).launch b/demos/STM32/RT-STM32H743I-NUCLEO144/debug/RT-STM32H743I-NUCLEO144 (OpenOCD, Flash and Run).launch index 231d19717..798eef66e 100644 --- a/demos/STM32/RT-STM32H743I-NUCLEO144/debug/RT-STM32H743I-NUCLEO144 (OpenOCD, Flash and Run).launch +++ b/demos/STM32/RT-STM32H743I-NUCLEO144/debug/RT-STM32H743I-NUCLEO144 (OpenOCD, Flash and Run).launch @@ -33,9 +33,9 @@ - + - + diff --git a/demos/STM32/RT-STM32H743I-NUCLEO144/halconf.h b/demos/STM32/RT-STM32H743I-NUCLEO144/halconf.h index fc148a68e..5aec384f3 100644 --- a/demos/STM32/RT-STM32H743I-NUCLEO144/halconf.h +++ b/demos/STM32/RT-STM32H743I-NUCLEO144/halconf.h @@ -34,7 +34,7 @@ * @brief Enables the PAL subsystem. */ #if !defined(HAL_USE_PAL) || defined(__DOXYGEN__) -#define HAL_USE_PAL FALSE +#define HAL_USE_PAL TRUE #endif /** diff --git a/demos/STM32/RT-STM32H743I-NUCLEO144/main.c b/demos/STM32/RT-STM32H743I-NUCLEO144/main.c index 98d13a7c6..c070cd9a9 100644 --- a/demos/STM32/RT-STM32H743I-NUCLEO144/main.c +++ b/demos/STM32/RT-STM32H743I-NUCLEO144/main.c @@ -29,9 +29,9 @@ static THD_FUNCTION(Thread1, arg) { (void)arg; chRegSetThreadName("blinker"); while (true) { -// palSetLine(LINE_ARD_D13); + palSetLine(LINE_ARD_D13); chThdSleepMilliseconds(500); -// palClearLine(LINE_ARD_D13); + palClearLine(LINE_ARD_D13); chThdSleepMilliseconds(500); } } @@ -54,8 +54,8 @@ int main(void) { /* * ARD_D13 is programmed as output (board LED). */ -// palClearLine(LINE_ARD_D13); -// palSetLineMode(LINE_ARD_D13, PAL_MODE_OUTPUT_PUSHPULL); + palClearLine(LINE_ARD_D13); + palSetLineMode(LINE_ARD_D13, PAL_MODE_OUTPUT_PUSHPULL); /* * Activates the serial driver 1 using the driver default configuration. diff --git a/demos/STM32/RT-STM32H743I-NUCLEO144/mcuconf.h b/demos/STM32/RT-STM32H743I-NUCLEO144/mcuconf.h index 9336ca4de..39359e7c6 100644 --- a/demos/STM32/RT-STM32H743I-NUCLEO144/mcuconf.h +++ b/demos/STM32/RT-STM32H743I-NUCLEO144/mcuconf.h @@ -45,12 +45,10 @@ * Register constants are taken from the ST header. */ #define STM32_VOS STM32_VOS_SCALE1 -#define STM32_PWR_CR1 (PWR_CR1_PVDEN | \ - PWR_CR1_SVOS_1 | \ +#define STM32_PWR_CR1 (PWR_CR1_SVOS_1 | \ PWR_CR1_SVOS_0) #define STM32_PWR_CR2 (PWR_CR2_BREN) -#define STM32_PWR_CR3 (PWR_CR3_SCUEN | \ - PWR_CR3_LDOEN | \ +#define STM32_PWR_CR3 (PWR_CR3_LDOEN | \ PWR_CR3_USBREGEN | \ PWR_CR3_USB33DEN) #define STM32_PWR_CPUCR 0 -- cgit v1.2.3