Skip to content

Commit ec34106

Browse files
author
ga
committed
Remove use of atmega328pb as some gcc versions do not recognise it.
Fixes BUG #552 - "Can't compile on MacOS Sonoma (Apple Silicon M1) from Homebrew".
1 parent e2ce7f1 commit ec34106

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/atmega328pb_jsys.c renamed to tests/atmega328_jsys.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* atmega328pb_jsys.c: a small demonstaration of using an illegal
2+
* atmega328_jsys.c: a small demonstaration of using an illegal
33
* instruction code to raise an IRQ and invoke a service from the
44
* surrounding application. In this case a simple sleep/wake.
55
* The technique allows low-overhead simulation of busy-waiting.
@@ -12,7 +12,7 @@
1212
#include <avr/sleep.h>
1313

1414
#include "avr_mcu_section.h"
15-
AVR_MCU(F_CPU, "atmega328pb");
15+
AVR_MCU(F_CPU, "atmega328");
1616

1717
uint8_t count, ext_count;
1818

tests/test_atmega328pb_jsys.c renamed to tests/test_atmega328_jsys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ int main(int argc, char **argv) {
101101
uint8_t inner, outer;
102102

103103
tests_init(argc, argv);
104-
avr = tests_init_avr("atmega328pb_jsys.axf");
104+
avr = tests_init_avr("atmega328_jsys.axf");
105105

106106
avr_irq_register_notify(avr_get_core_irq(avr, AVR_CORE_BAD_OPCODE),
107107
jsys_handler, avr);

0 commit comments

Comments
 (0)