-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
USB: update section handling for USB Memory Pool (#9)
- Loading branch information
1 parent
e070216
commit d3d7611
Showing
2 changed files
with
56 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/*------------------------------------------------------------------------------ | ||
* MDK Middleware - Component ::USB:Host | ||
* Copyright (c) 2024 Arm Limited (or its affiliates). All rights reserved. | ||
*------------------------------------------------------------------------------ | ||
* Name: usbh_section.h | ||
* Purpose: USB Host (USBH) - Section definitions | ||
*----------------------------------------------------------------------------*/ | ||
|
||
#ifndef USBH_SECTION_ | ||
#define USBH_SECTION_ | ||
|
||
/*------------------------------------------------------------------------------ | ||
* USB Host 0..3 section defines | ||
*----------------------------------------------------------------------------*/ | ||
|
||
#define USBHn_HC_MEM_POOL_SECTION_(str) __attribute__((section(str))) | ||
|
||
#ifdef USBH0_HC_NUM | ||
#if (USBH0_HC_MEM_POOL_RELOC == 1) | ||
#define USBH0_HC_MEM_POOL_SECTION USBHn_HC_MEM_POOL_SECTION_(USBH0_HC_MEM_POOL_SECTION_NAME) | ||
#else | ||
#define USBH0_HC_MEM_POOL_SECTION | ||
#endif | ||
#endif | ||
|
||
#ifdef USBH1_HC_NUM | ||
#if (USBH1_HC_MEM_POOL_RELOC == 1) | ||
#define USBH1_HC_MEM_POOL_SECTION USBHn_HC_MEM_POOL_SECTION_(USBH1_HC_MEM_POOL_SECTION_NAME) | ||
#else | ||
#define USBH1_HC_MEM_POOL_SECTION | ||
#endif | ||
#endif | ||
|
||
#ifdef USBH2_HC_NUM | ||
#if (USBH2_HC_MEM_POOL_RELOC == 1) | ||
#define USBH2_HC_MEM_POOL_SECTION USBHn_HC_MEM_POOL_SECTION_(USBH2_HC_MEM_POOL_SECTION_NAME) | ||
#else | ||
#define USBH2_HC_MEM_POOL_SECTION | ||
#endif | ||
#endif | ||
|
||
#ifdef USBH3_HC_NUM | ||
#if (USBH3_HC_MEM_POOL_RELOC == 1) | ||
#define USBH3_HC_MEM_POOL_SECTION USBHn_HC_MEM_POOL_SECTION_(USBH3_HC_MEM_POOL_SECTION_NAME) | ||
#else | ||
#define USBH3_HC_MEM_POOL_SECTION | ||
#endif | ||
#endif | ||
|
||
#endif // USBH_SECTION_ |