Skip to content

Commit 3f1ea4b

Browse files
committed
CMSIS/RTX: Update idle handler and SysTick ops
1 parent 07aad3c commit 3f1ea4b

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

rtos/TARGET_CORTEX/mbed_rtx_idle.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static rtos::internal::SysTimer *os_timer;
4242
static uint64_t os_timer_data[sizeof(rtos::internal::SysTimer) / 8];
4343

4444
/// Enable System Timer.
45-
int32_t OS_Tick_Enable (void)
45+
void OS_Tick_Enable (void)
4646
{
4747
// Do not use SingletonPtr since this relies on the RTOS
4848
if (NULL == os_timer) {
@@ -52,24 +52,18 @@ int32_t OS_Tick_Enable (void)
5252

5353
// set to fire interrupt on next tick
5454
os_timer->schedule_tick();
55-
56-
return 0;
5755
}
5856

5957
/// Disable System Timer.
60-
int32_t OS_Tick_Disable (void)
58+
void OS_Tick_Disable (void)
6159
{
6260
os_timer->cancel_tick();
63-
64-
return 0;
6561
}
6662

6763
/// Acknowledge System Timer IRQ.
68-
int32_t OS_Tick_AcknowledgeIRQ (void)
64+
void OS_Tick_AcknowledgeIRQ (void)
6965
{
7066
os_timer->schedule_tick();
71-
72-
return 0;
7367
}
7468

7569
/// Get System Timer count.

0 commit comments

Comments
 (0)