Added pin descriptions for NUCLEO-F303RE. Tested

Fork of FastPWM by Erik -

Revision:
6:0f57969697b6
Parent:
4:a7b9f778c4b4
Child:
12:4600daab8a83
--- a/FastPWM_common.cpp	Fri Feb 28 18:18:52 2014 +0000
+++ b/FastPWM_common.cpp	Mon Mar 17 22:12:58 2014 +0000
@@ -5,8 +5,8 @@
     this->prescaler(prescaler);
     
     //Set duty cycle on 0%, period on 20ms
-    _duty=0; 
     period(0.02);
+    write(0);
     
 
 }
@@ -16,7 +16,6 @@
         calcPrescaler((uint64_t)(seconds * (double) SystemCoreClock));
 
      period_ticks(seconds * dticks + 0.5);
-    pulsewidth_ticks(getPeriod() * _duty);
 }
 
 void FastPWM::period_ms(int ms) {
@@ -24,7 +23,6 @@
         calcPrescaler(ms * (SystemCoreClock / 1000));
         
     period_ticks(ms * iticks_ms);
-    pulsewidth_ticks(getPeriod() * _duty);
 }
 
 void FastPWM::period_us(int us) {
@@ -32,7 +30,6 @@
         calcPrescaler(us * (SystemCoreClock / 1000000));
     
     period_ticks(us * iticks_us);
-    pulsewidth_ticks(getPeriod() * _duty);
 }
 
 void FastPWM::period_us(double us) {
@@ -40,7 +37,6 @@
         calcPrescaler((uint64_t)(us * (double)(SystemCoreClock / 1000000)));
         
     period_ticks(us * dticks_us + 0.5);
-    pulsewidth_ticks(getPeriod() * _duty);
 }
 
 void FastPWM::pulsewidth(double seconds) {