Temporary, to make the build work. Seems the latest avr-libc in debian
is rather mangled.
Signed-off-by: Michel Pollet <buserror@gmail.com>
3 files changed:
#define __ASSEMBLER__
#include "avr/iom128rfr2.h"
+/*
+ * Temporary hack for mangled avr-libc headers
+ */
+#ifndef PB7
+#define PB4 4
+#define PB5 5
+#define PB6 6
+#define PB7 7
+#endif
+#ifndef PD0
+#define PD0 0
+#define PD1 1
+#define PD2 2
+#define PD3 3
+#define PD4 4
+#endif
+#ifndef PE3
+#define PE3 3
+#define PE4 4
+#define PE5 5
+#define PE6 6
+#define PE7 7
+#endif
+#ifndef PG5
+#define PG5 5
+#endif
/*
* This is a template for all of the 128rfr2 devices, hopefully
*/
#error SIM_MMCU is not declared
#endif
+/* Termporary hack for mega 324 due to mangled headers */
+#ifdef _AVR_IOM328P_H_
+#undef EFUSE_DEFAULT
+#define EFUSE_DEFAULT 0
+#endif
+
const struct mcu_t SIM_CORENAME = {
.core = {
.mmcu = SIM_MMCU,
#define _AVR_IO_H_
#define __ASSEMBLER__
#include "avr/iotn84.h"
+
+#ifndef HFUSE_DEFAULT
#define HFUSE_DEFAULT FUSE_HFUSE_DEFAULT
+#endif
+
// instantiate the new core
#include "sim_tinyx4.h"