X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Finclude%2Fglitch.h;h=5705e4e62b8b2c87d34ff6ea9d88157176c33ce8;hp=16ccea87eff1e60c9b15f855d4c0cfade9502230;hb=a031b4a563978102c664466d1e91a9c3ab0553dd;hpb=00737f87325a8f97ce23c32f32e93b082bf5a4d2 diff --git a/firmware/include/glitch.h b/firmware/include/glitch.h index 16ccea8..5705e4e 100644 --- a/firmware/include/glitch.h +++ b/firmware/include/glitch.h @@ -3,10 +3,18 @@ \brief Glitch handler functions. */ +#ifndef GLITCH_H +#define GLITCH_H + +#include "command.h" +#include "app.h" + #include #include #include +#define GLITCH 0x71 + //Command codes #define GLITCHAPP 0x80 #define GLITCHVERB 0x81 @@ -17,8 +25,6 @@ //! Setup glitching. void glitchsetup(); -//! Setup analog chain for glitching. -void glitchsetupdac(); //! Call this before the function to be glitched. void glitchprime(); @@ -27,11 +33,11 @@ extern u16 glitchH, glitchL, glitchstate, glitchcount; //! Glitch an application. void glitchapp(u8 app); //! Set glitching voltages. -void glitchvoltages(u16 low, u16 high); +void glitchvoltages(u16 gnd, u16 vcc); //! Set glitching rate. void glitchrate(u16 rate); -//! Handles a monitor command. -void glitchhandle(unsigned char app, - unsigned char verb, - unsigned long len); +extern app_t const glitch_app; + +#endif // GLITCH_H +