/*
* This is a template for all of the 1281 devices, hopefully
*/
-struct mcu_t {
+const struct mcu_t {
avr_t core;
avr_eeprom_t eeprom;
avr_flash_t selfprog;
static avr_t * make()
{
- return &mcu_mega1281.core;
+ return avr_core_allocate(&mcu_mega1281.core, sizeof(struct mcu_t));
}
avr_kind_t mega1281 = {