From 29427064443a611730ed7338dc6bcbf943f5b32c Mon Sep 17 00:00:00 2001 From: AlbertoGV Date: Mon, 11 Jul 2022 14:20:59 -0500 Subject: [PATCH] =?UTF-8?q?Revert=20"Agregu=C3=A9=20la=20referencia"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 6a130b33374f2c91ab1ccfb5158666cd6ef0ec0d. --- Guía de usuario MSP430 GCC Toolchain.md | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Guía de usuario MSP430 GCC Toolchain.md b/Guía de usuario MSP430 GCC Toolchain.md index 43f212c..30a7abe 100644 --- a/Guía de usuario MSP430 GCC Toolchain.md +++ b/Guía de usuario MSP430 GCC Toolchain.md @@ -76,15 +76,15 @@ Ejemplo de código para hacer parpadear un led: void main(void) { - WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer - PM5CTL0 = 0x0000; // disable high impedance mode - P1DIR = 0x01; //set up bit 0 of P1 as output - P1OUT = 0x00; //initialize bit 0 of P1 to 0 + WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer + PM5CTL0 = 0x0000; // disable high impedance mode + P1DIR = 0x01; //set up bit 0 of P1 as output + P1OUT = 0x00; //initialize bit 0 of P1 to 0 - for(;;){ //loop + for(;;){ //loop volatile unsigned int i; - P1OUT ^= 0x01; //toggle bit 0 of P1 - //Delay + P1OUT ^= 0x01; //toggle bit 0 of P1 + //Delay for(i=40000; i>0;){ i--; __no_operation(); @@ -353,7 +353,5 @@ Instala la libreria libncursesw.so.5 para solucionar el problema mediante el com sudo apt-get install libncursesw.so.5 ``` -### **Referencia** - -[1] Texas Instruments. Msp430-gcc-opensource gcc-open source compiler for msp microcontrollers, 2017. +------