mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 04:33:34 +08:00
boards: initial CUAV X7Pro support (not complete)
- this is booting and functional, but still missing a few things - still needs full PWM output, verification of all sensor rotations and IO, etc
This commit is contained in:
@@ -105,4 +105,6 @@ __BEGIN_DECLS
|
||||
#define PX4_MAKE_GPIO_INPUT(gpio) (((gpio) & (GPIO_PORT_MASK | GPIO_PIN_MASK)) | (GPIO_INPUT|GPIO_PULLUP))
|
||||
#define PX4_MAKE_GPIO_OUTPUT(gpio) (((gpio) & (GPIO_PORT_MASK | GPIO_PIN_MASK)) | (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_CLEAR))
|
||||
|
||||
#define PX4_GPIO_PIN_OFF(def) (((def) & (GPIO_PORT_MASK | GPIO_PIN_MASK)) | (GPIO_INPUT|GPIO_FLOAT|GPIO_SPEED_2MHz))
|
||||
|
||||
__END_DECLS
|
||||
|
||||
@@ -176,9 +176,9 @@ int px4_arch_adc_init(uint32_t base_address)
|
||||
|
||||
while ((rCR(base_address) & ADC_CR_ADCAL)) {
|
||||
|
||||
/* don't wait for more than 7000us, since that means something broke
|
||||
/* don't wait for more than 15000us, since that means something broke
|
||||
* should reset here if we see this */
|
||||
if ((hrt_absolute_time() - now) > 7000) {
|
||||
if ((hrt_absolute_time() - now) > 15000) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user