mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 08:57:36 +08:00
nxphlite-v3:Init and control Sensor reset pins in board init
This commit is contained in:
committed by
Daniel Agar
parent
929c5d9b5e
commit
9bc1884e83
@@ -213,6 +213,10 @@ kinetis_boardinitialize(void)
|
||||
/* configure LEDs */
|
||||
board_autoled_initialize();
|
||||
|
||||
/* Reset Sensors */
|
||||
kinetis_pinconfig(GPIO_GM_nRST);
|
||||
kinetis_pinconfig(GPIO_A_RST);
|
||||
|
||||
/* configure ADC pins */
|
||||
|
||||
kinetis_pinconfig(GPIO_BAT_VSENS);
|
||||
@@ -271,7 +275,6 @@ kinetis_boardinitialize(void)
|
||||
kinetis_pinconfig(GPIO_LED_D9);
|
||||
kinetis_pinconfig(GPIO_LED_D10);
|
||||
|
||||
|
||||
nxphlite_timer_initialize();
|
||||
|
||||
/* configure SPI interfaces */
|
||||
@@ -343,6 +346,11 @@ __EXPORT int board_app_initialize(uintptr_t arg)
|
||||
# error platform is dependent on c++ both CONFIG_HAVE_CXX and CONFIG_HAVE_CXXINITIALIZE must be defined.
|
||||
#endif
|
||||
|
||||
/* Release Reset pins on Sensors */
|
||||
|
||||
kinetis_gpiowrite(GPIO_GM_nRST, 1);
|
||||
kinetis_gpiowrite(GPIO_A_RST, 0);
|
||||
|
||||
param_init();
|
||||
|
||||
/* configure the high-resolution time/callout interface */
|
||||
|
||||
Reference in New Issue
Block a user