syslog: convert \n to \r\n in syslog framework layer

Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
This commit is contained in:
yangsong8
2024-10-09 21:55:48 +08:00
committed by Xiang Xiao
parent 67ed036227
commit 8c13b8df1d
108 changed files with 294 additions and 1705 deletions
-18
View File
@@ -1574,15 +1574,6 @@ int up_putc(int ch)
up_disableuartint(priv, &ier);
#endif
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#ifdef HAVE_SERIAL_CONSOLE
up_restoreuartint(priv, ier);
@@ -1604,15 +1595,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_UART_DEVICE
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-18
View File
@@ -1378,15 +1378,6 @@ int up_putc(int ch)
up_disableuartint(priv, &ier);
#endif
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#ifdef HAVE_SERIAL_CONSOLE
up_restoreuartint(priv, ier);
@@ -1408,15 +1399,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_UART_DEVICE
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-19
View File
@@ -3004,16 +3004,6 @@ int up_putc(int ch)
uint16_t ie;
up_disableusartint(priv, &ie);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
up_restoreusartint(priv, ie);
#endif
@@ -3033,15 +3023,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#if CONSOLE_UART > 0
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-10
View File
@@ -839,16 +839,6 @@ int up_putc(int ch)
up_waittxready(priv);
up_serialout(priv, UART_THR_OFFS, (uint8_t)ch);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
up_waittxready(priv);
up_serialout(priv, UART_THR_OFFS, '\r');
}
up_waittxready(priv);
up_restoreuartint(priv, ier);
return ch;
-9
View File
@@ -978,15 +978,6 @@ int up_putc(int ch)
up_disableuartint(priv, &ier);
#endif
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#ifdef HAVE_CONSOLE
up_restoreuartint(priv, ier);
-18
View File
@@ -1116,15 +1116,6 @@ int up_putc(int ch)
up_disableuartint(priv, &ier);
#endif
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#ifdef HAVE_CONSOLE
up_restoreuartint(priv, ier);
@@ -1146,15 +1137,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_UART
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-20
View File
@@ -751,16 +751,6 @@ int up_putc(int ch)
up_waittxready(priv);
up_serialout(priv, UART_DTRR, (uint16_t)ch);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
up_waittxready(priv);
up_serialout(priv, UART_DTRR, '\r');
}
up_waittxready(priv);
up_restoreuartint(priv, ier);
return ch;
@@ -804,16 +794,6 @@ int up_putc(int ch)
up_waittxready();
putreg16((uint16_t)ch, DM320_REGISTER_BASE + UART_DTRR);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
up_waittxready();
putreg16((uint16_t)'\r', DM320_REGISTER_BASE + UART_DTRR);
}
up_waittxready();
return ch;
}
-19
View File
@@ -815,16 +815,6 @@ int up_putc(int ch)
uint32_t ien;
efm32_disableuartint(priv, &ien);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
efm32_lowputc('\r');
}
efm32_lowputc(ch);
efm32_restoreuartint(priv, ien);
return ch;
@@ -844,15 +834,6 @@ int up_putc(int ch)
#ifdef HAVE_LEUART_CONSOLE
int up_putc(int ch)
{
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
efm32_lowputc('\r');
}
efm32_lowputc(ch);
return ch;
}
-19
View File
@@ -1192,16 +1192,6 @@ int up_putc(int ch)
uint32_t ien;
efm32_disableuartint(priv, &ien);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
efm32_lowputc('\r');
}
efm32_lowputc(ch);
efm32_restoreuartint(priv, ien);
#endif
@@ -1223,15 +1213,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_UART_CONSOLE
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
efm32_lowputc('\r');
}
efm32_lowputc(ch);
#endif
return ch;
-19
View File
@@ -588,16 +588,6 @@ int up_putc(int ch)
uint32_t ie;
eoss3_disableuartint(priv, &ie);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
eoss3_restoreuartint(priv, ie);
#endif
@@ -617,15 +607,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
/* Output the character */
arm_lowputc(ch);
-19
View File
@@ -2937,16 +2937,6 @@ int up_putc(int ch)
uint32_t ie;
up_disableusartint(priv, &ie);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
up_restoreusartint(priv, ie);
#endif
@@ -2966,15 +2956,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef CONSOLE_UART
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-21
View File
@@ -1166,16 +1166,6 @@ int up_putc(int ch)
up_disableuartint(priv, &ier);
up_waittxready(priv);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
up_serialout(priv, UART_TXD0, (uint32_t)'\r');
up_waittxready(priv);
}
up_serialout(priv, UART_TXD0, (uint32_t)ch);
up_waittxready(priv);
up_restoreuartint(priv, ier);
@@ -1224,17 +1214,6 @@ static inline void up_waittxready(void)
int up_putc(int ch)
{
up_waittxready();
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
putreg32((uint16_t)'\r', IMX_REGISTER_BASE + UART_TXD0);
up_waittxready();
}
putreg32((uint16_t)ch, IMX_REGISTER_BASE + UART_TXD0);
return ch;
}
-21
View File
@@ -1124,16 +1124,6 @@ int up_putc(int ch)
*/
imx_disableuartint(priv, &ier);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
imx_lowputc('\r');
}
imx_lowputc(ch);
imx_restoreuartint(priv, ier);
@@ -1190,17 +1180,6 @@ int up_putc(int ch)
{
#ifdef IMX_CONSOLE_VBASE
imx_waittxready();
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
putreg32((uint16_t)'\r', IMX_CONSOLE_VBASE + UART_TXD_OFFSET);
imx_waittxready();
}
putreg32((uint16_t)ch, IMX_CONSOLE_VBASE + UART_TXD_OFFSET);
#endif
-19
View File
@@ -3678,16 +3678,6 @@ int up_putc(int ch)
uint32_t ie;
imxrt_disableuartint(priv, &ie);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
imxrt_lowputc('\r');
}
imxrt_lowputc(ch);
imxrt_restoreuartint(priv, ie);
#endif
@@ -3708,15 +3698,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#if CONSOLE_LPUART > 0
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
-19
View File
@@ -1956,16 +1956,6 @@ int up_putc(int ch)
uint32_t ie;
kinetis_disableuartint(priv, &ie);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
kinetis_restoreuartint(priv, ie);
#endif
@@ -1987,15 +1977,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_LPUART_CONSOLE
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-19
View File
@@ -2148,16 +2148,6 @@ int up_putc(int ch)
uint8_t ie;
up_disableuartint(priv, &ie);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
up_restoreuartint(priv, ie);
#endif
@@ -2179,15 +2169,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_UART_CONSOLE
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-19
View File
@@ -882,16 +882,6 @@ int up_putc(int ch)
uint8_t ie;
up_disableuartint(priv, &ie);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
kl_lowputc('\r');
}
kl_lowputc(ch);
up_restoreuartint(priv, ie);
#endif
@@ -911,15 +901,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_SERIAL_CONSOLE
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
kl_lowputc('\r');
}
kl_lowputc(ch);
#endif
return ch;
-19
View File
@@ -1374,16 +1374,6 @@ int up_putc(int ch)
up_waittxnotfull(priv);
up_serialout(priv, UART_USTF, (uint32_t)ch);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
up_waittxnotfull(priv);
up_serialout(priv, UART_USTF, (uint32_t)'\r');
}
up_waittxnotfull(priv);
up_restoreuartint(priv, im);
return ch;
@@ -1401,15 +1391,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
return ch;
}
@@ -1692,15 +1692,6 @@ int up_putc(int ch)
up_disableuartint(priv, &ier);
#endif
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#ifdef HAVE_CONSOLE
up_restoreuartint(priv, ier);
@@ -1722,15 +1713,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_UART
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-19
View File
@@ -792,16 +792,6 @@ int up_putc(int ch)
up_waittxready(priv);
up_serialout(priv, LPC214X_UART_THR_OFFSET, (uint8_t)ch);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
up_waittxready(priv);
up_serialout(priv, LPC214X_UART_THR_OFFSET, '\r');
}
up_waittxready(priv);
up_restoreuartint(priv, ier);
return ch;
@@ -819,15 +809,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
return ch;
}
-19
View File
@@ -932,16 +932,6 @@ int up_putc(int ch)
up_waittxready(priv);
up_serialout(priv, UART_THR_OFFSET, (uint8_t) ch);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
up_waittxready(priv);
up_serialout(priv, UART_THR_OFFSET, '\r');
}
up_waittxready(priv);
up_restoreuartint(priv, ier);
return ch;
@@ -959,15 +949,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
return ch;
}
-18
View File
@@ -808,15 +808,6 @@ int up_putc(int ch)
up_disableuartint(priv, &ier);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
/* Output the character */
arm_lowputc(ch);
@@ -836,15 +827,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
/* Output the character */
arm_lowputc(ch);
-18
View File
@@ -1356,15 +1356,6 @@ int up_putc(int ch)
up_disableuartint(priv, &ier);
#endif
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#ifdef HAVE_SERIAL_CONSOLE
up_restoreuartint(priv, ier);
@@ -1386,15 +1377,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_UART
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-19
View File
@@ -1447,16 +1447,6 @@ int up_putc(int ch)
uint32_t intset;
lpc54_fifoint_disableall(priv, &intset);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
lpc54_fifoint_enable(priv, intset);
#endif
@@ -1477,15 +1467,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_USART_CONSOLE
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
return ch;
}
@@ -832,16 +832,6 @@ int up_putc(int ch)
uint32_t intset;
max326_int_disableall(priv, &intset);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
max326_int_enable(priv, intset);
#endif
@@ -862,15 +852,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_UART_CONSOLE
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
return ch;
}
-21
View File
@@ -1062,16 +1062,6 @@ int up_putc(int ch)
*/
mx8mp_disableuartint(priv, &ier);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
mx8mp_restoreuartint(priv, ier);
#endif
@@ -1127,17 +1117,6 @@ int up_putc(int ch)
{
#ifdef MX8MP_CONSOLE
mx8mp_waittxready();
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
putreg32((uint16_t)'\r', MX8MP_CONSOLE + UART_TXD_OFFSET);
mx8mp_waittxready();
}
putreg32((uint16_t)ch, MX8MP_CONSOLE + UART_TXD_OFFSET);
#endif
-18
View File
@@ -817,15 +817,6 @@ int up_putc(int ch)
#ifdef HAVE_UART_CONSOLE
/* struct nrf52_dev_s *priv = (struct nrf52_dev_s *)CONSOLE_DEV.priv; */
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
@@ -845,15 +836,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_UART_CONSOLE
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-18
View File
@@ -817,15 +817,6 @@ int up_putc(int ch)
#ifdef HAVE_UART_CONSOLE
/* struct nrf53_dev_s *priv = (struct nrf53_dev_s *)CONSOLE_DEV.priv; */
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
@@ -845,15 +836,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_UART_CONSOLE
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-18
View File
@@ -817,15 +817,6 @@ int up_putc(int ch)
#ifdef HAVE_UART_CONSOLE
/* struct nrf91_dev_s *priv = (struct nrf91_dev_s *)CONSOLE_DEV.priv; */
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
@@ -845,15 +836,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_UART_CONSOLE
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-18
View File
@@ -1057,15 +1057,6 @@ int up_putc(int ch)
up_disableuartint(priv, &ier);
#endif
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
nuc_lowputc((uint32_t)'\r');
}
nuc_lowputc((uint32_t)ch);
#ifdef HAVE_CONSOLE
up_restoreuartint(priv, ier);
@@ -1087,15 +1078,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_UART
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
nuc_lowputc((uint32_t)'\r');
}
nuc_lowputc((uint32_t)ch);
#endif
return ch;
-19
View File
@@ -1022,16 +1022,6 @@ int up_putc(int ch)
uint32_t ier;
up_disableuartint(priv, &ier);
#endif
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#ifdef HAVE_CONSOLE
up_restoreuartint(priv, ier);
@@ -1053,15 +1043,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_UART
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-9
View File
@@ -1078,15 +1078,6 @@ int up_putc(int ch)
{
struct ameba_s *priv = (struct ameba_s *)CONSOLE_DEV.priv;
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
ameba_putc(priv, '\r');
}
ameba_putc(priv, ch);
return ch;
}
-19
View File
@@ -2552,16 +2552,6 @@ int up_putc(int ch)
uint32_t ie;
s32k1xx_disableuartint(priv, &ie);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
s32k1xx_lowputc('\r');
}
s32k1xx_lowputc(ch);
s32k1xx_restoreuartint(priv, ie);
#endif
@@ -2582,15 +2572,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#if CONSOLE_LPUART > 0
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
-19
View File
@@ -4460,16 +4460,6 @@ int up_putc(int ch)
uint32_t ie;
s32k3xx_disableuartint(priv, &ie);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
s32k3xx_lowputc('\r');
}
s32k3xx_lowputc(ch);
s32k3xx_restoreuartint(priv, ie);
#endif
@@ -4490,15 +4480,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#if CONSOLE_LPUART > 0
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
-9
View File
@@ -306,15 +306,6 @@ void arm_lowputc(char ch)
int up_putc(int ch)
{
#ifdef HAVE_CONSOLE
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-8
View File
@@ -319,14 +319,6 @@ int up_putc(int ch)
{
#if defined(SAMA5_HAVE_UART_CONSOLE) || defined(SAMA5_HAVE_USART_CONSOLE) || \
defined(SAMA5_HAVE_FLEXCOM_CONSOLE) || defined(CONFIG_SAMA5_DBGU_CONSOLE)
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
-19
View File
@@ -1047,16 +1047,6 @@ int up_putc(int ch)
*/
flags = spin_lock_irqsave(NULL);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
sam_lowputc('\r');
}
sam_lowputc(ch);
spin_unlock_irqrestore(NULL, flags);
#endif
@@ -1076,15 +1066,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_SERIAL_CONSOLE
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
sam_lowputc('\r');
}
sam_lowputc(ch);
#endif
return ch;
-19
View File
@@ -1106,16 +1106,6 @@ int up_putc(int ch)
*/
flags = spin_lock_irqsave(NULL);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
sam_lowputc('\r');
}
sam_lowputc(ch);
spin_unlock_irqrestore(NULL, flags);
#endif
@@ -1135,15 +1125,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_SERIAL_CONSOLE
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
sam_lowputc('\r');
}
sam_lowputc(ch);
#endif
return ch;
-9
View File
@@ -212,15 +212,6 @@ void arm_lowputc(char ch)
int up_putc(int ch)
{
#ifdef HAVE_SERIAL_CONSOLE
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-19
View File
@@ -3639,16 +3639,6 @@ int up_putc(int ch)
uint16_t ie;
up_disableusartint(priv, &ie);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
up_restoreusartint(priv, ie);
#endif
@@ -3668,15 +3658,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#if CONSOLE_UART > 0 || CONSOLE_LPUART > 0
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
@@ -2581,16 +2581,6 @@ int up_putc(int ch)
uint16_t ie;
stm32serial_disableusartint(priv, &ie);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
stm32serial_restoreusartint(priv, ie);
#endif
@@ -2610,15 +2600,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#if CONSOLE_USART > 0
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
@@ -2014,16 +2014,6 @@ int up_putc(int ch)
uint16_t ie;
up_disableusartint(priv, &ie);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
up_restoreusartint(priv, ie);
@@ -2044,15 +2034,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#if CONSOLE_USART > 0
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-19
View File
@@ -3799,16 +3799,6 @@ int up_putc(int ch)
uint16_t ie;
up_disableusartint(priv, &ie);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
up_restoreusartint(priv, ie);
#endif
@@ -3828,15 +3818,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#if CONSOLE_UART > 0
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-19
View File
@@ -4008,16 +4008,6 @@ int up_putc(int ch)
uint16_t ie;
up_disableusartint(priv, &ie);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
up_restoreusartint(priv, ie);
@@ -4038,15 +4028,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#if CONSOLE_UART > 0
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-19
View File
@@ -3268,16 +3268,6 @@ int up_putc(int ch)
uint16_t ie;
stm32l4serial_disableusartint(priv, &ie);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
stm32l4serial_restoreusartint(priv, ie);
#endif
@@ -3297,15 +3287,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#if CONSOLE_UART > 0
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-19
View File
@@ -3201,16 +3201,6 @@ int up_putc(int ch)
uint16_t ie;
stm32l5serial_disableusartint(priv, &ie);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
stm32l5serial_restoreusartint(priv, ie);
#endif
@@ -3230,15 +3220,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#if CONSOLE_UART > 0
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-19
View File
@@ -3201,16 +3201,6 @@ int up_putc(int ch)
uint16_t ie;
stm32serial_disableusartint(priv, &ie);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
stm32serial_restoreusartint(priv, ie);
#endif
@@ -3230,15 +3220,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#if CONSOLE_UART > 0
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-19
View File
@@ -2834,16 +2834,6 @@ int up_putc(int ch)
uint16_t ie;
stm32wb_serial_disableusartint(priv, &ie);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
stm32wb_serial_restoreusartint(priv, ie);
#endif
@@ -2863,15 +2853,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#if CONSOLE_UART > 0
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-19
View File
@@ -2935,16 +2935,6 @@ int up_putc(int ch)
uint16_t ie;
stm32wl5serial_disableusartint(priv, &ie);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
stm32wl5serial_restoreusartint(priv, ie);
#endif
@@ -2964,15 +2954,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#if CONSOLE_UART > 0
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;
-19
View File
@@ -960,16 +960,6 @@ int up_putc(int ch)
up_waittxnotfull(priv);
up_serialout(priv, STR71X_UART_TXBUFR_OFFSET, (uint16_t)ch);
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
up_waittxnotfull(priv);
up_serialout(priv, STR71X_UART_TXBUFR_OFFSET, (uint16_t)'\r');
}
up_waittxnotfull(priv);
up_restoreuartint(priv, ier);
#endif
@@ -989,15 +979,6 @@ int up_putc(int ch)
int up_putc(int ch)
{
#ifdef HAVE_CONSOLE
/* Check for LF */
if (ch == '\n')
{
/* Add CR */
arm_lowputc('\r');
}
arm_lowputc(ch);
#endif
return ch;

Some files were not shown because too many files have changed in this diff Show More