mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-25 02:47:27 +08:00
Merge branch 'devel' into Endstops
This commit is contained in:
@@ -51,7 +51,7 @@ void save_configuration(void) {
|
||||
}
|
||||
}
|
||||
|
||||
void load_configuration(void) {
|
||||
extern "C" int load_configuration(void) {
|
||||
// Try to load configs
|
||||
if (NVM_init() ||
|
||||
ConfigFormat::safe_load_config(
|
||||
@@ -81,6 +81,7 @@ void load_configuration(void) {
|
||||
} else {
|
||||
user_config_loaded_ = true;
|
||||
}
|
||||
return user_config_loaded_;
|
||||
}
|
||||
|
||||
void erase_configuration(void) {
|
||||
@@ -107,7 +108,7 @@ void enter_dfu_mode() {
|
||||
|
||||
extern "C" {
|
||||
int odrive_main(void);
|
||||
void vApplicationStackOverflowHook(void) {
|
||||
void vApplicationStackOverflowHook(xTaskHandle *pxTask, signed portCHAR *pcTaskName) {
|
||||
for (;;); // TODO: safe action
|
||||
}
|
||||
void vApplicationIdleHook(void) {
|
||||
@@ -126,8 +127,6 @@ void vApplicationIdleHook(void) {
|
||||
}
|
||||
|
||||
int odrive_main(void) {
|
||||
// Load persistent configuration (or defaults)
|
||||
load_configuration();
|
||||
|
||||
#if HW_VERSION_MAJOR == 3 && HW_VERSION_MINOR >= 3
|
||||
if (board_config.enable_i2c_instead_of_can) {
|
||||
@@ -226,6 +225,8 @@ int odrive_main(void) {
|
||||
axes[i]->start_thread();
|
||||
}
|
||||
|
||||
start_analog_thread();
|
||||
|
||||
system_stats_.fully_booted = true;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user