projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reset debugging and documentation update (to indicate that we've moved the nRST pin...
[goodfet]
/
firmware
/
include
/
glitch.h
diff --git
a/firmware/include/glitch.h
b/firmware/include/glitch.h
index
8cbe7ed
..
e208549
100644
(file)
--- a/
firmware/include/glitch.h
+++ b/
firmware/include/glitch.h
@@
-3,9
+3,13
@@
\brief Glitch handler functions.
*/
\brief Glitch handler functions.
*/
-#include <signal.h>
-#include <io.h>
-#include <iomacros.h>
+#ifndef GLITCH_H
+#define GLITCH_H
+
+#include "command.h"
+#include "app.h"
+
+#define GLITCH 0x71
//Command codes
#define GLITCHAPP 0x80
//Command codes
#define GLITCHAPP 0x80
@@
-17,8
+21,6
@@
//! Setup glitching.
void glitchsetup();
//! Setup glitching.
void glitchsetup();
-//! Setup analog chain for glitching.
-void glitchsetupdac();
//! Call this before the function to be glitched.
void glitchprime();
//! Call this before the function to be glitched.
void glitchprime();
@@
-27,11
+29,11
@@
extern u16 glitchH, glitchL, glitchstate, glitchcount;
//! Glitch an application.
void glitchapp(u8 app);
//! Set glitching voltages.
//! 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);
//! Set glitching rate.
void glitchrate(u16 rate);
-//! Handles a monitor command.
-extern void glitchhandle(unsigned char app,
- unsigned char verb,
- unsigned long len) WEAKDEF;
+extern app_t const glitch_app;
+
+#endif // GLITCH_H
+