| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sct_fsm.h
Go to the documentation of this file.
1 #ifndef __SCT_FSM_H__
2 #define __SCT_FSM_H__
3
4 /* Generated by fzmparser version 1.14 --- DO NOT EDIT! */
5
6 #include "sct_user.h"
7
8 extern void sct_fsm_init(void);
9
10 /* macros for defining the mapping between IRQ and events */
11 #define SCT_IRQ_EVENT_crossingTimeout (2)
12
13 /* Input assignments */
14 #define SCT_INPUT_CROSS_REQUEST (5)
15
16 /* Output assignments (and their defaults if specified) */
17 #define SCT_OUTPUT_GREEN_N (2)
18 #define SCT_OUTPUTPRELOAD_GREEN_N (0)
19 #define SCT_OUTPUT_BLUE_N (4)
20 #define SCT_OUTPUTPRELOAD_BLUE_N (1)
21 #define SCT_OUTPUT_RED_N (3)
22 #define SCT_OUTPUTPRELOAD_RED_N (1)
23 #define SCT_OUTPUT_REQUEST (5)
24 #define SCT_OUTPUTPRELOAD_REQUEST (0)
25 #define SCT_OUTPUT_AUTO_CROSS (6)
26 #define SCT_OUTPUTPRELOAD_AUTO_CROSS (0)
27
28
29 /* Match register reload macro definitions */
30 #define reload_turn_yellow_on(value) LPC_SCT->MATCHREL_L[0] = value;
31 #define reload_cross_timeout(value) LPC_SCT->MATCHREL_H[0] = value;
32 #define reload_turn_red_off(value) LPC_SCT->MATCHREL_L[1] = value;
33 #define reload_turn_yellow_off(value) LPC_SCT->MATCHREL_L[2] = value;
34 #define reload_pedestrian_walk(value) LPC_SCT->MATCHREL_L[3] = value;
35 #define reload_turn_red_on(value) LPC_SCT->MATCHREL_L[4] = value;
36 #define reload_pedestrian_stop(value) LPC_SCT->MATCHREL_L[5] = value;
37
38 #endif