Convert C code into hex?
3
answers
|
Answer it!
|
Steve pointed out the only one (I believe) which is free (open source), but that doesn't indicate if the code was written for it...
Much of that C code might be usable in other compilers, but it's likely that the function names in the libraries, etc., differ from one compiler to another. I'm talking about functions in the source such as:
setup_timer_0( )
setup_timer_1( )
setup_comparator( )
output_c( )
...etc...
These are functions written specifically for the PIC microprocessor (not part of standard C language or standard C libraries), and will vary compiler-to-compiler.
And the constants (INT_RTCC,GLOBAL) that are used as arguments in these functions might be standard PIC definitions, or they might not be:
enable_interrupts(INT_RTCC);
enable_interrupts(GLOBAL);
Even the variable declarations are somewhat different than typical "C" declarations...
![]() |






























