hal_spi_host.c 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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_SPI_HOST_MAP
  17. #include "api/api_spi_host.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_spi_host_write(uint8_t id,uint16_t addr, uint8_t * buf, uint16_t len)
  40. {
  41. UNUSED_PARAMETER(id);
  42. UNUSED_PARAMETER(addr);
  43. UNUSED_PARAMETER(buf);
  44. UNUSED_PARAMETER(len);
  45. return false;
  46. }
  47. bool hal_spi_host_read(uint8_t id,uint16_t addr, uint8_t * buf, uint16_t len)
  48. {
  49. UNUSED_PARAMETER(id);
  50. UNUSED_PARAMETER(addr);
  51. UNUSED_PARAMETER(buf);
  52. UNUSED_PARAMETER(len);
  53. return false;
  54. }
  55. bool hal_spi_host_isr_write(uint8_t id,uint16_t addr, uint8_t * buf, uint16_t len)
  56. {
  57. UNUSED_PARAMETER(id);
  58. UNUSED_PARAMETER(addr);
  59. UNUSED_PARAMETER(buf);
  60. UNUSED_PARAMETER(len);
  61. return false;
  62. }
  63. bool hal_spi_host_isr_read(uint8_t id,uint16_t addr, uint8_t * buf, uint16_t len)
  64. {
  65. UNUSED_PARAMETER(id);
  66. UNUSED_PARAMETER(addr);
  67. UNUSED_PARAMETER(buf);
  68. UNUSED_PARAMETER(len);
  69. return false;
  70. }
  71. bool hal_spi_host_init(uint8_t id)
  72. {
  73. UNUSED_PARAMETER(id);
  74. return false;
  75. }
  76. bool hal_spi_host_deinit(uint8_t id)
  77. {
  78. UNUSED_PARAMETER(id);
  79. return false;
  80. }
  81. #endif