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
9#pragma once
10
21
22#include "cpu.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
34void nrf5x_hw_set_isr(int irqn, void (*addr)(void));
35
40#define __HAL_DISABLE_INTERRUPTS(x) \
41 do { \
42 x = irq_disable(); \
43 } while (0);
44
45#define __HAL_ENABLE_INTERRUPTS(x) \
46 do { \
47 if (x) { \
48 irq_restore(x); \
49 } \
50 else { \
51 irq_enable(); \
52 } \
53 } while (0);
55
56#ifdef __cplusplus
57}
58#endif
void nrf5x_hw_set_isr(int irqn, void(*addr)(void))
Set nrf5x radio ISR callback.