Migrate to the new LED HAL (CC26xx/CC13xx)
This commit is contained in:
parent
ab710a8ed0
commit
b1537374fb
@ -14,8 +14,7 @@ CONTIKI_TARGET_DIRS += .
|
|||||||
PLATFORM_ROOT_DIR = $(CONTIKI)/arch/platform/$(TARGET)
|
PLATFORM_ROOT_DIR = $(CONTIKI)/arch/platform/$(TARGET)
|
||||||
-include $(PLATFORM_ROOT_DIR)/$(BOARD)/Makefile.$(notdir $(BOARD))
|
-include $(PLATFORM_ROOT_DIR)/$(BOARD)/Makefile.$(notdir $(BOARD))
|
||||||
|
|
||||||
CONTIKI_TARGET_SOURCEFILES += platform.c
|
CONTIKI_TARGET_SOURCEFILES += platform.c leds-arch.c
|
||||||
CONTIKI_TARGET_SOURCEFILES += sensors.c leds.c
|
|
||||||
CONTIKI_TARGET_SOURCEFILES += $(BOARD_SOURCEFILES)
|
CONTIKI_TARGET_SOURCEFILES += $(BOARD_SOURCEFILES)
|
||||||
|
|
||||||
CONTIKI_SOURCEFILES += $(CONTIKI_TARGET_SOURCEFILES)
|
CONTIKI_SOURCEFILES += $(CONTIKI_TARGET_SOURCEFILES)
|
||||||
|
@ -47,8 +47,8 @@
|
|||||||
#include "ti-lib.h"
|
#include "ti-lib.h"
|
||||||
#include "contiki.h"
|
#include "contiki.h"
|
||||||
#include "contiki-net.h"
|
#include "contiki-net.h"
|
||||||
#include "leds.h"
|
|
||||||
#include "lpm.h"
|
#include "lpm.h"
|
||||||
|
#include "dev/leds.h"
|
||||||
#include "dev/gpio-hal.h"
|
#include "dev/gpio-hal.h"
|
||||||
#include "dev/oscillators.h"
|
#include "dev/oscillators.h"
|
||||||
#include "ieee-addr.h"
|
#include "ieee-addr.h"
|
||||||
@ -84,7 +84,7 @@ unsigned short node_id = 0;
|
|||||||
void board_init(void);
|
void board_init(void);
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
static void
|
static void
|
||||||
fade(unsigned char l)
|
fade(leds_mask_t l)
|
||||||
{
|
{
|
||||||
volatile int i;
|
volatile int i;
|
||||||
int k, j;
|
int k, j;
|
||||||
|
@ -30,12 +30,12 @@
|
|||||||
*/
|
*/
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#include "contiki.h"
|
#include "contiki.h"
|
||||||
#include "dev/led.h"
|
#include "dev/leds.h"
|
||||||
#include "dev/gpio-hal.h"
|
#include "dev/gpio-hal.h"
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
const led_t led_arch_leds[] = {
|
const leds_t leds_arch_leds[] = {
|
||||||
{ .pin = BOARD_IOID_LED_1, .negative_logic = false },
|
{ .pin = BOARD_IOID_LED_1, .negative_logic = false },
|
||||||
{ .pin = BOARD_IOID_LED_2, .negative_logic = false },
|
{ .pin = BOARD_IOID_LED_2, .negative_logic = false },
|
||||||
{ .pin = BOARD_IOID_LED_3, .negative_logic = false },
|
{ .pin = BOARD_IOID_LED_3, .negative_logic = false },
|
||||||
|
Loading…
Reference in New Issue
Block a user