64 #include <inc/hw_types.h>
65 #include <inc/hw_smph.h>
66 #include <inc/hw_memmap.h>
83 #define SMPHAcquire NOROM_SMPHAcquire
91 #define SMPH_FREE 0x00000001 // MCU Semaphore has not been claimed
92 #define SMPH_CLAIMED 0x00000000 // MCU Semaphore has been claimed
100 #define SMPH_0 0 // MCU Semaphore 0
101 #define SMPH_1 1 // MCU Semaphore 1
102 #define SMPH_2 2 // MCU Semaphore 2
103 #define SMPH_3 3 // MCU Semaphore 3
104 #define SMPH_4 4 // MCU Semaphore 4
105 #define SMPH_5 5 // MCU Semaphore 5
106 #define SMPH_6 6 // MCU Semaphore 6
107 #define SMPH_7 7 // MCU Semaphore 7
108 #define SMPH_8 8 // MCU Semaphore 8
109 #define SMPH_9 9 // MCU Semaphore 9
110 #define SMPH_10 10 // MCU Semaphore 10
111 #define SMPH_11 11 // MCU Semaphore 11
112 #define SMPH_12 12 // MCU Semaphore 12
113 #define SMPH_13 13 // MCU Semaphore 13
114 #define SMPH_14 14 // MCU Semaphore 14
115 #define SMPH_15 15 // MCU Semaphore 15
116 #define SMPH_16 16 // MCU Semaphore 16
117 #define SMPH_17 17 // MCU Semaphore 17
118 #define SMPH_18 18 // MCU Semaphore 18
119 #define SMPH_19 19 // MCU Semaphore 19
120 #define SMPH_20 20 // MCU Semaphore 20
121 #define SMPH_21 21 // MCU Semaphore 21
122 #define SMPH_22 22 // MCU Semaphore 22
123 #define SMPH_23 23 // MCU Semaphore 23
124 #define SMPH_24 24 // MCU Semaphore 24
125 #define SMPH_25 25 // MCU Semaphore 25
126 #define SMPH_26 26 // MCU Semaphore 26
127 #define SMPH_27 27 // MCU Semaphore 27
128 #define SMPH_28 28 // MCU Semaphore 28
129 #define SMPH_29 29 // MCU Semaphore 29
130 #define SMPH_30 30 // MCU Semaphore 30
131 #define SMPH_31 31 // MCU Semaphore 31
178 uint32_t ui32SemaReg;
184 (ui32Semaphore ==
SMPH_1) ||
185 (ui32Semaphore ==
SMPH_2) ||
186 (ui32Semaphore ==
SMPH_3) ||
187 (ui32Semaphore ==
SMPH_4) ||
188 (ui32Semaphore ==
SMPH_5) ||
189 (ui32Semaphore ==
SMPH_6) ||
190 (ui32Semaphore ==
SMPH_7) ||
191 (ui32Semaphore ==
SMPH_8) ||
192 (ui32Semaphore ==
SMPH_9) ||
250 (ui32Semaphore ==
SMPH_1) ||
251 (ui32Semaphore ==
SMPH_2) ||
252 (ui32Semaphore ==
SMPH_3) ||
253 (ui32Semaphore ==
SMPH_4) ||
254 (ui32Semaphore ==
SMPH_5) ||
255 (ui32Semaphore ==
SMPH_6) ||
256 (ui32Semaphore ==
SMPH_7) ||
257 (ui32Semaphore ==
SMPH_8) ||
258 (ui32Semaphore ==
SMPH_9) ||
295 #if !defined(DRIVERLIB_NOROM) && !defined(DOXYGEN)
297 #ifdef ROM_SMPHAcquire
299 #define SMPHAcquire ROM_SMPHAcquire
void SMPHAcquire(uint32_t ui32Semaphore)
Acquire a semaphore.
static void SMPHRelease(uint32_t ui32Semaphore)
Release a semaphore.
static bool SMPHTryAcquire(uint32_t ui32Semaphore)
Try to Acquire a semaphore.