mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-09-10 17:15:43 +00:00
Run wspurify script on /trunk/ and /branches/ C source files, to remove any trailing whitespace at the end of each line.
This commit is contained in:
@@ -151,7 +151,7 @@ void TINYNVM_DisableTPI(void)
|
||||
/* Clear the NVMEN bit in the TPI STATUS register to disable TPI mode */
|
||||
XPROGTarget_SendByte(TPI_CMD_SSTCS | TPI_STATUS_REG);
|
||||
XPROGTarget_SendByte(0x00);
|
||||
|
||||
|
||||
/* Read back the STATUS register, check to see if it took effect */
|
||||
XPROGTarget_SendByte(TPI_CMD_SLDCS | PDI_RESET_REG);
|
||||
} while (XPROGTarget_ReceiveByte() != 0x00);
|
||||
|
||||
@@ -149,7 +149,7 @@ void XMEGANVM_DisablePDI(void)
|
||||
{
|
||||
XMEGANVM_WaitWhileNVMBusBusy();
|
||||
|
||||
/* Clear the RESET key in the RESET PDI register to allow the XMEGA to run - must perform this until the
|
||||
/* Clear the RESET key in the RESET PDI register to allow the XMEGA to run - must perform this until the
|
||||
* change takes effect, as in some cases it takes multiple writes (silicon bug?).
|
||||
*/
|
||||
do
|
||||
@@ -157,7 +157,7 @@ void XMEGANVM_DisablePDI(void)
|
||||
/* Clear reset register */
|
||||
XPROGTarget_SendByte(PDI_CMD_STCS | PDI_RESET_REG);
|
||||
XPROGTarget_SendByte(0x00);
|
||||
|
||||
|
||||
/* Read back the reset register, check to see if it took effect */
|
||||
XPROGTarget_SendByte(PDI_CMD_LDCS | PDI_RESET_REG);
|
||||
} while (XPROGTarget_ReceiveByte() != 0x00);
|
||||
|
||||
@@ -143,7 +143,7 @@ static void XPROGProtocol_LeaveXPROGMode(void)
|
||||
TINYNVM_DisableTPI();
|
||||
|
||||
#if defined(XCK_RESCUE_CLOCK_ENABLE) && defined(ENABLE_ISP_PROTOCOL)
|
||||
/* If the XCK rescue clock option is enabled, we need to restart it once the
|
||||
/* If the XCK rescue clock option is enabled, we need to restart it once the
|
||||
* XPROG mode has been exited, since the XPROG protocol stops it after use. */
|
||||
ISPTarget_ConfigureRescueClock();
|
||||
#endif
|
||||
@@ -258,7 +258,7 @@ static void XPROGProtocol_WriteMemory(void)
|
||||
Endpoint_ClearOUT();
|
||||
Endpoint_WaitUntilReady();
|
||||
}
|
||||
|
||||
|
||||
Endpoint_ClearOUT();
|
||||
Endpoint_SelectEndpoint(AVRISP_DATA_IN_EPNUM);
|
||||
Endpoint_SetEndpointDirection(ENDPOINT_DIR_IN);
|
||||
|
||||
@@ -120,7 +120,7 @@ void XPROGTarget_DisableTargetTPI(void)
|
||||
/* Set all USART lines as inputs, tristate */
|
||||
DDRD &= ~((1 << 5) | (1 << 3));
|
||||
PORTD &= ~((1 << 5) | (1 << 3) | (1 << 2));
|
||||
|
||||
|
||||
/* Tristate target /RESET line */
|
||||
AUX_LINE_DDR &= ~AUX_LINE_MASK;
|
||||
AUX_LINE_PORT &= ~AUX_LINE_MASK;
|
||||
@@ -164,7 +164,7 @@ void XPROGTarget_SendIdle(void)
|
||||
/* Switch to Tx mode if currently in Rx mode */
|
||||
if (!(IsSending))
|
||||
XPROGTarget_SetTxMode();
|
||||
|
||||
|
||||
/* Need to do nothing for a full frame to send an IDLE */
|
||||
for (uint8_t i = 0; i < BITS_IN_USART_FRAME; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user