mirror of
https://github.com/joeycastillo/gossamer.git
synced 2025-10-29 19:21:02 +00:00
TC: SAM D21 also lacks an ONDEMAND flag
This commit is contained in:
parent
b22ea4c605
commit
1ff0cc58cf
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user