mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-06-02 09:46:34 +03:00
Provide reset2addr()
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user