In ft245r.c, move forward function declaratons up-front.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1504 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
f09f308ff8
commit
b376b6acdc
9
ft245r.c
9
ft245r.c
|
@ -153,6 +153,11 @@ static struct {
|
||||||
uint8_t buf[FT245R_BUFSIZE]; // receive ring buffer
|
uint8_t buf[FT245R_BUFSIZE]; // receive ring buffer
|
||||||
} rx;
|
} rx;
|
||||||
|
|
||||||
|
static int ft245r_cmd(PROGRAMMER * pgm, const unsigned char *cmd,
|
||||||
|
unsigned char *res);
|
||||||
|
static int ft245r_tpi_tx(PROGRAMMER * pgm, uint8_t byte);
|
||||||
|
static int ft245r_tpi_rx(PROGRAMMER * pgm, uint8_t *bytep);
|
||||||
|
|
||||||
// Discard all data from the receive buffer.
|
// Discard all data from the receive buffer.
|
||||||
static void ft245r_rx_buf_purge(PROGRAMMER * pgm) {
|
static void ft245r_rx_buf_purge(PROGRAMMER * pgm) {
|
||||||
rx.rd = rx.wr = 0;
|
rx.rd = rx.wr = 0;
|
||||||
|
@ -457,10 +462,6 @@ static void ft245r_enable(PROGRAMMER * pgm) {
|
||||||
set_buff(pgm, ON);
|
set_buff(pgm, ON);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ft245r_cmd(PROGRAMMER * pgm, const unsigned char *cmd,
|
|
||||||
unsigned char *res);
|
|
||||||
static int ft245r_tpi_tx(PROGRAMMER * pgm, uint8_t byte);
|
|
||||||
static int ft245r_tpi_rx(PROGRAMMER * pgm, uint8_t *bytep);
|
|
||||||
/*
|
/*
|
||||||
* issue the 'program enable' command to the AVR device
|
* issue the 'program enable' command to the AVR device
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue