projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reduced glitch offset, stopped LED blinking during glitch.
[goodfet]
/
firmware
/
apps
/
glitch
/
glitch.c
diff --git
a/firmware/apps/glitch/glitch.c
b/firmware/apps/glitch/glitch.c
index
4c4c6cf
..
0e5ddb2
100644
(file)
--- a/
firmware/apps/glitch/glitch.c
+++ b/
firmware/apps/glitch/glitch.c
@@
-39,7
+39,7
@@
void glitchsetup(){
WDTCTL = WDTPW + WDTHOLD; // Stop WDT
TACTL = TASSEL1 + TACLR; // SMCLK, clear TAR
CCTL0 = CCIE; // CCR0 interrupt enabled
WDTCTL = WDTPW + WDTHOLD; // Stop WDT
TACTL = TASSEL1 + TACLR; // SMCLK, clear TAR
CCTL0 = CCIE; // CCR0 interrupt enabled
- CCR0 = glitchcount+0x1
5
; // Compare Value
+ CCR0 = glitchcount+0x1
0
; // Compare Value
TACTL |= MC_2; // continuous mode.
#endif
}
TACTL |= MC_2; // continuous mode.
#endif
}
@@
-95,7
+95,6
@@
void glitchrate(u16 rate){
void glitchhandle(unsigned char app,
unsigned char verb,
unsigned long len){
void glitchhandle(unsigned char app,
unsigned char verb,
unsigned long len){
- P1OUT&=~1;
switch(verb){
case GLITCHVOLTAGES:
glitchvoltages(cmddataword[0],
switch(verb){
case GLITCHVOLTAGES:
glitchvoltages(cmddataword[0],