Added project
This commit is contained in:
parent
fe9aa14dfd
commit
2d73cc8845
186 changed files with 21174 additions and 0 deletions
22
xnode-mega-flash/Makefile
Normal file
22
xnode-mega-flash/Makefile
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
|
||||
# Define out program
|
||||
SKT_PDE_SRC = XnodeMegaFlash.cpp
|
||||
|
||||
# This needs more flash so use mega board
|
||||
BOARD = megaADK
|
||||
|
||||
# Define the program to flash (needs single file)
|
||||
MASTER_FLASH_PROG = ../xnode-base/build/xnode-base.hex
|
||||
|
||||
# Defines extra pairs of boot+image to flash(note optiboot get replaces by optiboot hex)
|
||||
MASTER_FLASH_PAIR_EXTRA = \
|
||||
optiboot \
|
||||
../xnode-satellite/build/xnode-satellite.hex \
|
||||
optiboot \
|
||||
../xnode-test-blink/build/xnode-test-blink.hex \
|
||||
optiboot \
|
||||
../xnode-satellite/build/xnode-satellite.hex
|
||||
|
||||
# Include our master flash build
|
||||
include ../lib-build/make/Makefile.master-flash
|
||||
|
||||
17
xnode-mega-flash/XnodeMegaFlash.cpp
Normal file
17
xnode-mega-flash/XnodeMegaFlash.cpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* Xnode Satellite Flash
|
||||
*/
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <MegaIspRepair.h>
|
||||
#include <xnode-flashdata.generated>
|
||||
|
||||
MegaIspRepair megaIspRepair;
|
||||
|
||||
void setup() {
|
||||
}
|
||||
|
||||
void loop() {
|
||||
megaIspRepair.run("XnodeMegaFlash", sections);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue