Home
last modified time | relevance | path

Searched refs:shpr0 (Results 1 – 1 of 1) sorted by relevance

/hal_rpi_pico-latest/src/rp2_common/hardware_exception/
Dexception.c76 io_rw_32 *shpr0 = NULL; in get_shpr0() local
79 if (num >= 8 && num < 16) shpr0 = (io_rw_32 *) (PPB_BASE + ARM_CPU_PREFIXED(SHPR2_OFFSET) - 8); in get_shpr0()
82 if (num >= 4 && num < 16) shpr0 = (io_rw_32 *)(PPB_BASE + ARM_CPU_PREFIXED(SHPR1_OFFSET) - 4); in get_shpr0()
84 return shpr0; in get_shpr0()
88 io_rw_32 *shpr0 = get_shpr0(num); in exception_set_priority() local
89 if (shpr0) { in exception_set_priority()
91shpr0[num / 4] = (shpr0[num/4] & ~(0xffu << (8 * (num & 3u)))) | (((uint32_t) hardware_priority) <… in exception_set_priority()
98 io_rw_32 *shpr0 = get_shpr0(num); in exception_get_priority() local
99 if (shpr0) { in exception_get_priority()
101 return (uint8_t) (shpr0[num/4] >> (8 * (num & 3))); in exception_get_priority()