Skip to content

Commit

Permalink
Particular example of running was added.
Browse files Browse the repository at this point in the history
Everything third-party was added as submodules.
Makefile contains examples for different types of boards:
  - AVR-based Uno and Mega 2560;
  - ARM SAM-based Due.
  • Loading branch information
buzden committed Nov 3, 2020
1 parent a4f48a4 commit 86bf2c5
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 14 deletions.
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "arduino-makefile"]
path = arduino-makefile
url = https://github.com/sudar/Arduino-Makefile
[submodule "rts"]
path = rts
url = https://github.com/buzden/idris2-rts-for-arduino
27 changes: 27 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
ARDUINO_PACKAGE_DIR := $(HOME)/.arduino15/packages
ADRUINO_DIR=/usr/share/arduino

# For AVR-based boards
AVR_TOOLS_DIR=/usr
AVRDUDE_CONF=/etc/avrdude.conf
ARDUINO_MAKEFILE_PATH=arduino-makefile/Arduino.mk

# For ARM SAM-based boards
#ARDUINO_MAKEFILE_PATH=arduino-makefile/Sam.mk

IDRIS_SUPPORT_SRC_PATH=rts

IDRIS_MAIN=Blink.idr

# For Arduino Uno
BOARD_TAG=uno

# For Arduino Mega 2560
#BOARD_TAG=mega
#BOARD_SUB=atmega2560

# For Arduino Due
#BOARD_TAG=arduino_due_x
#ARCHITECTURE=sam

include Idris2.mk
14 changes: 0 additions & 14 deletions Makefile.example

This file was deleted.

1 change: 1 addition & 0 deletions arduino-makefile
Submodule arduino-makefile added at 7ac13d
1 change: 1 addition & 0 deletions rts
Submodule rts added at a6e214

0 comments on commit 86bf2c5

Please sign in to comment.