Skip to content

Commit

Permalink
Merge pull request #459 from udo-munk/dev
Browse files Browse the repository at this point in the history
merge Dev
  • Loading branch information
udo-munk authored Sep 24, 2024
2 parents 77321e3 + e3fd611 commit 29fac83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion picosim/rp2040/disks.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ static spi_t spi = {
.sck_gpio = SD_SPI_CLK,
.mosi_gpio = SD_SPI_SI,
.miso_gpio = SD_SPI_SO,
.baud_rate = 12 * 1000 * 1000, /* Actual frequency: 10416666 */
//.baud_rate = 125 * 1000 * 1000 / 8, /* 15.625 MHz */
//.baud_rate = 125 * 1000 * 1000 / 6, /* 20.833333 MHz */
.baud_rate = 125 * 1000 * 1000 / 4, /* 31.25 MHz */
.spi_mode = 3,
.set_drive_strength = true,
.mosi_gpio_drive_strength = GPIO_DRIVE_STRENGTH_8MA,
Expand Down
5 changes: 4 additions & 1 deletion picosim/rp2350/disks.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ static spi_t spi = {
.sck_gpio = SD_SPI_CLK,
.mosi_gpio = SD_SPI_SI,
.miso_gpio = SD_SPI_SO,
.baud_rate = 15 * 1000 * 1000,
//.baud_rate = 150 * 1000 * 1000 / 8, // 18.75 MHz
//.baud_rate = 150 * 1000 * 1000 / 6, // 25.00 MHz
.baud_rate = 150 * 1000 * 1000 / 4, // 37.50 MHz
//.baud_rate = 150 * 1000 * 1000 / 2, // 75.00 MHz
.spi_mode = 3,
.set_drive_strength = true,
.mosi_gpio_drive_strength = GPIO_DRIVE_STRENGTH_8MA,
Expand Down

0 comments on commit 29fac83

Please sign in to comment.