Skip to content

Commit ba6c824

Browse files
committed
Cleanup useless hooks
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 1390ac0 commit ba6c824

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

cores/arduino/hooks.c

-29
Original file line numberDiff line numberDiff line change
@@ -30,32 +30,3 @@ static void __empty()
3030
// Empty
3131
}
3232
void yield(void) __attribute__((weak, alias("__empty")));
33-
34-
/**
35-
* SysTick hook
36-
*
37-
* This function is called from SysTick handler, before the default
38-
* handler provided by Arduino.
39-
*/
40-
static int __false()
41-
{
42-
// Return false
43-
return 0;
44-
}
45-
int sysTickHook(void) __attribute__((weak, alias("__false")));
46-
47-
/**
48-
* SVC hook
49-
* PendSV hook
50-
*
51-
* These functions are called from SVC handler, and PensSV handler.
52-
* Default action is halting.
53-
*/
54-
static void __halt()
55-
{
56-
// Halts
57-
while (1)
58-
;
59-
}
60-
void svcHook(void) __attribute__((weak, alias("__halt")));
61-
void pendSVHook(void) __attribute__((weak, alias("__halt")));

0 commit comments

Comments
 (0)