From: Kevin Townsend Date: Wed, 9 May 2012 21:52:38 +0000 (+0200) Subject: Cleanup for 1.1.2 X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/commitdiff_plain/4cff87eb77d0733b5e9e38d5f42314c2bb8abf99 Cleanup for 1.1.2 --- diff --git a/core/pwm/pwm.c b/core/pwm/pwm.c index 7f1e2e5..a27b666 100644 --- a/core/pwm/pwm.c +++ b/core/pwm/pwm.c @@ -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 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 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 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 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 index 263ef63..0000000 Binary files a/tools/testfirmware/uartcli.bin and /dev/null differ