Skip to content

Commit

Permalink
Changing the board was made to be more convenient.
Browse files Browse the repository at this point in the history
  • Loading branch information
buzden committed Nov 3, 2020
1 parent 86bf2c5 commit b7c6e58
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 19 deletions.
24 changes: 5 additions & 19 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,13 @@
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
# Choose the board you have
include aux-makefiles/board-uno.mk
#include aux-makefiles/board-mega2560.mk
#include aux-makefiles/board-due.mk

include Idris2.mk
include aux-makefiles/Idris2.mk
File renamed without changes.
5 changes: 5 additions & 0 deletions aux-makefiles/board-due.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include aux-makefiles/proc-sam.mk

# For Arduino Due
BOARD_TAG=arduino_due_x
ARCHITECTURE=sam
5 changes: 5 additions & 0 deletions aux-makefiles/board-mega2560.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include aux-makefiles/proc-avr.mk

# For Arduino Mega 2560
BOARD_TAG=mega
BOARD_SUB=atmega2560
4 changes: 4 additions & 0 deletions aux-makefiles/board-uno.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include aux-makefiles/proc-avr.mk

# For Arduino Uno
BOARD_TAG=uno
4 changes: 4 additions & 0 deletions aux-makefiles/proc-avr.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# For AVR-based boards
AVR_TOOLS_DIR=/usr
AVRDUDE_CONF=/etc/avrdude.conf
ARDUINO_MAKEFILE_PATH=arduino-makefile/Arduino.mk
2 changes: 2 additions & 0 deletions aux-makefiles/proc-sam.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# For ARM SAM-based boards
ARDUINO_MAKEFILE_PATH=arduino-makefile/Sam.mk

0 comments on commit b7c6e58

Please sign in to comment.