Skip to content

Commit e80f2ff

Browse files
committed
rtos cortex: fix astyle
1 parent f90f1fc commit e80f2ff

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

rtos/TARGET_CORTEX/SysTimer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ namespace rtos {
5454
namespace internal {
5555

5656
SysTimer::SysTimer() :
57-
TimerEvent(get_lp_ticker_data()), _start_time(0), _tick(0)
57+
TimerEvent(get_lp_ticker_data()), _start_time(0), _tick(0)
5858
{
5959
_start_time = ticker_read_us(_ticker_data);
6060
_suspend_time_passed = true;
6161
_suspended = false;
6262
}
6363

6464
SysTimer::SysTimer(const ticker_data_t *data) :
65-
TimerEvent(data), _start_time(0), _tick(0)
65+
TimerEvent(data), _start_time(0), _tick(0)
6666
{
6767
_start_time = ticker_read_us(_ticker_data);
6868
}

rtos/TARGET_CORTEX/mbed_boot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static void mbed_cpy_nvic(void)
121121
#if !defined(__CORTEX_M0) && !defined(__CORTEX_A9)
122122
#ifdef NVIC_RAM_VECTOR_ADDRESS
123123
uint32_t *old_vectors = (uint32_t *)SCB->VTOR;
124-
uint32_t *vectors = (uint32_t*)NVIC_RAM_VECTOR_ADDRESS;
124+
uint32_t *vectors = (uint32_t *)NVIC_RAM_VECTOR_ADDRESS;
125125
for (int i = 0; i < NVIC_NUM_VECTORS; i++) {
126126
vectors[i] = old_vectors[i];
127127
}

rtos/TARGET_CORTEX/mbed_boot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ extern "C" {
5151

5252
/* Define stack sizes if they haven't been set already */
5353
#if !defined(ISR_STACK_SIZE)
54-
#define ISR_STACK_SIZE ((uint32_t)1024)
54+
#define ISR_STACK_SIZE ((uint32_t)1024)
5555
#endif
5656

5757
/* Heap limits - only used if set */

rtos/TARGET_CORTEX/mbed_rtx_idle.cpp

Lines changed: 13 additions & 10 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-
void 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) {
@@ -55,36 +55,39 @@ void OS_Tick_Enable (void)
5555
}
5656

5757
/// Disable System Timer.
58-
void OS_Tick_Disable (void)
58+
void OS_Tick_Disable(void)
5959
{
6060
os_timer->cancel_tick();
6161
}
6262

6363
/// Acknowledge System Timer IRQ.
64-
void OS_Tick_AcknowledgeIRQ (void)
64+
void OS_Tick_AcknowledgeIRQ(void)
6565
{
6666

6767
}
6868

6969
/// Get System Timer count.
70-
uint32_t OS_Tick_GetCount (void)
70+
uint32_t OS_Tick_GetCount(void)
7171
{
7272
return os_timer->get_time() & 0xFFFFFFFF;
7373
}
7474

7575
// Get OS Tick IRQ number.
76-
int32_t OS_Tick_GetIRQn (void) {
77-
return -1;
76+
int32_t OS_Tick_GetIRQn(void)
77+
{
78+
return -1;
7879
}
7980

8081
// Get OS Tick overflow status.
81-
uint32_t OS_Tick_GetOverflow (void) {
82-
return 0;
82+
uint32_t OS_Tick_GetOverflow(void)
83+
{
84+
return 0;
8385
}
8486

8587
// Get OS Tick interval.
86-
uint32_t OS_Tick_GetInterval (void) {
87-
return 1000;
88+
uint32_t OS_Tick_GetInterval(void)
89+
{
90+
return 1000;
8891
}
8992

9093
static void default_idle_hook(void)

0 commit comments

Comments
 (0)