Cleanup for 1.1.2
authorKevin Townsend <kevin@ktownsend.com>
Wed, 9 May 2012 21:52:38 +0000 (23:52 +0200)
committerKevin Townsend <kevin@ktownsend.com>
Wed, 9 May 2012 21:52:38 +0000 (23:52 +0200)
core/pwm/pwm.c
tools/testfirmware/LPC1343_LCDStandalone_UART_LF.bin [deleted file]
tools/testfirmware/LPC1343_LCDStandalone_USB_CRLF.bin [deleted file]
tools/testfirmware/blinky.bin [deleted file]
tools/testfirmware/blinky_usbcli.bin [new file with mode: 0644]
tools/testfirmware/uartcli.bin [deleted file]

index 7f1e2e5..a27b666 100644 (file)
@@ -178,7 +178,7 @@ int pwmSetDutyCycle(uint32_t percentage)
   }
 
   /* Set Duty Cycle (MR0) */
-  TMR_TMR16B1MR0 = ((pwmPulseWidth * (100 - (pwmDutyCycle = percentage))) / 100) + 1;
+  TMR_TMR16B1MR0 = (pwmPulseWidth * (100 - (pwmDutyCycle = percentage))) / 100;
 
   return 0;
 }
@@ -246,7 +246,7 @@ int pwmSetFrequencyInMicroseconds(uint16_t us)
   TMR_TMR16B1MR3 = (pwmPulseWidth = ticks - 1);
 
   /* Adjust Duty Cycle (MR0) */
-  TMR_TMR16B1MR0 = ((pwmPulseWidth * (100 - pwmDutyCycle)) / 100) + 1;
+  TMR_TMR16B1MR0 = (pwmPulseWidth * (100 - pwmDutyCycle)) / 100;
 
   return 0;  
 }
diff --git a/tools/testfirmware/LPC1343_LCDStandalone_UART_LF.bin b/tools/testfirmware/LPC1343_LCDStandalone_UART_LF.bin
deleted file mode 100644 (file)
index c9fda07..0000000
Binary files a/tools/testfirmware/LPC1343_LCDStandalone_UART_LF.bin and /dev/null differ
diff --git a/tools/testfirmware/LPC1343_LCDStandalone_USB_CRLF.bin b/tools/testfirmware/LPC1343_LCDStandalone_USB_CRLF.bin
deleted file mode 100644 (file)
index bc623c4..0000000
Binary files a/tools/testfirmware/LPC1343_LCDStandalone_USB_CRLF.bin and /dev/null differ
diff --git a/tools/testfirmware/blinky.bin b/tools/testfirmware/blinky.bin
deleted file mode 100644 (file)
index bacaf86..0000000
Binary files a/tools/testfirmware/blinky.bin and /dev/null differ
diff --git a/tools/testfirmware/blinky_usbcli.bin b/tools/testfirmware/blinky_usbcli.bin
new file mode 100644 (file)
index 0000000..5cd75fe
Binary files /dev/null and b/tools/testfirmware/blinky_usbcli.bin differ
diff --git a/tools/testfirmware/uartcli.bin b/tools/testfirmware/uartcli.bin
deleted file mode 100644 (file)
index 263ef63..0000000
Binary files a/tools/testfirmware/uartcli.bin and /dev/null differ
This page took 0.033831 seconds and 4 git commands to generate.