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
10 void acc_integration_critical_section_enter(void)
11 {
12 __asm volatile ("cpsid i" ::: "memory");
13 __asm volatile ("dsb");
14 __asm volatile ("isb");
15 }
16
17
18 void acc_integration_critical_section_exit(void)
19 {
20 __asm volatile ("cpsie i" ::: "memory");
21 __asm volatile ("dsb");
22 __asm volatile ("isb");
23 }
acc_integration.h
acc_integration_critical_section_enter
void acc_integration_critical_section_enter(void)
Definition: acc_integration_cortex.c:10
acc_integration_critical_section_exit
void acc_integration_critical_section_exit(void)
Definition: acc_integration_cortex.c:18