From f4a36fa6e32cac8d2af6f7c40ee788a5ced5959d Mon Sep 17 00:00:00 2001 From: Valeriy Van Date: Fri, 2 Mar 2018 11:22:32 +0100 Subject: [PATCH] Fixing shift operation in enum declaration --- bsp/imxrt1052-evk/Libraries/drivers/fsl_aipstz.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bsp/imxrt1052-evk/Libraries/drivers/fsl_aipstz.h b/bsp/imxrt1052-evk/Libraries/drivers/fsl_aipstz.h index b98fdafc8d..180f5ffee9 100644 --- a/bsp/imxrt1052-evk/Libraries/drivers/fsl_aipstz.h +++ b/bsp/imxrt1052-evk/Libraries/drivers/fsl_aipstz.h @@ -66,9 +66,9 @@ typedef enum _aipstz_master { /*! @brief List of AIPSTZ peripheral access control configuration.*/ typedef enum _aipstz_peripheral_access_control { kAIPSTZ_PeripheralAllowUntrustedMaster = 1U, - kAIPSTZ_PeripheralWriteProtected = (1U < 1), - kAIPSTZ_PeripheralRequireSupervisor = (1U < 2), - kAIPSTZ_PeripheralAllowBufferedWrite = (1U < 2) + kAIPSTZ_PeripheralWriteProtected = (1U << 1), + kAIPSTZ_PeripheralRequireSupervisor = (1U << 2), + kAIPSTZ_PeripheralAllowBufferedWrite = (1U << 2) } aipstz_peripheral_access_control_t; /*! @brief List of AIPSTZ peripherals. Organized by register offset for higher 32 bits, width for the 8-15 bits and shift for lower 8 bits.*/