lo_hal.c 348 B

123456789101112131415161718192021
  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 HAL_UART_Transmit(
  10. UART_HandleTypeDef* handle,
  11. uint8_t* bufer,
  12. uint16_t size,
  13. uint32_t wait_ms
  14. ) {
  15. uint16_t res = write(1, (const char*)bufer, size);
  16. return res;
  17. }