bluepill firmware that turns it into a USB-I2C multimaster gateway with a simple serial protocol.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bluepill-i2c-gw/Core/Src/logging.c

9 lines
160 B

#include "logging.h"
#include "main.h"
int _write(int file, char *ptr, int len)
{
HAL_UART_Transmit(&huart1, (uint8_t*) ptr, len, 1000);
return len;
}