CMSIS-DAP: remove trailing whitespace on reference code.
diff --git a/CMSIS/DAP/Firmware/Config/DAP_config.h b/CMSIS/DAP/Firmware/Config/DAP_config.h
index 62412f3..5e62cf4 100644
--- a/CMSIS/DAP/Firmware/Config/DAP_config.h
+++ b/CMSIS/DAP/Firmware/Config/DAP_config.h
@@ -30,9 +30,9 @@
 
 
 //**************************************************************************************************
-/** 
+/**
 \defgroup DAP_Config_Debug_gr CMSIS-DAP Debug Unit Information
-\ingroup DAP_ConfigIO_gr 
+\ingroup DAP_ConfigIO_gr
 @{
 Provides definitions about the hardware and configuration of the Debug Unit.
 
@@ -59,7 +59,7 @@
 /// This value is used to calculate the SWD/JTAG clock speed that is generated with I/O
 /// Port write operations in the Debug Unit by a Cortex-M MCU. Most Cortex-M processors
 /// require 2 processor cycles for a I/O Port Write operation.  If the Debug Unit uses
-/// a Cortex-M0+ processor with high-speed peripheral I/O only 1 processor cycle might be 
+/// a Cortex-M0+ processor with high-speed peripheral I/O only 1 processor cycle might be
 /// required.
 #define IO_PORT_WRITE_CYCLES    2U              ///< I/O Cycles: 2=default, 1=Cortex-M0+ fast I/0.
 
@@ -263,13 +263,13 @@
 
 
 //**************************************************************************************************
-/** 
+/**
 \defgroup DAP_Config_PortIO_gr CMSIS-DAP Hardware I/O Pin Access
-\ingroup DAP_ConfigIO_gr 
+\ingroup DAP_ConfigIO_gr
 @{
 
 Standard I/O Pins of the CMSIS-DAP Hardware Debug Port support standard JTAG mode
-and Serial Wire Debug (SWD) mode. In SWD mode only 2 pins are required to implement the debug 
+and Serial Wire Debug (SWD) mode. In SWD mode only 2 pins are required to implement the debug
 interface of a device. The following I/O Pins are provided:
 
 JTAG I/O Pin                 | SWD I/O Pin          | CMSIS-DAP Hardware pin mode
@@ -277,19 +277,19 @@
 TCK: Test Clock              | SWCLK: Clock         | Output Push/Pull
 TMS: Test Mode Select        | SWDIO: Data I/O      | Output Push/Pull; Input (for receiving data)
 TDI: Test Data Input         |                      | Output Push/Pull
-TDO: Test Data Output        |                      | Input             
+TDO: Test Data Output        |                      | Input
 nTRST: Test Reset (optional) |                      | Output Open Drain with pull-up resistor
 nRESET: Device Reset         | nRESET: Device Reset | Output Open Drain with pull-up resistor
 
 
 DAP Hardware I/O Pin Access Functions
 -------------------------------------
-The various I/O Pins are accessed by functions that implement the Read, Write, Set, or Clear to 
-these I/O Pins. 
+The various I/O Pins are accessed by functions that implement the Read, Write, Set, or Clear to
+these I/O Pins.
 
 For the SWDIO I/O Pin there are additional functions that are called in SWD I/O mode only.
-This functions are provided to achieve faster I/O that is possible with some advanced GPIO 
-peripherals that can independently write/read a single I/O pin without affecting any other pins 
+This functions are provided to achieve faster I/O that is possible with some advanced GPIO
+peripherals that can independently write/read a single I/O pin without affecting any other pins
 of the same I/O port. The following SWDIO I/O Pin functions are provided:
  - \ref PIN_SWDIO_OUT_ENABLE to enable the output mode from the DAP hardware.
  - \ref PIN_SWDIO_OUT_DISABLE to enable the input mode to the DAP hardware.
@@ -304,16 +304,16 @@
 Configures the DAP Hardware I/O pins for JTAG mode:
  - TCK, TMS, TDI, nTRST, nRESET to output mode and set to high level.
  - TDO to input mode.
-*/ 
+*/
 __STATIC_INLINE void PORT_JTAG_SETUP (void) {
   ;
 }
- 
+
 /** Setup SWD I/O pins: SWCLK, SWDIO, and nRESET.
 Configures the DAP Hardware I/O pins for Serial Wire Debug (SWD) mode:
  - SWCLK, SWDIO, nRESET to output mode and set to default high level.
  - TDI, nTRST to HighZ mode (pins are unused in SWD mode).
-*/ 
+*/
 __STATIC_INLINE void PORT_SWD_SETUP (void) {
   ;
 }
@@ -393,7 +393,7 @@
 called prior \ref PIN_SWDIO_OUT function calls.
 */
 __STATIC_FORCEINLINE void     PIN_SWDIO_OUT_ENABLE  (void) {
-  ; 
+  ;
 }
 
 /** SWDIO I/O pin: Switch to Input mode (used in SWD mode only).
@@ -447,7 +447,7 @@
            - 1: release JTAG TRST Test Reset.
 */
 __STATIC_FORCEINLINE void     PIN_nTRST_OUT  (uint32_t bit) {
-  ; 
+  ;
 }
 
 // nRESET Pin I/O------------------------------------------
@@ -472,7 +472,7 @@
 
 
 //**************************************************************************************************
-/** 
+/**
 \defgroup DAP_Config_LEDs_gr CMSIS-DAP Hardware Status LEDs
 \ingroup DAP_ConfigIO_gr
 @{
@@ -502,13 +502,13 @@
 
 
 //**************************************************************************************************
-/** 
+/**
 \defgroup DAP_Config_Timestamp_gr CMSIS-DAP Timestamp
 \ingroup DAP_ConfigIO_gr
 @{
 Access function for Test Domain Timer.
 
-The value of the Test Domain Timer in the Debug Unit is returned by the function \ref TIMESTAMP_GET. By 
+The value of the Test Domain Timer in the Debug Unit is returned by the function \ref TIMESTAMP_GET. By
 default, the DWT timer is used.  The frequency of this timer is configured with \ref TIMESTAMP_CLOCK.
 
 */
@@ -524,7 +524,7 @@
 
 
 //**************************************************************************************************
-/** 
+/**
 \defgroup DAP_Config_Initialization_gr CMSIS-DAP Initialization
 \ingroup DAP_ConfigIO_gr
 @{
@@ -533,7 +533,7 @@
 */
 
 /** Setup of the Debug Unit I/O pins and LEDs (called when Debug Unit is initialized).
-This function performs the initialization of the CMSIS-DAP Hardware I/O Pins and the 
+This function performs the initialization of the CMSIS-DAP Hardware I/O Pins and the
 Status LEDs. In detail the operation of Hardware I/O and LED pins are enabled and set:
  - I/O clock system enabled.
  - all I/O pins: input buffer enabled, output pins are set to HighZ mode.
@@ -546,7 +546,7 @@
 
 /** Reset Target Device with custom specific I/O pin or command sequence.
 This function allows the optional implementation of a device specific reset sequence.
-It is called when the command \ref DAP_ResetTarget and is for example required 
+It is called when the command \ref DAP_ResetTarget and is for example required
 when a device needs a time-critical unlock sequence that enables the debug port.
 \return 0 = no device specific reset sequence is implemented.\n
         1 = a device specific reset sequence is implemented.
diff --git a/CMSIS/DAP/Firmware/Source/DAP.c b/CMSIS/DAP/Firmware/Source/DAP.c
index 530236e..414e7d1 100644
--- a/CMSIS/DAP/Firmware/Source/DAP.c
+++ b/CMSIS/DAP/Firmware/Source/DAP.c
@@ -111,7 +111,7 @@
       length = 2U;
       break;
     case DAP_ID_TIMESTAMP_CLOCK:
-#if (TIMESTAMP_CLOCK != 0U) 
+#if (TIMESTAMP_CLOCK != 0U)
       info[0] = (uint8_t)(TIMESTAMP_CLOCK >>  0);
       info[1] = (uint8_t)(TIMESTAMP_CLOCK >>  8);
       info[2] = (uint8_t)(TIMESTAMP_CLOCK >> 16);
@@ -227,7 +227,7 @@
   } else {
     port = *request;
   }
-  
+
   switch (port) {
 #if (DAP_SWD != 0)
     case DAP_PORT_SWD:
@@ -286,9 +286,9 @@
   uint32_t select;
   uint32_t wait;
   uint32_t timestamp;
-  
+
   value  = (uint32_t) *(request+0);
-  select = (uint32_t) *(request+1); 
+  select = (uint32_t) *(request+1);
   wait   = (uint32_t)(*(request+2) <<  0) |
            (uint32_t)(*(request+3) <<  8) |
            (uint32_t)(*(request+4) << 16) |
@@ -320,7 +320,7 @@
 
   if (wait != 0U) {
 #if (TIMESTAMP_CLOCK != 0U)
-    if (wait > 3000000U) { 
+    if (wait > 3000000U) {
       wait = 3000000U;
     }
 #if (TIMESTAMP_CLOCK >= 1000000U)
@@ -433,7 +433,7 @@
   uint32_t count;
 
   count = *request++;
-  if (count == 0U) { 
+  if (count == 0U) {
     count = 256U;
   }
 
@@ -462,7 +462,7 @@
   value = *request;
   DAP_Data.swd_conf.turnaround = (value & 0x03U) + 1U;
   DAP_Data.swd_conf.data_phase = (value & 0x04U) ? 1U : 0U;
-  
+
   *response = DAP_OK;
 #else
   *response = DAP_ERROR;
@@ -496,7 +496,7 @@
   while (sequence_count--) {
     sequence_info = *request++;
     count = sequence_info & SWD_SEQUENCE_CLK;
-    if (count == 0U) { 
+    if (count == 0U) {
       count = 64U;
     }
     count = (count + 7U) / 8U;
@@ -646,7 +646,7 @@
 id_error:
 #endif
   *response = DAP_ERROR;
-  return ((1U << 16) | 1U); 
+  return ((1U << 16) | 1U);
 }
 
 
@@ -660,11 +660,11 @@
   DAP_Data.transfer.idle_cycles =            *(request+0);
   DAP_Data.transfer.retry_count = (uint16_t) *(request+1) |
                                   (uint16_t)(*(request+2) << 8);
-  DAP_Data.transfer.match_retry = (uint16_t) *(request+3) | 
+  DAP_Data.transfer.match_retry = (uint16_t) *(request+3) |
                                   (uint16_t)(*(request+4) << 8);
 
   *response = DAP_OK;
-  return ((5U << 16) | 1U); 
+  return ((5U << 16) | 1U);
 }
 
 
@@ -727,7 +727,7 @@
           } while ((response_value == DAP_TRANSFER_WAIT) && retry-- && !DAP_TransferAbort);
           post_read = 0U;
         }
-        if (response_value != DAP_TRANSFER_OK) { 
+        if (response_value != DAP_TRANSFER_OK) {
           break;
         }
         // Store previous AP data
@@ -1402,14 +1402,14 @@
 
   // Device index (JTAP TAP)
   DAP_Data.jtag_dev.index = *request++;
-  if (DAP_Data.jtag_dev.index >= DAP_Data.jtag_dev.count) { 
+  if (DAP_Data.jtag_dev.index >= DAP_Data.jtag_dev.count) {
     goto end;
   }
 
-  request_count = (uint32_t)(*(request+0) << 0) | 
+  request_count = (uint32_t)(*(request+0) << 0) |
                   (uint32_t)(*(request+1) << 8);
   request += 2;
-  if (request_count == 0U) { 
+  if (request_count == 0U) {
     goto end;
   }
 
@@ -1565,7 +1565,7 @@
   DAP_Data.jtag_dev.index = *request;
   if (DAP_Data.jtag_dev.index >= DAP_Data.jtag_dev.count) {
     *response = DAP_ERROR;
-    return (1U); 
+    return (1U);
   }
 
   // Select JTAG chain
@@ -1581,7 +1581,7 @@
   JTAG_WriteAbort(data);
 
   *response = DAP_OK;
-  return (1U); 
+  return (1U);
 }
 #endif
 
@@ -1775,7 +1775,7 @@
       n = DAP_ProcessCommand(request, response);
       num += n;
       request  += (uint16_t)(n >> 16);
-      response += (uint16_t) n;  
+      response += (uint16_t) n;
     }
     return (num);
   }
diff --git a/CMSIS/DAP/Firmware/Source/DAP_vendor.c b/CMSIS/DAP/Firmware/Source/DAP_vendor.c
index a4ae496..4f2477a 100644
--- a/CMSIS/DAP/Firmware/Source/DAP_vendor.c
+++ b/CMSIS/DAP/Firmware/Source/DAP_vendor.c
@@ -24,18 +24,18 @@
  * Title:        DAP_vendor.c CMSIS-DAP Vendor Commands
  *
  *---------------------------------------------------------------------------*/
- 
+
 #include "DAP_config.h"
 #include "DAP.h"
 
 //**************************************************************************************************
-/** 
+/**
 \defgroup DAP_Vendor_Adapt_gr Adapt Vendor Commands
-\ingroup DAP_Vendor_gr 
+\ingroup DAP_Vendor_gr
 @{
 
-The file DAP_vendor.c provides template source code for extension of a Debug Unit with 
-Vendor Commands. Copy this file to the project folder of the Debug Unit and add the 
+The file DAP_vendor.c provides template source code for extension of a Debug Unit with
+Vendor Commands. Copy this file to the project folder of the Debug Unit and add the
 file to the MDK-ARM project under the file group Configuration.
 */
 
diff --git a/CMSIS/DAP/Firmware/Source/SWO.c b/CMSIS/DAP/Firmware/Source/SWO.c
index 4ed50ad..4a850cf 100644
--- a/CMSIS/DAP/Firmware/Source/SWO.c
+++ b/CMSIS/DAP/Firmware/Source/SWO.c
@@ -77,7 +77,7 @@
 static volatile uint8_t  TraceUpdate;       /* Trace Update Flag */
 static          uint32_t TraceBlockSize;    /* Current Trace Block Size */
 
-#if (TIMESTAMP_CLOCK != 0U) 
+#if (TIMESTAMP_CLOCK != 0U)
 // Trace Timestamp
 static volatile struct {
   uint32_t index;
@@ -110,14 +110,14 @@
   uint32_t num;
 
   if (event &  ARM_USART_EVENT_RECEIVE_COMPLETE) {
-#if (TIMESTAMP_CLOCK != 0U) 
+#if (TIMESTAMP_CLOCK != 0U)
     TraceTimestamp.tick = TIMESTAMP_GET();
 #endif
     index_o  = TraceIndexO;
     index_i  = TraceIndexI;
     index_i += TraceBlockSize;
     TraceIndexI = index_i;
-#if (TIMESTAMP_CLOCK != 0U) 
+#if (TIMESTAMP_CLOCK != 0U)
     TraceTimestamp.index = index_i;
 #endif
     num   = TRACE_BLOCK_SIZE - (index_i & (TRACE_BLOCK_SIZE - 1U));
@@ -228,7 +228,7 @@
   int32_t status;
 
   if (active) {
-    if (!USART_Ready) { 
+    if (!USART_Ready) {
       return (0U);
     }
     TraceBlockSize = 1U;
@@ -329,7 +329,7 @@
   TraceIndexI   = 0U;
   TraceIndexO   = 0U;
 
-#if (TIMESTAMP_CLOCK != 0U) 
+#if (TIMESTAMP_CLOCK != 0U)
   TraceTimestamp.index = 0U;
   TraceTimestamp.tick  = 0U;
 #endif
@@ -640,7 +640,7 @@
   uint8_t  cmd;
   uint8_t  status;
   uint32_t count;
-#if (TIMESTAMP_CLOCK != 0U) 
+#if (TIMESTAMP_CLOCK != 0U)
   uint32_t index;
   uint32_t tick;
 #endif
@@ -664,7 +664,7 @@
     num += 4U;
   }
 
-#if (TIMESTAMP_CLOCK != 0U) 
+#if (TIMESTAMP_CLOCK != 0U)
   if (cmd & 0x04U) {
     do {
       TraceUpdate = 0U;