Rev 264 | Rev 718 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 264 | Rev 680 | ||
---|---|---|---|
Line 58... | Line 58... | ||
58 | { |
58 | { |
59 | if(Led_Red_Inv) Version_HW = 40; // future use |
59 | if(Led_Red_Inv) Version_HW = 40; // future use |
60 | else Version_HW = 11; // NC 1.x |
60 | else Version_HW = 11; // NC 1.x |
61 | } |
61 | } |
Line -... | Line 62... | ||
- | 62 | ||
- | 63 | /* |
|
- | 64 | // External Inputs P6.3 & P6.4 & P6.5 |
|
- | 65 | GPIO_StructInit(&GPIO_InitStructure); |
|
- | 66 | GPIO_InitStructure.GPIO_Direction = GPIO_PinInput; |
|
- | 67 | GPIO_InitStructure.GPIO_Pin = GPIO_Pin_3 | GPIO_Pin_4 | GPIO_Pin_5; |
|
- | 68 | GPIO_InitStructure.GPIO_Type = GPIO_Type_PushPull; |
|
- | 69 | GPIO_InitStructure.GPIO_Alternate = GPIO_InputAlt1; |
|
- | 70 | 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); |
|
62 | 80 | */ |