From b3ae283f15edf1c2587c324878ab7cc216737a01 Mon Sep 17 00:00:00 2001 From: travisutk Date: Sun, 12 Feb 2012 16:22:31 +0000 Subject: [PATCH] Removed deprecated tests. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1085 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- firmware/apps/radios/ccspi.c | 4 +-- firmware/tests/blink/Makefile | 25 ----------------- firmware/tests/blink/README.txt | 2 -- firmware/tests/blink/blink.c | 37 ------------------------- firmware/tests/echo/Makefile | 26 ------------------ firmware/tests/echo/README.txt | 3 --- firmware/tests/echo/echo.c | 48 --------------------------------- 7 files changed, 2 insertions(+), 143 deletions(-) delete mode 100644 firmware/tests/blink/Makefile delete mode 100644 firmware/tests/blink/README.txt delete mode 100644 firmware/tests/blink/blink.c delete mode 100644 firmware/tests/echo/Makefile delete mode 100644 firmware/tests/echo/README.txt delete mode 100644 firmware/tests/echo/echo.c diff --git a/firmware/apps/radios/ccspi.c b/firmware/apps/radios/ccspi.c index 197886a..d08da28 100644 --- a/firmware/apps/radios/ccspi.c +++ b/firmware/apps/radios/ccspi.c @@ -19,8 +19,8 @@ //! Handles a Chipcon SPI command. void ccspi_handle_fn( uint8_t const app, - uint8_t const verb, - uint32_t const len); + uint8_t const verb, + uint32_t const len); // define the ccspi app's app_t app_t const ccspi_app = { diff --git a/firmware/tests/blink/Makefile b/firmware/tests/blink/Makefile deleted file mode 100644 index 71a5c9b..0000000 --- a/firmware/tests/blink/Makefile +++ /dev/null @@ -1,25 +0,0 @@ - -PORT=/dev/ttyUSB0 -BSL=goodfet.bsl - -#Default to 2001 with least resources. - -#mcu=msp430x1611 -#mcu=msp430x2618 -mcu?=msp430x2001 - -#GCCINC=-T ../../ldscripts/161x.x -CC=msp430-gcc -g -mmcu=$(mcu) -DGCC $(GCCINC) -I ../../include - -app=blink - -all: $(app).hex -$(app).hex: $(app) - msp430-objcopy $(app) -O ihex $(app).hex -install: $(app).hex - $(BSL) -e -p $(app).hex - $(BSL) -P $(app).hex -r -erase: - $(BSL) -e -clean: - rm -f $(app) $(app).hex diff --git a/firmware/tests/blink/README.txt b/firmware/tests/blink/README.txt deleted file mode 100644 index daad816..0000000 --- a/firmware/tests/blink/README.txt +++ /dev/null @@ -1,2 +0,0 @@ -Simple blink test. Doesn't require a crystal, UART, or anything else. - diff --git a/firmware/tests/blink/blink.c b/firmware/tests/blink/blink.c deleted file mode 100644 index c841bec..0000000 --- a/firmware/tests/blink/blink.c +++ /dev/null @@ -1,37 +0,0 @@ -//GOODFET Blink test. - - -#include "platform.h" - -#include -#include -#include - -//LED on P1.0 -//IO on P5 - -//! Initialize registers and all that jazz. -void init(){ - WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer - - //LED and TX OUT - PLEDDIR |= PLEDPIN; - - //Enable Interrupts. - //eint(); -} - -//! Main loop. -int main(void) -{ - volatile unsigned int i; - init(); - - while(1){ - i = 10000; - while(i--); - - PLEDOUT^=PLEDPIN; // Blink - } -} - diff --git a/firmware/tests/echo/Makefile b/firmware/tests/echo/Makefile deleted file mode 100644 index 86e4f2c..0000000 --- a/firmware/tests/echo/Makefile +++ /dev/null @@ -1,26 +0,0 @@ - - -BSL=goodfet.bsl - -#mcu=msp430x1611 -mcu?=msp430x2618 - -#ldscript is wonky -#GCCINC=-T ../../ldscripts/161x.x - -CC=msp430-gcc -g -mmcu=$(mcu) -DGCC $(GCCINC) -I ../../include - -libs=../../lib/$(mcu).c -app=echo - -install: $(app) - $(BSL) -e -p $(app).hex - $(BSL) -P $(app).hex -r -all: $(app).hex -$(app): $(app).c $(libs) -$(app).hex: $(app) - msp430-objcopy -O ihex $(app) $(app).hex -erase: - $(BSL) -e -clean: - rm -f $(app) diff --git a/firmware/tests/echo/README.txt b/firmware/tests/echo/README.txt deleted file mode 100644 index 7e8780e..0000000 --- a/firmware/tests/echo/README.txt +++ /dev/null @@ -1,3 +0,0 @@ -This is a test case that echoes any byte it receives back to the sender. -Useful for debugging the UART. - diff --git a/firmware/tests/echo/echo.c b/firmware/tests/echo/echo.c deleted file mode 100644 index 5938488..0000000 --- a/firmware/tests/echo/echo.c +++ /dev/null @@ -1,48 +0,0 @@ -//GOODFET Echo test. - - -#include "platform.h" - -#include -#include -#include - - -//LED on P1.0 -//IO on P5 - -//! Initialize registers and all that jazz. -void init(){ - volatile unsigned int i; - WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer - - //LED and TX OUT - PLEDDIR |= PLEDPIN; - - msp430_init_dco(); - msp430_init_uart(); - - //Enable Interrupts. - //eint(); -} - -//! Main loop. -int main(void) -{ - volatile unsigned int i; - init(); - - - PLEDOUT^=PLEDPIN; // Blink - - //while(1) serial_tx(serial_rx()); - while(1) serial_tx('G'); - - while(1){ - i = 10000; - while(i--); - - PLEDOUT^=PLEDPIN; // Blink - } -} - -- 2.20.1