@@ -187,7 +187,7 @@ static enum status_code _usart_set_config(
187187 }
188188
189189 /* Set stopbits and enable transceivers */
190- ctrlb =
190+ ctrlb =
191191 #ifdef FEATURE_USART_IRDA
192192 (config -> encoding_format_enable << SERCOM_USART_CTRLB_ENC_Pos ) |
193193 #endif
@@ -207,18 +207,18 @@ static enum status_code _usart_set_config(
207207 ctrla |= SERCOM_USART_CTRLA_TXINV | SERCOM_USART_CTRLA_RXINV ;
208208 }
209209 ctrlb |= USART_CHARACTER_SIZE_8BIT ;
210-
210+
211211 switch (config -> iso7816_config .protocol_t ) {
212212 case ISO7816_PROTOCOL_T_0 :
213- ctrlb |= (uint32_t )config -> stopbits ;
213+ ctrlb |= (uint32_t )config -> stopbits ;
214214 ctrlc |= SERCOM_USART_CTRLC_GTIME (config -> iso7816_config .guard_time ) | \
215215 (config -> iso7816_config .inhibit_nack ) | \
216216 (config -> iso7816_config .successive_recv_nack ) | \
217217 SERCOM_USART_CTRLC_MAXITER (config -> iso7816_config .max_iterations );
218- break ;
218+ break ;
219219 case ISO7816_PROTOCOL_T_1 :
220220 ctrlb |= USART_STOPBITS_1 ;
221- break ;
221+ break ;
222222 }
223223 } else {
224224#endif
@@ -334,8 +334,8 @@ enum status_code usart_init(
334334 SercomUsart * const usart_hw = & (module -> hw -> USART );
335335
336336 uint32_t sercom_index = _sercom_get_sercom_inst_index (module -> hw );
337- uint32_t pm_index , gclk_index ;
338- #if (SAML22 ) || (SAMC20 )
337+ uint32_t pm_index , gclk_index ;
338+ #if (SAML22 ) || (SAMC20 )
339339 pm_index = sercom_index + MCLK_APBCMASK_SERCOM0_Pos ;
340340 gclk_index = sercom_index + SERCOM0_GCLK_ID_CORE ;
341341#elif (SAML21 ) || (SAMR30 )
@@ -348,7 +348,7 @@ enum status_code usart_init(
348348 }
349349#elif (SAMC21 )
350350 pm_index = sercom_index + MCLK_APBCMASK_SERCOM0_Pos ;
351-
351+
352352 if (sercom_index == 5 ){
353353 gclk_index = SERCOM5_GCLK_ID_CORE ;
354354 } else {
@@ -374,7 +374,7 @@ enum status_code usart_init(
374374 if (sercom_index == 5 ) {
375375 system_apb_clock_set_mask (SYSTEM_CLOCK_APB_APBD , 1 << pm_index );
376376 } else {
377- system_apb_clock_set_mask (SYSTEM_CLOCK_APB_APBC , 1 << pm_index );
377+ system_apb_clock_set_mask (SYSTEM_CLOCK_APB_APBC , 1 << pm_index );
378378 }
379379#else
380380 system_apb_clock_set_mask (SYSTEM_CLOCK_APB_APBC , 1 << pm_index );
@@ -639,8 +639,8 @@ enum status_code usart_read_wait(
639639 * \param[in] tx_data Pointer to data to transmit
640640 * \param[in] length Number of characters to transmit
641641 *
642- * \note If using 9-bit data, the array that *tx_data point to should be defined
643- * as uint16_t array and should be casted to uint8_t* pointer. Because it
642+ * \note If using 9-bit data, the array that *tx_data point to should be defined
643+ * as uint16_t array and should be casted to uint8_t* pointer. Because it
644644 * is an address pointer, the highest byte is not discarded. For example:
645645 * \code
646646 #define TX_LEN 3
@@ -733,8 +733,8 @@ enum status_code usart_write_buffer_wait(
733733 * \param[out] rx_data Pointer to receive buffer
734734 * \param[in] length Number of characters to receive
735735 *
736- * \note If using 9-bit data, the array that *rx_data point to should be defined
737- * as uint16_t array and should be casted to uint8_t* pointer. Because it
736+ * \note If using 9-bit data, the array that *rx_data point to should be defined
737+ * as uint16_t array and should be casted to uint8_t* pointer. Because it
738738 * is an address pointer, the highest byte is not discarded. For example:
739739 * \code
740740 #define RX_LEN 3
0 commit comments