Init
This commit is contained in:
parent
aef5353644
commit
093d0cd3b8
3
Gpios.c
3
Gpios.c
|
|
@ -25,7 +25,7 @@ void Gpios_Init() {
|
||||||
crm_periph_clock_enable(CRM_GPIOG_PERIPH_CLOCK, TRUE);
|
crm_periph_clock_enable(CRM_GPIOG_PERIPH_CLOCK, TRUE);
|
||||||
|
|
||||||
tGpios *env = &GPIOS;
|
tGpios *env = &GPIOS;
|
||||||
/*
|
|
||||||
env->LIN1_NSLP = InitGpioPin(GPIOG, GPIO_PINS_7, GPIO_MODE_OUTPUT, GPIO_PIN_NOREVERSE);
|
env->LIN1_NSLP = InitGpioPin(GPIOG, GPIO_PINS_7, GPIO_MODE_OUTPUT, GPIO_PIN_NOREVERSE);
|
||||||
GpioPinSet(&env->LIN1_NSLP, true);
|
GpioPinSet(&env->LIN1_NSLP, true);
|
||||||
|
|
||||||
|
|
@ -43,7 +43,6 @@ void Gpios_Init() {
|
||||||
|
|
||||||
env->LIN6_NSLP = InitGpioPin(GPIOG, GPIO_PINS_2, GPIO_MODE_OUTPUT, GPIO_PIN_NOREVERSE);
|
env->LIN6_NSLP = InitGpioPin(GPIOG, GPIO_PINS_2, GPIO_MODE_OUTPUT, GPIO_PIN_NOREVERSE);
|
||||||
GpioPinSet(&env->LIN6_NSLP, true);
|
GpioPinSet(&env->LIN6_NSLP, true);
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
env->comIntDir.transmit = InitGpioPin(GPIOD, GPIO_PINS_15, GPIO_MODE_OUTPUT, GPIO_PIN_NOREVERSE);
|
env->comIntDir.transmit = InitGpioPin(GPIOD, GPIO_PINS_15, GPIO_MODE_OUTPUT, GPIO_PIN_NOREVERSE);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue