Skip to content

Commit

Permalink
SAM D51 also has a different EVSYS setup
Browse files Browse the repository at this point in the history
  • Loading branch information
joeycastillo committed Oct 14, 2024
1 parent 14874c7 commit bd4fe51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peripherals/evsys.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "evsys.h"

void evsys_configure_channel(uint8_t channel, uint8_t generator, uint8_t user, bool run_in_standby, bool asynchronous) {
#if defined(_SAMD21_) || defined(_SAMD11_)
#if defined(_SAMD11_) || defined(_SAMD21_) || defined(_SAMD51_)
// TODO: these devices have a different way of configuring events
#else
EVSYS->USER[user].reg = EVSYS_USER_CHANNEL(channel + 1);
Expand Down

0 comments on commit bd4fe51

Please sign in to comment.