projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TI Launchpad patch from Peter Lorenzen, edited to ease the mergequake.
[goodfet]
/
firmware
/
lib
/
msp430.c
diff --git
a/firmware/lib/msp430.c
b/firmware/lib/msp430.c
index
3a71e14
..
1684f59
100644
(file)
--- a/
firmware/lib/msp430.c
+++ b/
firmware/lib/msp430.c
@@
-13,14
+13,30
@@
#include "apps.h"
#include "glitch.h"
#include "apps.h"
#include "glitch.h"
+void led_init()
+{
+ PLEDDIR |= PLEDPIN;
+}
+void led_on()
+{
+ PLEDOUT |= PLEDPIN;
+}
+void led_off()
+{
+ PLEDOUT&=~PLEDPIN;
+
+}
+void led_toggle()
+{
+}
//! Initialize MSP430 registers and all that jazz.
void msp430_init(){
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
//LED out and on.
//! Initialize MSP430 registers and all that jazz.
void msp430_init(){
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
//LED out and on.
-
PLEDDIR |= PLEDPIN
;
-
PLEDOUT &= ~PLEDPIN
;
+
led_init()
;
+
led_off()
;
/* P5.0 out and low; this is chosen for the PIC app (in which P5.0
/* P5.0 out and low; this is chosen for the PIC app (in which P5.0