added missing function prototypes
This commit is contained in:
@@ -26,6 +26,8 @@ typedef struct
|
||||
|
||||
|
||||
extern bool timer_init(uint8_t, uint8_t, uint8_t);
|
||||
extern bool timer_set_secs(uint8_t ch, uint32_t secs);
|
||||
extern uint32_t timer_get_reference(uint8_t ch);
|
||||
|
||||
/* Vector numbers for all the timer channels */
|
||||
#define TIMER_VECTOR(x) (126-x)
|
||||
|
||||
@@ -16,15 +16,16 @@
|
||||
#include "bas_printf.h"
|
||||
#include "bas_string.h"
|
||||
#include "net.h"
|
||||
#include "net_timer.h"
|
||||
|
||||
#define TIMER_NETWORK 0
|
||||
|
||||
/* The one and only TFTP connection */
|
||||
TFTP_Connection tcxn;
|
||||
static TFTP_Connection tcxn;
|
||||
|
||||
/* Progress Indicators */
|
||||
char hash[] = {'-','\\','|','/'};
|
||||
int ihash = 0;
|
||||
static char hash[] = {'-','\\','|','/'};
|
||||
static int ihash = 0;
|
||||
|
||||
static int tftp_rwrq(void)
|
||||
{
|
||||
|
||||
@@ -51,6 +51,7 @@ void udp_bind_port(uint16_t port, void (*handler)(NIF *, NBUF *))
|
||||
{
|
||||
udp_port_table[index].port = port;
|
||||
udp_port_table[index].handler = handler;
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -65,6 +66,7 @@ void udp_free_port(uint16_t port)
|
||||
if (udp_port_table[index].port == port)
|
||||
{
|
||||
udp_port_table[index].port = 0;
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user