From 2ec209bdfa4f8ae78102a6379206f77502e0607a Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 31 Mar 2015 17:00:29 +0000 Subject: Tickless mode fixed hopefully. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7837 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/STM32/RT-STM32F407-DISCOVERY/Makefile | 2 +- demos/STM32/RT-STM32F407-DISCOVERY/main.c | 32 ----------------------------- 2 files changed, 1 insertion(+), 33 deletions(-) (limited to 'demos/STM32') diff --git a/demos/STM32/RT-STM32F407-DISCOVERY/Makefile b/demos/STM32/RT-STM32F407-DISCOVERY/Makefile index dbdde6a0a..e56e7e88c 100644 --- a/demos/STM32/RT-STM32F407-DISCOVERY/Makefile +++ b/demos/STM32/RT-STM32F407-DISCOVERY/Makefile @@ -5,7 +5,7 @@ # Compiler options here. ifeq ($(USE_OPT),) - USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16 + USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16 endif # C specific options here (added to USE_OPT). diff --git a/demos/STM32/RT-STM32F407-DISCOVERY/main.c b/demos/STM32/RT-STM32F407-DISCOVERY/main.c index dbcebbba9..34e504aeb 100644 --- a/demos/STM32/RT-STM32F407-DISCOVERY/main.c +++ b/demos/STM32/RT-STM32F407-DISCOVERY/main.c @@ -35,31 +35,6 @@ static THD_FUNCTION(Thread1, arg) { } } -virtual_timer_t vt1, vt2, vt3; - -static void cb1(void *p) { - - (void)p; - chSysLockFromISR(); -// if (chVTIsArmedI(&vt1)) -// chVTDoResetI(&vt1); - chSysUnlockFromISR(); -} - -static void cb2(void *p) { - - (void)p; - chSysLockFromISR(); -// if (!chVTIsArmedI(&vt3)) -// chVTDoSetI(&vt3, 19, cb1, NULL); - chSysUnlockFromISR(); -} - -static void cb3(void *p) { - - (void)p; -} - /* * Application entry point. */ @@ -95,12 +70,5 @@ int main(void) { while (TRUE) { if (palReadPad(GPIOA, GPIOA_BUTTON)) TestThread(&SD2); - chVTSet(&vt1, 7, cb1, NULL); - chThdSleep(5); - chSysLock(); - if (!chVTIsArmedI(&vt2)) - chVTDoSetI(&vt2, 13, cb2, NULL); - chSysUnlock(); -// chVTReset(&vt1); } } -- cgit v1.2.3