Some uN_t had crept back in cc2530dk and sensinode.
Changed to uintN_t plus a bit of code formatting
This commit is contained in:
parent
9475737f4b
commit
4f1e251603
9 changed files with 21 additions and 32 deletions
|
@ -19,7 +19,7 @@ PROCESS_THREAD(clock_test_process, ev, data)
|
|||
static struct etimer et;
|
||||
static clock_time_t count, start_count, end_count, diff;
|
||||
static unsigned long sec;
|
||||
static u8_t i;
|
||||
static uint8_t i;
|
||||
|
||||
PROCESS_BEGIN();
|
||||
|
||||
|
@ -41,8 +41,8 @@ PROCESS_THREAD(clock_test_process, ev, data)
|
|||
PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&et));
|
||||
etimer_reset(&et);
|
||||
|
||||
count = clock_time();
|
||||
printf("%u ticks\n", count);
|
||||
count = clock_time();
|
||||
printf("%u ticks\n", count);
|
||||
|
||||
leds_toggle(LEDS_RED);
|
||||
i++;
|
||||
|
@ -55,8 +55,8 @@ PROCESS_THREAD(clock_test_process, ev, data)
|
|||
PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&et));
|
||||
etimer_reset(&et);
|
||||
|
||||
sec = clock_seconds();
|
||||
printf("%u seconds\n", (u16_t) sec);
|
||||
sec = clock_seconds();
|
||||
printf("%u seconds\n", (uint16_t) sec);
|
||||
|
||||
leds_toggle(LEDS_GREEN);
|
||||
i++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue