Add task creation and fix Task_yield procedure
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
#include <leos/log.h>
|
||||
#include "timer.h"
|
||||
|
||||
const unsigned int m_interval = 200000;
|
||||
const unsigned int m_interval = 2000000;
|
||||
unsigned int m_current = 0;
|
||||
|
||||
#ifndef CONFIG_ARM_TIMER
|
||||
@@ -83,9 +83,9 @@ Timer_incFromISR(void)
|
||||
aarch64_set32r(TIMER_CS, TIMER_CS_M1);
|
||||
#endif
|
||||
/*
|
||||
Log_putS("Timer: ");
|
||||
Log_putS("--- tick --- ");
|
||||
Log_putI(m_current, 10);
|
||||
Log_putS("\r\n");
|
||||
Log_putS(" ---\r\n");
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#ifndef TIMER_H_8D327261_47D6_4832_8DC5_31BF1614A21F
|
||||
#define TIMER_H_8D327261_47D6_4832_8DC5_31BF1614A21F
|
||||
|
||||
#include <leos/types.h>
|
||||
|
||||
void
|
||||
Timer_init(void);
|
||||
|
||||
Reference in New Issue
Block a user