Skip to content

Commit fe7bae2

Browse files
Merge pull request #151 from martinayotte/master
STM32F4 - fix LeafLab code for spi_config_gpios()
2 parents d68220b + e1b85b7 commit fe7bae2

12 files changed

Lines changed: 70 additions & 343 deletions

File tree

STM32F4/cores/maple/libmaple/HardwareSPI.cpp

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -385,21 +385,15 @@ static void configure_gpios(spi_dev *dev, bool as_master) {
385385
#endif
386386

387387
if(nssi) {
388-
spi_gpio_cfg(as_master,
389-
nssi->gpio_device,
390-
nssi->gpio_bit,
391-
scki->gpio_device,
392-
scki->gpio_bit,
393-
misoi->gpio_bit,
394-
mosii->gpio_bit);
388+
spi_config_gpios(dev, as_master, nssi->gpio_device, nssi->gpio_bit,
389+
scki->gpio_device, scki->gpio_bit,
390+
misoi->gpio_device, misoi->gpio_bit,
391+
mosii->gpio_device, mosii->gpio_bit);
395392
} else {
396-
spi_gpio_cfg(as_master,
397-
NULL,
398-
-1,
399-
scki->gpio_device,
400-
scki->gpio_bit,
401-
misoi->gpio_bit,
402-
mosii->gpio_bit);
393+
spi_config_gpios(dev, as_master, NULL, -1,
394+
scki->gpio_device, scki->gpio_bit,
395+
misoi->gpio_device, misoi->gpio_bit,
396+
mosii->gpio_device, mosii->gpio_bit);
403397
}
404398
}
405399

STM32F4/cores/maple/libmaple/bkp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bkp.c.xxx

STM32F4/cores/maple/libmaple/bkp.c.xxx

Lines changed: 0 additions & 129 deletions
This file was deleted.

STM32F4/cores/maple/libmaple/bkp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bkp.h.xxx

STM32F4/cores/maple/libmaple/bkp.h.xxx

Lines changed: 0 additions & 166 deletions
This file was deleted.

STM32F4/cores/maple/libmaple/rccF2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static const struct rcc_dev_info rcc_dev_table[] = {
7474
[RCC_SPI2] = { .clk_domain = APB1, .line_num = 14 }, //unchanged
7575
[RCC_DMA1] = { .clk_domain = AHB1, .line_num = 21 }, //*
7676
[RCC_PWR] = { .clk_domain = APB1, .line_num = 28}, //unchanged
77-
// [RCC_BKP] = { .clk_domain = AHB1, .line_num = 18}, //*
77+
[RCC_BKP] = { .clk_domain = AHB1, .line_num = 18}, //*
7878
[RCC_I2C1] = { .clk_domain = APB1, .line_num = 21 }, //unchanged
7979
[RCC_I2C2] = { .clk_domain = APB1, .line_num = 22 }, //unchanged
8080
[RCC_CRC] = { .clk_domain = AHB1, .line_num = 12}, //*

0 commit comments

Comments
 (0)