Skip to content

Commit

Permalink
boards/wsn430-common: fixed for non-legacy header
Browse files Browse the repository at this point in the history
  • Loading branch information
haukepetersen committed Sep 2, 2015
1 parent e928d72 commit 54384fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions boards/wsn430-common/board_init.c
Expand Up @@ -8,6 +8,7 @@
*/

#include "cpu.h"
#include "irq.h"
#include "board.h"
#include "kernel_internal.h"
#include "msp430.h"
Expand Down Expand Up @@ -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;
Expand All @@ -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();
}

/*---------------------------------------------------------------------------*/
Expand Down
2 changes: 1 addition & 1 deletion boards/wsn430-common/wsn430-uart0.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 54384fc

Please sign in to comment.