ISF  2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
pm_internal.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright (c) 2013, Freescale Semiconductor, Inc.
4  *
5 */
6 
7 
8 /*!
9  * @file pm_internal.h
10  * @brief Power management header file.
11 */
12 
13 #ifndef PM_INTERNAL_H
14 #define PM_INTERNAL_H
15 
16 
17 #include "isf_pm.h"
18 #include "cortex.h"
19 
20 // Compile debug code.
21 //#define PM_DEBUG
22 
23 
24 // Enable/disable of cpu interrupt.
25 #define PM_DISABLE_INTERRUPTS() __disable_interrupt();
26 #define PM_ENABLE_INTERRUPTS() __enable_interrupt();
27 
28 
29 // Stop rtos timer
30 #define RTOSTIMER_STOP() { SYST_CSR &= ~SysTick_CSR_ENABLE_MASK; }
31 // Start rtos timer.
32 #define RTOSTIMER_START() { SYST_CSR |= SysTick_CSR_ENABLE_MASK; }
33 
34 
35 
36 
37 #endif // PM_INTERNAL_H
isf_pm.h describes the API definitions, types, and macros for the Intelligent Sensing Framework (ISF)...