View previous topic :: View next topic |
Author |
Message |
aaronik19
Joined: 25 Apr 2011 Posts: 297
|
mikroe library |
Posted: Sun Sep 16, 2018 1:25 am |
|
|
Dear Friends,
is it possible to use mikroe device library to CCS?
thanks |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19518
|
|
Posted: Sun Sep 16, 2018 3:19 am |
|
|
If you have this compiled, with an entry address, a function can be called by the CCS code, but if you have it as an object file, no. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9229 Location: Greensville,Ontario
|
|
Posted: Sun Sep 16, 2018 4:47 am |
|
|
Assuming you have the source, you could recode into CCS C. I did that for their PS2 KBD a very long time ago as CCS didn't have that 'driver'. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19518
|
|
Posted: Sun Sep 16, 2018 5:14 am |
|
|
Yes. I assumed from the word 'library' that it was a pre-compiled object library. If there is code, then translate. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9229 Location: Greensville,Ontario
|
|
Posted: Sun Sep 16, 2018 5:37 am |
|
|
update... a quick look on the Web and the sources (C code) for the libraries are NOT available, so code a small MikRoe C program with the desired library, compile, then dump the listing and 'decompile' or reverse engineer. You'll get real good and understanding PIC ASM this way !
What I don't know is if a 'library' contains say 4 functions, if ALL of the functions are compiled or only the one you call. That's your homework.
Jay |
|
|
|