From b376b6acdc6bb2cb70a254be21daf477f678c898 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Tue, 30 Nov 2021 06:32:27 +0000 Subject: [PATCH] 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 --- ft245r.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ft245r.c b/ft245r.c index 9c717324..6f5d69a3 100644 --- a/ft245r.c +++ b/ft245r.c @@ -153,6 +153,11 @@ static struct { uint8_t buf[FT245R_BUFSIZE]; // receive ring buffer } 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. static void ft245r_rx_buf_purge(PROGRAMMER * pgm) { rx.rd = rx.wr = 0; @@ -457,10 +462,6 @@ static void ft245r_enable(PROGRAMMER * pgm) { 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 */