Skip to content

Commit 5a87f2a

Browse files
committed
Merge branch 'master' of ssh://contiki.git.sourceforge.net/gitroot/contiki/contiki
2 parents 107bdf1 + 019b984 commit 5a87f2a

File tree

5 files changed

+140
-220
lines changed

5 files changed

+140
-220
lines changed

cpu/cc253x/dev/uart0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ uart0_init()
5656
#endif
5757

5858
U0CSR = UCSR_MODE; /* UART mode */
59-
U0UCR = 0x80; /* Flush */
59+
U0UCR |= 0x80; /* Flush */
6060
UART0_RX_EN();
6161

6262
UART0_RX_INT(1);

cpu/msp430/f2xxx/uart0.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
#include "dev/uart0.h"
4141
#include "dev/watchdog.h"
4242
#include "lib/ringbuf.h"
43-
#include "dev/leds.h"
4443
#include "isr_compat.h"
4544

4645
static int (*uart0_input_handler)(unsigned char c);
@@ -144,7 +143,6 @@ ISR(USCIAB0RX, uart0_rx_interrupt)
144143
uint8_t c;
145144

146145
ENERGEST_ON(ENERGEST_TYPE_IRQ);
147-
leds_toggle(LEDS_RED);
148146
if(UCA0STAT & UCRXERR) {
149147
c = UCA0RXBUF; /* Clear error flags by forcing a dummy read. */
150148
} else {

platform/z1/contiki-z1-main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ main(int argc, char **argv)
220220
node_id_restore();
221221

222222
/* If no MAC address was burned, we use the node ID. */
223-
if(node_mac[0] | node_mac[1] | node_mac[2] | node_mac[3] |
224-
node_mac[4] | node_mac[5] | node_mac[6] | node_mac[7]) {
223+
if(!(node_mac[0] | node_mac[1] | node_mac[2] | node_mac[3] |
224+
node_mac[4] | node_mac[5] | node_mac[6] | node_mac[7])) {
225225
node_mac[0] = 0xc1; /* Hardcoded for Z1 */
226226
node_mac[1] = 0x0c; /* Hardcoded for Revision C */
227227
node_mac[2] = 0x00; /* Hardcoded to arbitrary even number so that

tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/Z1MoteType.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import se.sics.cooja.interfaces.Position;
4040
import se.sics.cooja.interfaces.RimeAddress;
4141
import se.sics.cooja.mspmote.interfaces.Msp802154Radio;
42+
import se.sics.cooja.mspmote.interfaces.MspButton;
4243
import se.sics.cooja.mspmote.interfaces.MspClock;
4344
import se.sics.cooja.mspmote.interfaces.MspDebugOutput;
4445
import se.sics.cooja.mspmote.interfaces.MspDefaultSerial;
@@ -80,6 +81,7 @@ public Class<? extends MoteInterface>[] getAllMoteInterfaceClasses() {
8081
MoteAttributes.class,
8182
MspClock.class,
8283
MspMoteID.class,
84+
MspButton.class,
8385
// SkyFlash.class,
8486
Msp802154Radio.class,
8587
MspDefaultSerial.class,

0 commit comments

Comments
 (0)