projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Plugins work again.
[goodfet]
/
firmware
/
goodfet.c
diff --git
a/firmware/goodfet.c
b/firmware/goodfet.c
index
900e836
..
3da4d04
100644
(file)
--- a/
firmware/goodfet.c
+++ b/
firmware/goodfet.c
@@
-18,6
+18,7
@@
\r
//! Initialize registers and all that jazz.
\r
void init(){
\r
\r
//! Initialize registers and all that jazz.
\r
void init(){
\r
+ int i;
\r
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
\r
\r
//LED out and on.
\r
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
\r
\r
//LED out and on.
\r
@@
-30,7
+31,11
@@
void init(){
\r
//DAC should be at full voltage if it exists.
\r
#ifdef DAC12IR
\r
\r
//DAC should be at full voltage if it exists.
\r
#ifdef DAC12IR
\r
- glitchvoltages(0xfff,0xfff);
\r
+ //glitchvoltages(0xfff,0xfff);
\r
+ ADC12CTL0 = REF2_5V + REFON; // Internal 2.5V ref on
\r
+ for(i=0;i!=0xFFFF;i++) asm("nop");
\r
+ DAC12_0CTL = DAC12IR + DAC12AMP_5 + DAC12ENC; // Int ref gain 1
\r
+ DAC12_0DAT = 0xFFF; //Max voltage
\r
#endif
\r
\r
//Enable Interrupts.
\r
#endif
\r
\r
//Enable Interrupts.
\r