/*
* This is a template for all of the tinyx5 devices, hopefully
*/
-static struct mcu_t {
+const static struct mcu_t {
avr_t core;
avr_eeprom_t eeprom;
avr_watchdog_t watchdog;
static avr_t * make()
{
- return &mcu.core;
+ return avr_core_allocate(&mcu.core, sizeof(struct mcu_t));
}
avr_kind_t tiny2313 = {