From b8bc76743012b051fa771fc7af84f9c9ce05566a Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 28 Jun 2022 13:27:01 +0000 Subject: [PATCH] VHAL blinking... git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15665 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- ...ild-ch.elf)(OpenOCD, Flash and Run).launch | 96 +++++++++---------- ...ild-ch.elf)(OpenOCD, Flash and Run).launch | 96 +++++++++---------- .../main.c | 2 +- .../main.c | 6 +- os/hal/ports/sandbox/platform.mk | 3 +- 5 files changed, 101 insertions(+), 102 deletions(-) diff --git a/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/debug/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC (SB1)(build-ch.elf)(OpenOCD, Flash and Run).launch b/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/debug/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC (SB1)(build-ch.elf)(OpenOCD, Flash and Run).launch index 71f8d938a..0bd5c943b 100644 --- a/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/debug/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC (SB1)(build-ch.elf)(OpenOCD, Flash and Run).launch +++ b/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/debug/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC (SB1)(build-ch.elf)(OpenOCD, Flash and Run).launch @@ -1,48 +1,48 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/debug/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC (build-ch.elf)(OpenOCD, Flash and Run).launch b/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/debug/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC (build-ch.elf)(OpenOCD, Flash and Run).launch index 8c173f211..b5a9f6ab9 100644 --- a/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/debug/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC (build-ch.elf)(OpenOCD, Flash and Run).launch +++ b/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/debug/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC (build-ch.elf)(OpenOCD, Flash and Run).launch @@ -1,48 +1,48 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/main.c b/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/main.c index d3a028347..bffe47b89 100644 --- a/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/main.c +++ b/demos/STM32/RT-STM32G474RE-NUCLEO64-SB_HOST_STATIC/main.c @@ -164,7 +164,7 @@ static THD_FUNCTION(Thread1, arg) { chRegSetThreadName("blinker"); while (true) { - palToggleLine(LINE_LED_GREEN); +// palToggleLine(LINE_LED_GREEN); chThdSleepMilliseconds(500); } } diff --git a/demos/various/SB-CLIENT-32k-08070000-16k-20018000/main.c b/demos/various/SB-CLIENT-32k-08070000-16k-20018000/main.c index 5a5c79c4a..94eef2f22 100644 --- a/demos/various/SB-CLIENT-32k-08070000-16k-20018000/main.c +++ b/demos/various/SB-CLIENT-32k-08070000-16k-20018000/main.c @@ -14,9 +14,8 @@ limitations under the License. */ -//#include - #include "ch.h" +#include "hal.h" /* * Blinker thread, times are in milliseconds. @@ -28,8 +27,7 @@ static THD_FUNCTION(Thread1, arg) { chRegSetThreadName("blinker"); while (true) { -// palToggleLine(LINE_LED_GREEN); -// printf("#1 blink!!\r\n"); + palTogglePad(0, 0); chThdSleepMilliseconds(500); } } diff --git a/os/hal/ports/sandbox/platform.mk b/os/hal/ports/sandbox/platform.mk index 7bd633cd4..7eeb8b1ad 100644 --- a/os/hal/ports/sandbox/platform.mk +++ b/os/hal/ports/sandbox/platform.mk @@ -1,6 +1,7 @@ # Required platform files. PLATFORMSRC := $(CHIBIOS)/os/hal/ports/sandbox/hal_lld.c \ - $(CHIBIOS)/os/hal/ports/sandbox/hal_st_lld.c + $(CHIBIOS)/os/hal/ports/sandbox/hal_st_lld.c \ + $(CHIBIOS)/os/hal/ports/sandbox/hal_pal_lld.c # Required include directories. PLATFORMINC := $(CHIBIOS)/os/hal/ports/sandbox