Microchip® Advanced Software Framework

ledctrl.c File Reference
#include "contiki-conf.h"
#include "port.h"
#include "delay.h"
#include "ledctrl.h"

Macros

#define LED_UDP_BLINK__HALF_PERIOD_MS   500
 
#define LED_UDP_BLINK_COUNT   10
 

Functions

void ledctrl_init ()
 
void ledctrl_receiver (struct simple_udp_connection *c, const uip_ipaddr_t *sender_addr, uint16_t sender_port, const uip_ipaddr_t *receiver_addr, uint16_t receiver_port, const uint8_t *data, uint16_t datalen)
 
 PROCESS (ledctrl_process,"LED Control process")
 
 PROCESS_THREAD (ledctrl_process, ev, data)
 

Variables

struct simple_udp_connection led_udp_conn
 

#define LED_UDP_BLINK__HALF_PERIOD_MS   500

Referenced by ledctrl_receiver().

#define LED_UDP_BLINK_COUNT   10

Referenced by ledctrl_receiver().

void ledctrl_init ( void  )

References NULL, and process_start().

Referenced by main().

void ledctrl_receiver ( struct simple_udp_connection c,
const uip_ipaddr_t sender_addr,
uint16_t  sender_port,
const uip_ipaddr_t receiver_addr,
uint16_t  receiver_port,
const uint8_t *  data,
uint16_t  datalen 
)
PROCESS ( ledctrl_process  ,
"LED Control process  
)
PROCESS_THREAD ( ledctrl_process  ,
ev  ,
data   
)

struct simple_udp_connection led_udp_conn

Referenced by PROCESS_THREAD().