|
CTS-SAT-1-OBC-Firmware
|
#include "rtos_tasks/rtos_background_upkeep.h"#include "log/log.h"#include "config/configuration.h"#include "timekeeping/timekeeping.h"#include "rtos_tasks/rtos_task_helpers.h"#include "main.h"#include "rtos_tasks/rtos_tasks_rx_telecommands.h"#include "comms_drivers/rf_antenna_switch.h"#include "comms_drivers/comms_tx.h"#include "log/lazy_file_log_sink.h"#include "cmsis_os.h"#include "eps_drivers/eps_power_management.h"
Functions | |
| static void | subtask_monitor_eps_power (void) |
| static void | subtask_reset_system_after_very_long_uptime (void) |
| If the system exceeds a very long uptime, reset the system. | |
| static void | subtask_reset_system_after_no_recent_uplinks (void) |
| If the system has not received an uplink in a very long time, reset the system. | |
| static void | subtask_update_rf_switch (void) |
| Update the RF switch state based on the current mode. | |
| static void | subtask_send_beacon (void) |
| void | TASK_background_upkeep (void *argument) |
Variables | |
| uint32_t | STM32_system_reset_interval_sec = 604800 |
| If the system uptime exceeds this value, the system will reset (reboot). | |
| uint32_t | STM32_system_reset_no_uplink_interval_sec = 216000 |
| If the duration since an AX100 uplink telecommand exceeds this value, the system will reset (reboot). | |
| static uint32_t | EPS_monitor_last_uptime_ms = 0 |
|
static |


|
static |
If the system has not received an uplink in a very long time, reset the system.
| <br> |


|
static |
If the system exceeds a very long uptime, reset the system.
| <br> |


|
static |


|
static |
Update the RF switch state based on the current mode.


| void TASK_background_upkeep | ( | void * | argument | ) |


|
static |
| uint32_t STM32_system_reset_interval_sec = 604800 |
If the system uptime exceeds this value, the system will reset (reboot).
| uint32_t STM32_system_reset_no_uplink_interval_sec = 216000 |
If the duration since an AX100 uplink telecommand exceeds this value, the system will reset (reboot).