* @brief Performs a ldrexh operation. * @param addr Address to perform the operation on. * @return The resulting value. */
| 85 | * @return The resulting value. |
| 86 | */ |
| 87 | static inline u16 __ldrexh(u16* addr) |
| 88 | { |
| 89 | u16 val; |
| 90 | __asm__ __volatile__("ldrexh %[val], %[addr]" : [val] "=r" (val) : [addr] "Q" (*addr)); |
| 91 | return val; |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * @brief Performs a strexh operation. |
no outgoing calls
no test coverage detected