TC: SAM D21 also lacks an ONDEMAND flag

This commit is contained in:
Joey Castillo 2025-06-07 09:14:38 -06:00
parent b22ea4c605
commit 1ff0cc58cf
3 changed files with 3 additions and 3 deletions

View File

@ -127,7 +127,7 @@ void tc_set_counter_mode(uint8_t instance, tc_counter_mode_t mode);
*/
void tc_set_run_in_standby(uint8_t instance, bool runStandby);
#ifndef _SAMD11_
#if !defined(_SAMD21_) && !defined(_SAMD11_)
/**
* @brief Sets the TC's run-on-demand mode.
* @param instance The TC peripheral instance as numbered in the data sheet.

View File

@ -39,7 +39,7 @@ void tc_set_counter_mode(uint8_t instance, tc_counter_mode_t mode) {
void tc_set_run_in_standby(uint8_t instance, bool runStandby) {
}
#ifndef _SAMD11_
#if !defined(_SAMD21_) && !defined(_SAMD11_)
void tc_set_run_on_demand(uint8_t instance, bool onDemand) {
}
#endif

View File

@ -75,7 +75,7 @@ void tc_set_run_in_standby(uint8_t instance, bool runStandby) {
TC_Peripherals[instance - TC_First_Index].tc->COUNT16.CTRLA.bit.RUNSTDBY = runStandby;
}
#ifndef _SAMD11_
#if !defined(_SAMD21_) && !defined(_SAMD11_)
void tc_set_run_on_demand(uint8_t instance, bool onDemand) {
TC_Peripherals[instance - TC_First_Index].tc->COUNT16.CTRLA.bit.ONDEMAND = onDemand;
}