MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / intrpt_set

Function intrpt_set

core/interrupt.c:16–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16void intrpt_set(uint32_t mask, bool set) {
17 size_t request;
18 assert(!(mask & (mask - 1)) && "Expected no more than one bit set");
19 mask &= 0x3FFFFF;
20 for (request = 0; request < sizeof(intrpt) / sizeof(*intrpt); request++) {
21 if (set ^ (intrpt[request].inverted & mask)) {
22 intrpt[request].status |= mask;
23 } else {
24 intrpt[request].status &= ~mask | intrpt[request].latched;
25 }
26 }
27}
28
29void intrpt_reset() {
30 memset(&intrpt, 0, sizeof(intrpt));

Callers 15

rtc_eventFunction · 0.85
rtc_writeFunction · 0.85
keypad_intrpt_checkFunction · 0.85
keypad_on_checkFunction · 0.85
spi_update_thresholdsFunction · 0.85
spi_next_transferFunction · 0.85
spi_readFunction · 0.85
spi_writeFunction · 0.85
ost_eventFunction · 0.85
gpt_delayFunction · 0.85
uart_set_modem_inputsFunction · 0.85
uart_eventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected