Skip to content

Commit b376b6a

Browse files
committed
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
1 parent f09f308 commit b376b6a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ft245r.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ static struct {
153153
uint8_t buf[FT245R_BUFSIZE]; // receive ring buffer
154154
} rx;
155155

156+
static int ft245r_cmd(PROGRAMMER * pgm, const unsigned char *cmd,
157+
unsigned char *res);
158+
static int ft245r_tpi_tx(PROGRAMMER * pgm, uint8_t byte);
159+
static int ft245r_tpi_rx(PROGRAMMER * pgm, uint8_t *bytep);
160+
156161
// Discard all data from the receive buffer.
157162
static void ft245r_rx_buf_purge(PROGRAMMER * pgm) {
158163
rx.rd = rx.wr = 0;
@@ -457,10 +462,6 @@ static void ft245r_enable(PROGRAMMER * pgm) {
457462
set_buff(pgm, ON);
458463
}
459464

460-
static int ft245r_cmd(PROGRAMMER * pgm, const unsigned char *cmd,
461-
unsigned char *res);
462-
static int ft245r_tpi_tx(PROGRAMMER * pgm, uint8_t byte);
463-
static int ft245r_tpi_rx(PROGRAMMER * pgm, uint8_t *bytep);
464465
/*
465466
* issue the 'program enable' command to the AVR device
466467
*/

0 commit comments

Comments
 (0)