diff options
Diffstat (limited to 'testhal/AVR/ICU/main.c')
-rw-r--r-- | testhal/AVR/ICU/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/testhal/AVR/ICU/main.c b/testhal/AVR/ICU/main.c index 2cbe1db2e..3faaed2ee 100644 --- a/testhal/AVR/ICU/main.c +++ b/testhal/AVR/ICU/main.c @@ -58,7 +58,7 @@ void output_single_cycle(const uint16_t low, const uint16_t high) { }
static WORKING_AREA(waThread1, 64);
-static msg_t Thread1(void *arg) {
+static THD_FUNCTION(Thread1, arg) {
BaseSequentialStream *serp = (BaseSequentialStream *) &SD1;
thread1 = chThdGetSelfX();
@@ -71,11 +71,10 @@ static msg_t Thread1(void *arg) { period);
chEvtSignal(thread_main, (eventmask_t) 1);
}
- return 0;
}
static WORKING_AREA(waThread2, 64);
-static msg_t Thread2(void *arg) {
+static THD_FUNCTION(Thread2, arg) {
BaseSequentialStream *serp = (BaseSequentialStream *) &SD1;
thread2 = chThdGetSelfX();
@@ -84,7 +83,6 @@ static msg_t Thread2(void *arg) { chprintf(serp, "OVERFLOW\r\n");
chEvtSignal(thread_main, (eventmask_t) 2);
}
- return 0;
}
int main(void) {
|