1. First : You need to create the object files , let's say we are using pic
18f mcu
By
$sdcc -V --vc --debug -mpic16 -p18f4550 --use-non-free -I/. -L/. -c delay.c
$sdcc -V --vc --debug -mpic16 -p18f4550 --use-non-free -I/. -L/. -c
default.c
It's create delay.o and default.o
After:
*g
library: you should use the
> gplib librarian which is a part of gputils.
>
> Borut
>
>
> On 30. 11. 2012 23:40, Caio Rodrigues wrote:
>
> Thanks Borut Ražem and Douglas Goodall for the advices.
>
> I think sdcc compiles by default for the 8051 core and the sdcclib o
/usr/local/share/sdcc/lib/pic16"
-I"/usr/local/bin/../share/sdcc/non-free/lib/pic16"
-I"/usr/local/share/sdcc/non-free/lib/pic16" -w -r -o "main" "main.o"
crt0i.o "libmydelay.lib" "libdev18f4550.lib" "libsdcc.lib" * returned
Author: YOUR NAME (),
*Company:
*
* =
*/
#include "delay.h"
#include "default.h"
void delay1s(){
u8 co