usb: usb_dc_mcux: use K_HEAP_DEFINE_NOCACHE()
This changes "__nocache K_HEAP_DEFINE()" to use the new K_HEAP_DEFINE_NOCACHE() macro. This fixes a build error as K_HEAP_DEFINE() is specifying its own linker section so that it is no longer possible to specify another linker section. Fixes #38108 Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
10490387b4
commit
89ddd0bfd2
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ static void usb_isr_handler(void);
|
|||
/* The max MPS is 1023 for FS, 1024 for HS. */
|
||||
#if defined(CONFIG_NOCACHE_MEMORY)
|
||||
#define EP_BUF_NONCACHED
|
||||
__nocache K_HEAP_DEFINE(ep_buf_pool, 1024 * EP_BUF_NUMOF_BLOCKS);
|
||||
K_HEAP_DEFINE_NOCACHE(ep_buf_pool, 1024 * EP_BUF_NUMOF_BLOCKS);
|
||||
#else
|
||||
K_HEAP_DEFINE(ep_buf_pool, 1024 * EP_BUF_NUMOF_BLOCKS);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue