Reverted temporary changes.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14334 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-04-28 08:12:38 +00:00
parent 6411cd50b4
commit cf3a72bdd5
2 changed files with 2 additions and 12 deletions

View File

@ -5,7 +5,7 @@
# Compiler options here.
ifeq ($(USE_OPT),)
USE_OPT = -Og -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).

View File

@ -19,7 +19,6 @@
#include "rt_test_root.h"
#include "oslib_test_root.h"
#if 0
/*
* Green LED blinker thread, times are in milliseconds.
*/
@ -35,14 +34,6 @@ static THD_FUNCTION(Thread1, arg) {
chThdSleepMilliseconds(500);
}
}
#endif
virtual_timer_t vt1;
void vtfunc(void *par) {
(void)par;
palToggleLine(LINE_LED_GREEN);
}
/*
* Application entry point.
@ -69,8 +60,7 @@ int main(void) {
/*
* Creates the blinker thread.
*/
// chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
chVTSetContinuous(&vt1, TIME_MS2I(500), vtfunc, NULL);
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
/*
* Normal main() thread activity, in this demo it does nothing except