Skip to content

Commit

Permalink
Clean up OS typing
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Jan 9, 2024
1 parent 390d5fa commit 4fa126f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/os/os.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ typedef struct os_task_control_block
}
os_task_control_block;

#define OS_COUNTOF(a) (size_t) (sizeof(a) / sizeof(a[(size_t) 0U]))
#define OS_COUNTOF(a) ((size_t) (sizeof(a) / sizeof((a)[(size_t) 0U])))

#define OS_TIMER_TIMEOUT(T) (bool) (((uint8_t) ((uint8_t) (mcal_gpt_get_time_elapsed() - (T)) & (uint8_t) UINT8_C(0x80)) == (uint8_t) UINT8_C(0)) ? true : false)

extern void app_led_init(void);
extern void app_led_task(void);
extern void app_led_init (void);
extern void app_led_task (void);
extern void app_hello_init(void);
extern void app_hello_task(void);

Expand Down

0 comments on commit 4fa126f

Please sign in to comment.