File tree Expand file tree Collapse file tree 3 files changed +99
-90
lines changed Expand file tree Collapse file tree 3 files changed +99
-90
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,15 @@ void initVariant() { }
27
27
28
28
// Force init to be called *first*, i.e. before static object allocation.
29
29
// Otherwise, statically allocated objects that need HAL may fail.
30
- __attribute__ (( constructor (101 ))) void premain() {
30
+ __attribute__ ((constructor(101 ))) void premain()
31
+ {
31
32
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
33
34
#ifdef NVIC_PRIORITYGROUP_4
34
35
HAL_NVIC_SetPriorityGrouping (NVIC_PRIORITYGROUP_4);
35
36
#endif
36
37
#if (__CORTEX_M == 0x07U)
37
- // Defined in CMSIS core_cm7.h
38
+ // Defined in CMSIS core_cm7.h
38
39
#ifndef I_CACHE_DISABLED
39
40
SCB_EnableICache ();
40
41
#endif
@@ -49,7 +50,7 @@ void initVariant() { }
49
50
/*
50
51
* \brief Main entry point of Arduino application
51
52
*/
52
- int main ( void )
53
+ int main (void )
53
54
{
54
55
initVariant ();
55
56
@@ -59,13 +60,14 @@ int main( void )
59
60
60
61
setup ();
61
62
62
- for (;;)
63
- {
63
+ for (;;) {
64
64
#if defined(CORE_CALLBACK)
65
65
CoreCallback ();
66
66
#endif
67
67
loop ();
68
- if (serialEventRun) serialEventRun ();
68
+ if (serialEventRun) {
69
+ serialEventRun ();
70
+ }
69
71
}
70
72
71
73
return 0 ;
You can’t perform that action at this time.
0 commit comments