[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] avrlib compile problem

From: Hadi Aminzadeh
Subject: [avr-gcc-list] avrlib compile problem
Date: Fri, 30 Oct 2009 12:05:48 +0330

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]