X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fapps%2Fjtag%2Fjtag430.c;h=2338847c36f4c77986a910485bacc40946fe80eb;hp=88c9f0f3e0defb8be759997146435833f43a83fa;hb=984c06c6028f27ef87d7b9453c8c61045b8d26dd;hpb=977b3dc777ffbc3bc657cc9dd0aa32ecdce9edd6 diff --git a/firmware/apps/jtag/jtag430.c b/firmware/apps/jtag/jtag430.c index 88c9f0f..2338847 100644 --- a/firmware/apps/jtag/jtag430.c +++ b/firmware/apps/jtag/jtag430.c @@ -14,19 +14,18 @@ void jtag430_handle_fn(uint8_t const app, // define the jtag430 app's app_t app_t const jtag430_app = { - - /* app number */ - JTAG430, - - /* handle fn */ - jtag430_handle_fn, - - /* name */ - "JTAG430", - - /* desc */ - "\tThe JTAG430 app adds to the basic JTAG app\n" - "\tsupport for JTAG'ing MSP430 devices.\n" + /* app number */ + JTAG430, + + /* handle fn */ + jtag430_handle_fn, + + /* name */ + "JTAG430", + + /* desc */ + "\tThe JTAG430 app adds to the basic JTAG app\n" + "\tsupport for JTAG'ing MSP430 devices.\n" }; unsigned int jtag430mode=MSP430X2MODE; @@ -376,8 +375,8 @@ void jtag430_setinstrfetch(){ //! Handles classic MSP430 JTAG commands. Forwards others to JTAG. void jtag430_handle_fn(uint8_t const app, - uint8_t const verb, - uint32_t const len) + uint8_t const verb, + uint32_t const len) { unsigned long at, l; unsigned int i, val; @@ -472,21 +471,6 @@ void jtag430_handle_fn(uint8_t const app, cmddataword[0]=jtag430_readmem(cmddataword[0]); txdata(app,verb,2); break; - /* - case JTAG430_WRITEFLASH: - - //debugstr("Poking flash memory."); - jtag430_writeflash(cmddataword[0],cmddataword[2]); - - //Try again if failure. - //if(cmddataword[2]!=jtag430_readmem(cmddataword[0])) - // jtag430_writeflash(cmddataword[0],cmddataword[2]); - - //Return result. - cmddataword[0]=jtag430_readmem(cmddataword[0]); - - txdata(app,verb,2); - break; */ case JTAG430_WRITEFLASH: at=cmddataword[0];