22#define CURRENT_CLASS Sam
24#define HAS_FLASH_READ 1
25#define HAS_HARDWARE_PWM 1
27#define HAS_INPUT_CAPTURE 0
29#define STRCPY_PF_CAST(x) static_cast<const char *>(x)
37#define ISR(f) void interruptServiceRoutine()
47 static constexpr bool invert =
false;
55 void timerConfigNormal();
57 void timerEnableIntr();
59 void timerDisableIntr();
61 void timerConfigHz(
frequency_t hz __attribute__ ((unused)),
dutycycle_t dutyCycle __attribute__ ((unused))) {
62 timerConfigHz(
PWM_PIN, hz, dutyCycle);
67 void timerEnablePwm() {
71 void timerDisablePwm() {
75 static const unsigned int TIMER_PRESCALER_DIV = 64U;
79 void setValue(uint16_t value);
This file defines some general data types that are used in the library.
int8_t dutycycle_t
Type for duty cycle in percent.
uint32_t frequency_t
Type for modulation frequency in Hz.
uint8_t pin_t
Type for GPIO pin, compatible with Arduino libs.
This class serves as an HAL (Hardware Abstraction Layer).