Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
mcu.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 Inria
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
20
#ifndef MCU_MCU_H
21
#define MCU_MCU_H
22
23
#include "cpu.h"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
35
void
nrf5x_hw_set_isr
(
int
irqn,
void
(*addr)(
void
));
36
41
#define __HAL_DISABLE_INTERRUPTS(x) \
42
do { \
43
x = irq_disable(); \
44
} while (0);
45
46
#define __HAL_ENABLE_INTERRUPTS(x) \
47
do { \
48
if (x) { \
49
irq_restore(x); \
50
} \
51
else { \
52
irq_enable(); \
53
} \
54
} while (0);
57
#ifdef __cplusplus
58
}
59
#endif
60
61
#endif
/* MCU_MCU_H */
nrf5x_hw_set_isr
void nrf5x_hw_set_isr(int irqn, void(*addr)(void))
Set nrf5x radio ISR callback.
Generated on Sat Nov 23 2024 16:31:09 by
1.9.8