diff --git a/system/lpc176x/pin_control.h b/system/lpc176x/pin_control.h index 28464f9..3364209 100644 --- a/system/lpc176x/pin_control.h +++ b/system/lpc176x/pin_control.h @@ -124,7 +124,7 @@ struct pin_type { * Function */ static constexpr std::array function_bits_adc{0x2, 0x1, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}; - static constexpr std::array function_bits_pwm{0x0, 0x0, 0x0, 0x2, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0}; + static constexpr std::array function_bits_pwm{0x0, 0x0, 0x0, 0x2, 0x1, 0x0, 0x0, 0x3, 0x0, 0x0}; [[gnu::always_inline]] constexpr uint32_t function_reg_id() const { return (gpio_reg_id * 2) + (gpio_reg_bit > 15);