Skip to content

Commit 17fa469

Browse files
committed
[AStyle] Test commit 2 (OK)
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 369d66a commit 17fa469

File tree

3 files changed

+99
-90
lines changed

3 files changed

+99
-90
lines changed

cores/arduino/main.cpp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ void initVariant() { }
2727

2828
// Force init to be called *first*, i.e. before static object allocation.
2929
// Otherwise, statically allocated objects that need HAL may fail.
30-
__attribute__(( constructor (101))) void premain() {
30+
__attribute__((constructor(101))) void premain()
31+
{
3132

32-
// Required by FreeRTOS, see http://www.freertos.org/RTOS-Cortex-M3-M4.html
33+
// Required by FreeRTOS, see http://www.freertos.org/RTOS-Cortex-M3-M4.html
3334
#ifdef NVIC_PRIORITYGROUP_4
3435
HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
3536
#endif
3637
#if (__CORTEX_M == 0x07U)
37-
// Defined in CMSIS core_cm7.h
38+
// Defined in CMSIS core_cm7.h
3839
#ifndef I_CACHE_DISABLED
3940
SCB_EnableICache();
4041
#endif
@@ -49,7 +50,7 @@ void initVariant() { }
4950
/*
5051
* \brief Main entry point of Arduino application
5152
*/
52-
int main( void )
53+
int main(void)
5354
{
5455
initVariant();
5556

@@ -59,13 +60,14 @@ int main( void )
5960

6061
setup();
6162

62-
for (;;)
63-
{
63+
for (;;) {
6464
#if defined(CORE_CALLBACK)
6565
CoreCallback();
6666
#endif
6767
loop();
68-
if (serialEventRun) serialEventRun();
68+
if (serialEventRun) {
69+
serialEventRun();
70+
}
6971
}
7072

7173
return 0;

0 commit comments

Comments
 (0)