File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,11 @@ void pbdrv_ioport_enable_vcc(bool enable) {
4545PROCESS (pbdrv_ioport_pup_process , "ioport_pup" );
4646#endif
4747
48+ PROCESS (test_process , "testtest" );
49+
4850void pbdrv_ioport_init (void ) {
51+ process_start (& test_process );
52+
4953 init_ports ();
5054
5155 #if PBDRV_CONFIG_IOPORT_PUP_QUIRK_POWER_CYCLE
@@ -54,6 +58,26 @@ void pbdrv_ioport_init(void) {
5458 #endif
5559}
5660
61+ #include <stdio.h>
62+
63+ PROCESS_THREAD (test_process , ev , data ) {
64+
65+ static struct etimer timer ;
66+
67+ PROCESS_BEGIN ();
68+
69+ for (;;) {
70+
71+ etimer_set (& timer , 1000 );
72+
73+ PROCESS_WAIT_EVENT_UNTIL (ev == PROCESS_EVENT_TIMER && etimer_expired (& timer ));
74+
75+ printf ("Hello, world\n" );
76+ }
77+
78+ PROCESS_END ();
79+ }
80+
5781void pbdrv_ioport_deinit (void ) {
5882 init_ports ();
5983
You can’t perform that action at this time.
0 commit comments