lo_hal.c 330 B

1234567891011121314151617
  1. /*
  2. Flipper devices inc.
  3. Dummy hal for local fw build
  4. */
  5. #include <stdio.h>
  6. #include "main.h"
  7. #include <unistd.h>
  8. UART_HandleTypeDef DEBUG_UART = 0;
  9. uint16_t
  10. HAL_UART_Transmit(UART_HandleTypeDef* handle, uint8_t* bufer, uint16_t size, uint32_t wait_ms) {
  11. uint16_t res = write(1, (const char*)bufer, size);
  12. return res;
  13. }