X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fapps%2Fchipcon%2Fchipcon.c;h=05349ea9f7194da63fb7387156c2f51aca2e8a80;hp=ad701beefda8585e528855bb0a0e633c8e6a79bb;hb=f4a6b415e762bcdc560f3ea655851d16f483ea5a;hpb=74ab06d026d20e3c13cd2bcb1ac89d83d79fbf5f;ds=sidebyside diff --git a/firmware/apps/chipcon/chipcon.c b/firmware/apps/chipcon/chipcon.c index ad701be..05349ea 100644 --- a/firmware/apps/chipcon/chipcon.c +++ b/firmware/apps/chipcon/chipcon.c @@ -1,11 +1,12 @@ -//GoodFET ChipCon Debugging Application -//by Travis Goodspeed -// +/*! \file chipcon.c + \author Travis Goodspeed + \brief Chipcon 8051 debugging. +*/ //This is like SPI, except that you read or write, not both. -/** N.B. The READ verb performs a write of all (any) supplied data, +/* N.B. The READ verb performs a write of all (any) supplied data, then reads a single byte reply from the target. The WRITE verb only writes. */ @@ -19,7 +20,7 @@ #include -/** Concerning clock rates, +/* Concerning clock rates, the maximimum clock rates are defined on page 4 of the spec. They vary, but are roughly 30MHz. Raising this clock rate might allow for clock glitching, but the GoodFET isn't sufficient fast for that. @@ -123,7 +124,7 @@ void ccread(unsigned char len){ //! Handles a monitor command. void cchandle(unsigned char app, unsigned char verb, - unsigned char len){ + unsigned long len){ switch(verb){ //CC_PEEK and CC_POKE will come later. case READ: //Write a command and return 1-byte reply.