CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
rtos_eps_tasks.c File Reference
#include "eps_drivers/eps_commands.h"
#include "eps_drivers/eps_time.h"
#include "rtos_tasks/rtos_eps_tasks.h"
#include "rtos_tasks/rtos_task_helpers.h"
#include "log/log.h"
#include "timekeeping/timekeeping.h"
#include "cmsis_os.h"
#include <inttypes.h>
#include <stdint.h>
Include dependency graph for rtos_eps_tasks.c:

Functions

void TASK_service_eps_watchdog (void *argument)
 periodically sends a command to the eps to reset the watchdog timer
 
void TASK_time_sync (void *argument)
 

Function Documentation

◆ TASK_service_eps_watchdog()

void TASK_service_eps_watchdog ( void * argument)

periodically sends a command to the eps to reset the watchdog timer

Note
The eps has two watchdog timers: The "watchdog reset" and the "peripheral reset". The "watchdog reset" resets the entire eps system when TTC_WDG_TIMEOUT (default 300s, see ISIS.EPS2.ICD.SW.IVID.7 pg. 85) seconds pass without a command being received. The "peripheral reset" resets the communication peripheral on the eps's mcu after 0.65 * TTC_WDG_TIMEOUT seconds. The "peripheral reset" allows for more graceful resets if the eps's communication peripheral was responsible for loss of connection.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TASK_time_sync()

void TASK_time_sync ( void * argument)
Here is the call graph for this function:
Here is the caller graph for this function: