summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-12-04 08:03:37 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-12-04 08:03:37 +0100
commit7a0173db5f0acf0848ccc0589f64f08f44782337 (patch)
treefe6cbea16d9fef97b3af6e1d6db6f6b20c61a07a
parent266f97c83e6491acb18acf6d10dd018b4713642c (diff)
add monitor info to help output
-rw-r--r--src/arch/arduino-nano-168/Makefile.inc1
-rw-r--r--src/arch/arduino-nano/Makefile.inc1
-rw-r--r--src/arch/blinkenrocket/Makefile.inc1
-rw-r--r--src/arch/esp8266/Makefile.inc1
-rw-r--r--src/arch/msp430fr5969lp/Makefile.inc1
-rw-r--r--src/arch/posix/Makefile.inc5
6 files changed, 10 insertions, 0 deletions
diff --git a/src/arch/arduino-nano-168/Makefile.inc b/src/arch/arduino-nano-168/Makefile.inc
index d89bf6d..6ef50c6 100644
--- a/src/arch/arduino-nano-168/Makefile.inc
+++ b/src/arch/arduino-nano-168/Makefile.inc
@@ -102,5 +102,6 @@ arch_info:
@echo "CPU Freq: ${cpu_freq} Hz"
@echo "Timer Freq: ${timer_freq} Hz"
@echo "I2C Freq: ${i2c_freq} Hz"
+ @echo "Monitor: ${PORT} ${uart_baud}"
.PHONY: arch_clean arch_help arch_info monitor program
diff --git a/src/arch/arduino-nano/Makefile.inc b/src/arch/arduino-nano/Makefile.inc
index 50109eb..b057680 100644
--- a/src/arch/arduino-nano/Makefile.inc
+++ b/src/arch/arduino-nano/Makefile.inc
@@ -102,5 +102,6 @@ arch_info:
@echo "CPU Freq: ${cpu_freq} Hz"
@echo "Timer Freq: ${timer_freq} Hz"
@echo "I2C Freq: ${i2c_freq} Hz"
+ @echo "Monitor: ${PORT} ${uart_baud}"
.PHONY: arch_clean arch_help arch_info monitor program
diff --git a/src/arch/blinkenrocket/Makefile.inc b/src/arch/blinkenrocket/Makefile.inc
index 277ab33..b48b9ef 100644
--- a/src/arch/blinkenrocket/Makefile.inc
+++ b/src/arch/blinkenrocket/Makefile.inc
@@ -59,5 +59,6 @@ arch_info:
@echo "CPU Freq: ${cpu_freq} Hz"
@echo "Timer Freq: ${timer_freq} Hz"
@echo "I2C Freq: ${i2c_freq} Hz"
+ @echo "Monitor: ${PORT} 115200"
.PHONY: arch_clean arch_help arch_info monitor program
diff --git a/src/arch/esp8266/Makefile.inc b/src/arch/esp8266/Makefile.inc
index 6c55060..f9b6d85 100644
--- a/src/arch/esp8266/Makefile.inc
+++ b/src/arch/esp8266/Makefile.inc
@@ -75,5 +75,6 @@ arch_help:
@echo " - none -"
arch_info:
+ @echo "Monitor: /dev/ttyUSB0 115200"
.PHONY: arch_clean arch_help arch_info monitor program
diff --git a/src/arch/msp430fr5969lp/Makefile.inc b/src/arch/msp430fr5969lp/Makefile.inc
index 89956d6..ea84130 100644
--- a/src/arch/msp430fr5969lp/Makefile.inc
+++ b/src/arch/msp430fr5969lp/Makefile.inc
@@ -99,5 +99,6 @@ arch_info:
@echo "CPU Freq: ${cpu_freq} Hz"
@echo "Timer Freq: ${timer_freq} Hz -> $(shell src/arch/msp430fr5969lp/model.py f_timer "${cpu_freq}" "${timer_freq}")"
@echo "I2C Freq: ${i2c_freq} Hz"
+ @echo "Monitor: /dev/ttyACM1 115200"
.PHONY: arch_clean arch_help arch_info monitor program
diff --git a/src/arch/posix/Makefile.inc b/src/arch/posix/Makefile.inc
index 619b385..1300012 100644
--- a/src/arch/posix/Makefile.inc
+++ b/src/arch/posix/Makefile.inc
@@ -12,6 +12,10 @@ endif
CXX_TARGETS += src/arch/posix/arch.cc src/arch/posix/driver/gpio.cc
CXX_TARGETS += src/arch/posix/driver/stdout.cc src/arch/posix/driver/uptime.cc
+ifneq ($(findstring counter,${arch_drivers}), )
+ CXX_TARGETS += src/arch/posix/driver/counter.cc
+endif
+
OBJECTS = ${CXX_TARGETS:.cc=.o} ${C_TARGETS:.c=.o}
ifneq (${gpio_trace}, )
@@ -43,5 +47,6 @@ arch_help:
@echo " - none -"
arch_info:
+ @echo "Monitor: run build/system.elf"
.PHONY: arch_clean arch_help arch_info monitor program run