forked from Archive/PX4-Autopilot
kakutef7 board_config: remove usb valid defines
Otherwise 'system_power' gets published with voltage5v_v = 0, as there is no 5V sensing pin, leading to Avionics Power Low preflight check failures.
This commit is contained in:
parent
72ddf3e0aa
commit
4f090980ab
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue