mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-15 02:01:07 +00:00
avr.c: Adds avr_tpi_program_enable
Generic function enabling external programming on TPI devices. This function sets the required guard time (which is passed in as parameter), checks the TPI identification register, writes SKEY command + SKEY, and finally polls the NVMEN bit in TPISR. avr.h: Add prototype definitions of avr_tpi_program_enable() and avr_tpi_chip_erase(). avrftdi_tpi.c: Removes tpi_skey_cmd array, containing the SKEY command and the SKEY bytes. tpi.h: Adds tpi_skey_cmd array, containing the SKEY command and the SKEY bytes, but in the reverse order of tpi_skey. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1167 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -23,8 +23,6 @@
|
||||
|
||||
static void avrftdi_tpi_disable(PROGRAMMER *);
|
||||
|
||||
static const unsigned char tpi_skey_cmd[] = { TPI_CMD_SKEY, 0xff, 0x88, 0xd8, 0xcd, 0x45, 0xab, 0x89, 0x12 };
|
||||
|
||||
static void
|
||||
avrftdi_debug_frame(uint16_t frame)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user