# define _FUSE_HELPER { 0 }
#endif
-#ifdef MCUSR
-# define MCU_STATUS_REG MCUSR
-#else
+#ifdef MCUCSR
# define MCU_STATUS_REG MCUCSR
+#else
+# define MCU_STATUS_REG MCUSR
#endif
#ifdef SIGNATURE_0
*/
#include "sim_avr.h"
-#include "sim_core_declare.h"
#include "avr_eeprom.h"
#include "avr_flash.h"
#include "avr_watchdog.h"
#define __ASSEMBLER__
#include "avr/iom128.h"
+#include "sim_core_declare.h"
+
/*
* This is a template for all of the 128 devices, hopefully
*/
*/
#include "sim_avr.h"
-#include "sim_core_declare.h"
#include "avr_eeprom.h"
#include "avr_flash.h"
#include "avr_watchdog.h"
#endif
#include "avr/iom1280.h"
+#include "sim_core_declare.h"
+
/*
* This is a template for all of the 1280 devices, hopefully
*/
*/
#include "sim_avr.h"
-#include "sim_core_declare.h"
#include "avr_eeprom.h"
#include "avr_flash.h"
#include "avr_watchdog.h"
#define __ASSEMBLER__
#include "avr/iom1281.h"
+#include "sim_core_declare.h"
+
/*
* This is a template for all of the 1281 devices, hopefully
*/
*/
#include "sim_avr.h"
-#include "sim_core_declare.h"
#include "avr_eeprom.h"
#include "avr_flash.h"
#include "avr_watchdog.h"
#define __ASSEMBLER__
#include "avr/iom128rfa1.h"
+#include "sim_core_declare.h"
+
/*
* This is a template for all of the 128rfa1 devices, hopefully
*/
*/
#include "sim_avr.h"
-#include "sim_core_declare.h"
#include "avr_eeprom.h"
#include "avr_flash.h"
#include "avr_watchdog.h"
#define __ASSEMBLER__
#include "avr/iom128rfr2.h"
+#include "sim_core_declare.h"
+
/*
* Temporary hack for mangled avr-libc headers
*/
*/
#include "sim_avr.h"
-#include "sim_core_declare.h"
#include "avr_eeprom.h"
#include "avr_flash.h"
#include "avr_watchdog.h"
#define MCUCSR MCUSR
#endif
+#include "sim_core_declare.h"
+
const struct mcu_t {
avr_t core;
avr_eeprom_t eeprom;
*/
#include "sim_avr.h"
-#include "sim_core_declare.h"
#include "avr_eeprom.h"
#include "avr_flash.h"
#include "avr_watchdog.h"
#endif
#include "avr/iom2560.h"
+#include "sim_core_declare.h"
+
/*
* This is a template for all of the 2560 devices, hopefully
*/
#define PE6 6
#include "sim_avr.h"
-#include "sim_core_declare.h"
#include "avr_eeprom.h"
#include "avr_flash.h"
#include "avr_watchdog.h"
#endif
#include "avr/iom32u4.h"
+#include "sim_core_declare.h"
+
/*
* ATmega32u4 definitions
*/
*/
#include "sim_avr.h"
-#include "sim_core_declare.h"
#include "avr_eeprom.h"
#include "avr_watchdog.h"
#include "avr_extint.h"
#define __ASSEMBLER__
#include "avr/iotn13.h"
+#include "sim_core_declare.h"
+
static void init(struct avr_t * avr);
static void reset(struct avr_t * avr);
along with simavr. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "sim_core_declare.h"
#include "avr_eeprom.h"
#include "avr_watchdog.h"
#include "avr_extint.h"
#define __ASSEMBLER__
#include "avr/iotn2313.h"
+#include "sim_core_declare.h"
+
/*
* This is a template for all of the tinyx5 devices, hopefully
*/
along with simavr. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "sim_core_declare.h"
#include "avr_eeprom.h"
#include "avr_watchdog.h"
#include "avr_extint.h"
#define __ASSEMBLER__
#include "avr/iotn2313a.h"
+#include "sim_core_declare.h"
+
/*
* This is a template for all of the tinyx5 devices, hopefully
*/
along with simavr. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "sim_core_declare.h"
#include "avr_eeprom.h"
#include "avr_watchdog.h"
#include "avr_extint.h"
#define __ASSEMBLER__
#include "avr/iotn4313.h"
+#include "sim_core_declare.h"
+
/*
* This is a template for all of the tinyx5 devices, hopefully
*/
*/
#include "sim_avr.h"
-#include "sim_core_declare.h"
#include "avr_eeprom.h"
#include "avr_flash.h"
#include "avr_watchdog.h"
#define __ASSEMBLER__
#include "avr/iousb162.h"
+#include "sim_core_declare.h"
+
const struct mcu_t {
avr_t core;
avr_eeprom_t eeprom;