projects
/
goodfet
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
44a853d5ede5641d85ba1c1cd84c0aa236e43e87
[goodfet]
/
firmware
/
lib
/
command.c
1
//! Different command handling functions.
2
3
unsigned char cmddata[256];
4
5
//! Transmit data.
6
void txdata(unsigned char app,
7
unsigned char verb,
8
unsigned char len){
9
unsigned int i=0;
10
serial_tx(app);
11
serial_tx(verb);
12
serial_tx(len);
13
for(i=0;i<len;i++){
14
serial_tx(cmddata[i]);
15
}
16
}
17
18
19
//! Delay for a count.
20
void delay(unsigned int count){
21
volatile unsigned int i=count;
22
while(i--);
23
}