aboutsummaryrefslogtreecommitdiffstats
path: root/demos/STM32
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-03-31 17:00:29 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-03-31 17:00:29 +0000
commit2ec209bdfa4f8ae78102a6379206f77502e0607a (patch)
tree4eee9272e098fc49332ae8e591fa5fe0b63f0a45 /demos/STM32
parent246b79ae4ae53db056d1c892f5beebc462ef25b6 (diff)
downloadChibiOS-2ec209bdfa4f8ae78102a6379206f77502e0607a.tar.gz
ChibiOS-2ec209bdfa4f8ae78102a6379206f77502e0607a.tar.bz2
ChibiOS-2ec209bdfa4f8ae78102a6379206f77502e0607a.zip
Tickless mode fixed hopefully.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7837 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/STM32')
-rw-r--r--demos/STM32/RT-STM32F407-DISCOVERY/Makefile2
-rw-r--r--demos/STM32/RT-STM32F407-DISCOVERY/main.c32
2 files changed, 1 insertions, 33 deletions
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);
}
}