Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wink
firmware
Commits
e9ca7b4d
Verified
Commit
e9ca7b4d
authored
5 years ago
by
rahix
Browse files
Options
Downloads
Patches
Plain Diff
feat(epicardium): Enable FreeRTOS timers
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
36d858b9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
epicardium/FreeRTOSConfig.h
+5
-0
5 additions, 0 deletions
epicardium/FreeRTOSConfig.h
epicardium/support.c
+32
-0
32 additions, 0 deletions
epicardium/support.c
with
37 additions
and
0 deletions
epicardium/FreeRTOSConfig.h
+
5
−
0
View file @
e9ca7b4d
...
...
@@ -43,6 +43,11 @@
#define configUSE_CO_ROUTINES 0
#define configUSE_16_BIT_TICKS 0
#define configUSE_MUTEXES 1
#define configUSE_TIMERS 1
#define configTIMER_TASK_PRIORITY (configMAX_PRIORITIES - 1)
#define configTIMER_QUEUE_LENGTH 10
#define configTIMER_TASK_STACK_DEPTH (configMINIMAL_STACK_SIZE * 2)
#define INCLUDE_vTaskSuspend 1
#define INCLUDE_vTaskDelay 1
...
...
This diff is collapsed.
Click to expand it.
epicardium/support.c
+
32
−
0
View file @
e9ca7b4d
...
...
@@ -80,3 +80,35 @@ void vApplicationGetIdleTaskMemory(
*/
*
pulIdleTaskStackSize
=
configMINIMAL_STACK_SIZE
;
}
void
vApplicationGetTimerTaskMemory
(
StaticTask_t
**
ppxTimerTaskTCBBuffer
,
StackType_t
**
ppxTimerTaskStackBuffer
,
uint32_t
*
pulTimerTaskStackSize
)
{
/*
* If the buffers to be provided to the Timer task are declared inside
* this function then they must be declared static - otherwise they will
* be allocated on the stack and so not exists after this function
* exits.
*/
static
StaticTask_t
xTimerTaskTCB
;
static
StackType_t
uxTimerTaskStack
[
configTIMER_TASK_STACK_DEPTH
];
/*
* Pass out a pointer to the StaticTask_t structure in which the Timer
* task's state will be stored.
*/
*
ppxTimerTaskTCBBuffer
=
&
xTimerTaskTCB
;
/* Pass out the array that will be used as the Timer task's stack. */
*
ppxTimerTaskStackBuffer
=
uxTimerTaskStack
;
/*
* Pass out the size of the array pointed to by
* *ppxTimerTaskStackBuffer. Note that, as the array is necessarily of
* type StackType_t, configMINIMAL_STACK_SIZE is specified in words, not
* bytes.
*/
*
pulTimerTaskStackSize
=
configTIMER_TASK_STACK_DEPTH
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment