mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-24 01:23:52 +08:00
fix compile
This commit is contained in:
@@ -16,7 +16,7 @@ const Stm32Gpio Stm32Gpio::none{nullptr, 0};
|
||||
* Note that all GPIOs with the same pin number map to the same IRQn,
|
||||
* no matter which port they belong to.
|
||||
*/
|
||||
static IRQn_Type get_irq_number(uint16_t pin_number) {
|
||||
static inline IRQn_Type get_irq_number(uint16_t pin_number) {
|
||||
switch (pin_number) {
|
||||
case 0: return EXTI0_IRQn;
|
||||
case 1: return EXTI1_IRQn;
|
||||
|
||||
Reference in New Issue
Block a user