Make HAL ISR macros function-like
This commit is contained in:
@ -65,9 +65,9 @@ typedef uint32_t hal_timer_t;
|
||||
#define ENABLE_TEMPERATURE_INTERRUPT() HAL_timer_enable_interrupt(TEMP_TIMER_NUM)
|
||||
#define DISABLE_TEMPERATURE_INTERRUPT() HAL_timer_disable_interrupt(TEMP_TIMER_NUM)
|
||||
|
||||
#define HAL_STEP_TIMER_ISR void TC3_Handler()
|
||||
#define HAL_TEMP_TIMER_ISR void TC4_Handler()
|
||||
#define HAL_TONE_TIMER_ISR void TC6_Handler()
|
||||
#define HAL_STEP_TIMER_ISR() void TC3_Handler()
|
||||
#define HAL_TEMP_TIMER_ISR() void TC4_Handler()
|
||||
#define HAL_TONE_TIMER_ISR() void TC6_Handler()
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
// Types
|
||||
|
@ -45,7 +45,7 @@ void noTone(const pin_t _pin) {
|
||||
extDigitalWrite(_pin, LOW);
|
||||
}
|
||||
|
||||
HAL_TONE_TIMER_ISR {
|
||||
HAL_TONE_TIMER_ISR() {
|
||||
static uint8_t pin_state = 0;
|
||||
HAL_timer_isr_prologue(TONE_TIMER_NUM);
|
||||
|
||||
|
Reference in New Issue
Block a user