-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
287825f
commit d8d9075
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
diff --git a/src/rp2_common/pico_cyw43_driver/cyw43_bus_pio_spi.c b/src/rp2_common/pico_cyw43_driver/cyw43_bus_pio_spi.c | ||
index 5afe85e..c22084c 100644 | ||
--- a/src/rp2_common/pico_cyw43_driver/cyw43_bus_pio_spi.c | ||
+++ b/src/rp2_common/pico_cyw43_driver/cyw43_bus_pio_spi.c | ||
@@ -20,22 +20,23 @@ | ||
#include "cyw43_debug_pins.h" | ||
|
||
#if CYW43_SPI_PIO | ||
-#define WL_REG_ON 23 | ||
-#define DATA_OUT_PIN 24u | ||
-#define DATA_IN_PIN 24u | ||
-#define IRQ_PIN 24u | ||
+#define WL_REG_ON 16u /*23*/ | ||
+#define DATA_OUT_PIN 19u /*24u*/ | ||
+#define DATA_IN_PIN 19u /*24u*/ | ||
+#define IRQ_PIN 19u /*24u*/ | ||
// #define MONITOR_PIN 3u | ||
-#define CLOCK_PIN 29u | ||
-#define CS_PIN 25u | ||
+#define CLOCK_PIN 18u /*29u*/ | ||
+#define CS_PIN 17u /*25u*/ | ||
#define IRQ_SAMPLE_DELAY_NS 100 | ||
|
||
-#define SPI_PROGRAM_NAME spi_gap01_sample0 | ||
+//#define SPI_PROGRAM_NAME spi_gap01_sample0 | ||
+#define SPI_PROGRAM_NAME spi_gap0_sample1 // for lower cpu speed | ||
#define SPI_PROGRAM_FUNC __CONCAT(SPI_PROGRAM_NAME, _program) | ||
#define SPI_PROGRAM_GET_DEFAULT_CONFIG_FUNC __CONCAT(SPI_PROGRAM_NAME, _program_get_default_config) | ||
#define SPI_OFFSET_END __CONCAT(SPI_PROGRAM_NAME, _offset_end) | ||
#define SPI_OFFSET_LP1_END __CONCAT(SPI_PROGRAM_NAME, _offset_lp1_end) | ||
|
||
-#define CLOCK_DIV 2 | ||
+#define CLOCK_DIV 8 | ||
#define CLOCK_DIV_MINOR 0 | ||
#define PADS_DRIVE_STRENGTH PADS_BANK0_GPIO0_DRIVE_VALUE_12MA | ||
|