mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 15:40:31 +08:00
boards: Advanced Technology Labs (ATL) Mantis EDU support and airfarme (SYS_AUTOSTART 4061)
Co-authored-by: Julian Oes <julian@oes.ch> Co-authored-by: Daniel Agar <daniel@agar.ca>
This commit is contained in:
@@ -180,10 +180,10 @@ static void shutdown_worker(void *arg)
|
||||
#endif
|
||||
|
||||
} else {
|
||||
#if defined(CONFIG_BOARDCTL_POWEROFF)
|
||||
#if defined(BOARD_HAS_POWER_CONTROL)
|
||||
PX4_INFO_RAW("Powering off NOW.");
|
||||
board_power_off(0);
|
||||
#elif !defined(CONFIG_BOARDCTL_POWEROFF) && defined(__PX4_POSIX)
|
||||
#elif defined(__PX4_POSIX)
|
||||
// simply exit on posix if real shutdown (poweroff) not available
|
||||
PX4_INFO_RAW("Exiting NOW.");
|
||||
system_exit(0);
|
||||
@@ -228,7 +228,7 @@ int px4_reboot_request(bool to_bootloader, uint32_t delay_us)
|
||||
}
|
||||
#endif // CONFIG_BOARDCTL_RESET
|
||||
|
||||
#if defined(CONFIG_BOARDCTL_POWEROFF) || defined(__PX4_POSIX)
|
||||
#if defined(BOARD_HAS_POWER_CONTROL) || defined(__PX4_POSIX)
|
||||
int px4_shutdown_request(uint32_t delay_us)
|
||||
{
|
||||
pthread_mutex_lock(&shutdown_mutex);
|
||||
@@ -250,6 +250,6 @@ int px4_shutdown_request(uint32_t delay_us)
|
||||
pthread_mutex_unlock(&shutdown_mutex);
|
||||
return 0;
|
||||
}
|
||||
#endif // CONFIG_BOARDCTL_POWEROFF
|
||||
#endif // BOARD_HAS_POWER_CONTROL
|
||||
|
||||
#endif // CONFIG_SCHED_WORKQUEUE)
|
||||
|
||||
Reference in New Issue
Block a user