Skip to content

Commit 63aa160

Browse files
committed
Fix comments
1 parent 5fb5b4b commit 63aa160

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hal/nrf5340.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ void sleep_us(uint32_t usec);
137137
#define SPU_FLASHREGION_PERM_LOCK (1 << 8) /* The content of this register can't be changed until the next reset */
138138

139139
#define SPU_RAMREGION_PERM(n) (*(volatile uint32_t *)(SPU_BASE + 0x700 + ((n) & 0x3F) * 0x4))
140-
#define SPU_RAMREGION_PERM_EXEC (1 << 0) /* Allow instruction fetches from flash region */
140+
#define SPU_RAMREGION_PERM_EXEC (1 << 0) /* Allow instruction fetches from RAM region */
141141
#define SPU_RAMREGION_PERM_WRITE (1 << 1) /* Allow write operation to region */
142-
#define SPU_RAMREGION_PERM_READ (1 << 2) /* Allow read operation from flash region */
143-
#define SPU_RAMREGION_PERM_SECATTR (1 << 4) /* Flash region n security attribute is secure */
142+
#define SPU_RAMREGION_PERM_READ (1 << 2) /* Allow read operation from RAM region */
143+
#define SPU_RAMREGION_PERM_SECATTR (1 << 4) /* RAM region n security attribute is secure */
144144
#define SPU_RAMREGION_PERM_LOCK (1 << 8) /* The content of this register can't be changed until the next reset */
145145

146146
#define SPU_PERIPHID_PERM(n) (*(volatile uint32_t *)(SPU_BASE + 0x800 + ((n) & 0xFF) * 0x4))

0 commit comments

Comments
 (0)