avr-libc-dev
[Top][All Lists]
Advanced

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

[avr-libc-dev] at90can128


From: Steffen Rose
Subject: [avr-libc-dev] at90can128
Date: Wed, 30 Jun 2004 13:46:17 +0200
User-agent: KMail/1.6.2

Hi,

I develop with the WinAVR-2004EX0-bin-install.exe package 
software for CANopen by using the at90can128.
The header iocan128.h I updated to version 1.4.

It works fine with our canary driver.

Some little questions:
1) Within the WinAVR package i don't find the standard 
header assert.h. Do you add it in a later installation?

2)  My first tests I did with 
WinAVR-20040404-bin-install.exe and -mmcu=atmega128. Now I 
test with WinAVR-2004EX0-bin-install.exe and 
-mmcu=at90can128.
I don't understand, why the first environment compile with 
an alignment of 2 and the second environment compile with 
an alignment of 1. Can you give me a hint?

The complete line I use, is:
avr-gcc -mmcu=at90can128  -std=gnu99 
-I/cygdrive/c/winavr/avr/include -funsigned-char 
-funsigned-bitfields -fpack-struct -fshort-enums -g -c -Os 
-mcall-prologues -W -Wall  -Wcast-qual -Wcast-align -o 
obj/can_canary.o -c can_canary.c


3) Additional to the settings in the iocan128.h I added this 
definitions:
/* addition definition of 16bit registers */
#define CANSTM          _SFR_MEM16(0xF8)
#define CANTTC          _SFR_MEM16(0xE8)
#define CANTIM          _SFR_MEM16(0xE6)
#define CANSIT          _SFR_MEM16(0xE0)
#define CANIE           _SFR_MEM16(0xDE)
#define CANEN           _SFR_MEM16(0xDC)

Can you add it to the standard header? With this defines 
it's easier to address a variable Messagebuffer.


-- 
Regards
Steffen Rose




reply via email to

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