Skip to content

Commit

Permalink
Merge pull request contiki-os#2706 from pjonsson/sky-merge-files
Browse files Browse the repository at this point in the history
msp430: merge platform files
  • Loading branch information
nvt committed Sep 22, 2023
2 parents 88556c7 + 156e1bd commit fd3c6d2
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 93 deletions.
4 changes: 1 addition & 3 deletions arch/platform/sky/Makefile.sky
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# $Id: Makefile.sky,v 1.38 2010/05/03 13:51:11 nifi Exp $

CONTIKI_TARGET_SOURCEFILES += contiki-sky-platform.c \
CONTIKI_TARGET_SOURCEFILES += \
sht11.c sht11-sensor.c light-sensor.c battery-sensor.c \
button-sensor.c

Expand Down
43 changes: 0 additions & 43 deletions arch/platform/sky/contiki-sky-platform.c

This file was deleted.

6 changes: 4 additions & 2 deletions arch/platform/sky/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <string.h>
#include "contiki.h"
#include "sys/energest.h"
#include "dev/button-sensor.h"
#include "dev/radio/cc2420/cc2420.h"
#include "dev/etc/ds2411/ds2411.h"
#include "dev/leds.h"
Expand Down Expand Up @@ -64,7 +65,8 @@ extern int msp430_dco_required;
#include "experiment-setup.h"
#endif

void init_platform(void);
SENSORS(&button_sensor);

/*---------------------------------------------------------------------------*/
/* Log configuration */
#include "sys/log.h"
Expand Down Expand Up @@ -166,7 +168,7 @@ platform_init_stage_three(void)
uint8_t longaddr[8];
uint16_t shortaddr;

init_platform();
process_start(&sensors_process, NULL);

shortaddr = (linkaddr_node_addr.u8[0] << 8) + linkaddr_node_addr.u8[1];
memset(longaddr, 0, sizeof(longaddr));
Expand Down
2 changes: 0 additions & 2 deletions arch/platform/z1/Makefile.z1
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Common Makefile between Z1 and Z1SP

CONTIKI_TARGET_SOURCEFILES += contiki-z1-platform.c

include $(CONTIKI_NG_RELOC_PLATFORM_DIR)/z1/Makefile.common

ifeq ($(ZOLERTIA_Z1SP),1)
Expand Down
41 changes: 0 additions & 41 deletions arch/platform/z1/contiki-z1-platform.c

This file was deleted.

4 changes: 2 additions & 2 deletions arch/platform/z1/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <stdarg.h>

#include "contiki.h"
#include "dev/button-sensor.h"
#include "dev/radio/cc2420/cc2420.h"
#include "dev/leds.h"
#include "dev/serial-line.h"
Expand Down Expand Up @@ -71,7 +72,6 @@ static uint8_t is_gateway;
#include "experiment-setup.h"
#endif

void init_platform(void);
/*---------------------------------------------------------------------------*/
/* Log configuration */
#include "sys/log.h"
Expand Down Expand Up @@ -233,7 +233,7 @@ platform_init_stage_three(void)
uint8_t longaddr[8];
uint16_t shortaddr;

init_platform();
process_start(&sensors_process, NULL);

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

0 comments on commit fd3c6d2

Please sign in to comment.