gossamer 0.0.1
a very lightweight app framework for SAMD and SAML chips
Loading...
Searching...
No Matches
Event System

Functions for configuring and using the Event System. More...

Functions

void evsys_configure_channel (uint8_t channel, uint8_t generator, uint8_t user, bool run_in_standby, bool asynchronous)
 Configures an event channel to route an event from a generator to a user.
 

Detailed Description

Functions for configuring and using the Event System.

Note
The Event System has no _init or _enable functions. It is always running.

Function Documentation

◆ evsys_configure_channel()

void evsys_configure_channel ( uint8_t  channel,
uint8_t  generator,
uint8_t  user,
bool  run_in_standby,
bool  asynchronous 
)

Configures an event channel to route an event from a generator to a user.

Parameters
channelThe event channel to configure. The number of channels varies by device, but all should have at least six channels.
generatorThe event generator, or the source of the event.
userThe event user, or the peripheral that will receive the event.
run_in_standbyWhether the event channel should run in standby sleep mode.
asynchronousWhether the event should use the asynchronous path or the synchronous path.