Browse Source

[BACKPORT] hrt needs to be running for ADC time out.

From commit 5a1c46deeb
sbg
Travis Bottalico 5 years ago committed by Daniel Agar
parent
commit
9e38fee1c6
  1. 4
      boards/modalai/fc-v1/src/board_config.h
  2. 5
      boards/modalai/fc-v1/src/init.c

4
boards/modalai/fc-v1/src/board_config.h

@ -252,6 +252,10 @@ @@ -252,6 +252,10 @@
/* HW has to large of R termination on ADC todo:change when HW value is chosen */
#define HW_REV_VER_ADC_BASE STM32_ADC3_BASE
#define SYSTEM_ADC_BASE STM32_ADC1_BASE
#define BOARD_ADC_OPEN_CIRCUIT_V (5.6f)
/* HW Version and Revision drive signals Default to 1 to detect */

5
boards/modalai/fc-v1/src/init.c

@ -283,6 +283,9 @@ __EXPORT int board_app_initialize(uintptr_t arg) @@ -283,6 +283,9 @@ __EXPORT int board_app_initialize(uintptr_t arg)
VDD_3V3_SD_CARD_EN(true);
VDD_3V3_SPEKTRUM_POWER_EN(true);
/* Need hrt running before using the ADC */
px4_platform_init();
if (OK == board_determine_hw_info()) {
syslog(LOG_INFO, "[boot] Rev 0x%1x : Ver 0x%1x %s\n", board_get_hw_revision(), board_get_hw_version(),
@ -292,8 +295,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) @@ -292,8 +295,6 @@ __EXPORT int board_app_initialize(uintptr_t arg)
syslog(LOG_ERR, "[boot] Failed to read HW revision and version\n");
}
px4_platform_init();
/* configure the DMA allocator */
if (board_dma_alloc_init() < 0) {

Loading…
Cancel
Save