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:
Daniel Agar
2021-07-13 20:45:36 -04:00
parent 8f64f7ce90
commit e900f2ea54
32 changed files with 2476 additions and 20 deletions
+4 -4
View File
@@ -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)