Init
This commit is contained in:
parent
9d6e4321eb
commit
3d1f1abac3
|
|
@ -24,7 +24,7 @@ static void vSpiPort_InitSPI1RxTxPin() {
|
||||||
GPIO_InitStruct.gpio_pull = GPIO_PULL_UP;
|
GPIO_InitStruct.gpio_pull = GPIO_PULL_UP;
|
||||||
GPIO_InitStruct.gpio_pins = GPIO_PINS_7;
|
GPIO_InitStruct.gpio_pins = GPIO_PINS_7;
|
||||||
gpio_init(GPIOA, &GPIO_InitStruct);
|
gpio_init(GPIOA, &GPIO_InitStruct);
|
||||||
gpio_pin_mux_config(GPIOA, GPIO_PINS_SOURCE15, GPIO_MUX_5);
|
gpio_pin_mux_config(GPIOA, GPIO_PINS_SOURCE7, GPIO_MUX_5);
|
||||||
}
|
}
|
||||||
|
|
||||||
static tSpiPortArtery vSpiPort_InitSPI1(tGpioPin *chipSelect) {
|
static tSpiPortArtery vSpiPort_InitSPI1(tGpioPin *chipSelect) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue