@@ -187,7 +187,7 @@ static enum status_code _usart_set_config(
187
187
}
188
188
189
189
/* Set stopbits and enable transceivers */
190
- ctrlb =
190
+ ctrlb =
191
191
#ifdef FEATURE_USART_IRDA
192
192
(config -> encoding_format_enable << SERCOM_USART_CTRLB_ENC_Pos ) |
193
193
#endif
@@ -207,18 +207,18 @@ static enum status_code _usart_set_config(
207
207
ctrla |= SERCOM_USART_CTRLA_TXINV | SERCOM_USART_CTRLA_RXINV ;
208
208
}
209
209
ctrlb |= USART_CHARACTER_SIZE_8BIT ;
210
-
210
+
211
211
switch (config -> iso7816_config .protocol_t ) {
212
212
case ISO7816_PROTOCOL_T_0 :
213
- ctrlb |= (uint32_t )config -> stopbits ;
213
+ ctrlb |= (uint32_t )config -> stopbits ;
214
214
ctrlc |= SERCOM_USART_CTRLC_GTIME (config -> iso7816_config .guard_time ) | \
215
215
(config -> iso7816_config .inhibit_nack ) | \
216
216
(config -> iso7816_config .successive_recv_nack ) | \
217
217
SERCOM_USART_CTRLC_MAXITER (config -> iso7816_config .max_iterations );
218
- break ;
218
+ break ;
219
219
case ISO7816_PROTOCOL_T_1 :
220
220
ctrlb |= USART_STOPBITS_1 ;
221
- break ;
221
+ break ;
222
222
}
223
223
} else {
224
224
#endif
@@ -334,8 +334,8 @@ enum status_code usart_init(
334
334
SercomUsart * const usart_hw = & (module -> hw -> USART );
335
335
336
336
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 )
339
339
pm_index = sercom_index + MCLK_APBCMASK_SERCOM0_Pos ;
340
340
gclk_index = sercom_index + SERCOM0_GCLK_ID_CORE ;
341
341
#elif (SAML21 ) || (SAMR30 )
@@ -348,7 +348,7 @@ enum status_code usart_init(
348
348
}
349
349
#elif (SAMC21 )
350
350
pm_index = sercom_index + MCLK_APBCMASK_SERCOM0_Pos ;
351
-
351
+
352
352
if (sercom_index == 5 ){
353
353
gclk_index = SERCOM5_GCLK_ID_CORE ;
354
354
} else {
@@ -374,7 +374,7 @@ enum status_code usart_init(
374
374
if (sercom_index == 5 ) {
375
375
system_apb_clock_set_mask (SYSTEM_CLOCK_APB_APBD , 1 << pm_index );
376
376
} 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 );
378
378
}
379
379
#else
380
380
system_apb_clock_set_mask (SYSTEM_CLOCK_APB_APBC , 1 << pm_index );
@@ -639,8 +639,8 @@ enum status_code usart_read_wait(
639
639
* \param[in] tx_data Pointer to data to transmit
640
640
* \param[in] length Number of characters to transmit
641
641
*
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
644
644
* is an address pointer, the highest byte is not discarded. For example:
645
645
* \code
646
646
#define TX_LEN 3
@@ -733,8 +733,8 @@ enum status_code usart_write_buffer_wait(
733
733
* \param[out] rx_data Pointer to receive buffer
734
734
* \param[in] length Number of characters to receive
735
735
*
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
738
738
* is an address pointer, the highest byte is not discarded. For example:
739
739
* \code
740
740
#define RX_LEN 3
0 commit comments