based-on-stm32-taxi-meter/Bootloader/Core/Inc/retarget.h

23 lines
406 B
C
Raw Permalink Normal View History

2024-05-02 14:03:11 +08:00
#ifndef DUOJI_SDK_RETARGET_H
#define DUOJI_SDK_RETARGET_H
#include "stm32f1xx_hal.h"
#include <sys/stat.h>
#include <stdio.h>
void RetargetInit(UART_HandleTypeDef *huart);
int _isatty(int fd);
int _write(int fd, char *ptr, int len);
int _close(int fd);
int _lseek(int fd, int ptr, int dir);
int _read(int fd, char *ptr, int len);
int _fstat(int fd, struct stat *st);
#endif //DUOJI_SDK_RETARGET_H