summaryrefslogtreecommitdiffstats
path: root/device/MSP432P401R/gpio.cpp
blob: 20911ede723e05ee8051dfe55e40d6667d65b4c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <gpio.hpp>

#include <cstdint>

#include <ti/devices/msp432p4xx/inc/msp432p401r.h>

void setupOutputs()
{
	P2->DIR = 0b111;
}

void writeOutputs(std::uint8_t val)
{
	P2->OUT = val % 8;
}