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:
Daniel Agar
2020-05-01 20:59:28 -04:00
committed by GitHub
parent 0c8dcf94bc
commit d89b7804f7
28 changed files with 2460 additions and 24 deletions
@@ -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;
}
}