CRINSA-team2025
V1
Documentation du Club Robot INSA Rennes 2025
Chargement...
Recherche...
Aucune correspondance
PrintfSupport.h
1
//
2
// Created by boris on 23/01/2025.
3
//
4
5
#ifndef PRINTFSUPPORT_H
6
#define PRINTFSUPPORT_H
7
8
#include <Arduino.h>
9
#include <stdio.h>
10
11
#define PRINTF_SERIAL Serial
12
#define PRINTF_BAUD 921600
13
14
namespace
PrintfSupport {
15
void
begin(uint baud);
16
}
17
18
inline
void
PrintfSupport::begin(uint baud) {
19
PRINTF_SERIAL.begin(baud);
20
}
21
22
23
extern
"C"
int
__io_putchar(
int
ch){
24
/* Place your implementation of fputc here */
25
/* e.g. write a character to the USART1 and Loop until the end of transmission */
26
PRINTF_SERIAL.write(ch);
27
28
return
ch;
29
}
30
31
32
#endif
//PRINTFSUPPORT_H
lib
Include
PrintfSupport.h
Généré par
1.13.2