mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 05:58:30 -04:00
AP_HAL_Linux: update Navigator available GPIOs
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
This commit is contained in:
parent
b7eef68974
commit
ee0f3c5f51
@ -14,8 +14,9 @@ public:
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user