12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
-
- #ifndef STM32SPROG_SERIAL_H
- #define STM32SPROG_SERIAL_H
- #include <stdbool.h>
- #include <stddef.h>
- #include <stdint.h>
- #include "usart.h"
- #define USARTn USER_USART
- #define MAX_READ_RETRIES 50000000
- typedef struct SSerialDev SerialDev;
- bool serialRead(SerialDev *dev, uint8_t *buffer, size_t n);
- bool serialWrite(SerialDev *dev, const uint8_t *buffer, size_t n);
- #endif
|