Macros | |
#define | WAIT_TC16_REGS_SYNC(x) while(x->COUNT16.STATUS.bit.SYNCBUSY); |
#define | TONE_TC TC3 |
#define | TONE_TC_IRQn TC3_IRQn |
#define | TONE_TC_TOP 0xFFFF |
#define | TONE_TC_CHANNEL 0 |
Fonctions | |
void | TC3_Handler (void) |
void | toneAccurateClock (uint32_t accurateSystemCoreClockFrequency) |
void | tone (uint32_t outputPin, uint32_t frequency, uint32_t duration) |
void | noTone (uint32_t outputPin) |
Variables | |
uint32_t | toneMaxFrequency = F_CPU / 2 |
uint32_t | lastOutputPin = 0xFFFFFFFF |
volatile uint32_t * | portToggleRegister |
volatile uint32_t * | portClearRegister |
volatile uint32_t | portBitMask |
volatile int64_t | toggleCount |
volatile bool | toneIsActive = false |
volatile bool | firstTimeRunning = false |
#define TONE_TC TC3 |
#define TONE_TC_CHANNEL 0 |
#define TONE_TC_IRQn TC3_IRQn |
#define TONE_TC_TOP 0xFFFF |
#define WAIT_TC16_REGS_SYNC | ( | x | ) | while(x->COUNT16.STATUS.bit.SYNCBUSY); |
void noTone | ( | uint32_t | outputPin | ) |
void TC3_Handler | ( | void | ) |
void tone | ( | uint32_t | outputPin, |
uint32_t | frequency, | ||
uint32_t | duration | ||
) |
void toneAccurateClock | ( | uint32_t | accurateSystemCoreClockFrequency | ) |
volatile bool firstTimeRunning = false |
uint32_t lastOutputPin = 0xFFFFFFFF |
volatile uint32_t portBitMask |
volatile uint32_t* portClearRegister |
volatile uint32_t* portToggleRegister |
volatile int64_t toggleCount |
volatile bool toneIsActive = false |
uint32_t toneMaxFrequency = F_CPU / 2 |