diff options
Diffstat (limited to 'test/pic30/standalone_test_c.c')
-rw-r--r-- | test/pic30/standalone_test_c.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/pic30/standalone_test_c.c b/test/pic30/standalone_test_c.c new file mode 100644 index 0000000..9e9be37 --- /dev/null +++ b/test/pic30/standalone_test_c.c @@ -0,0 +1,18 @@ +//#include <p30f2010.h> + +int main(void); +unsigned int Add(unsigned int a, unsigned int b); +unsigned int x, y, z; + +int main(void) +{ + x = 2; + y = 5; + z = Add(x,y); + return 0; +} + +unsigned int Add(unsigned int a, unsigned int b) +{ + return(a+b); +} |