Skip to content

Commit e8378ef

Browse files
committed
Modify the arrangement of "{" that shows the function start
Regarding "{" that show the function start, I modified the the arrangement from right of function to new line.
1 parent 4bc79b0 commit e8378ef

File tree

6 files changed

+50
-25
lines changed

6 files changed

+50
-25
lines changed

targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_GR_LYCHEE/device/cmsis_nvic.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@
3131
#include "MBRZA1LU.h"
3232
#include "irq_ctrl.h"
3333

34-
void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) {
34+
void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector)
35+
{
3536
InterruptHandlerRegister(IRQn, (IRQHandler)vector);
3637
}
3738

38-
uint32_t NVIC_GetVector(IRQn_Type IRQn) {
39+
uint32_t NVIC_GetVector(IRQn_Type IRQn)
40+
{
3941
uint32_t vectors = (uint32_t)IRQ_GetHandler(IRQn);
4042
return vectors;
4143
}

targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_GR_LYCHEE/device/nvic_wrapper.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,16 @@ uint32_t ITM_SendChar (uint32_t ch)
213213
}
214214

215215

216-
int32_t ITM_ReceiveChar (void) {
216+
int32_t ITM_ReceiveChar (void)
217+
{
217218
/* Not support this function */
218219
/* Use mbed Serial */
219220
return (-1); /* no character available */
220221
}
221222

222223

223-
int32_t ITM_CheckChar (void) {
224+
int32_t ITM_CheckChar (void)
225+
{
224226
/* Not support this function */
225227
/* Use mbed Serial */
226228
return (0); /* no character available */

targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_GR_LYCHEE/device/os_tick_ostm.c

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ static uint8_t OSTM_PendIRQ; // Timer interrupt pending flag
4747

4848

4949
// Setup OS Tick.
50-
int32_t OS_Tick_Setup (uint32_t freq, IRQHandler_t handler) {
50+
int32_t OS_Tick_Setup (uint32_t freq, IRQHandler_t handler)
51+
{
5152
uint32_t clock;
5253
uint32_t prio;
5354
uint32_t bits;
@@ -130,7 +131,8 @@ int32_t OS_Tick_Setup (uint32_t freq, IRQHandler_t handler) {
130131
}
131132

132133
/// Enable OS Tick.
133-
int32_t OS_Tick_Enable (void) {
134+
int32_t OS_Tick_Enable (void)
135+
{
134136

135137
if (OSTM_PendIRQ != 0U) {
136138
OSTM_PendIRQ = 0U;
@@ -158,33 +160,39 @@ int32_t OS_Tick_Disable (void) {
158160
}
159161

160162
// Acknowledge OS Tick IRQ.
161-
int32_t OS_Tick_AcknowledgeIRQ (void) {
163+
int32_t OS_Tick_AcknowledgeIRQ (void)
164+
{
162165
return (IRQ_ClearPending (OSTM_IRQn));
163166
}
164167

165168
// Get OS Tick IRQ number.
166-
int32_t OS_Tick_GetIRQn (void) {
169+
int32_t OS_Tick_GetIRQn (void)
170+
{
167171
return (OSTM_IRQn);
168172
}
169173

170174
// Get OS Tick clock.
171-
uint32_t OS_Tick_GetClock (void) {
175+
uint32_t OS_Tick_GetClock (void)
176+
{
172177
return (OSTM_Clock);
173178
}
174179

175180
// Get OS Tick interval.
176-
uint32_t OS_Tick_GetInterval (void) {
181+
uint32_t OS_Tick_GetInterval (void)
182+
{
177183
return (OSTM.OSTMnCMP + 1U);
178184
}
179185

180186
// Get OS Tick count value.
181-
uint32_t OS_Tick_GetCount (void) {
187+
uint32_t OS_Tick_GetCount (void)
188+
{
182189
uint32_t cmp = OSTM.OSTMnCMP;
183190
return (cmp - OSTM.OSTMnCNT);
184191
}
185192

186193
// Get OS Tick overflow status.
187-
uint32_t OS_Tick_GetOverflow (void) {
194+
uint32_t OS_Tick_GetOverflow (void)
195+
{
188196
return (IRQ_GetPending(OSTM_IRQn));
189197
}
190198

targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_RZ_A1H/device/cmsis_nvic.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@
3131
#include "MBRZA1H.h"
3232
#include "irq_ctrl.h"
3333

34-
void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) {
34+
void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector)
35+
{
3536
InterruptHandlerRegister(IRQn, (IRQHandler)vector);
3637
}
3738

38-
uint32_t NVIC_GetVector(IRQn_Type IRQn) {
39+
uint32_t NVIC_GetVector(IRQn_Type IRQn)
40+
{
3941
uint32_t vectors = (uint32_t)IRQ_GetHandler(IRQn);
4042
return vectors;
4143
}

targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_RZ_A1H/device/nvic_wrapper.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,16 @@ uint32_t ITM_SendChar (uint32_t ch)
213213
}
214214

215215

216-
int32_t ITM_ReceiveChar (void) {
216+
int32_t ITM_ReceiveChar (void)
217+
{
217218
/* Not support this function */
218219
/* Use mbed Serial */
219220
return (-1); /* no character available */
220221
}
221222

222223

223-
int32_t ITM_CheckChar (void) {
224+
int32_t ITM_CheckChar (void)
225+
{
224226
/* Not support this function */
225227
/* Use mbed Serial */
226228
return (0); /* no character available */

targets/TARGET_RENESAS/TARGET_RZ_A1XX/TARGET_RZ_A1H/device/os_tick_ostm.c

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ static uint8_t OSTM_PendIRQ; // Timer interrupt pending flag
4747

4848

4949
// Setup OS Tick.
50-
int32_t OS_Tick_Setup (uint32_t freq, IRQHandler_t handler) {
50+
int32_t OS_Tick_Setup (uint32_t freq, IRQHandler_t handler)
51+
{
5152
uint32_t clock;
5253
uint32_t prio;
5354
uint32_t bits;
@@ -130,7 +131,8 @@ int32_t OS_Tick_Setup (uint32_t freq, IRQHandler_t handler) {
130131
}
131132

132133
/// Enable OS Tick.
133-
int32_t OS_Tick_Enable (void) {
134+
int32_t OS_Tick_Enable (void)
135+
{
134136

135137
if (OSTM_PendIRQ != 0U) {
136138
OSTM_PendIRQ = 0U;
@@ -144,7 +146,8 @@ int32_t OS_Tick_Enable (void) {
144146
}
145147

146148
/// Disable OS Tick.
147-
int32_t OS_Tick_Disable (void) {
149+
int32_t OS_Tick_Disable (void)
150+
{
148151

149152
// Stop the OSTM counter
150153
OSTM.OSTMnTT = 0x01U;
@@ -158,33 +161,39 @@ int32_t OS_Tick_Disable (void) {
158161
}
159162

160163
// Acknowledge OS Tick IRQ.
161-
int32_t OS_Tick_AcknowledgeIRQ (void) {
164+
int32_t OS_Tick_AcknowledgeIRQ (void)
165+
{
162166
return (IRQ_ClearPending (OSTM_IRQn));
163167
}
164168

165169
// Get OS Tick IRQ number.
166-
int32_t OS_Tick_GetIRQn (void) {
170+
int32_t OS_Tick_GetIRQn (void)
171+
{
167172
return (OSTM_IRQn);
168173
}
169174

170175
// Get OS Tick clock.
171-
uint32_t OS_Tick_GetClock (void) {
176+
uint32_t OS_Tick_GetClock (void)
177+
{
172178
return (OSTM_Clock);
173179
}
174180

175181
// Get OS Tick interval.
176-
uint32_t OS_Tick_GetInterval (void) {
182+
uint32_t OS_Tick_GetInterval (void)
183+
{
177184
return (OSTM.OSTMnCMP + 1U);
178185
}
179186

180187
// Get OS Tick count value.
181-
uint32_t OS_Tick_GetCount (void) {
188+
uint32_t OS_Tick_GetCount (void)
189+
{
182190
uint32_t cmp = OSTM.OSTMnCMP;
183191
return (cmp - OSTM.OSTMnCNT);
184192
}
185193

186194
// Get OS Tick overflow status.
187-
uint32_t OS_Tick_GetOverflow (void) {
195+
uint32_t OS_Tick_GetOverflow (void)
196+
{
188197
return (IRQ_GetPending(OSTM_IRQn));
189198
}
190199

0 commit comments

Comments
 (0)