Provide reset2addr()

This commit is contained in:
Stefan Rueger
2026-04-02 00:20:06 +01:00
parent e7532789af
commit 944e347dfd
2 changed files with 2 additions and 2 deletions

View File

@@ -1794,6 +1794,7 @@ extern "C" {
uint16_t buf2uint16(const unsigned char *buf);
void uint32tobuf(unsigned char *buf, uint32_t opcode32);
void uint16tobuf(unsigned char *buf, uint16_t opcode16);
int reset2addr(const unsigned char *opcode, int vecsz, int flashsize, int *addrp);
const Uart_conf *getuartsigs(const Avrintel *up, int uart, int alt);
int urbootfuses(const PROGRAMMER *pgm, const AVRPART *part, const char *filename);

View File

@@ -473,9 +473,8 @@ static void set_date_filename(const PROGRAMMER *pgm, const char *fname) {
}
// Put destination address of reset vector jmp or rjmp into addr, return -1 if not an r/jmp
static int reset2addr(const unsigned char *opcode, int vecsz, int flashsize, int *addrp) {
int reset2addr(const unsigned char *opcode, int vecsz, int flashsize, int *addrp) {
int op32, addr, rc = 0;
uint16_t op16;