From 1b3d654c764b25cdd979acca0c956564cfe8358d Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Tue, 25 Feb 2025 23:37:17 +0100 Subject: Initial --- device/MSP432P401R/gpio.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 device/MSP432P401R/gpio.cpp (limited to 'device/MSP432P401R/gpio.cpp') diff --git a/device/MSP432P401R/gpio.cpp b/device/MSP432P401R/gpio.cpp new file mode 100644 index 0000000..20911ed --- /dev/null +++ b/device/MSP432P401R/gpio.cpp @@ -0,0 +1,15 @@ +#include + +#include + +#include + +void setupOutputs() +{ + P2->DIR = 0b111; +} + +void writeOutputs(std::uint8_t val) +{ + P2->OUT = val % 8; +} -- cgit v1.2.3-54-g00ecf