-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Allocate more stack memory to tasks. (#181)
* fix: Allocate more stack memory to tasks. While testing TMS, I came across a strange bug where Update() would hang when the OS was used. Replacing the OS with manual timer & function call avoided the problem. The cause was the large `RawCanMsg[100]` array in `CanBase::ReadQueue()` which exceeded the memory limits of FreeRTOS. This was a very strange error as the memory limit was only slightly exceeded, so calling ReadQueue (even with all internal code commented out) exceeded the memory, but then removing `virtual` from `ReadQueue` removed enough memory to call the function. * bring up tms to new bindings structure
- Loading branch information
1 parent
8247f1a
commit 2559c2f
Showing
8 changed files
with
78 additions
and
116 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma once | ||
|
||
#include "shared/periph/adc.h" | ||
#include "shared/periph/can.h" | ||
#include "shared/periph/gpio.h" | ||
#include "shared/periph/pwm.h" | ||
|
||
namespace bindings { | ||
extern shared::periph::ADCInput& temp_sensor_adc_1; | ||
extern shared::periph::ADCInput& temp_sensor_adc_2; | ||
extern shared::periph::ADCInput& temp_sensor_adc_3; | ||
extern shared::periph::ADCInput& temp_sensor_adc_4; | ||
extern shared::periph::ADCInput& temp_sensor_adc_5; | ||
extern shared::periph::ADCInput& temp_sensor_adc_6; | ||
|
||
extern shared::periph::PWMOutput& fan_controller_pwm; | ||
|
||
extern shared::periph::DigitalOutput& debug_led_green; | ||
extern shared::periph::DigitalOutput& debug_led_red; | ||
|
||
extern shared::periph::CanBase& veh_can_base; | ||
|
||
extern void Initialize(); | ||
} // namespace bindings |
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 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
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