mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-28 06:55:27 +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:
@@ -45,7 +45,13 @@
|
||||
* avrftdi_tpi.c: Do all I/O in terms of pgm->cmd_tpi()-calls instead of
|
||||
avrftdi_tpi_[read,write]_byte().
|
||||
Remove unnecessary set_pin call to set MOSI high, speeds up I/O.
|
||||
Removes SKEY array, moves it to tpi.h.
|
||||
* avr.c: Adds avr_tpi_chip_erase() generic TPI chip erase function.
|
||||
Adds avr_tpi_program_enable() - generic TPI external programming enable
|
||||
function. Sets guard time, reads identification register, sends SKEY command
|
||||
and key, checks NVMEN bit. The required guard time has to be passed as
|
||||
parameter.
|
||||
* tpi.h: Adds SKEY array including CMD_SKEY in "correct" order.
|
||||
|
||||
2013-05-02 Hannes Weisbach <hannes_weisbach@gmx.net>
|
||||
|
||||
|
Reference in New Issue
Block a user