Skip to content

Commit f4a36fa

Browse files
committed
Fixing shift operation in enum declaration
1 parent b9c2acb commit f4a36fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bsp/imxrt1052-evk/Libraries/drivers/fsl_aipstz.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ typedef enum _aipstz_master {
6666
/*! @brief List of AIPSTZ peripheral access control configuration.*/
6767
typedef enum _aipstz_peripheral_access_control {
6868
kAIPSTZ_PeripheralAllowUntrustedMaster = 1U,
69-
kAIPSTZ_PeripheralWriteProtected = (1U < 1),
70-
kAIPSTZ_PeripheralRequireSupervisor = (1U < 2),
71-
kAIPSTZ_PeripheralAllowBufferedWrite = (1U < 2)
69+
kAIPSTZ_PeripheralWriteProtected = (1U << 1),
70+
kAIPSTZ_PeripheralRequireSupervisor = (1U << 2),
71+
kAIPSTZ_PeripheralAllowBufferedWrite = (1U << 2)
7272
} aipstz_peripheral_access_control_t;
7373

7474
/*! @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.*/

0 commit comments

Comments
 (0)