File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ void __attribute__((cold)) Init()
212212 WriteRegister (SC16IS7X0_FCR , FCR_ENABLE_FIFO );
213213}
214214
215- void Putc (int c)
215+ void PutChar (int c)
216216{
217217 if (!s_is_connected)
218218 {
Original file line number Diff line number Diff line change 22 * @file console.cpp
33 *
44 */
5- /* Copyright (C) 2023-2025 by Arjan van Vught mailto:info@gd32-dmx.org
5+ /* Copyright (C) 2023-2026 by Arjan van Vught mailto:info@gd32-dmx.org
66 *
77 * Permission is hereby granted, free of charge, to any person obtaining a copy
88 * of this software and associated documentation files (the "Software"), to deal
@@ -32,5 +32,5 @@ void Puts([[maybe_unused]] const char* p) {}
3232void Write ([[maybe_unused]] const char * p, [[maybe_unused]] unsigned int i) {}
3333void Status ([[maybe_unused]] uint32_t i, [[maybe_unused]] const char * p) {}
3434void Error ([[maybe_unused]] const char * p) {}
35- void Putc ([[maybe_unused]] int i) {}
35+ void PutChar ([[maybe_unused]] int i) {}
3636} // namespace console
Original file line number Diff line number Diff line change 22 * @file console.cpp
33 *
44 */
5- /* Copyright (C) 2018-2025 by Arjan van Vught mailto:info@gd32-dmx.org
5+ /* Copyright (C) 2018-2026 by Arjan van Vught mailto:info@gd32-dmx.org
66 *
77 * Permission is hereby granted, free of charge, to any person obtaining a copy
88 * of this software and associated documentation files (the "Software"), to deal
2323 * THE SOFTWARE.
2424 */
2525
26- #include < cstdint>
2726#include < cstring>
2827
2928#include " console.h"
3029
3130namespace uart0
3231{
3332void Init ();
34- void Putc (int );
33+ void PutChar (int );
3534void Puts (const char *);
3635} // namespace uart0
3736
3837namespace console
3938{
4039void SetFgColour (Colours fg);
4140
42- void Putc (int c)
41+ void PutChar (int c)
4342{
44- uart0::Putc (c);
43+ uart0::PutChar (c);
4544}
4645
4746void Puts (const char * s)
@@ -100,7 +99,7 @@ void Write(const char* s, unsigned int n)
10099
101100 while (((c = *s++) != 0 ) && (n-- != 0 ))
102101 {
103- Putc (static_cast <int >(c));
102+ PutChar (static_cast <int >(c));
104103 }
105104}
106105
Original file line number Diff line number Diff line change 22 * @file console_i2c.h
33 *
44 */
5- /* Copyright (C) 2025 by Arjan van Vught mailto:info@gd32-dmx.org
5+ /* Copyright (C) 2025-2026 by Arjan van Vught mailto:info@gd32-dmx.org
66 *
77 * Permission is hereby granted, free of charge, to any person obtaining a copy
88 * of this software and associated documentation files (the "Software"), to deal
3030#error File should not be included
3131#endif
3232
33- #endif // CONSOLE_CONSOLE_I2C_H_
33+ #endif // CONSOLE_CONSOLE_I2C_H_
Original file line number Diff line number Diff line change 22 * @file console_null.h
33 *
44 */
5- /* Copyright (C) 2025 by Arjan van Vught mailto:info@gd32-dmx.org
5+ /* Copyright (C) 2025-2026 by Arjan van Vught mailto:info@gd32-dmx.org
66 *
77 * Permission is hereby granted, free of charge, to any person obtaining a copy
88 * of this software and associated documentation files (the "Software"), to deal
@@ -46,11 +46,11 @@ enum class Colours
4646};
4747
4848inline void Init () {}
49- inline void Putc ([[maybe_unused]] int i) {}
49+ inline void PutChar ([[maybe_unused]] int i) {}
5050inline void Puts ([[maybe_unused]] const char * p) {}
5151inline void Write ([[maybe_unused]] const char * p, [[maybe_unused]] unsigned int i) {}
5252inline void Status ([[maybe_unused]] Colours c, [[maybe_unused]] const char * p) {}
5353inline void Error ([[maybe_unused]] const char * p) {}
5454} // namespace console
5555
56- #endif // CONSOLE_CONSOLE_NULL_H_
56+ #endif // CONSOLE_CONSOLE_NULL_H_
Original file line number Diff line number Diff line change 22 * @file console_uart0.h
33 *
44 */
5- /* Copyright (C) 2025 by Arjan van Vught mailto:info@gd32-dmx.org
5+ /* Copyright (C) 2025-2026 by Arjan van Vught mailto:info@gd32-dmx.org
66 *
77 * Permission is hereby granted, free of charge, to any person obtaining a copy
88 * of this software and associated documentation files (the "Software"), to deal
@@ -72,7 +72,7 @@ enum class Colours
7272};
7373
7474void Init ();
75- void Putc (int );
75+ void PutChar (int );
7676void Puts (const char *);
7777void Write (const char *, unsigned int );
7878void Status (Colours, const char *);
@@ -82,4 +82,4 @@ void Error(const char*);
8282
8383} // namespace console
8484
85- #endif // CONSOLE_CONSOLE_UART0_H_
85+ #endif // CONSOLE_CONSOLE_UART0_H_
You can’t perform that action at this time.
0 commit comments