mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-09 23:54:32 +00:00
Remove frame.h include, expose raven_ping6 for external calls
This commit is contained in:
parent
024d8ff2b5
commit
7c020468b5
@ -59,7 +59,6 @@
|
|||||||
#include "contiki-lib.h"
|
#include "contiki-lib.h"
|
||||||
#include "contiki-net.h"
|
#include "contiki-net.h"
|
||||||
|
|
||||||
#include "frame.h"
|
|
||||||
#include "mac.h"
|
#include "mac.h"
|
||||||
|
|
||||||
#include "raven-lcd.h"
|
#include "raven-lcd.h"
|
||||||
@ -97,7 +96,7 @@ void rs232_send(uint8_t port, unsigned char c);
|
|||||||
|
|
||||||
/*------------------------------------------------------------------*/
|
/*------------------------------------------------------------------*/
|
||||||
/* Sends a ping packet out the radio */
|
/* Sends a ping packet out the radio */
|
||||||
static void
|
void
|
||||||
raven_ping6(void)
|
raven_ping6(void)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -183,7 +182,7 @@ raven_gui_loop(process_event_t ev, process_data_t data)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* Reset command done flag. */
|
/* Reset command done flag. */
|
||||||
cmd.done = false;
|
cmd.done = 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -203,7 +202,7 @@ int raven_lcd_serial_input(unsigned char ch)
|
|||||||
switch (cmd.ndx){
|
switch (cmd.ndx){
|
||||||
case 0:
|
case 0:
|
||||||
/* first byte, must be 0x01 */
|
/* first byte, must be 0x01 */
|
||||||
cmd.done = false;
|
cmd.done = 0;
|
||||||
if (ch != 0x01){
|
if (ch != 0x01){
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -221,7 +220,7 @@ int raven_lcd_serial_input(unsigned char ch)
|
|||||||
if (cmd.ndx >= cmd.len+3){
|
if (cmd.ndx >= cmd.len+3){
|
||||||
/* all done, check ETX */
|
/* all done, check ETX */
|
||||||
if (ch == 0x04){
|
if (ch == 0x04){
|
||||||
cmd.done = true;
|
cmd.done = 1;
|
||||||
process_post(&raven_lcd_process, SERIAL_CMD, 0);
|
process_post(&raven_lcd_process, SERIAL_CMD, 0);
|
||||||
} else {
|
} else {
|
||||||
/* Failed ETX */
|
/* Failed ETX */
|
||||||
|
Loading…
Reference in New Issue
Block a user