Converted u8_t to uint8_t and u16_t to uint16_t in the apps directory.

This commit is contained in:
Nicholas J Humfrey 2012-02-20 19:13:50 +00:00 committed by Mariano Alvira
parent 1cda3da17e
commit efab964451
61 changed files with 287 additions and 287 deletions

View file

@ -104,13 +104,13 @@ void codeprop_set_rate(clock_time_t time);
#define UDPDATASIZE 32
struct codeprop_udphdr {
u16_t id;
u16_t type;
uint16_t id;
uint16_t type;
#define TYPE_DATA 0x0001
#define TYPE_NACK 0x0002
u16_t addr;
u16_t len;
u8_t data[UDPDATASIZE];
uint16_t addr;
uint16_t len;
uint8_t data[UDPDATASIZE];
};
static void uipcall(void *state);
@ -118,19 +118,19 @@ static void uipcall(void *state);
PROCESS(codeprop_process, "Code propagator");
struct codeprop_state {
u8_t state;
uint8_t state;
#define STATE_NONE 0
#define STATE_RECEIVING_TCPDATA 1
#define STATE_RECEIVING_UDPDATA 2
#define STATE_SENDING_UDPDATA 3
u16_t count;
u16_t addr;
u16_t len;
u16_t id;
uint16_t count;
uint16_t addr;
uint16_t len;
uint16_t id;
struct etimer sendtimer;
struct timer nacktimer, timer, starttimer;
u8_t received;
u8_t send_counter;
uint8_t received;
uint8_t send_counter;
struct pt tcpthread_pt;
struct pt udpthread_pt;
struct pt recv_udpthread_pt;
@ -199,10 +199,10 @@ PROCESS_THREAD(codeprop_process, ev, data)
PROCESS_END();
}
/*---------------------------------------------------------------------*/
static u16_t
static uint16_t
send_udpdata(struct codeprop_udphdr *uh)
{
u16_t len;
uint16_t len;
uh->type = UIP_HTONS(TYPE_DATA);
uh->addr = uip_htons(s.addr);
@ -360,7 +360,7 @@ PT_THREAD(recv_udpthread(struct pt *pt))
static
PT_THREAD(recv_tcpthread(struct pt *pt))
{
u8_t *dataptr;
uint8_t *dataptr;
struct codeprop_tcphdr *th;
int datalen = uip_datalen();