hal_uart.c 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * BSD 2-Clause License
  3. * Copyright (c) 2022, LiteEMF
  4. * All rights reserved.
  5. * This software component is licensed by LiteEMF under BSD 2-Clause license,
  6. * the "License"; You may not use this file except in compliance with the
  7. * License. You may obtain a copy of the License at:
  8. * opensource.org/licenses/BSD-2-Clause
  9. *
  10. */
  11. /************************************************************************************************************
  12. ** Description:
  13. ************************************************************************************************************/
  14. #include "hw_config.h"
  15. #include "hw_board.h"
  16. #ifdef HW_UART_MAP
  17. #include "api/api_uart.h"
  18. #include "api/api_gpio.h"
  19. /******************************************************************************************************
  20. ** Defined
  21. *******************************************************************************************************/
  22. /******************************************************************************************************
  23. ** static Parameters
  24. *******************************************************************************************************/
  25. /******************************************************************************************************
  26. ** public Parameters
  27. *******************************************************************************************************/
  28. /*****************************************************************************************************
  29. ** static Function
  30. ******************************************************************************************************/
  31. /*****************************************************************************************************
  32. ** Function
  33. ******************************************************************************************************/
  34. /*******************************************************************
  35. ** Parameters:
  36. ** Returns:
  37. ** Description:
  38. *******************************************************************/
  39. bool hal_uart_set_baud(uint8_t id, uint32_t baud)
  40. {
  41. UNUSED_PARAMETER(id);
  42. UNUSED_PARAMETER(baud);
  43. return true;
  44. }
  45. bool hal_uart_tx(uint8_t id,void * buf,uint16_t len)
  46. {
  47. UNUSED_PARAMETER(id);
  48. UNUSED_PARAMETER(buf);
  49. UNUSED_PARAMETER(len);
  50. return true;
  51. }
  52. bool hal_uart_init(uint8_t id,uint32_t baudrate)
  53. {
  54. UNUSED_PARAMETER(id);
  55. UNUSED_PARAMETER(baudrate);
  56. return false;
  57. }
  58. bool hal_uart_deinit(uint8_t id)
  59. {
  60. UNUSED_PARAMETER(id);
  61. return false;
  62. }
  63. #endif