PER Firmware
Loading...
Searching...
No Matches
activity_leds.h
Go to the documentation of this file.
1#ifndef CANNECTOR_ACTIVITY_LEDS_H
2#define CANNECTOR_ACTIVITY_LEDS_H
3
4#include "rtos/rtos.h"
5
6static constexpr uint32_t ACTIVITY_LED_TIMEOUT_MS = 100U;
7
15
16// Safe to call from both a task and ISR
17void activity_leds_record(activity_led_t led, TickType_t tick);
18
19// Periodically update the activity LEDs based on recent activity
20void activity_leds_periodic(void);
21
22#endif
void activity_leds_record(activity_led_t led, TickType_t tick)
static constexpr uint32_t ACTIVITY_LED_TIMEOUT_MS
Definition activity_leds.h:6
void activity_leds_periodic(void)
Definition activity_leds.c:14
activity_led_t
Definition activity_leds.h:8
@ ACTIVITY_COUNT
Definition activity_leds.h:13
@ ACTIVITY_SCAN
Definition activity_leds.h:11
@ ACTIVITY_USB
Definition activity_leds.h:12
@ ACTIVITY_VCAN
Definition activity_leds.h:9
@ ACTIVITY_MCAN
Definition activity_leds.h:10
Wrapper macros for FreeRTOS constructs (tasks, queues, semaphores) to simplify static memory allocati...