MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ti_pruss_interrupts_clear

Function ti_pruss_interrupts_clear

freebsd/arm/ti/ti_pruss.c:304–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304static __inline void
305ti_pruss_interrupts_clear(struct ti_pruss_softc *sc)
306{
307 /* disable global interrupt */
308 ti_pruss_reg_write(sc, PRUSS_INTC_GER, 0 );
309
310 /* clear all events */
311 ti_pruss_reg_write(sc, PRUSS_INTC_SECR0, 0xFFFFFFFF);
312 ti_pruss_reg_write(sc, PRUSS_INTC_SECR1, 0xFFFFFFFF);
313
314 /* disable all host interrupts */
315 ti_pruss_reg_write(sc, PRUSS_INTC_HIER, 0);
316}
317
318static __inline int
319ti_pruss_interrupts_enable(struct ti_pruss_softc *sc, int8_t irq, bool enable)

Callers 2

ti_pruss_attachFunction · 0.85
ti_pruss_detachFunction · 0.85

Calls 1

ti_pruss_reg_writeFunction · 0.85

Tested by

no test coverage detected