Loading...
Searching...
No Matches
mcu.h File Reference

Abstraction layer for RIOT adaption. More...

Detailed Description

Abstraction layer for RIOT adaption.

Author
Francisco Molina franc.nosp@m.ois-.nosp@m.xavie.nosp@m.r.mo.nosp@m.lina@.nosp@m.inri.nosp@m.a.fr

Definition in file mcu.h.

#include "cpu.h"
+ Include dependency graph for mcu.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void nrf5x_hw_set_isr (int irqn, void(*addr)(void))
 Set nrf5x radio ISR callback.
 

Entering and exiting critical section defines

#define __HAL_DISABLE_INTERRUPTS(x)
 
#define __HAL_ENABLE_INTERRUPTS(x)
 

Macro Definition Documentation

◆ __HAL_DISABLE_INTERRUPTS

#define __HAL_DISABLE_INTERRUPTS (   x)
Value:
do { \
x = irq_disable(); \
} while (0);
MAYBE_INLINE unsigned irq_disable(void)
This function sets the IRQ disable bit in the status register.

Definition at line 41 of file mcu.h.

◆ __HAL_ENABLE_INTERRUPTS

#define __HAL_ENABLE_INTERRUPTS (   x)
Value:
do { \
if (x) { \
irq_restore(x); \
} \
else { \
irq_enable(); \
} \
} while (0);

Definition at line 46 of file mcu.h.

Function Documentation

◆ nrf5x_hw_set_isr()

void nrf5x_hw_set_isr ( int  irqn,
void(*)(void)  addr 
)

Set nrf5x radio ISR callback.

Parameters
[in]irqnIRQ number
[in]addrthe ISR callback