X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Flib%2Fmsp430.c;fp=firmware%2Flib%2Fmsp430.c;h=ec1a5c80a5752bbe72332085927330553069846c;hp=1684f59db6544702787a54e64076f8a7c64928c7;hb=350c674c6bcd97ec2f883b07e0cf49eb8a480183;hpb=f357e70c634e9b5221659c3b4e48d728ecbbc04f diff --git a/firmware/lib/msp430.c b/firmware/lib/msp430.c index 1684f59..ec1a5c8 100644 --- a/firmware/lib/msp430.c +++ b/firmware/lib/msp430.c @@ -28,6 +28,7 @@ void led_off() } void led_toggle() { + PLEDOUT ^= PLEDPIN; } //! Initialize MSP430 registers and all that jazz. @@ -79,13 +80,13 @@ void msp430_init(){ #endif /** FIXME - + This part is really ugly. GSEL (P5.7) must be high to select normal voltage, but a lot of applications light to swing it low to be a nuissance. To get around this, we assume that anyone with a glitching FET will also have a DAC, then we set that DAC to a high voltage. - + At some point, each target must be sanitized to show that it doesn't clear P5OUT or P5DIR. */