lo_hal.c 372 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
  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. }
  14. uint8_t BSP_SD_Init() {
  15. return 0;
  16. }