nRF Connect SDK API 3.4.99
Loading...
Searching...
No Matches
interrupts.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
16
17#pragma once
18
19#include <stdint.h>
20
22
28void cracen_isr_handler(void *i);
29
34
35/* Mask and unmask the CryptoMaster interrupt for polling short jobs (see
36 * sx_cmdma_check()). It is masked when a job starts, so a job that ends while
37 * polled raises no interrupt, and unmasked only before sleeping on the job. A
38 * job that ended while masked still has its event latched and interrupts as
39 * soon as it is unmasked.
40 */
43
44/* Take the interrupt of a job that ended while polled, after clearing its
45 * CryptoMaster status. Clears the latched event, so it doesn't interrupt when a
46 * later job unmasks it, and returns any status the ISR posted (or 0), so it
47 * can't be taken for the end of a later job.
48 */
50
55
uint32_t cracen_cm_interrupt_take(void)
void cracen_interrupts_init(void)
void cracen_isr_handler(void *i)
Cracen ISR handler.
void cracen_cm_interrupt_mask(void)
uint32_t cracen_wait_for_cm_interrupt(void)
Blocks until interrupt for CryptoMaster is raised.
uint32_t cracen_wait_for_pke_interrupt(void)
Blocks until interrupt for PK engine is raised.
void cracen_cm_interrupt_unmask(void)