Skip to content

Commit

Permalink
imxrt: use global __CPU_* as target cpu selector
Browse files Browse the repository at this point in the history
Replaces redundant target cpu selectors provided locally by plo
with global __CPU_* from phoenix-rtos-build system.

JIRA: RTOS-519
  • Loading branch information
gerard5 committed Jul 13, 2023
1 parent 3fd015a commit d4bcee3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions devices/flash-flexspi/flashdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static inline int minorToInstance(unsigned int minor)
case 0:
return flexspi_instance1;

#if defined(IMXRT106X) || defined(IMXRT117X)
#if defined(__CPU_IMXRT106X) || defined(__CPU_IMXRT117X)
case 1:
return flexspi_instance2;
#endif
Expand All @@ -53,12 +53,12 @@ static inline int minorToPortMask(unsigned int minor)
case 0:
return flexspi_slBusA1;

#if defined(IMXRT106X)
#if defined(__CPU_IMXRT106X)
case 1:
return flexspi_slBusA1;
#endif

#if defined(IMXRT117X)
#if defined(__CPU_IMXRT117X)
case 1:
return flexspi_slBusA1 | flexspi_slBusA2;
#endif
Expand Down
6 changes: 3 additions & 3 deletions devices/flash-flexspi/fspi/fspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@


/* Include platform dependent pin config */
#if defined(IMXRT117X)
#if defined(__CPU_IMXRT117X)
#include "fspi_rt117x.h"
#elif defined(IMXRT106X)
#elif defined(__CPU_IMXRT106X)
#include "fspi_rt106x.h"
#elif defined(IMXRT105X)
#elif defined(__CPU_IMXRT105X)
#include "fspi_rt105x.h"
#else
#error "FlexSPI is not supported on this target"
Expand Down
2 changes: 1 addition & 1 deletion hal/armv7m/exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#define SIZE_FPUCTX (16 * sizeof(u32))

#ifdef CPU_IMXRT
#if defined(__CPU_IMXRT106X) || defined(__CPU_IMXRT105X) || defined(__CPU_IMXRT117X)
#define EXCRET_PSP 0xffffffed
#else
#define EXCRET_PSP 0xfffffffd
Expand Down

0 comments on commit d4bcee3

Please sign in to comment.