You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/home/runner/.platformio/packages/framework-arduino-openwch-ch32/cores/arduino/HardwareTimer.cpp:73:18: error: 'TIM2_IRQn' was not declared in this scope
NVIC_EnableIRQ(TIM2_IRQn);
^~~~~~~~~
/home/runner/.platformio/packages/framework-arduino-openwch-ch32/cores/arduino/HardwareTimer.cpp:73:18: note: suggested alternative: 'TIM3_IRQn'
NVIC_EnableIRQ(TIM2_IRQn);
^~~~~~~~~
TIM3_IRQn
This is because the CH32X035 does define TIM2_BASE macro but doesn't have a TIM2_IRQn interrupt.
The lines
arduino_core_ch32/cores/arduino/HardwareTimer.cpp
Lines 72 to 74 in c40c5c8
fail to compile when selecting a CH32X035 board.
This is because the CH32X035 does define
TIM2_BASE
macro but doesn't have aTIM2_IRQn
interrupt.arduino_core_ch32/system/CH32X035/SRC/Peripheral/inc/ch32x035.h
Lines 575 to 576 in c40c5c8
It has these though
arduino_core_ch32/system/CH32X035/SRC/Peripheral/inc/ch32x035.h
Lines 65 to 81 in c40c5c8
So maybe
TIM2_CC_IRQn
andTIM2_UP_IRQn
should be used for the CH32X035?The text was updated successfully, but these errors were encountered: