Conflicts:
src/libs/Pin.h
#include "Pin.h"
-
#include "utils.h"
+ // mbed libraries for hardware pwm
+ #include "PwmOut.h"
+ #include "PinNames.h"
+
Pin::Pin(){
this->inverting= false;
+ this->valid= false;
+ this->pin= 32;
+ this->port= nullptr;
}
// Make a new pin object from a string
this->port->FIOCLR = 1 << this->pin;
}
-
+ mbed::PwmOut *hardware_pwm();
++
+ // these should be private, and use getters
LPC_GPIO_TypeDef* port;
- bool inverting;
- char port_number;
+
unsigned char pin;
+ char port_number;
+ struct {
+ bool inverting:1;
+ bool valid:1;
+ };
};