Subversion Repositories NaviCtrl

Rev

Rev 680 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 680 Rev 718
Line 3... Line 3...
3
 
3
 
4
u8 Version_HW = 0;
4
u8 Version_HW = 0;
5
u8 Led_Grn_Inv = 0;
5
u8 Led_Grn_Inv = 0;
Line -... Line 6...
-
 
6
u8 Led_Red_Inv = 0;
-
 
7
 
-
 
8
 
-
 
9
void EXT2_Init(void) // digital Trigger Output
-
 
10
{
-
 
11
        GPIO_InitTypeDef GPIO_InitStructure;
-
 
12
        // set port pin 6.2 to output
-
 
13
        GPIO_StructInit(&GPIO_InitStructure);
-
 
14
        GPIO_InitStructure.GPIO_Direction = GPIO_PinOutput;
-
 
15
        GPIO_InitStructure.GPIO_Pin =           GPIO_Pin_2;
-
 
16
        GPIO_InitStructure.GPIO_Type =          GPIO_Type_PushPull;
-
 
17
        GPIO_InitStructure.GPIO_Alternate = GPIO_OutputAlt1;
-
 
18
        GPIO_Init(GPIO6, &GPIO_InitStructure);
6
u8 Led_Red_Inv = 0;
19
}
7
 
20
 
8
void Led_Init(void)
21
void Led_Init(void)
9
{
22
{
10
        u8 p5;
23
        u8 p5;
Line 66... Line 79...
66
        GPIO_InitStructure.GPIO_Direction = GPIO_PinInput;
79
        GPIO_InitStructure.GPIO_Direction = GPIO_PinInput;
67
        GPIO_InitStructure.GPIO_Pin =           GPIO_Pin_3 | GPIO_Pin_4 | GPIO_Pin_5;
80
        GPIO_InitStructure.GPIO_Pin =           GPIO_Pin_3 | GPIO_Pin_4 | GPIO_Pin_5;
68
        GPIO_InitStructure.GPIO_Type =          GPIO_Type_PushPull;
81
        GPIO_InitStructure.GPIO_Type =          GPIO_Type_PushPull;
69
        GPIO_InitStructure.GPIO_Alternate = GPIO_InputAlt1;
82
        GPIO_InitStructure.GPIO_Alternate = GPIO_InputAlt1;
70
        GPIO_Init(GPIO6, &GPIO_InitStructure);
83
        GPIO_Init(GPIO6, &GPIO_InitStructure);
71
 
-
 
72
        // set port pin 6.2 to output
-
 
73
        GPIO_StructInit(&GPIO_InitStructure);
-
 
74
        GPIO_InitStructure.GPIO_Direction = GPIO_PinOutput;
-
 
75
        GPIO_InitStructure.GPIO_Pin =           GPIO_Pin_2;
-
 
76
        GPIO_InitStructure.GPIO_Type =          GPIO_Type_PushPull;
-
 
77
        GPIO_InitStructure.GPIO_Alternate = GPIO_OutputAlt1;
-
 
78
        GPIO_Init(GPIO6, &GPIO_InitStructure);
-
 
79
GPIO_WriteBit(GPIO6, GPIO_Pin_2, Bit_SET);
-
 
80
*/
84
*/
81
}
85
}