Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wovo committed Aug 29, 2020
1 parent d7f0b2b commit d6717f7
Show file tree
Hide file tree
Showing 70 changed files with 224 additions and 22 deletions.
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0010-empty/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0020-two/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0030-blink-direct/_cpp_flags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-mcpu=cortex-m3 -mthumb -fomit-frame-pointer -march=armv7-m -Wall -Werror -Wno-maybe-uninitialized -Wno-unused-local-typedefs -Wno-unused-but-set-variable -Wno-unused-local-typedefs -Wno-unused-function -Wno-attributes -Os -fdata-sections -ffunction-sections -IC:\Python36\include -I../../../../bmptk/targets/cortex/atmel -I../../../../bmptk/targets/cortex/atmel/sam3xa/include -I../../../library -I../../../../Catch2/single_include -I../../../../Catch2/single_include/catch2 -I../../../../boost_1_69_0 -I../../../../bmptk -I../../../../bmptk/targets -I../../../../bmptk/targets/cortex -I../../../../bmptk/targets/cortex/cmsis -DHWCPP_FAKE_OSTREAM -DDONT_USE_CMSIS_INIT -DBMPTK_INCLUDE_CHIP=sam.h -D__SAM3X8E__ -DBMPTK_TARGET=arduino_due -DBMPTK_TARGET_arduino_due -DHWLIB_TARGET_arduino_due -DHWCPP_TARGET_arduino_due -DGF_TARGET_arduino_due -DBMPTK_CHIP=sam3x8e -DBMPTK_CHIP_sam3x8e -DBMPTK_XTAL=12000 -DBMPTK_BAUDRATE=2400 -DHWLIB_BAUDRATE=2400 -DGODAFOSS_BAUDRATE=2400 -DGF_BAUDRATE=2400 -DBMPTK_VERSION=V04_00_work_in_progress_2020_05_23 -DBMPTK_EMBEDDED -std=c++17 -fconcepts -fno-rtti -fno-exceptions -fno-asynchronous-unwind-tables -fno-threadsafe-statics -fno-use-cxa-get-exception-ptr -fno-use-cxa-atexit -nostdlib -nodefaultlibs
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0030-blink-direct/_linker_flags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-mcpu=cortex-m3 -mthumb -fomit-frame-pointer -march=armv7-m -Wall -Werror -Wno-maybe-uninitialized -Wno-unused-local-typedefs -Wno-unused-but-set-variable -Wno-unused-local-typedefs -Wno-unused-function -Wno-attributes -Os -fdata-sections -ffunction-sections -IC:\Python36\include -I../../../../bmptk/targets/cortex/atmel -I../../../../bmptk/targets/cortex/atmel/sam3xa/include -I../../../library -I../../../../Catch2/single_include -I../../../../Catch2/single_include/catch2 -I../../../../boost_1_69_0 -I../../../../bmptk -I../../../../bmptk/targets -I../../../../bmptk/targets/cortex -I../../../../bmptk/targets/cortex/cmsis -DHWCPP_FAKE_OSTREAM -DDONT_USE_CMSIS_INIT -DBMPTK_INCLUDE_CHIP=sam.h -D__SAM3X8E__ -DBMPTK_TARGET=arduino_due -DBMPTK_TARGET_arduino_due -DHWLIB_TARGET_arduino_due -DHWCPP_TARGET_arduino_due -DGF_TARGET_arduino_due -DBMPTK_CHIP=sam3x8e -DBMPTK_CHIP_sam3x8e -DBMPTK_XTAL=12000 -DBMPTK_BAUDRATE=2400 -DHWLIB_BAUDRATE=2400 -DGODAFOSS_BAUDRATE=2400 -DGF_BAUDRATE=2400 -DBMPTK_VERSION=V04_00_work_in_progress_2020_05_23 -DBMPTK_EMBEDDED -lgcc -Wl,-Map,main.map -Wl,--gc-sections -Wl,-fatal-warnings
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0030-blink-direct/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
4 changes: 2 additions & 2 deletions demo/arduino-due/due-#0030-blink-direct/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ int main( void ){
PIOB->PIO_SODR = 0x01 << 27;

// wait some time
for( volatile uint32_t i = 0; i < 100'000; i++ ){}
for( uint32_t i = 0; i < 100'000; i++ ){ asm("nop"); }

// make the GPIO pin low
PIOB->PIO_CODR = 0x01 << 27;

// again, wait some time
for( volatile uint32_t i = 0; i < 100'000; i++ ){}
for( uint32_t i = 0; i < 100'000; i++ ){ asm("nop"); }

}
}
Expand Down
2 changes: 2 additions & 0 deletions demo/arduino-due/due-#0030-blink-direct/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ HEADERS :=
# other places to look for files for this project
SEARCH :=

RESULTS := main.lst main.lss

# set RELATIVE to the next higher directory
# and defer to the appropriate Makefile.* there
RELATIVE := ..
Expand Down
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0040-blink-gpio/_cpp_flags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-mcpu=cortex-m3 -mthumb -fomit-frame-pointer -march=armv7-m -Wall -Werror -Wno-maybe-uninitialized -Wno-unused-local-typedefs -Wno-unused-but-set-variable -Wno-unused-local-typedefs -Wno-unused-function -Wno-attributes -Os -fdata-sections -ffunction-sections -IC:\Python36\include -I../../../../bmptk/targets/cortex/atmel -I../../../../bmptk/targets/cortex/atmel/sam3xa/include -I../../../library -I../../../../Catch2/single_include -I../../../../Catch2/single_include/catch2 -I../../../../boost_1_69_0 -I../../../../bmptk -I../../../../bmptk/targets -I../../../../bmptk/targets/cortex -I../../../../bmptk/targets/cortex/cmsis -DHWCPP_FAKE_OSTREAM -DDONT_USE_CMSIS_INIT -DBMPTK_INCLUDE_CHIP=sam.h -D__SAM3X8E__ -DBMPTK_TARGET=arduino_due -DBMPTK_TARGET_arduino_due -DHWLIB_TARGET_arduino_due -DHWCPP_TARGET_arduino_due -DGF_TARGET_arduino_due -DBMPTK_CHIP=sam3x8e -DBMPTK_CHIP_sam3x8e -DBMPTK_XTAL=12000 -DBMPTK_BAUDRATE=2400 -DHWLIB_BAUDRATE=2400 -DGODAFOSS_BAUDRATE=2400 -DGF_BAUDRATE=2400 -DBMPTK_VERSION=V04_00_work_in_progress_2020_05_23 -DBMPTK_EMBEDDED -std=c++17 -fconcepts -fno-rtti -fno-exceptions -fno-asynchronous-unwind-tables -fno-threadsafe-statics -fno-use-cxa-get-exception-ptr -fno-use-cxa-atexit -nostdlib -nodefaultlibs
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0040-blink-gpio/_linker_flags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-mcpu=cortex-m3 -mthumb -fomit-frame-pointer -march=armv7-m -Wall -Werror -Wno-maybe-uninitialized -Wno-unused-local-typedefs -Wno-unused-but-set-variable -Wno-unused-local-typedefs -Wno-unused-function -Wno-attributes -Os -fdata-sections -ffunction-sections -IC:\Python36\include -I../../../../bmptk/targets/cortex/atmel -I../../../../bmptk/targets/cortex/atmel/sam3xa/include -I../../../library -I../../../../Catch2/single_include -I../../../../Catch2/single_include/catch2 -I../../../../boost_1_69_0 -I../../../../bmptk -I../../../../bmptk/targets -I../../../../bmptk/targets/cortex -I../../../../bmptk/targets/cortex/cmsis -DHWCPP_FAKE_OSTREAM -DDONT_USE_CMSIS_INIT -DBMPTK_INCLUDE_CHIP=sam.h -D__SAM3X8E__ -DBMPTK_TARGET=arduino_due -DBMPTK_TARGET_arduino_due -DHWLIB_TARGET_arduino_due -DHWCPP_TARGET_arduino_due -DGF_TARGET_arduino_due -DBMPTK_CHIP=sam3x8e -DBMPTK_CHIP_sam3x8e -DBMPTK_XTAL=12000 -DBMPTK_BAUDRATE=2400 -DHWLIB_BAUDRATE=2400 -DGODAFOSS_BAUDRATE=2400 -DGF_BAUDRATE=2400 -DBMPTK_VERSION=V04_00_work_in_progress_2020_05_23 -DBMPTK_EMBEDDED -lgcc -Wl,-Map,main.map -Wl,--gc-sections -Wl,-fatal-warnings
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0040-blink-gpio/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0050-uart-hello/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0060-uart-input/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0070-oled-lines/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0080-oled-circles/_cpp_flags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-mcpu=cortex-m3 -mthumb -fomit-frame-pointer -march=armv7-m -Wall -Werror -Wno-maybe-uninitialized -Wno-unused-local-typedefs -Wno-unused-but-set-variable -Wno-unused-local-typedefs -Wno-unused-function -Wno-attributes -Os -fdata-sections -ffunction-sections -IC:\Python36\include -I../../../../bmptk/targets/cortex/atmel -I../../../../bmptk/targets/cortex/atmel/sam3xa/include -I../../../library -I../../../../Catch2/single_include -I../../../../Catch2/single_include/catch2 -I../../../../boost_1_69_0 -I../../../../bmptk -I../../../../bmptk/targets -I../../../../bmptk/targets/cortex -I../../../../bmptk/targets/cortex/cmsis -DHWCPP_FAKE_OSTREAM -DDONT_USE_CMSIS_INIT -DBMPTK_INCLUDE_CHIP=sam.h -D__SAM3X8E__ -DBMPTK_TARGET=arduino_due -DBMPTK_TARGET_arduino_due -DHWLIB_TARGET_arduino_due -DHWCPP_TARGET_arduino_due -DGF_TARGET_arduino_due -DBMPTK_CHIP=sam3x8e -DBMPTK_CHIP_sam3x8e -DBMPTK_XTAL=12000 -DBMPTK_BAUDRATE=2400 -DHWLIB_BAUDRATE=2400 -DGODAFOSS_BAUDRATE=2400 -DGF_BAUDRATE=2400 -DBMPTK_VERSION=V04_00_work_in_progress_2020_05_23 -DBMPTK_EMBEDDED -std=c++17 -fconcepts -fno-rtti -fno-exceptions -fno-asynchronous-unwind-tables -fno-threadsafe-statics -fno-use-cxa-get-exception-ptr -fno-use-cxa-atexit -nostdlib -nodefaultlibs
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0080-oled-circles/_linker_flags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-mcpu=cortex-m3 -mthumb -fomit-frame-pointer -march=armv7-m -Wall -Werror -Wno-maybe-uninitialized -Wno-unused-local-typedefs -Wno-unused-but-set-variable -Wno-unused-local-typedefs -Wno-unused-function -Wno-attributes -Os -fdata-sections -ffunction-sections -IC:\Python36\include -I../../../../bmptk/targets/cortex/atmel -I../../../../bmptk/targets/cortex/atmel/sam3xa/include -I../../../library -I../../../../Catch2/single_include -I../../../../Catch2/single_include/catch2 -I../../../../boost_1_69_0 -I../../../../bmptk -I../../../../bmptk/targets -I../../../../bmptk/targets/cortex -I../../../../bmptk/targets/cortex/cmsis -DHWCPP_FAKE_OSTREAM -DDONT_USE_CMSIS_INIT -DBMPTK_INCLUDE_CHIP=sam.h -D__SAM3X8E__ -DBMPTK_TARGET=arduino_due -DBMPTK_TARGET_arduino_due -DHWLIB_TARGET_arduino_due -DHWCPP_TARGET_arduino_due -DGF_TARGET_arduino_due -DBMPTK_CHIP=sam3x8e -DBMPTK_CHIP_sam3x8e -DBMPTK_XTAL=12000 -DBMPTK_BAUDRATE=2400 -DHWLIB_BAUDRATE=2400 -DGODAFOSS_BAUDRATE=2400 -DGF_BAUDRATE=2400 -DBMPTK_VERSION=V04_00_work_in_progress_2020_05_23 -DBMPTK_EMBEDDED -lgcc -Wl,-Map,main.map -Wl,--gc-sections -Wl,-fatal-warnings
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0080-oled-circles/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0085-oled-circles-direct/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0090-oled-text/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0100-oled-windows/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0110-matrix-switches/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0120-matrix-istream/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0130-xy/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0140-oled-timing/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0150-pcf8591-adc/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0160-pcf8591-dac/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0170-timing/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0180-constexpr/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0190-dmp280/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0200-background/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0210-panel/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0220-panel-header-bw/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0220-panel-header/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0225-panel-plastic/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0230-ht1632/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0230-hx711/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0240-blinkers/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0300-buffer-oled/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0310-servos-sweep/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0320-servos-joystick/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0330-neopixel/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0400-servo-middle/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0410-keypad-servo/_cpp_flags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-mcpu=cortex-m3 -mthumb -fomit-frame-pointer -march=armv7-m -Wall -Werror -Wno-maybe-uninitialized -Wno-unused-local-typedefs -Wno-unused-but-set-variable -Wno-unused-local-typedefs -Wno-unused-function -Wno-attributes -Os -fdata-sections -ffunction-sections -IC:\Python36\include -I../../../../bmptk/targets/cortex/atmel -I../../../../bmptk/targets/cortex/atmel/sam3xa/include -I../../../library -I../../../../Catch2/single_include -I../../../../Catch2/single_include/catch2 -I../../../../boost_1_69_0 -I../../../../bmptk -I../../../../bmptk/targets -I../../../../bmptk/targets/cortex -I../../../../bmptk/targets/cortex/cmsis -DHWCPP_FAKE_OSTREAM -DDONT_USE_CMSIS_INIT -DBMPTK_INCLUDE_CHIP=sam.h -D__SAM3X8E__ -DBMPTK_TARGET=arduino_due -DBMPTK_TARGET_arduino_due -DHWLIB_TARGET_arduino_due -DHWCPP_TARGET_arduino_due -DGF_TARGET_arduino_due -DBMPTK_CHIP=sam3x8e -DBMPTK_CHIP_sam3x8e -DBMPTK_XTAL=12000 -DBMPTK_BAUDRATE=2400 -DHWLIB_BAUDRATE=2400 -DGODAFOSS_BAUDRATE=2400 -DGF_BAUDRATE=2400 -DBMPTK_VERSION=V04_00_work_in_progress_2020_05_23 -DBMPTK_EMBEDDED -std=c++17 -fconcepts -fno-rtti -fno-exceptions -fno-asynchronous-unwind-tables -fno-threadsafe-statics -fno-use-cxa-get-exception-ptr -fno-use-cxa-atexit -nostdlib -nodefaultlibs
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0410-keypad-servo/_linker_flags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-mcpu=cortex-m3 -mthumb -fomit-frame-pointer -march=armv7-m -Wall -Werror -Wno-maybe-uninitialized -Wno-unused-local-typedefs -Wno-unused-but-set-variable -Wno-unused-local-typedefs -Wno-unused-function -Wno-attributes -Os -fdata-sections -ffunction-sections -IC:\Python36\include -I../../../../bmptk/targets/cortex/atmel -I../../../../bmptk/targets/cortex/atmel/sam3xa/include -I../../../library -I../../../../Catch2/single_include -I../../../../Catch2/single_include/catch2 -I../../../../boost_1_69_0 -I../../../../bmptk -I../../../../bmptk/targets -I../../../../bmptk/targets/cortex -I../../../../bmptk/targets/cortex/cmsis -DHWCPP_FAKE_OSTREAM -DDONT_USE_CMSIS_INIT -DBMPTK_INCLUDE_CHIP=sam.h -D__SAM3X8E__ -DBMPTK_TARGET=arduino_due -DBMPTK_TARGET_arduino_due -DHWLIB_TARGET_arduino_due -DHWCPP_TARGET_arduino_due -DGF_TARGET_arduino_due -DBMPTK_CHIP=sam3x8e -DBMPTK_CHIP_sam3x8e -DBMPTK_XTAL=12000 -DBMPTK_BAUDRATE=2400 -DHWLIB_BAUDRATE=2400 -DGODAFOSS_BAUDRATE=2400 -DGF_BAUDRATE=2400 -DBMPTK_VERSION=V04_00_work_in_progress_2020_05_23 -DBMPTK_EMBEDDED -lgcc -Wl,-Map,main.map -Wl,--gc-sections -Wl,-fatal-warnings
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0410-keypad-servo/_run.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bmptk-make run
2 changes: 1 addition & 1 deletion demo/arduino-due/due-#0410-keypad-servo/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ HEADERS :=
# other places to look for files for this project
SEARCH :=


RESULTS := main.lst main.lss

# set RELATIVE to the next higher directory
# and defer to the appropriate Makefile.* there
Expand Down
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0420-lcd-16x2/_cpp_flags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-mcpu=cortex-m3 -mthumb -fomit-frame-pointer -march=armv7-m -Wall -Werror -Wno-maybe-uninitialized -Wno-unused-local-typedefs -Wno-unused-but-set-variable -Wno-unused-local-typedefs -Wno-unused-function -Wno-attributes -Os -fdata-sections -ffunction-sections -IC:\Python36\include -I../../../../bmptk/targets/cortex/atmel -I../../../../bmptk/targets/cortex/atmel/sam3xa/include -I../../../library -I../../../../Catch2/single_include -I../../../../Catch2/single_include/catch2 -I../../../../boost_1_69_0 -I../../../../bmptk -I../../../../bmptk/targets -I../../../../bmptk/targets/cortex -I../../../../bmptk/targets/cortex/cmsis -DHWCPP_FAKE_OSTREAM -DDONT_USE_CMSIS_INIT -DBMPTK_INCLUDE_CHIP=sam.h -D__SAM3X8E__ -DBMPTK_TARGET=arduino_due -DBMPTK_TARGET_arduino_due -DHWLIB_TARGET_arduino_due -DHWCPP_TARGET_arduino_due -DGF_TARGET_arduino_due -DBMPTK_CHIP=sam3x8e -DBMPTK_CHIP_sam3x8e -DBMPTK_XTAL=12000 -DBMPTK_BAUDRATE=2400 -DHWLIB_BAUDRATE=2400 -DGODAFOSS_BAUDRATE=2400 -DGF_BAUDRATE=2400 -DBMPTK_VERSION=V04_00_work_in_progress_2020_05_23 -DBMPTK_EMBEDDED -std=c++17 -fconcepts -fno-rtti -fno-exceptions -fno-asynchronous-unwind-tables -fno-threadsafe-statics -fno-use-cxa-get-exception-ptr -fno-use-cxa-atexit -nostdlib -nodefaultlibs
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0420-lcd-16x2/_linker_flags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-mcpu=cortex-m3 -mthumb -fomit-frame-pointer -march=armv7-m -Wall -Werror -Wno-maybe-uninitialized -Wno-unused-local-typedefs -Wno-unused-but-set-variable -Wno-unused-local-typedefs -Wno-unused-function -Wno-attributes -Os -fdata-sections -ffunction-sections -IC:\Python36\include -I../../../../bmptk/targets/cortex/atmel -I../../../../bmptk/targets/cortex/atmel/sam3xa/include -I../../../library -I../../../../Catch2/single_include -I../../../../Catch2/single_include/catch2 -I../../../../boost_1_69_0 -I../../../../bmptk -I../../../../bmptk/targets -I../../../../bmptk/targets/cortex -I../../../../bmptk/targets/cortex/cmsis -DHWCPP_FAKE_OSTREAM -DDONT_USE_CMSIS_INIT -DBMPTK_INCLUDE_CHIP=sam.h -D__SAM3X8E__ -DBMPTK_TARGET=arduino_due -DBMPTK_TARGET_arduino_due -DHWLIB_TARGET_arduino_due -DHWCPP_TARGET_arduino_due -DGF_TARGET_arduino_due -DBMPTK_CHIP=sam3x8e -DBMPTK_CHIP_sam3x8e -DBMPTK_XTAL=12000 -DBMPTK_BAUDRATE=2400 -DHWLIB_BAUDRATE=2400 -DGODAFOSS_BAUDRATE=2400 -DGF_BAUDRATE=2400 -DBMPTK_VERSION=V04_00_work_in_progress_2020_05_23 -DBMPTK_EMBEDDED -lgcc -Wl,-Map,main.map -Wl,--gc-sections -Wl,-fatal-warnings
45 changes: 45 additions & 0 deletions demo/arduino-due/due-#0420-lcd-16x2/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// ==========================================================================
//
// Hello world on an Arduino Uno
//
// (c) Wouter van Ooijen ([email protected]) 2017
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// ==========================================================================

#include "hwlib.hpp"

namespace target = hwlib::target;

int main( void ){
auto d4 = target::pin_out( target::pins::d4 );
auto d5 = target::pin_out( target::pins::d5 );
auto d6 = target::pin_out( target::pins::d6 );
auto d7 = target::pin_out( target::pins::d7 );
auto d = hwlib::port_out_from( d4, d5, d6, d7 );
auto rs = target::pin_out( target::pins::d8 );
auto e = target::pin_out( target::pins::d9 );
auto bl = target::pin_out( target::pins::d10 );

// select the LCD size.
// the shield has a 2 x 16 LCD
// auto lcd = hwlib::hd44780( rs, e, d, 1, 16 );
auto lcd = hwlib::hd44780( rs, e, d, hwlib::xy( 16, 2) );
// auto lcd = hwlib::hd44780( rs, e, d, 4, 20 );
// auto lcd = hwlib::hd44780( rs, e, d, 2, 40 );

bl.write( 0 );
hwlib::wait_ms( 500 );
bl.write( 1 );

lcd
<< "\fHello world! | this is only for a"
<< "\nnice to meet you | 40 col. display."
<< "\t0002line 3 ============X"
<< "\nline 4 ============X"
<< hwlib::flush;

}
27 changes: 27 additions & 0 deletions demo/arduino-due/due-#0420-lcd-16x2/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#============================================================================
#
# simple project makefile (just a main file)
#
# (c) Wouter van Ooijen ([email protected]) 2017
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
#
#============================================================================

# source files in this project (main.* is automatically assumed)
SOURCES :=

# header files in this project
HEADERS :=

# other places to look for files for this project
SEARCH :=



# set RELATIVE to the next higher directory
# and defer to the appropriate Makefile.* there
RELATIVE := ..
include $(RELATIVE)/makefile.link
1 change: 1 addition & 0 deletions demo/arduino-due/due-#0430-pcfa8574a-lcd-16x2/_cpp_flags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-mcpu=cortex-m3 -mthumb -fomit-frame-pointer -march=armv7-m -Wall -Werror -Wno-maybe-uninitialized -Wno-unused-local-typedefs -Wno-unused-but-set-variable -Wno-unused-local-typedefs -Wno-unused-function -Wno-attributes -Os -fdata-sections -ffunction-sections -IC:\Python36\include -I../../../../bmptk/targets/cortex/atmel -I../../../../bmptk/targets/cortex/atmel/sam3xa/include -I../../../library -I../../../../Catch2/single_include -I../../../../Catch2/single_include/catch2 -I../../../../boost_1_69_0 -I../../../../bmptk -I../../../../bmptk/targets -I../../../../bmptk/targets/cortex -I../../../../bmptk/targets/cortex/cmsis -DHWCPP_FAKE_OSTREAM -DDONT_USE_CMSIS_INIT -DBMPTK_INCLUDE_CHIP=sam.h -D__SAM3X8E__ -DBMPTK_TARGET=arduino_due -DBMPTK_TARGET_arduino_due -DHWLIB_TARGET_arduino_due -DHWCPP_TARGET_arduino_due -DGF_TARGET_arduino_due -DBMPTK_CHIP=sam3x8e -DBMPTK_CHIP_sam3x8e -DBMPTK_XTAL=12000 -DBMPTK_BAUDRATE=2400 -DHWLIB_BAUDRATE=2400 -DGODAFOSS_BAUDRATE=2400 -DGF_BAUDRATE=2400 -DBMPTK_VERSION=V04_00_work_in_progress_2020_05_23 -DBMPTK_EMBEDDED -std=c++17 -fconcepts -fno-rtti -fno-exceptions -fno-asynchronous-unwind-tables -fno-threadsafe-statics -fno-use-cxa-get-exception-ptr -fno-use-cxa-atexit -nostdlib -nodefaultlibs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-mcpu=cortex-m3 -mthumb -fomit-frame-pointer -march=armv7-m -Wall -Werror -Wno-maybe-uninitialized -Wno-unused-local-typedefs -Wno-unused-but-set-variable -Wno-unused-local-typedefs -Wno-unused-function -Wno-attributes -Os -fdata-sections -ffunction-sections -IC:\Python36\include -I../../../../bmptk/targets/cortex/atmel -I../../../../bmptk/targets/cortex/atmel/sam3xa/include -I../../../library -I../../../../Catch2/single_include -I../../../../Catch2/single_include/catch2 -I../../../../boost_1_69_0 -I../../../../bmptk -I../../../../bmptk/targets -I../../../../bmptk/targets/cortex -I../../../../bmptk/targets/cortex/cmsis -DHWCPP_FAKE_OSTREAM -DDONT_USE_CMSIS_INIT -DBMPTK_INCLUDE_CHIP=sam.h -D__SAM3X8E__ -DBMPTK_TARGET=arduino_due -DBMPTK_TARGET_arduino_due -DHWLIB_TARGET_arduino_due -DHWCPP_TARGET_arduino_due -DGF_TARGET_arduino_due -DBMPTK_CHIP=sam3x8e -DBMPTK_CHIP_sam3x8e -DBMPTK_XTAL=12000 -DBMPTK_BAUDRATE=2400 -DHWLIB_BAUDRATE=2400 -DGODAFOSS_BAUDRATE=2400 -DGF_BAUDRATE=2400 -DBMPTK_VERSION=V04_00_work_in_progress_2020_05_23 -DBMPTK_EMBEDDED -lgcc -Wl,-Map,main.map -Wl,--gc-sections -Wl,-fatal-warnings
Loading

0 comments on commit d6717f7

Please sign in to comment.