From f508189682b6fba62e08feeb1596f682bad5fff9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 24 Feb 2010 18:42:24 +0000 Subject: Added KDE3 version of PikLab git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1095639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- test/ccsc/blinker.piklab | 33 +++++++++++++++++++++++++++++++++ test/ccsc/standalone_blinker.c | 18 ++++++++++++++++++ test/ccsc/test.c | 18 ++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 test/ccsc/blinker.piklab create mode 100644 test/ccsc/standalone_blinker.c create mode 100644 test/ccsc/test.c (limited to 'test/ccsc') diff --git a/test/ccsc/blinker.piklab b/test/ccsc/blinker.piklab new file mode 100644 index 0000000..a0810cd --- /dev/null +++ b/test/ccsc/blinker.piklab @@ -0,0 +1,33 @@ + + + + 16F877 + + test.c + + ccsc + + 0.1 + + test.c + + + + false + + + +STDERR + -P + +LSlst + +OWhex + -J + -A + +F%FAMILY + -ICD + %I + + + $(SRCPATH) + + + diff --git a/test/ccsc/standalone_blinker.c b/test/ccsc/standalone_blinker.c new file mode 100644 index 0000000..e1d3384 --- /dev/null +++ b/test/ccsc/standalone_blinker.c @@ -0,0 +1,18 @@ +// This file is used to test the CCS compiler from within Piklab +// The resulting HEX file has not been verified in hardware + +#include <16F877.h> +#fuses HS,NOWDT,PUT,NOPROTECT +#use delay(clock=4000000) + +#define LED_PIN PIN_B0 + +void main(void) +{ + while(1){ + output_low(LED_PIN); + delay_ms(500); + output_high(LED_PIN); + delay_ms(500); + } +} \ No newline at end of file diff --git a/test/ccsc/test.c b/test/ccsc/test.c new file mode 100644 index 0000000..e4a5c5a --- /dev/null +++ b/test/ccsc/test.c @@ -0,0 +1,18 @@ +// This file is used to test the CCS compiler from within Piklab +// The resulting HEX file has not been verified in hardware + +#include +#fuses HS,NOWDT,PUT,NOPROTECT +#use delay(clock=4000000) + +#define LED_PIN PIN_B0 + +void main(void) +{ + while(1){ + output_low(LED_PIN); + delay_ms(500); + output_high(LED_PIN); + delay_ms(500); + } +} \ No newline at end of file -- cgit v1.2.1