1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/wsn430-common: fixed for non-legacy header

This commit is contained in:
Hauke Petersen 2015-09-02 17:06:12 +02:00
parent e928d727fe
commit 54384fc7d1
2 changed files with 4 additions and 4 deletions

View File

@ -8,6 +8,7 @@
*/
#include "cpu.h"
#include "irq.h"
#include "board.h"
#include "kernel_internal.h"
#include "msp430.h"
@ -86,8 +87,7 @@ static void msb_ports_init(void)
void msp430_set_cpu_speed(uint32_t speed)
{
dint();
disableIRQ();
__msp430_cpu_speed = speed;
msp430_init_dco();
uint16_t br;
@ -108,7 +108,7 @@ void msp430_set_cpu_speed(uint32_t speed)
//URCTL0 |= URXEIE; // allow chars to interrupt
IE1 |= URXIE0; // enable rx interrupt
IFG1 &= ~UTXIFG0;
eint();
enableIRQ();
}
/*---------------------------------------------------------------------------*/

View File

@ -43,7 +43,7 @@ void usart0irq(void);
/**
* \brief the interrupt function
*/
interrupt(USART0RX_VECTOR) usart0irq(void) {
void __attribute__((interrupt(USART0RX_VECTOR))) usart0irq(void) {
volatile int dummy = 0;
/* Check status register for receive errors. */
if(U0RCTL & RXERR) {