aboutsummaryrefslogtreecommitdiffstats
path: root/ports
diff options
context:
space:
mode:
Diffstat (limited to 'ports')
-rw-r--r--ports/MSP430/chcore.h2
-rw-r--r--ports/MSP430/msp430_serial.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/ports/MSP430/chcore.h b/ports/MSP430/chcore.h
index ee184be53..1111118d7 100644
--- a/ports/MSP430/chcore.h
+++ b/ports/MSP430/chcore.h
@@ -157,7 +157,7 @@ struct context {
/**
* IRQ handler function modifier.
*/
-#define PORT_IRQ_HANDLER(id) interrupt void id(void)
+#define PORT_IRQ_HANDLER(id) interrupt(id) _vect_##id(void)
/**
* This function is empty in this port.
diff --git a/ports/MSP430/msp430_serial.c b/ports/MSP430/msp430_serial.c
index 58a44a076..81ef18c54 100644
--- a/ports/MSP430/msp430_serial.c
+++ b/ports/MSP430/msp430_serial.c
@@ -44,7 +44,7 @@ FullDuplexDriver COM1;
static uint8_t ib1[SERIAL_BUFFERS_SIZE];
static uint8_t ob1[SERIAL_BUFFERS_SIZE];
-CH_IRQ_HANDLER(USART0TX_VECTOR) u0txirq(void) {
+CH_IRQ_HANDLER(USART0TX_VECTOR) {
msg_t b;
CH_IRQ_PROLOGUE();
@@ -60,7 +60,7 @@ CH_IRQ_HANDLER(USART0TX_VECTOR) u0txirq(void) {
CH_IRQ_EPILOGUE();
}
-CH_IRQ_HANDLER(USART0RX_VECTOR) u0rxirq(void) {
+CH_IRQ_HANDLER(USART0RX_VECTOR) {
uint8_t urctl;
CH_IRQ_PROLOGUE();
@@ -116,7 +116,7 @@ FullDuplexDriver COM2;
static uint8_t ib2[SERIAL_BUFFERS_SIZE];
static uint8_t ob2[SERIAL_BUFFERS_SIZE];
-CH_IRQ_HANDLER(USART1TX_VECTOR) u1txirq(void) {
+CH_IRQ_HANDLER(USART1TX_VECTOR) {
msg_t b;
CH_IRQ_PROLOGUE();
@@ -132,7 +132,7 @@ CH_IRQ_HANDLER(USART1TX_VECTOR) u1txirq(void) {
CH_IRQ_EPILOGUE();
}
-CH_IRQ_HANDLER(USART1RX_VECTOR) u1rxirq(void) {
+CH_IRQ_HANDLER(USART1RX_VECTOR) {
uint8_t urctl;
CH_IRQ_PROLOGUE();