avrlib compile problem

View: New views
1 Messages — Rating Filter:   Alert me  

avrlib compile problem

by Hadi Aminzadeh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Dear,
I want to compile a test project from avrlib  on mint and avr-gcc
I try this https://ccrma.stanford.edu/courses/250a/docs/avrlib/html/install.html
avrlib website :  http://hubbard.engr.scu.edu/embedded/avr/avrlib/

but i have some error
....
In file included from /home/hadi/Projects/avrlib/uart.c:22:
/home/hadi/Projects/avrlib/uart.h:177: error: expected ‘)’ before ‘baudrate’
/home/hadi/Projects/avrlib/uart.h:192: error: expected ‘)’ before ‘data’
....

I think the error is for including file

//------------------------------------------
//file : examples/rprintf/rprintftest.c
#include "global.h"
#include "uart.h"

//file : examples/rprintf/global.h
#include "avrlibtypes.h"

//file : avrlibtypes.h
typedef unsigned long  u32;

//file : uart.h
177: void uartSetBaudRate(u32 baudrate); //error: expected ‘)’ before ‘baudrate’ (u32 not defined)
//------------------------------------------

ّI think when avrlibtypes included, in all other files I can be to use off all type and function's. I'm wrong?
Excuse me for bad English


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@...
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list