wm_ram_config.h 694 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * @file wm_ram_config.h
  3. *
  4. * @brief WM ram model configure
  5. *
  6. * @author winnermicro
  7. *
  8. * Copyright (c) 2015 Winner Microelectronics Co., Ltd.
  9. */
  10. #ifndef __WM_RAM_CONFIG_H__
  11. #define __WM_RAM_CONFIG_H__
  12. #include "wm_config.h"
  13. extern unsigned int __heap_end;
  14. extern unsigned int __heap_start;
  15. /*High speed SPI or SDIO buffer to exchange data*/
  16. #define SLAVE_HSPI_SDIO_ADDR ((unsigned int)(&__heap_end))
  17. #if TLS_CONFIG_HS_SPI
  18. #define SLAVE_HSPI_MAX_SIZE (0x2000)
  19. #else
  20. #define SLAVE_HSPI_MAX_SIZE (0x0)
  21. #endif
  22. /*Wi-Fi use buffer to exchange data*/
  23. #define WIFI_MEM_START_ADDR (SLAVE_HSPI_SDIO_ADDR + SLAVE_HSPI_MAX_SIZE)
  24. #endif /*__WM_RAM_CONFIG_H__*/