arch: arm: imxrt: nxstyle fix

nxstyle is complaining that the headers are defines outside
Included Files section and we have to duplicate the definitions
to the imported files to avoid build errors.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
Alin Jerpelea 2021-03-22 08:46:24 +01:00 committed by Xiang Xiao
parent fe64ed54b9
commit b6a987afe0
4 changed files with 390 additions and 181 deletions

File diff suppressed because it is too large Load Diff

View File

@ -20,10 +20,38 @@
/* Based on chip selection this file is included in imxrt_daisy.c */
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#define DAISY_INDEX_INVALID 255
#define DAISY_SEL_INVALID 255
#define ALT0 0
#define ALT1 1
#define ALT2 2
#define ALT3 3
#define ALT4 4
#define ALT5 5
#define ALT6 6
#define ALT7 7
#define ALT8 8
#define ALT9 9
/****************************************************************************
* Private Data
****************************************************************************/
struct imxrt_daisy_entry_t
{
uint8_t index;
uint8_t sel;
};
struct imxrt_daisy_t
{
struct imxrt_daisy_entry_t alts[10];
};
static const struct imxrt_daisy_t g_daisy_select[] =
{
/* index:0 GPIO_EMC_00 */

View File

@ -20,10 +20,38 @@
/* Based on chip selection this file is included in imxrt_daisy.c */
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#define DAISY_INDEX_INVALID 255
#define DAISY_SEL_INVALID 255
#define ALT0 0
#define ALT1 1
#define ALT2 2
#define ALT3 3
#define ALT4 4
#define ALT5 5
#define ALT6 6
#define ALT7 7
#define ALT8 8
#define ALT9 9
/****************************************************************************
* Private Data
****************************************************************************/
struct imxrt_daisy_entry_t
{
uint8_t index;
uint8_t sel;
};
struct imxrt_daisy_t
{
struct imxrt_daisy_entry_t alts[10];
};
static const struct imxrt_daisy_t g_daisy_select[] =
{
/* index:0 GPIO_EMC_00 */

View File

@ -30,38 +30,6 @@
#include "hardware/imxrt_daisy.h"
#include "imxrt_iomuxc.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#define DAISY_INDEX_INVALID 255
#define DAISY_SEL_INVALID 255
#define ALT0 0
#define ALT1 1
#define ALT2 2
#define ALT3 3
#define ALT4 4
#define ALT5 5
#define ALT6 6
#define ALT7 7
#define ALT8 8
#define ALT9 9
/****************************************************************************
* Private Data
****************************************************************************/
struct imxrt_daisy_entry_t
{
uint8_t index;
uint8_t sel;
};
struct imxrt_daisy_t
{
struct imxrt_daisy_entry_t alts[10];
};
/* Include chip-specific daisy input selection */
#if defined(CONFIG_ARCH_FAMILY_IMXRT102x)
@ -74,6 +42,10 @@ struct imxrt_daisy_t
# error Unrecognized i.MX RT architecture
#endif
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/****************************************************************************
* Public Functions
****************************************************************************/