Files
esp-nimble/babblesim/core/include/cmsis.h
T
Magdalena Kasenberg 9abe36cc3c babblesim: Add babblesim pkg
Co-authored-by: Jakub Rotkiewicz <jakub.rotkiewicz@codecoup.pl>
Co-authored-by: Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
2022-02-16 09:15:09 +01:00

52 lines
868 B
C

/*
* Copyright (c) 2020 Oticon A/S
* Copyright (c) 2021 Codecoup
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* This header defines replacements for inline
* ARM Cortex-M CMSIS intrinsics.
*/
#ifndef BOARDS_POSIX_NRF52_BSIM_CMSIS_H
#define BOARDS_POSIX_NRF52_BSIM_CMSIS_H
#ifdef __cplusplus
extern "C" {
#endif
/* Implement the following ARM intrinsics as no-op:
* - ARM Data Synchronization Barrier
* - ARM Data Memory Synchronization Barrier
* - ARM Instruction Synchronization Barrier
* - ARM No Operation
*/
#ifndef __DMB
#define __DMB()
#endif
#ifndef __DSB
#define __DSB()
#endif
#ifndef __ISB
#define __ISB()
#endif
#ifndef __NOP
#define __NOP()
#endif
void NVIC_SystemReset(void);
void __disable_irq(void);
void __enable_irq(void);
uint32_t __get_PRIMASK(void);
#ifdef __cplusplus
}
#endif
#endif /* BOARDS_POSIX_NRF52_BSIM_CMSIS_H */