Skip to content

Commit f4295a3

Browse files
committed
bad process
1 parent 3b5326a commit f4295a3

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

lib/pbio/drv/ioport/ioport_pup.c

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ void pbdrv_ioport_enable_vcc(bool enable) {
4545
PROCESS(pbdrv_ioport_pup_process, "ioport_pup");
4646
#endif
4747

48+
PROCESS(test_process, "testtest");
49+
4850
void 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+
5781
void pbdrv_ioport_deinit(void) {
5882
init_ports();
5983

0 commit comments

Comments
 (0)