Skip to content

Commit

Permalink
AP_HAL_Linux: update Navigator available GPIOs
Browse files Browse the repository at this point in the history
The comment was wrong. gpio 26 is actually used for the PCA Output Enable signal.
This also adds GPIO18, which is the one broken out to the PWM0 pin
  • Loading branch information
Williangalvani authored and tridge committed Sep 4, 2023
1 parent 1d207be commit e82949d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libraries/AP_HAL_Linux/GPIO_Navigator.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ class GPIO_Navigator : public GPIO_RPI
uint8_t read(uint8_t pin) override;
void write(uint8_t pin, uint8_t value) override;
private:
uint8_t AllowedGPIOS[2] = {
RPI_GPIO_<26>(), // Aux Output for PWMs
uint8_t AllowedGPIOS[3] = {
RPI_GPIO_<18>(), // Aux Output for PWMs
RPI_GPIO_<26>(), // PCA OUTPUT_ENABLE
RPI_GPIO_<27>() // Leak detection
};
bool pinAllowed(uint8_t pin);
Expand Down

0 comments on commit e82949d

Please sign in to comment.