git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@333 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
e5bd637729
commit
f53cac6961
|
@ -46,7 +46,7 @@ int main(int argc, char **argv) {
|
||||||
*/
|
*/
|
||||||
chSysInit();
|
chSysInit();
|
||||||
|
|
||||||
chThdCreate(NORMALPRIO, 0, waThread1, sizeof(waThread1), Thread1, NULL);
|
chThdCreateFast(NORMALPRIO, waThread1, sizeof(waThread1), Thread1);
|
||||||
|
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
chThdSleep(500);
|
chThdSleep(500);
|
||||||
|
|
|
@ -51,8 +51,8 @@ int main(int argc, char **argv) {
|
||||||
*/
|
*/
|
||||||
chSysInit();
|
chSysInit();
|
||||||
|
|
||||||
chThdCreate(NORMALPRIO, 0, waThread1, sizeof(waThread1), Thread1, NULL);
|
chThdCreateFast(NORMALPRIO, waThread1, sizeof(waThread1), Thread1);
|
||||||
chThdCreate(NORMALPRIO - 1, 0, waWebThread, sizeof(waWebThread), WebThread, NULL);
|
chThdCreateFast(NORMALPRIO - 1, waWebThread, sizeof(waWebThread), WebThread);
|
||||||
|
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
chThdSleep(500);
|
chThdSleep(500);
|
||||||
|
|
|
@ -69,8 +69,8 @@ int main(int argc, char **argv) {
|
||||||
/*
|
/*
|
||||||
* Creates the blinker threads.
|
* Creates the blinker threads.
|
||||||
*/
|
*/
|
||||||
chThdCreate(NORMALPRIO, 0, waThread1, sizeof(waThread1), Thread1, NULL);
|
chThdCreateFast(NORMALPRIO, waThread1, sizeof(waThread1), Thread1);
|
||||||
chThdCreate(NORMALPRIO, 0, waThread2, sizeof(waThread2), Thread2, NULL);
|
chThdCreateFast(NORMALPRIO, waThread2, sizeof(waThread2), Thread2);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Normal main() thread activity, in this demo it does nothing except
|
* Normal main() thread activity, in this demo it does nothing except
|
||||||
|
|
|
@ -52,7 +52,7 @@ int main(int argc, char **argv) {
|
||||||
/*
|
/*
|
||||||
* Creates the blinker threads.
|
* Creates the blinker threads.
|
||||||
*/
|
*/
|
||||||
chThdCreate(NORMALPRIO, 0, waThread1, sizeof(waThread1), Thread1, NULL);
|
chThdCreateFast(NORMALPRIO, waThread1, sizeof(waThread1), Thread1);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Normal main() thread activity, in this demo it does nothing except
|
* Normal main() thread activity, in this demo it does nothing except
|
||||||
|
|
|
@ -69,7 +69,7 @@ int main(int argc, char **argv) {
|
||||||
/*
|
/*
|
||||||
* Starts the LED blinker thread.
|
* Starts the LED blinker thread.
|
||||||
*/
|
*/
|
||||||
chThdCreate(NORMALPRIO, 0, waThread1, sizeof(waThread1), Thread1, NULL);
|
chThdCreateFast(NORMALPRIO, waThread1, sizeof(waThread1), Thread1);
|
||||||
|
|
||||||
while(TRUE)
|
while(TRUE)
|
||||||
chEvtWait(ALL_EVENTS, handlers);
|
chEvtWait(ALL_EVENTS, handlers);
|
||||||
|
|
|
@ -80,7 +80,7 @@ int main(int argc, char **argv) {
|
||||||
/*
|
/*
|
||||||
* Starts the LED blinker thread.
|
* Starts the LED blinker thread.
|
||||||
*/
|
*/
|
||||||
chThdCreate(NORMALPRIO, 0, waThread1, sizeof(waThread1), Thread1, NULL);
|
chThdCreateFast(NORMALPRIO, waThread1, sizeof(waThread1), Thread1);
|
||||||
|
|
||||||
while(TRUE)
|
while(TRUE)
|
||||||
chEvtWait(ALL_EVENTS, handlers);
|
chEvtWait(ALL_EVENTS, handlers);
|
||||||
|
|
|
@ -56,7 +56,7 @@ int main(int argc, char **argv) {
|
||||||
/*
|
/*
|
||||||
* Creates the blinker threads.
|
* Creates the blinker threads.
|
||||||
*/
|
*/
|
||||||
chThdCreate(NORMALPRIO, 0, waThread1, sizeof(waThread1), Thread1, NULL);
|
chThdCreateFast(NORMALPRIO, waThread1, sizeof(waThread1), Thread1);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Normal main() thread activity, in this demo it does nothing except
|
* Normal main() thread activity, in this demo it does nothing except
|
||||||
|
|
Loading…
Reference in New Issue