hid_t * app_hid(const app_t *app)
Get the HID instance initialized for this app.
struct hw_led_t hw_led_t
Opaque LED handle.
Initialize the on-board LED if available (see app_led).
Run the event loop across all cores.
struct hw_watchdog_t hw_watchdog_t
Watchdog adapter handle.
Aggregates HID component interfaces.
Enable the watchdog (see app_watchdog) - hw_poll(), called every run loop tick, feeds it from there...
int app_main(int argc, char *argv[], app_flag_t flags, app_callback_start_t on_start, app_callback_event_t on_event, void *userdata)
Initialize the sys subsystem, run the event loop, then tear it down.
System abstraction headers and process lifecycle hooks.
Register the board's user button (if any) as a HID event with keycode KEYCODE_BUTTON_USER (see app_hi...
hw_usb_t * app_usb(const app_t *app)
Get the USB host handle initialized for this app.
void(* app_callback_start_t)(app_t *app, void *userdata)
Called once, on the main worker, before the run loop starts dispatching events.
hw_watchdog_t * app_watchdog(const app_t *app)
Get the watchdog handle initialized for this app.
Hardware abstraction headers for on-board peripherals.
Initialize standard I/O via SEGGER RTT (sys_stdio_rtt) instead of the platform default.
hw_led_t * app_led(const app_t *app)
Get the on-board LED handle initialized for this app.
Register environment signals (TERM, INT, QUIT) as HID events (see app_hid).
app_flag_t
Feature flags controlling how app_main() runs.
void * sys_event_t
Event payload stored in a queue.
struct hw_usb_t hw_usb_t
Opaque USB host handle.
Initialize the USB host subsystem and register it with HID (see app_usb and app_hid) - hotplug activi...
Register the internal temperature-sensor channel as a polling HID metric source (see hid_register_tem...
struct hid_t hid_t
Opaque HID instance handle.
struct app_t app_t
Opaque application instance passed to app callbacks.
void app_shutdown(int exit_code)
Request that the running app's event loop stop.
void(* app_callback_event_t)(app_t *app, sys_event_t event, void *userdata)
Called on a worker for each event the run loop dispatches.