52 static volatile struct process *notification_process = NULL;
67 if(notification_process != NULL) {
69 notification_process = NULL;
84 lpm_register_peripheral(permit_pm1);
90 for(i = 0; i < 16; i++) {
121 notification_process = p;
Header file for the ARM Nested Vectored Interrupt Controller.
Header file for the cc2538 System Control driver.
uint8_t pka_check_status(void)
Checks the status of the PKA engine operation.
#define PKA_FUNCTION
PKA function This register contains the control bits to start basic PKCP as well as complex sequencer...
#define SYS_CTRL_SRSEC_PKA
PKA is reset.
#define SYS_CTRL_RCGCSEC_PKA
PKA clock enable, CPU running.
Header file with register manipulation macro definitions.
__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn)
Disable External Interrupt.
#define SYS_CTRL_DCGCSEC_PKA
PKA clock enable, PM0.
void pka_isr(void)
The PKA engine ISR.
Header file for the cc2538 PKA engine driver.
void process_poll(struct process *p)
Request a process to be polled.
__STATIC_INLINE void NVIC_ClearPendingIRQ(IRQn_Type IRQn)
Clear Pending Interrupt.
#define SYS_CTRL_DCGCSEC
Sec Mod clocks - PM0.
#define SYS_CTRL_SCGCSEC_PKA
PKA clock enable, CPU IDLE.
void pka_init(void)
Enables and resets the PKA engine.
void pka_disable(void)
Disables the PKA engine.
#define SYS_CTRL_SRSEC
Sec Mod reset control.
#define PKA_FUNCTION_RUN
The host sets this bit to instruct the PKA module to begin processing the basic PKCP or complex seque...
void pka_register_process_notification(struct process *p)
Registers a process to be notified of the completion of a PKA operation.
void pka_enable(void)
Enables the PKA engine.
#define SYS_CTRL_RCGCSEC
Sec Mod clocks - active mode.
#define SYS_CTRL_SCGCSEC
Sec Mod clocks - sleep mode.