3 #include "contiki-conf.h"
9 SIM->SCGC5 |= SIM_SCGC5_PORTC_MASK;
10 PORTC->PCR[13] |= 0x00100;
11 PORTC->PCR[14] |= 0x00100;
12 PORTC->PCR[15] |= 0x00100;
25 leds_arch_set(
unsigned char leds)
27 PTC->PDOR = (
PTC->PDOR & ~(LEDS_CONF_RED | LEDS_CONF_GREEN | LEDS_CONF_YELLOW))
28 | ((leds &
LEDS_RED) ? LEDS_CONF_RED : 0)
#define LEDS_RED
LED1 (Red) -> PC0.
void leds_arch_init(void)
Leds implementation.
#define SIM
Peripheral SIM base pointer.
#define PTC
Peripheral PTC base pointer.
K60 hardware register header wrapper.
#define LEDS_YELLOW
LED2 (Yellow) -> PC1.
#define LEDS_GREEN
LED3 (Green) -> PC2.
#define PORTC
Peripheral PORTC base pointer.