glitch.h was missing an include.
[goodfet] / firmware / include / glitch.h
1 /*! \file glitch.h
2   \author Travis Goodspeed
3   \brief Glitch handler functions.
4 */
5
6 #ifndef GLITCH_H
7 #define GLITCH_H
8
9 #include "command.h"
10 #include "app.h"
11
12 #include <signal.h>
13 #include <io.h>
14 #include <iomacros.h>
15
16 #define GLITCH 0x71
17
18 //Command codes
19 #define GLITCHAPP      0x80
20 #define GLITCHVERB     0x81
21 #define GLITCHTIME     0x82
22 #define GLITCHVOLTAGES 0x90
23 #define GLITCHRATE     0x91
24
25
26 //! Setup glitching.
27 void glitchsetup();
28 //! Call this before the function to be glitched.
29 void glitchprime();
30
31 extern u16 glitchH, glitchL, glitchstate, glitchcount;
32
33 //! Glitch an application.
34 void glitchapp(u8 app);
35 //! Set glitching voltages.
36 void glitchvoltages(u16 gnd, u16 vcc);
37 //! Set glitching rate.
38 void glitchrate(u16 rate);
39
40 extern app_t const glitch_app;
41
42 #endif // GLITCH_H
43