summaryrefslogtreecommitdiffstats
path: root/test/ccsc/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/ccsc/test.c')
-rw-r--r--test/ccsc/test.c18
1 files changed, 18 insertions, 0 deletions
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