summaryrefslogtreecommitdiffstats
path: root/test/ccsc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 18:42:24 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-24 18:42:24 +0000
commitf508189682b6fba62e08feeb1596f682bad5fff9 (patch)
tree28aeb0e6c19386c385c1ce5edf8a92c1bca15281 /test/ccsc
downloadpiklab-f508189682b6fba62e08feeb1596f682bad5fff9.tar.gz
piklab-f508189682b6fba62e08feeb1596f682bad5fff9.zip
Added KDE3 version of PikLab
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1095639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'test/ccsc')
-rw-r--r--test/ccsc/blinker.piklab33
-rw-r--r--test/ccsc/standalone_blinker.c18
-rw-r--r--test/ccsc/test.c18
3 files changed, 69 insertions, 0 deletions
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 @@
+<!DOCTYPE piklab>
+<piklab>
+ <general>
+ <device>16F877</device>
+ <files>
+ <item>test.c</item>
+ </files>
+ <tool>ccsc</tool>
+ <description/>
+ <version>0.1</version>
+ <opened_files>
+ <item>test.c</item>
+ </opened_files>
+ </general>
+ <compiler>
+ <has_custom_arguments>false</has_custom_arguments>
+ <custom_options/>
+ <custom_arguments>
+ <item>+STDERR</item>
+ <item>-P</item>
+ <item>+LSlst</item>
+ <item>+OWhex</item>
+ <item>-J</item>
+ <item>-A</item>
+ <item>+F%FAMILY</item>
+ <item>-ICD</item>
+ <item>%I</item>
+ </custom_arguments>
+ <includes>
+ <item>$(SRCPATH)</item>
+ </includes>
+ </compiler>
+</piklab>
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 </home/azhyd/prog/ccs/devices/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