Revert "Fix conflicting types for 'tfp_printf' (#8269)"
This reverts commit e17b55e33a
.
This commit is contained in:
parent
1ff526dac0
commit
6f30b402a2
10 changed files with 357 additions and 15 deletions
|
@ -158,6 +158,9 @@ int main(void) {
|
|||
/* Init USB */
|
||||
init_usb_driver(&USB_DRIVER);
|
||||
|
||||
/* init printf */
|
||||
init_printf(NULL, sendchar_pf);
|
||||
|
||||
#ifdef MIDI_ENABLE
|
||||
setup_midi();
|
||||
#endif
|
||||
|
|
|
@ -796,7 +796,10 @@ int8_t sendchar(uint8_t c) {
|
|||
}
|
||||
#endif /* CONSOLE_ENABLE */
|
||||
|
||||
void _putchar(char character) { sendchar(character); }
|
||||
void sendchar_pf(void *p, char c) {
|
||||
(void)p;
|
||||
sendchar((uint8_t)c);
|
||||
}
|
||||
|
||||
#ifdef RAW_ENABLE
|
||||
void raw_hid_send(uint8_t *data, uint8_t length) {
|
||||
|
|
|
@ -87,4 +87,6 @@ void console_flush_output(void);
|
|||
|
||||
#endif /* CONSOLE_ENABLE */
|
||||
|
||||
void sendchar_pf(void *p, char c);
|
||||
|
||||
#endif /* _USB_MAIN_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue