Skip to content

Commit 7e25bb5

Browse files
committed
MCU8MASS-1789 Remove references to maxi board
1 parent 681518d commit 7e25bb5

File tree

9 files changed

+2
-129
lines changed

9 files changed

+2
-129
lines changed

examples/debug_modem/debug_modem.ino

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,8 @@ void loop() { debugBridgeUpdate(); }
1313

1414
// ------------------------------ DEBUG BRIDGE ----------------------------- //
1515

16-
#ifdef __AVR_AVR128DB48__ // MINI
17-
1816
#define SerialDebug Serial3
1917

20-
#else
21-
#ifdef __AVR_AVR128DB64__ // Non-Mini
22-
23-
#define SerialDebug Serial5
24-
25-
#else
26-
#error "INCOMPATIBLE_DEVICE_SELECTED"
27-
#endif
28-
#endif
29-
3018
#define DEL_CHARACTER 127
3119
#define ENTER_CHARACTER 13
3220

mini_port.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

scripts/compile_examples.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ BOARD_CONFIG="DxCore:megaavr:avrdb:appspm=no,chip=avr128db48,clock=24internal,bo
55
# Test for AVR-IoT Cellular Mini
66
for d in examples/*/ ; do
77
echo "Compiling $d...";
8-
arduino-cli compile -b $BOARD_CONFIG --libraries=".." "$d" --output-dir "builds/mini/$(basename $d)";
8+
arduino-cli compile -b $BOARD_CONFIG --libraries=".." "$d" --build-path "builds/mini/$(basename $d)";
99

1010
# Check the error code
1111
if [ $? != 0 ]; then

scripts/make.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ fi
1111
echo "Compiling..."
1212

1313
# Extra args appended to the end, e.g. --clean by the $1 flag
14-
arduino-cli compile "$TARGET" -b $BOARD_CONFIG --output-dir "$SCRIPTPATH/../build" $1
14+
arduino-cli compile "$TARGET" -b $BOARD_CONFIG --build-path "$SCRIPTPATH/../build" $1

src/hal_i2c_driver.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,9 @@
1010
#include <Arduino.h>
1111
#include <Wire.h>
1212

13-
#ifdef __AVR_AVR128DB48__ // MINI
14-
1513
#define WIRE Wire
1614
#define WIRE_MUX 2
1715

18-
#else
19-
#ifdef __AVR_AVR128DB64__ // Non-Mini
20-
21-
#define WIRE Wire1
22-
#define WIRE_MUX 2
23-
24-
#else
25-
#error "INCOMPATIBLE_DEVICE_SELECTED"
26-
#endif
27-
#endif
28-
2916
ATCA_STATUS hal_i2c_init(ATCAIface iface, ATCAIfaceCfg* cfg) {
3017
WIRE.swap(WIRE_MUX);
3118
WIRE.setClock(cfg->atcai2c.baud);

src/led_ctrl.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,12 @@
33

44
#include <util/delay.h>
55

6-
#ifdef __AVR_AVR128DB48__ // MINI
7-
86
#define LED_CELL_PIN PIN_PA0
97
#define LED_CON_PIN PIN_PA1
108
#define LED_DATA_PIN PIN_PA2
119
#define LED_ERROR_PIN PIN_PA3
1210
#define LED_USER_PIN PIN_PB2
1311

14-
#else
15-
#ifdef __AVR_AVR128DB64__ // NON-MINI
16-
17-
#define LED_CELL_PIN PIN_PG2
18-
#define LED_CON_PIN PIN_PG3
19-
#define LED_DATA_PIN PIN_PG4
20-
#define LED_ERROR_PIN PIN_PG5
21-
#define LED_USER_PIN PIN_PB0
22-
23-
#else
24-
#error "INCOMPATIBLE_DEVICE_SELECTED"
25-
#endif
26-
#endif
27-
2812
static bool manual_control_enabled = false;
2913

3014
void LedCtrlClass::begin() {

src/log.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,7 @@
1111
#define DEBUG_LEVEL_FMT "[DEBUG] "
1212
#define WARN_LEVEL_FMT "[WARN] "
1313

14-
#ifdef __AVR_AVR128DB48__ // MINI
1514
LogClass Log(&Serial3);
16-
#else
17-
#ifdef __AVR_AVR128DB64__ // NON-MINI
18-
LogClass Log(&Serial5);
19-
#else
20-
#error "INCOMPATIBLE_DEVICE_SELECTED"
21-
#endif
22-
#endif
2315

2416
int16_t printf_putchar(char c, FILE* fp) {
2517
((class Print*)(fdev_get_udata(fp)))->write((uint8_t)c);

src/low_power.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -68,30 +68,13 @@
6868
#define TIMER_LENGTH 11
6969
#define TIMER_SLEEP_INDEX 8
7070

71-
#ifdef __AVR_AVR128DB48__ // MINI
72-
7371
#define RING_PORT PORTC
7472
#define RING_PIN_bm PIN6_bm
7573

7674
#define LOWQ_PIN PIN_PB4
7775
#define VOLTAGE_MEASURE_EN_PIN PIN_PB3
7876
#define VOLTAGE_MEASURE_PIN PIN_PE0
7977

80-
#else
81-
82-
#ifdef __AVR_AVR128DB64__ // Non-Mini
83-
84-
#define RING_PORT PORTC
85-
#define RING_PIN_bm PIN4_bm
86-
87-
#define LOWQ_PIN PIN_PB4
88-
#define VOLTAGE_MEASURE_EN_PIN PIN_PB3
89-
#define VOLTAGE_MEASURE_PIN PIN_PE0
90-
91-
#else
92-
#error "INCOMPATIBLE_DEVICE_SELECTED"
93-
#endif
94-
#endif
9578
// Singleton. Defined for use of the rest of the library.
9679
LowPowerClass LowPower = LowPowerClass::instance();
9780

src/sequans_controller.cpp

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
#include <string.h>
1212
#include <util/delay.h>
1313

14-
#ifdef __AVR_AVR128DB48__ // MINI
15-
1614
#define TX_PIN PIN_PC0
1715
#define RX_PIN PIN_PC1
1816

@@ -27,29 +25,6 @@
2725
#define RESET_PIN PIN_PC5
2826
#define HWSERIALAT USART1
2927

30-
#else
31-
32-
#ifdef __AVR_AVR128DB64__ // Non-Mini
33-
34-
#define TX_PIN PIN_PC0
35-
#define RX_PIN PIN_PC1
36-
37-
#define CTS_PIN PIN_PC6
38-
#define CTS_PIN_bm PIN6_bm
39-
#define CTS_INT_bm PORT_INT6_bm
40-
#define RING_PIN PIN_PC4
41-
#define RING_INT_bm PORT_INT4_bm
42-
#define RTS_PORT PORTC
43-
#define RTS_PIN PIN_PC7
44-
#define RTS_PIN_bm PIN7_bm
45-
#define RESET_PIN PIN_PE1
46-
#define HWSERIALAT USART1
47-
48-
#else
49-
#error "INCOMPATIBLE_DEVICE_SELECTED"
50-
#endif
51-
#endif
52-
5328
#define SEQUANS_MODULE_BAUD_RATE 115200
5429

5530
// Defines for the amount of retries before we timeout and the interval between

0 commit comments

Comments
 (0)