Here is an example of adding function TOUCHSCR_GetRawPos in CircleOS API list. Be warned: next version of CircleOS might make your function inaccesable (at least you will need to recompile your applications)
1) You need to declare a your function in circle.h
2) Implement your function in any file you want (if you creating new file don't forget to add it to CircleOS project)
3) now you need to assing a new ID to yuor function in circle_api.h. MAKE SURE IT'S NOT USED BY OTHER FUNCTIONS
4) declare your function in circle_api.h. This will describe how applications will see yor function
5) put your function into the list of API calls if circle_api.c. Be sure to PUT IT INTO THE RIGHT PLACE (depends on the id form step 3)
Now compile and flash CircleOS. In every application you wiil need to use a new circle_api.h. lib and hex files are not required to be updated.
Feel free to ask if you wan't get it working.
Last edited by ntrf.zns (2010-02-22 09:47:14)