diff options
Diffstat (limited to 'test/ccsc')
-rw-r--r-- | test/ccsc/blinker.piklab | 33 | ||||
-rw-r--r-- | test/ccsc/standalone_blinker.c | 18 | ||||
-rw-r--r-- | test/ccsc/test.c | 18 |
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 |