mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 20:28:37 +08:00
[BACKPORT] hrt needs to be running for ADC time out.
From commit 5a1c46deeb
This commit is contained in:
committed by
Daniel Agar
parent
cfa74b9106
commit
9e38fee1c6
@@ -252,6 +252,10 @@
|
|||||||
|
|
||||||
/* HW has to large of R termination on ADC todo:change when HW value is chosen */
|
/* 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)
|
#define BOARD_ADC_OPEN_CIRCUIT_V (5.6f)
|
||||||
|
|
||||||
/* HW Version and Revision drive signals Default to 1 to detect */
|
/* HW Version and Revision drive signals Default to 1 to detect */
|
||||||
|
|||||||
@@ -283,6 +283,9 @@ __EXPORT int board_app_initialize(uintptr_t arg)
|
|||||||
VDD_3V3_SD_CARD_EN(true);
|
VDD_3V3_SD_CARD_EN(true);
|
||||||
VDD_3V3_SPEKTRUM_POWER_EN(true);
|
VDD_3V3_SPEKTRUM_POWER_EN(true);
|
||||||
|
|
||||||
|
/* Need hrt running before using the ADC */
|
||||||
|
|
||||||
|
px4_platform_init();
|
||||||
|
|
||||||
if (OK == board_determine_hw_info()) {
|
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(),
|
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)
|
|||||||
syslog(LOG_ERR, "[boot] Failed to read HW revision and version\n");
|
syslog(LOG_ERR, "[boot] Failed to read HW revision and version\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
px4_platform_init();
|
|
||||||
|
|
||||||
/* configure the DMA allocator */
|
/* configure the DMA allocator */
|
||||||
|
|
||||||
if (board_dma_alloc_init() < 0) {
|
if (board_dma_alloc_init() < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user