hi everyone
i put some functions in fun.c, try to make the main.c easy to read. how can i include fun.c in main.c? where should i put the fun.c? i tried to put it in the bsp floder, but the eclipse build the project with many errors# include "alt_types.h" //#include "altera_avalon_pio_regs.h"# include <io.h># include "sys/alt_irq.h"# include "system.h"# include <stdio.h># include <unistd.h># include "timer_fun.c" // this is my own fun# include "ft245_driver_fun.c" // this is my own fun# include "biss_driver_fun.c" // this is my own fun链接已复制
4 回复数
