1 /* 2 * Copyright (c) 2022 Winner Microelectronics Co., Ltd. All rights reserved. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 /** 17 * @file wm_ram_config.h 18 * 19 * @brief WM ram model configure 20 * 21 * @author winnermicro 22 * 23 * Copyright (c) 2015 Winner Microelectronics Co., Ltd. 24 */ 25 #ifndef __WM_RAM_CONFIG_H__ 26 #define __WM_RAM_CONFIG_H__ 27 #include "wm_config.h" 28 29 /* see gcc_csky.ld in directory ld/w800,__heap_end must be bigger than 0x20028000 30 * if __heap_end is lower than 0x20028000,then SLAVE_HSPI_SDIO_ADDR must be changed to 0x20028000 or bigger. 31 */ 32 extern unsigned int __heap_end; 33 extern unsigned int __heap_start; 34 35 /* High speed SPI or SDIO buffer to exchange data */ 36 #define SLAVE_HSPI_SDIO_ADDR ((unsigned int)(&__heap_end)) 37 38 #if TLS_CONFIG_HS_SPI 39 #define SLAVE_HSPI_MAX_SIZE (0x2000) 40 #else 41 #define SLAVE_HSPI_MAX_SIZE (0x0) 42 #endif 43 44 /* Wi-Fi use buffer to exchange data */ 45 #define WIFI_MEM_START_ADDR (SLAVE_HSPI_SDIO_ADDR + SLAVE_HSPI_MAX_SIZE) 46 47 #endif /* __WM_RAM_CONFIG_H__ */