firmware-nucleo/App/Inc/task_remote.h (766B)
1 /* 2 * Copyright (c) 2026 Martin Javier Klöckner <mklockner@fi.uba.ar> 3 * 4 * See file `LICENSE` for full details 5 */ 6 7 #ifndef TASK_INC_TASK_REMOTE_H_ 8 #define TASK_INC_TASK_REMOTE_H_ 9 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 14 #define G_TASK_REMOTE_QUEUE_LEN 255 15 16 typedef struct { 17 uint8_t head; 18 uint8_t tail; 19 uint8_t count; 20 uint8_t data[G_TASK_REMOTE_QUEUE_LEN]; 21 } queue_t; 22 23 extern uint32_t g_task_remote_cnt; 24 extern volatile uint32_t g_task_remote_tick_cnt; 25 26 extern uint8_t task_remote_uart_rx_byte; 27 extern queue_t task_remote_rx_queue; 28 29 void task_remote_init(void *parameters); 30 void task_remote_update(void *parameters); 31 32 void task_remote_queue_enqueue(queue_t *queue, uint8_t value); 33 34 #ifdef __cplusplus 35 } 36 #endif 37 38 #endif /* TASK_INC_TASK_REMOTE_H_ */
