summaryrefslogtreecommitdiffstats
path: root/test/pic30/standalone_test_c.c
blob: 9e9be375c4d16be37460c2c4b5b302ab178bf150 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
}