Subversion Repositories NaviCtrl

Rev

Rev 43 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
41 ingob 1
#include "91x_lib.h"
2
#include "led.h"
3
 
4
void Led_Init(void)
5
{
6
    GPIO_InitTypeDef GPIO_InitStructure;
7
 
8
        SCU_APBPeriphClockConfig(__GPIO5, ENABLE); // Enable the GPIO5 Clock    
9
 
10
        /*Configure LED_GRN at pin GPIO5.6 and LED_ROT at pin GPIO5.7*/
11
        GPIO_StructInit(&GPIO_InitStructure);
12
    GPIO_InitStructure.GPIO_Direction = GPIO_PinOutput;
13
    GPIO_InitStructure.GPIO_Pin =               GPIO_Pin_6 | GPIO_Pin_7;
14
    GPIO_InitStructure.GPIO_Type =              GPIO_Type_PushPull ;
15
    GPIO_InitStructure.GPIO_Alternate = GPIO_OutputAlt1  ;
16
    GPIO_Init(GPIO5, &GPIO_InitStructure);
17
 
18
        LED_GRN_OFF;
19
        LED_RED_OFF;                                                             
20
}
21
 
22
 
23