Kinetis SDK v.1.2 Demo Applications User's Guide  Rev. 0
Freescale Semiconductor, Inc.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
M1_StateMachine.h
Go to the documentation of this file.
1 /******************************************************************************
2 *
3 * Copyright (c) 2013 Freescale Semiconductor;
4 * All Rights Reserved
5 *
6 *******************************************************************************
7 *
8 * THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" AND ANY EXPRESSED OR
9 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
10 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
11 * IN NO EVENT SHALL FREESCALE OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
12 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
13 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
14 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
15 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
16 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
17 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
18 * THE POSSIBILITY OF SUCH DAMAGE.
19 *
20 ***************************************************************************/
42 #ifndef _M1_STATEMACHINE_H_
43 #define _M1_STATEMACHINE_H_
44 
46 // Includes
48 
49 #include "state_machine.h"
50 #include "fsl_mmdvsq_hal.h"
51 
53 // Variables
55 
58 
60 // Prototypes
62 
63 extern void M1_Fault(int intValue);
64 extern void M1_SetAppSwitch(int intValue);
65 extern int M1_GetAppSwitch(void);
66 
67 #endif /* _M1_STATEMACHINE_H_ */
68 
70 // EOF
void M1_SetAppSwitch(int intValue)
Set the app switch function.
Definition: M1_StateMachine.c:406
void M1_Fault(int intValue)
Fault function.
Definition: M1_StateMachine.c:398
int M1_GetAppSwitch(void)
Read the app switch function.
Definition: M1_StateMachine.c:414
State machine control structure.
Definition: state_machine.h:78
SM_APP_CTRL_T gsM1_Ctrl
State machine structure declaration and initialization */.
Definition: M1_StateMachine.c:134
State machine.