acc_integration_cortex.c
Go to the documentation of this file.
1 // Copyright (c) Acconeer AB, 2020-2022
2 // All rights reserved
3 // This file is subject to the terms and conditions defined in the file
4 // 'LICENSES/license_acconeer.txt', (BSD 3-Clause License) which is part
5 // of this source code package.
6
7 #include "acc_integration.h"
8
9 void acc_integration_critical_section_enter(void)
10 {
11 __asm volatile("cpsid i" ::: "memory");
12 __asm volatile("dsb");
13 __asm volatile("isb");
14 }
15
16 void acc_integration_critical_section_exit(void)
17 {
18 __asm volatile("cpsie i" ::: "memory");
19 __asm volatile("dsb");
20 __asm volatile("isb");
21 }
acc_integration.h
acc_integration_critical_section_enter
void acc_integration_critical_section_enter(void)
Definition: acc_integration_cortex.c:9
acc_integration_critical_section_exit
void acc_integration_critical_section_exit(void)
Definition: acc_integration_cortex.c:16