C Microkernel Realtime eXecutive
Realtime Operating System for Cortex-M based microcontrollers
 
Loading...
Searching...
No Matches
corelocal.h
1#pragma once
2#include <RTE_Components.h>
3#include CMSIS_device_header
4#include <conf/kernel.h>
5#include "cortex.h"
6
7#define os_core_lock() __disable_irq()
8#define os_core_unlock() __enable_irq()
9extern void os_core_sleep();
10
11#ifndef CMRX_ARCH_SMP_SUPPORTED
12
13# define coreid() 0
14# define OS_NUM_CORES 1
15# define os_smp_lock()
16# define os_smp_unlock()
17
18#else
19
24extern unsigned coreid();
25extern void os_smp_lock();
26extern void os_smp_unlock();
27
28#ifndef OS_NUM_CORES
29#error "Macro OS_NUM_CORES is not defined. Use -DOS_NUM_CORES=x to tell the CMRX kernel how many cores it manages!"
30#endif
31
32#endif
void os_core_sleep()
Definition cortex.c:276