blob: 1d94eaa69ef085defdb3a1fc7e496b73a9b1c13e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "../tasks.h"
#ifdef CONFIG_IOE_TASKS
#else /* CONFIG_IOE_TASKS */
int8_t taskDelayTillT(int8_t *condition, uint8_t timeout_10us) {
while(*condition == 0) {
if (timeout_10us == 0)
return 1;
timeout_10us--;
_delay_us(10);
}
return 0;
}
#endif /* CONFIG_IOE_TASKS */
|