From 7b5284023070b841293d0c5a6be0c6c345372cde Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 4 Dec 2017 15:19:25 +0100 Subject: Add basic system: LED GPIO on MSP430FR5969 Launchpad and faked GPIO on POSIX --- include/msp430fr5969lp/driver/gpio.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/msp430fr5969lp/driver/gpio.h (limited to 'include/msp430fr5969lp/driver') diff --git a/include/msp430fr5969lp/driver/gpio.h b/include/msp430fr5969lp/driver/gpio.h new file mode 100644 index 0000000..177e7c5 --- /dev/null +++ b/include/msp430fr5969lp/driver/gpio.h @@ -0,0 +1,18 @@ +#ifndef GPIO_H +#define GPIO_H + +class GPIO { + private: + GPIO(const GPIO ©); + + public: + GPIO () {} + void setup(); + void led_on(unsigned char id); + void led_off(unsigned char id); + void led_toggle(unsigned char id); +}; + +extern GPIO gpio; + +#endif -- cgit v1.2.3