diff options
author | isiora <none@example.com> | 2018-03-16 18:33:19 +0000 |
---|---|---|
committer | isiora <none@example.com> | 2018-03-16 18:33:19 +0000 |
commit | 973e0e5d74a2db41075eaf006ca11ba306a158dc (patch) | |
tree | 2cd7237339d436e451ad8267b97e9f6a80b00f0b /demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/main.c | |
parent | 70eecc1bafc85f7d589f913e00be1736821b4a15 (diff) | |
download | ChibiOS-973e0e5d74a2db41075eaf006ca11ba306a158dc.tar.gz ChibiOS-973e0e5d74a2db41075eaf006ca11ba306a158dc.tar.bz2 ChibiOS-973e0e5d74a2db41075eaf006ca11ba306a158dc.zip |
Improved multithreading of the tsSkelsDaemon .
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11784 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/main.c')
-rwxr-xr-x | demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/main.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/main.c b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/main.c index a35e30606..d3176161f 100755 --- a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/main.c +++ b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-NSEC/main.c @@ -23,6 +23,8 @@ #include "chprintf.h"
#include "lwipthread.h"
+#define DEMONS_READY 1
+
/*
* LED blinker thread, times are in milliseconds.
*/
@@ -80,14 +82,7 @@ int main(void) { */
chThdCreateStatic(waThread1, sizeof waThread1, NORMALPRIO-1, Thread1, NULL);
- /* Creates three sockets skeleton daemon threads to serve up to three
- sockets calls simultaneously.*/
- chThdCreateStatic(waTsSockSkelDaemon0, sizeof waTsSockSkelDaemon0, NORMALPRIO,
- TsSockSkelDaemon, (void *)1);
- chThdCreateStatic(waTsSockSkelDaemon1, sizeof waTsSockSkelDaemon1, NORMALPRIO,
- TsSockSkelDaemon, NULL);
- chThdCreateStatic(waTsSockSkelDaemon2, sizeof waTsSockSkelDaemon2, NORMALPRIO,
- TsSockSkelDaemon, NULL);
+ tsSkelsDaemonInit();
/*
* Call the dummy secure service
|