Skip to content

Commit fd3c6d2

Browse files
authored
Merge pull request contiki-os#2706 from pjonsson/sky-merge-files
msp430: merge platform files
2 parents 88556c7 + 156e1bd commit fd3c6d2

File tree

6 files changed

+7
-93
lines changed

6 files changed

+7
-93
lines changed

arch/platform/sky/Makefile.sky

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# $Id: Makefile.sky,v 1.38 2010/05/03 13:51:11 nifi Exp $
2-
3-
CONTIKI_TARGET_SOURCEFILES += contiki-sky-platform.c \
1+
CONTIKI_TARGET_SOURCEFILES += \
42
sht11.c sht11-sensor.c light-sensor.c battery-sensor.c \
53
button-sensor.c
64

arch/platform/sky/contiki-sky-platform.c

Lines changed: 0 additions & 43 deletions
This file was deleted.

arch/platform/sky/platform.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <string.h>
3333
#include "contiki.h"
3434
#include "sys/energest.h"
35+
#include "dev/button-sensor.h"
3536
#include "dev/radio/cc2420/cc2420.h"
3637
#include "dev/etc/ds2411/ds2411.h"
3738
#include "dev/leds.h"
@@ -64,7 +65,8 @@ extern int msp430_dco_required;
6465
#include "experiment-setup.h"
6566
#endif
6667

67-
void init_platform(void);
68+
SENSORS(&button_sensor);
69+
6870
/*---------------------------------------------------------------------------*/
6971
/* Log configuration */
7072
#include "sys/log.h"
@@ -166,7 +168,7 @@ platform_init_stage_three(void)
166168
uint8_t longaddr[8];
167169
uint16_t shortaddr;
168170

169-
init_platform();
171+
process_start(&sensors_process, NULL);
170172

171173
shortaddr = (linkaddr_node_addr.u8[0] << 8) + linkaddr_node_addr.u8[1];
172174
memset(longaddr, 0, sizeof(longaddr));

arch/platform/z1/Makefile.z1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Common Makefile between Z1 and Z1SP
22

3-
CONTIKI_TARGET_SOURCEFILES += contiki-z1-platform.c
4-
53
include $(CONTIKI_NG_RELOC_PLATFORM_DIR)/z1/Makefile.common
64

75
ifeq ($(ZOLERTIA_Z1SP),1)

arch/platform/z1/contiki-z1-platform.c

Lines changed: 0 additions & 41 deletions
This file was deleted.

arch/platform/z1/platform.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <stdarg.h>
3434

3535
#include "contiki.h"
36+
#include "dev/button-sensor.h"
3637
#include "dev/radio/cc2420/cc2420.h"
3738
#include "dev/leds.h"
3839
#include "dev/serial-line.h"
@@ -71,7 +72,6 @@ static uint8_t is_gateway;
7172
#include "experiment-setup.h"
7273
#endif
7374

74-
void init_platform(void);
7575
/*---------------------------------------------------------------------------*/
7676
/* Log configuration */
7777
#include "sys/log.h"
@@ -233,7 +233,7 @@ platform_init_stage_three(void)
233233
uint8_t longaddr[8];
234234
uint16_t shortaddr;
235235

236-
init_platform();
236+
process_start(&sensors_process, NULL);
237237

238238
shortaddr = (linkaddr_node_addr.u8[0] << 8) + linkaddr_node_addr.u8[1];
239239
memset(longaddr, 0, sizeof(longaddr));

0 commit comments

Comments
 (0)