@@ -113,7 +113,7 @@ R_BSP_ATTRIB_STATIC_INTERRUPT void sci12_eri12_isr(void);
113
113
* (channel range, interrupt priority, etc...)
114
114
* Arguments : chan -
115
115
* channel to check
116
- * Return Value : SCI_SUCCESS -
116
+ * Return Value : SCI_SUCCESS -
117
117
* parameter check all successfully
118
118
* SCI_ERR_BAD_CHAN -
119
119
* channel number invalid for part
@@ -162,7 +162,7 @@ void sci_init_register(sci_hdl_t const hdl)
162
162
163
163
/* SCR register initialize */
164
164
hdl -> rom -> regs -> SCR .BYTE = 0x00 ;
165
-
165
+
166
166
/* SSR register initialize */
167
167
if (1 == SCI_SSR_ORER )
168
168
{
@@ -240,18 +240,18 @@ void sci_init_register(sci_hdl_t const hdl)
240
240
* Function Name: sci_init_bit_rate
241
241
* Description : This function determines the best possible settings for the
242
242
* baud rate registers for the specified peripheral clock speed
243
- * and baud rate. Note that this does not guarantee a low bit
243
+ * and baud rate. Note that this does not guarantee a low bit
244
244
* error rate, just the best possible one. The bit rate error is
245
245
* returned in .1% increments. If the hardware cannot support
246
246
* the specified combination, a value of 1000 (100% error) is
247
247
* returned.
248
248
*
249
- * NOTE: The transmitter and receiver (TE and RE bits in SCR) must be disabled
249
+ * NOTE: The transmitter and receiver (TE and RE bits in SCR) must be disabled
250
250
* prior to calling this function.
251
251
*
252
252
* The application must pause for 1 bit time after the BRR register
253
253
* is loaded before transmitting/receiving to allow time for the clock
254
- * to settle.
254
+ * to settle.
255
255
*
256
256
* Arguments : hdl -
257
257
* Handle for channel (ptr to chan control block)
@@ -367,7 +367,7 @@ int32_t sci_init_bit_rate(sci_hdl_t const hdl,
367
367
error = ( ((float )pclk / ((baud * divisor ) * tmp )) - 1 ) * 100 ;
368
368
abs_error = (error < 0 ) ? (- error ) : error ;
369
369
370
- if ((abs_error <= 1.0 ) || (SCI_MODE_ASYNC != hdl -> mode ))
370
+ if ((abs_error <= 1.0f ) || (SCI_MODE_ASYNC != hdl -> mode ))
371
371
{
372
372
hdl -> rom -> regs -> SEMR .BIT .BRME = 0 ; // disable MDDR
373
373
@@ -399,10 +399,10 @@ int32_t sci_init_bit_rate(sci_hdl_t const hdl,
399
399
400
400
/*****************************************************************************
401
401
* Function Name: sci_initialize_ints
402
- * Description : This function sets priority, clears flags, and sets
403
- * interrupts in both the ICU and SCI peripheral. These include
402
+ * Description : This function sets priority, clears flags, and sets
403
+ * interrupts in both the ICU and SCI peripheral. These include
404
404
* RXI, TXI, TEI, and ERI/GROUP12 interrupts.
405
- * Arguments : hdl -
405
+ * Arguments : hdl -
406
406
* handle for channel (ptr to chan control block)
407
407
* priority -
408
408
* priority for interrupts
@@ -441,15 +441,15 @@ void sci_initialize_ints(sci_hdl_t const hdl,
441
441
/* Note: Enable interrupts after xcvr or will get "extra" interrupt */
442
442
hdl -> rom -> regs -> SCR .BYTE |= SCI_EN_XCVR_MASK ; // enable TE, RE, TXI, and RXI/ERI
443
443
444
- return ;
444
+ return ;
445
445
} /* End of function sci_initialize_ints() */
446
446
447
447
/*****************************************************************************
448
448
* Function Name: sci_disable_ints
449
- * Description : This function disable interrupts in both the ICU and SCI
449
+ * Description : This function disable interrupts in both the ICU and SCI
450
450
* peripheral. These include RXI, TXI, TEI, ERI, and group
451
451
* interrupts.
452
- * Arguments : hdl -
452
+ * Arguments : hdl -
453
453
* handle for channel (ptr to chan control block)
454
454
* Return Value : none
455
455
******************************************************************************/
@@ -466,7 +466,7 @@ void sci_disable_ints(sci_hdl_t const hdl)
466
466
467
467
/* Disable ICU TEI interrupt */
468
468
DISABLE_TEI_INT ;
469
-
469
+
470
470
/* disable peripheral interrupts and xcvr (TE and RE) */
471
471
hdl -> rom -> regs -> SCR .BYTE = 0 ;
472
472
@@ -576,7 +576,7 @@ R_BSP_ATTRIB_STATIC_INTERRUPT void sci12_txi12_isr(void)
576
576
/* set bit PSW.I = 1 to allow nested interrupt */
577
577
R_BSP_SETPSW_I ();
578
578
#endif
579
-
579
+
580
580
txi_handler (& ch12_ctrl );
581
581
} /* End of function sci12_txi12_isr() */
582
582
#endif /* End of SCI_CFG_CH12_INCLUDED */
@@ -684,7 +684,7 @@ R_BSP_ATTRIB_STATIC_INTERRUPT void sci12_tei12_isr(void)
684
684
/* set bit PSW.I = 1 to allow nested interrupt */
685
685
R_BSP_SETPSW_I ();
686
686
#endif
687
-
687
+
688
688
tei_handler (& ch12_ctrl );
689
689
} /* End of function sci12_tei12_isr() */
690
690
#endif /* End of SCI_CFG_CH12_INCLUDED */
@@ -787,7 +787,7 @@ R_BSP_ATTRIB_STATIC_INTERRUPT void sci12_rxi12_isr(void)
787
787
/* set bit PSW.I = 1 to allow nested interrupt */
788
788
R_BSP_SETPSW_I ();
789
789
#endif
790
-
790
+
791
791
rxi_handler (& ch12_ctrl );
792
792
} /* End of function sci12_rxi12_isr() */
793
793
#endif /* End of SCI_CFG_CH12_INCLUDED */
@@ -891,7 +891,7 @@ R_BSP_ATTRIB_STATIC_INTERRUPT void sci12_eri12_isr(void)
891
891
/* set bit PSW.I = 1 to allow nested interrupt */
892
892
R_BSP_SETPSW_I ();
893
893
#endif
894
-
894
+
895
895
eri_handler (& ch12_ctrl );
896
896
} /* End of function sci12_eri12_isr() */
897
897
#endif /* End of SCI_CFG_CH12_INCLUDED */
@@ -1086,7 +1086,7 @@ sci_err_t sci_async_cmds(sci_hdl_t const hdl,
1086
1086
#endif
1087
1087
}
1088
1088
#endif
1089
-
1089
+
1090
1090
ENABLE_TXI_INT ;
1091
1091
1092
1092
/* NOTE: the following steps will abort anything being sent */
0 commit comments