Files

copied

Scanning the repository...

Last update 8 months 3 weeks by Masakatsu Honda
FilesCubeMXpassion-v2-1AppIncperipheral
..
adc.hpp
eeprom.hpp
encodermode.hpp
gpio.hpp
interrupt.hpp
pwm.hpp
spi.hpp
wait.hpp
gpio.hpp
#ifndef _GPIO_HPP_ #define _GPIO_HPP_ #include "config.h" #include "main.h" #include "stdout.h" #include <iostream> namespace peripheral{ class GPIO{ private: GPIO_TypeDef* port_; uint16_t pin_; public: GPIO(GPIO_TypeDef* port,uint16_t pin); void On(); void Off(); void Toggle(); bool ReadVal(); ~GPIO() = default; }; } #endif //_GPIO_HPP_
Report a bug