File tree Expand file tree Collapse file tree 8 files changed +147
-1
lines changed Expand file tree Collapse file tree 8 files changed +147
-1
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ jobs:
176176 - name : Examples AVR Series
177177 if : always()
178178 run : |
179- (cd examples && ../tools/scripts/examples_compile.py avr arduino_uno arduino_nano)
179+ (cd examples && ../tools/scripts/examples_compile.py avr arduino_uno arduino_nano srxe )
180180 - name : Compile AVR Unittests AT90CAN
181181 if : always()
182182 run : |
Original file line number Diff line number Diff line change @@ -525,6 +525,7 @@ We have out-of-box support for many development boards including documentation.
525525</tr ><tr >
526526<td align =" center " ><a href =" https://modm.io/reference/module/modm-board-stm32_f4ve " >STM32-F4VE</a ></td >
527527<td align =" center " ><a href =" https://modm.io/reference/module/modm-board-stm32f030_demo " >STM32F030-DEMO</a ></td >
528+ <td align =" center " ><a href =" https://modm.io/reference/module/modm-board-srxe " >Smart Response XE</a ></td >
528529</tr >
529530</table >
530531<!-- /bsptable-->
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2021, Tomasz Wasilczyk
3+ *
4+ * This file is part of the modm project.
5+ *
6+ * This Source Code Form is subject to the terms of the Mozilla Public
7+ * License, v. 2.0. If a copy of the MPL was not distributed with this
8+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9+ */
10+ // ----------------------------------------------------------------------------
11+
12+ #include < modm/board.hpp>
13+
14+ int
15+ main ()
16+ {
17+ Board::initialize ();
18+
19+ while (true )
20+ {
21+ Board::LedDebug::toggle ();
22+ modm::delay (1s);
23+ }
24+ }
Original file line number Diff line number Diff line change 1+ <library >
2+ <extends >modm:srxe</extends >
3+ <options >
4+ <option name =" modm:build:build.path" >../../../build/srxe/blink</option >
5+ </options >
6+ <modules >
7+ <module >modm:build:scons</module >
8+ </modules >
9+ </library >
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2021, Tomasz Wasilczyk
3+ *
4+ * This file is part of the modm project.
5+ *
6+ * This Source Code Form is subject to the terms of the Mozilla Public
7+ * License, v. 2.0. If a copy of the MPL was not distributed with this
8+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9+ */
10+ // ----------------------------------------------------------------------------
11+
12+ #pragma once
13+
14+ #include < modm/platform.hpp>
15+
16+ using namespace modm ::platform;
17+
18+ // / @ingroup modm_board_srxe
19+ namespace Board {
20+
21+ using namespace modm ::literals;
22+
23+ using SystemClock = modm::platform::SystemClock;
24+
25+ using LedDebug = GpioB0;
26+ using Leds = SoftwareGpioPort<LedDebug>;
27+
28+ namespace Display {
29+
30+ using DC = GpioD6;
31+ using CS = GpioE7;
32+ using RST = GpioG2;
33+
34+ } // namespace Display
35+
36+ inline void
37+ initialize () {
38+ SystemClock::enable ();
39+
40+ LedDebug::setOutput ();
41+
42+ enableInterrupts ();
43+ }
44+
45+ } // namespace Board
Original file line number Diff line number Diff line change 1+ <library >
2+ <repositories >
3+ <repository >
4+ <path >../../../../repo.lb</path >
5+ </repository >
6+ </repositories >
7+
8+ <options >
9+ <option name =" modm:target" >atmega128rfa1-zu</option >
10+ <option name =" modm:platform:core:f_cpu" >16000000</option >
11+ </options >
12+ <modules >
13+ <module >modm:board:srxe</module >
14+ </modules >
15+ </library >
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+ # -*- coding: utf-8 -*-
3+ #
4+ # Copyright (c) 2021, Tomasz Wasilczyk
5+ #
6+ # This file is part of the modm project.
7+ #
8+ # This Source Code Form is subject to the terms of the Mozilla Public
9+ # License, v. 2.0. If a copy of the MPL was not distributed with this
10+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
11+ # -----------------------------------------------------------------------------
12+
13+ def init (module ):
14+ module .name = ":board:srxe"
15+ module .description = """
16+ # Smart Response XE
17+
18+ Smart Response XE is an obsolete classroom clicker, sold for as little as 5 USD on well known online auction site.
19+ It's a compelling platform that's fully reverse engineered and ready to hack out of box, featuring:
20+ - ATmega128RFA1 MCU
21+ - 384x160 LCD display
22+ - QWERTY keyboard
23+ - External 1M SPI flash
24+ - Exposed ISP and JTAG headers
25+ - ZigBee transciever w/ antennas
26+ - Powered by 4 AAA batteries
27+ - Optional (unpopulated):
28+ - RS232
29+ - Debug LED
30+ - Buzzer
31+ - Accelerometer
32+ """
33+
34+ def prepare (module , options ):
35+ if not options [":target" ].partname .startswith ("atmega128rfa1" ):
36+ return False
37+
38+ module .depends (
39+ ":architecture:clock" ,
40+ ":architecture:interrupt" ,
41+ ":debug" ,
42+ ":platform:clock" ,
43+ ":platform:core" ,
44+ ":platform:gpio" ,
45+ ":platform:uart:0" )
46+ return True
47+
48+ def build (env ):
49+ env .outbasepath = "modm/src/modm/board"
50+ env .copy ('.' )
51+ env .collect (":build:default.avrdude.programmer" , "usbasp" );
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ def name(raw_name):
5252 .replace ("ARDUINO-UNO" , "Arduino UNO" )\
5353 .replace ("ARDUINO-NANO" , "Arduino NANO" )\
5454 .replace ("RASPBERRYPI" , "Raspberry Pi" )\
55+ .replace ("SRXE" , "Smart Response XE" )\
5556 .replace ("GENERIC" , "Generic" )\
5657 .replace ("LINUX" , "Linux" )\
5758 .replace ("WINDOWS" , "Windows" )\
You can’t perform that action at this time.
0 commit comments