8000 Merge pull request #690 from toxuin/freertos-stack-unsigned · exocode/esp32-snippets@d9a31c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit d9a31c2

Browse files
authored
Merge pull request nkolban#690 from toxuin/freertos-stack-unsigned
FreeRTOS: Stack size is uint32_t
2 parents ec342a3 + 409a178 commit d9a31c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cpp_utils/FreeRTOS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void FreeRTOS::sleep(uint32_t ms) {
3232
* @param[in] param An optional parameter to be passed to the started task.
3333
* @param[in] stackSize An optional paremeter supplying the size of the stack in which to run the task.
3434
*/
35-
void FreeRTOS::startTask(void task(void*), std::string taskName, void *param, int stackSize) {
35+
void FreeRTOS::startTask(void task(void*), std::string taskName, void *param, uint32_t stackSize) {
3636
::xTaskCreate(task, taskName.data(), stackSize, param, 5, NULL);
3737
} // startTask
3838

cpp_utils/FreeRTOS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class FreeRTOS {
2424
public:
2525
static void sleep(uint32_t ms);
26-
static void startTask(void task(void *), std::string taskName, void *param=nullptr, int stackSize = 2048);
26+
static void startTask(void task(void *), std::string taskName, void *param=nullptr, uint32_t stackSize = 2048);
2727
static void deleteTask(TaskHandle_t pTask = nullptr);
2828

2929
static uint32_t getTimeSinceStart();

0 commit comments

Comments
 (0)
0