added missing function prototypes

This commit is contained in:
Markus Fröschle
2013-12-24 09:31:11 +00:00
parent 5b7e7940a9
commit 6160bc4fe8
3 changed files with 200 additions and 195 deletions

View File

@@ -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)

View File

@@ -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)
{

View File

@@ -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;
}
}