Skip to content

Commit

Permalink
fix port 3 pwm feature index
Browse files Browse the repository at this point in the history
  • Loading branch information
p3p committed Jun 10, 2021
1 parent 5b2e9ee commit b36e105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/lpc176x/pin_control.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ struct pin_type {
* Function
*/
static constexpr std::array<uint8_t, 10> function_bits_adc{0x2, 0x1, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0};
static constexpr std::array<uint8_t, 10> function_bits_pwm{0x0, 0x0, 0x0, 0x2, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0};
static constexpr std::array<uint8_t, 10> 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);
Expand Down

0 comments on commit b36e105

Please sign in to comment.