Skip to content

Commit

Permalink
kakutef7 board_config: remove usb valid defines
Browse files Browse the repository at this point in the history
Otherwise 'system_power' gets published with voltage5v_v = 0, as there is
no 5V sensing pin, leading to Avionics Power Low preflight check failures.
  • Loading branch information
bkueng authored and dagar committed Jul 25, 2019
1 parent 72ddf3e commit 4f09098
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions boards/holybro/kakutef7/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,21 +189,6 @@

#define GPIO_RSSI_IN /* PC5 */ (GPIO_INPUT|GPIO_PULLUP|GPIO_PORTC|GPIO_PIN5)

/* By Providing BOARD_ADC_USB_CONNECTED (using the px4_arch abstraction)
* this board support the ADC system_power interface, and therefore
* provides the true logic GPIO BOARD_ADC_xxxx macros.
*/
#define BOARD_ADC_USB_CONNECTED (px4_arch_gpioread(GPIO_OTGFS_VBUS))

#if BOARD_HAS_USB_VALID == 1
# define BOARD_ADC_USB_VALID (!px4_arch_gpioread(GPIO_nVDD_USB_VALID))
#else
# define BOARD_ADC_USB_VALID BOARD_ADC_USB_CONNECTED
#endif

#define BOARD_ADC_SERVO_VALID (1)
#define BOARD_ADC_BRICK1_VALID (1)

#define BOARD_HAS_PWM DIRECT_PWM_OUTPUT_CHANNELS

/* This board provides a DMA pool and APIs */
Expand Down

0 comments on commit 4f09098

Please sign in to comment.