Merge remote-tracking branch 'upstream/edge' into fix/trapezoid-symmetry
authorJim Morris <morris@wolfman.com>
Mon, 24 Nov 2014 22:45:48 +0000 (14:45 -0800)
committerJim Morris <morris@wolfman.com>
Mon, 24 Nov 2014 22:45:48 +0000 (14:45 -0800)
Conflicts:
src/libs/Pin.h

1  2 
src/libs/Pin.cpp
src/libs/Pin.h
src/main.cpp

@@@ -1,12 -1,12 +1,15 @@@
  #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
diff --cc src/libs/Pin.h
@@@ -57,15 -63,12 +62,17 @@@ class Pin 
                  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;
 +        };
  };
  
  
diff --cc src/main.cpp
Simple merge