Skip to content

Commit

Permalink
Changed clock frequency parameter to be 32 bits to fix truncation bug…
Browse files Browse the repository at this point in the history
…. (120MHz was cut off to ~56KHz)
  • Loading branch information
jackerzhaques committed May 17, 2019
1 parent 85531ee commit 609ff32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TaskScheduler/TaskScheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void TaskSchedulerTimer_ISR(void){
TimerIntClear(scheduler.timerBase, TIMER_TIMA_TIMEOUT);
}

void InitializeTaskScheduler(uint32_t timerBase, uint16_t sysClkFreq, uint32_t timerIntBase){
void InitializeTaskScheduler(uint32_t timerBase, uint32_t sysClkFreq, uint32_t timerIntBase){
//Initialize the task scheduler
scheduler.timerBase = timerBase;
scheduler.pTaskListRoot = NULL;
Expand Down
2 changes: 1 addition & 1 deletion TaskScheduler/TaskScheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ typedef struct TaskScheduler_tag{
Task *pTaskListRoot;
} TaskScheduler;

void InitializeTaskScheduler(uint32_t timerBase, uint16_t sysClkFreq, uint32_t timerIntBase);
void InitializeTaskScheduler(uint32_t timerBase, uint32_t sysClkFreq, uint32_t timerIntBase);

void AddTask(Task *pTask);
void RemoveTask(Task *pTask);
Expand Down

0 comments on commit 609ff32

Please sign in to comment.