Support for Mega2560 based board

This forum is about you. Feel free to discuss anything is related to embedded and electronics, your awesome projects, your ideas, your announcements, not necessarily related to ChibiOS but to embedded in general. This forum is NOT for support.
Post Reply
giometti
Posts: 6
Joined: Fri Mar 28, 2014 11:30 am

Support for Mega2560 based board

Post by giometti »

Hello,

here my patches for adding support for Mega2560 based board.

Actually just the first one is the port... the second is a bug fix for the Makefile and the third is a demo for a Mega2560 based board.

Rodolfo
Attachments
patches.tgz
(14.07 KiB) Downloaded 439 times
utzig
Posts: 359
Joined: Sat Jan 07, 2012 6:22 pm
Has thanked: 1 time
Been thanked: 20 times

Re: Support for Mega2560 based board

Post by utzig »

According to https://gcc.gnu.org/onlinedocs/gcc/AVR-Options.html

There's the __AVR_3_BYTE_PC__ macro defined for uCs that have PCs longer than 16-bit. That would be better to use it than using __AVR_ATmega2560__ because future CPUs would also be supported.

Also, is there any reason for putting the new pcx fields somewhere in the middle of the structs instead of in the end?

Att,
Fabio Utzig
Post Reply