diff options
Diffstat (limited to 'ports/MSP430/chcore.c')
-rw-r--r-- | ports/MSP430/chcore.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/ports/MSP430/chcore.c b/ports/MSP430/chcore.c index e56f41120..cea8d22ed 100644 --- a/ports/MSP430/chcore.c +++ b/ports/MSP430/chcore.c @@ -38,8 +38,10 @@ * it in your application code.
* @param msg pointer to the message string
*/
+/** @cond never */
__attribute__((weak))
-void sys_puts(char *msg) {
+/** @endcond */
+void port_puts(char *msg) {
}
/**
@@ -49,8 +51,10 @@ void sys_puts(char *msg) { * @note The function is declared as a weak symbol, it is possible to redefine
* it in your application code.
*/
+/** @cond never */
__attribute__((naked, weak))
-void sys_switch(Thread *otp, Thread *ntp) {
+/** @endcond */
+void port_switch(Thread *otp, Thread *ntp) {
register struct intctx *sp asm("r1");
asm volatile ("push r11 \n\t" \
@@ -79,10 +83,12 @@ void sys_switch(Thread *otp, Thread *ntp) { * @note The function is declared as a weak symbol, it is possible to redefine
* it in your application code.
*/
+/** @cond never */
__attribute__((weak))
-void sys_halt(void) {
+/** @endcond */
+void port_halt(void) {
- sys_disable();
+ port_disable();
while (TRUE) {
}
}
|