MCUXpresso_MIMXRT1052xxxxB/boards/evkbimxrt1050/wifi_examples/wifi_ipv4_ipv6_echo/lwippools.h
2022-04-08 22:46:35 +08:00

26 lines
698 B
C

/* @file lwippools.h
*
* @brief This file contains custom LwIP memory pool definitions
*
* Copyright 2020 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef __LWIPPOOLS_H__
#define __LWIPPOOLS_H__
#ifdef MEMP_USE_CUSTOM_POOLS
/*
* We explicitly move certain large LwIP memory pools to the custom defined
* .wlan_data section in (flash) memory to avoid memory overflow in the
* m_data section (RAM).
*/
extern unsigned char __attribute__((section(".wlan_data"))) memp_memory_PBUF_POOL_base[];
extern unsigned char __attribute__((section(".wlan_data"))) memp_memory_TCP_PCB_POOL_base[];
#endif /* MEMP_USE_CUSTOM_POOLS */
#endif /* __LWIPPOOLS_H__ */