-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 2025_ioc_approvals
- Loading branch information
Showing
60 changed files
with
377 additions
and
665 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "app_stackWaterMarks.h" | ||
#include "io_taskMonitors.h" | ||
#include "app_canAlerts.h" | ||
|
||
/** @brief The stack watermark threshold as a percentage of the stack size */ | ||
#define STACK_HIGH_WATERMARK_THRESHOLD 0.7f | ||
|
||
void app_stackWaterMarkConfig_check(void) | ||
{ | ||
app_canAlerts_BMS_Warning_StackWaterMarkHighTask1Hz_set( | ||
io_taskMonitor_getStackUsage(&task_1_hz_monitor) > STACK_HIGH_WATERMARK_THRESHOLD); | ||
app_canAlerts_BMS_Warning_StackWaterMarkHighTask100Hz_set( | ||
io_taskMonitor_getStackUsage(&task_100_hz_monitor) > STACK_HIGH_WATERMARK_THRESHOLD); | ||
app_canAlerts_BMS_Warning_StackWaterMarkHighTask1kHz_set( | ||
io_taskMonitor_getStackUsage(&task_1_khz_monitor) > STACK_HIGH_WATERMARK_THRESHOLD); | ||
app_canAlerts_BMS_Warning_StackWaterMarkHighTaskCanRx_set( | ||
io_taskMonitor_getStackUsage(&task_can_rx_monitor) > STACK_HIGH_WATERMARK_THRESHOLD); | ||
app_canAlerts_BMS_Warning_StackWaterMarkHighTaskCanTx_set( | ||
io_taskMonitor_getStackUsage(&task_can_tx_monitor) > STACK_HIGH_WATERMARK_THRESHOLD); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include "io_taskMonitors.h" | ||
#include "main.h" | ||
|
||
const TaskMonitor task_1_hz_monitor = { .handle = &Task1HzHandle, .attributes = &Task1Hz_attributes }, | ||
task_100_hz_monitor = { .handle = &Task100HzHandle, .attributes = &Task100Hz_attributes }, | ||
task_1_khz_monitor = { .handle = &Task1kHzHandle, .attributes = &Task1kHz_attributes }, | ||
task_can_rx_monitor = { .handle = &TaskCanRxHandle, .attributes = &TaskCanRx_attributes }, | ||
task_can_tx_monitor = { .handle = &TaskCanTxHandle, .attributes = &TaskCanTx_attributes }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#pragma once | ||
#include "io_taskMonitor.h" | ||
|
||
extern const TaskMonitor task_1_hz_monitor, task_100_hz_monitor, task_1_khz_monitor, task_can_rx_monitor, | ||
task_can_tx_monitor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
extern "C" | ||
{ | ||
#include "io_taskMonitors.h" | ||
} | ||
|
||
const TaskMonitor task_1_hz_monitor{}, task_100_hz_monitor{}, task_1_khz_monitor{}, task_can_rx_monitor{}, | ||
task_can_tx_monitor{}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include "app_stackWaterMarks.h" | ||
#include "io_taskMonitors.h" | ||
#include "app_canAlerts.h" | ||
|
||
/** @brief The stack watermark threshold as a percentage of the stack size */ | ||
#define STACK_HIGH_WATERMARK_THRESHOLD 0.7f | ||
|
||
void app_stackWaterMark_check(void) | ||
{ | ||
// io_stackWaterMark_check(stack_watermarks, NUM_ELEMENTS_IN_ARRAY(stack_watermarks)); | ||
app_canAlerts_CRIT_Warning_StackWaterMarkHighTask1Hz_set( | ||
io_taskMonitor_getStackUsage(&task_1hz_monitor) > STACK_HIGH_WATERMARK_THRESHOLD); | ||
app_canAlerts_CRIT_Warning_StackWaterMarkHighTask100Hz_set( | ||
io_taskMonitor_getStackUsage(&task_100hz_monitor) > STACK_HIGH_WATERMARK_THRESHOLD); | ||
app_canAlerts_CRIT_Warning_StackWaterMarkHighTask1kHz_set( | ||
io_taskMonitor_getStackUsage(&task_1khz_monitor) > STACK_HIGH_WATERMARK_THRESHOLD); | ||
app_canAlerts_CRIT_Warning_StackWaterMarkHighTaskCanRx_set( | ||
io_taskMonitor_getStackUsage(&task_can_rx_monitor) > STACK_HIGH_WATERMARK_THRESHOLD); | ||
app_canAlerts_CRIT_Warning_StackWaterMarkHighTaskCanTx_set( | ||
io_taskMonitor_getStackUsage(&task_can_tx_monitor) > STACK_HIGH_WATERMARK_THRESHOLD); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.