Skip to content

Commit 2be6176

Browse files
authored
Merge pull request #1248 from valeriyvan/fixshift
Fixing shift operation in enum declaration
2 parents e6f2081 + f4a36fa commit 2be6176

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)