Skip to content

Commit

Permalink
Adding support for Arduino Nano 33 IoT
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger committed Apr 22, 2020
1 parent 9cdc5dd commit bd4ed57
Show file tree
Hide file tree
Showing 4 changed files with 1,028 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/SNU/extras/NiNaBoot/NiNaBoot.ino
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main() {
FPGA.digitalWrite(NINA_GPIO0, HIGH);
FPGA.pinMode (NINA_RESETN, OUTPUT);
FPGA.digitalWrite(NINA_RESETN, HIGH);
#elif defined(ARDUINO_SAMD_MKRWIFI1010)
#elif defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_NANO_33_IOT)
/* NINA select SPI mode and enable (by setting RESETN = '1') */
pinMode (NINA_GPIO0, OUTPUT);
digitalWrite(NINA_GPIO0, HIGH);
Expand Down
1 change: 1 addition & 0 deletions libraries/SNU/extras/NiNaBoot/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ mkdir -p "$OUTPUT_PATH"

buildSDUBootSketch "arduino:samd:mkrwifi1010" "$OUTPUT_PATH/mkrwifi1010.h"
buildSDUBootSketch "arduino:samd:mkrvidor4000" "$OUTPUT_PATH/mkrvidor4000.h"
buildSDUBootSketch "arduino:samd:nano_33_iot" "$OUTPUT_PATH/nano33iot.h"
2 changes: 2 additions & 0 deletions libraries/SNU/src/SNU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ unsigned char sduBoot[0x4000] = {
#include "boot/mkrwifi1010.h"
#elif defined(ARDUINO_SAMD_MKRVIDOR4000)
#include "boot/mkrvidor4000.h"
#elif defined(ARDUINO_SAMD_NANO_33_IOT)
#include "boot/nano33iot.h"
#else
#error "Unsupported board!"
#endif
Expand Down
Loading

0 comments on commit bd4ed57

Please sign in to comment.