summaryrefslogtreecommitdiff
path: root/src/arch/msp430fr5994lp/Makefile.inc
diff options
context:
space:
mode:
authorLennart <lekaiser@uos.de>2020-07-25 20:50:23 +0200
committerLennart <lekaiser@uos.de>2020-07-25 20:50:23 +0200
commit714e5788be7b89f937fe8dbf270b8035c4f7d436 (patch)
treee05ae1a2b421840847ae28d053a26d8538fe89c1 /src/arch/msp430fr5994lp/Makefile.inc
parent5c4045862bf55be0b8dc755ac3d5c5bd24b5fedf (diff)
parentd0ea0a521a582549dfd9a98b47e7c12d8bcd0de6 (diff)
Merge branch 'master' into state-duration-timers
Diffstat (limited to 'src/arch/msp430fr5994lp/Makefile.inc')
-rw-r--r--src/arch/msp430fr5994lp/Makefile.inc16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/arch/msp430fr5994lp/Makefile.inc b/src/arch/msp430fr5994lp/Makefile.inc
index 8348d8e..e9d666f 100644
--- a/src/arch/msp430fr5994lp/Makefile.inc
+++ b/src/arch/msp430fr5994lp/Makefile.inc
@@ -72,6 +72,19 @@ ifneq ($(findstring counter,${arch_drivers}), )
CXX_TARGETS += src/arch/msp430fr5994lp/driver/counter.cc
endif
+ifneq ($(findstring timed_resistive_load,${arch_drivers}), )
+ CXX_TARGETS += src/arch/msp430fr5994lp/driver/timed_resistive_load.cc
+ resistor1_pin ?= p3_0
+ resistor2_pin ?= p3_1
+ resistor3_pin ?= p3_2
+ resistor4_pin ?= p3_3
+ COMMON_FLAGS += -DDRIVER_TIMED_RESISTIVE_LOAD
+ COMMON_FLAGS += -DTIMED_RESISTIVE_LOAD_PIN1=GPIO::${resistor1_pin}
+ COMMON_FLAGS += -DTIMED_RESISTIVE_LOAD_PIN2=GPIO::${resistor2_pin}
+ COMMON_FLAGS += -DTIMED_RESISTIVE_LOAD_PIN3=GPIO::${resistor3_pin}
+ COMMON_FLAGS += -DTIMED_RESISTIVE_LOAD_PIN4=GPIO::${resistor4_pin}
+endif
+
ifneq (${cpu_freq}, )
COMMON_FLAGS += -DF_CPU=${cpu_freq}UL
else
@@ -127,7 +140,8 @@ arch_info:
@echo "CPU Freq: ${cpu_freq} Hz"
@echo "Timer Freq: ${timer_freq} Hz -> $(shell src/arch/msp430fr5994lp/model.py f_timer "${cpu_freq}" "${timer_freq}")"
@echo "I2C Freq: ${i2c_freq} Hz"
- @echo "Counter Overflow: 65536/255"
+ @echo "Counter Overflow: 65536/65535"
+ @echo "sleep_ms Overflow: 250 500"
@echo "Monitor: /dev/${SERIAL_PORT} 115200"
.PHONY: arch_clean arch_help arch_info monitor program