nRF Connect SDK API
3.4.99
Toggle main menu visibility
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
21
void
cracen_interrupts_init
(
void
);
22
28
void
cracen_isr_handler
(
void
*i);
29
33
uint32_t
cracen_wait_for_cm_interrupt
(
void
);
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
*/
41
void
cracen_cm_interrupt_mask
(
void
);
42
void
cracen_cm_interrupt_unmask
(
void
);
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
*/
49
uint32_t
cracen_cm_interrupt_take
(
void
);
50
54
uint32_t
cracen_wait_for_pke_interrupt
(
void
);
55
cracen_cm_interrupt_take
uint32_t cracen_cm_interrupt_take(void)
cracen_interrupts_init
void cracen_interrupts_init(void)
cracen_isr_handler
void cracen_isr_handler(void *i)
Cracen ISR handler.
cracen_cm_interrupt_mask
void cracen_cm_interrupt_mask(void)
cracen_wait_for_cm_interrupt
uint32_t cracen_wait_for_cm_interrupt(void)
Blocks until interrupt for CryptoMaster is raised.
cracen_wait_for_pke_interrupt
uint32_t cracen_wait_for_pke_interrupt(void)
Blocks until interrupt for PK engine is raised.
cracen_cm_interrupt_unmask
void cracen_cm_interrupt_unmask(void)
subsys
nrf_security
src
drivers
cracen
common
include
cracen
interrupts.h
Generated on
for nRF Connect SDK API by
1.17.0