hardenning stuff with assembler
Posted: Sun Oct 05, 2008 9:08 am
Hi people.
I need to make a project completely in assembler for the Uni.
As an extra for the project, students can opt to make an interface with USB, and only for that we can use C.
I have successfully maked (with a lot of research) a C project with some assembler functions. But this is far away from being an assembler project.
With assembler functions i cant use constants like PORTB and the others.
I cant include m32def.inc because i use avr-gcc and not avrasm.
If i use AVR-ASM i can make an entire project in assembler, but then i cant add C files like the ones for avrusb.
Any idea of how can i make a basic mix between both languages?
My needs for the mixedproject are like this:
main.asm (or .S) for the core (reset interrupt, device initialization, etc.)
usb.c and usb.h for making use of avrusb.
i2cmem.asm to comunicate with an i2c external memory.
And also i would need to be able to use predefined constants in assembler.
I would really apreciate any help.
Cheers,
Diego.
I need to make a project completely in assembler for the Uni.
As an extra for the project, students can opt to make an interface with USB, and only for that we can use C.
I have successfully maked (with a lot of research) a C project with some assembler functions. But this is far away from being an assembler project.
With assembler functions i cant use constants like PORTB and the others.
I cant include m32def.inc because i use avr-gcc and not avrasm.
If i use AVR-ASM i can make an entire project in assembler, but then i cant add C files like the ones for avrusb.
Any idea of how can i make a basic mix between both languages?
My needs for the mixedproject are like this:
main.asm (or .S) for the core (reset interrupt, device initialization, etc.)
usb.c and usb.h for making use of avrusb.
i2cmem.asm to comunicate with an i2c external memory.
And also i would need to be able to use predefined constants in assembler.
I would really apreciate any help.
Cheers,
Diego.