Skip to content

Commit

Permalink
fixup! cpu/rpx0xx: add spi functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
fengelhardt committed Apr 4, 2023
1 parent 3385834 commit 3f39468
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cpu/rpx0xx/periph/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,22 +206,22 @@ static void _calc_pl022_clk(_pl022_clk_t *pl022_clk, spi_clk_t clk)

switch (clk) {
case SPI_CLK_100KHZ:
clk_hz = 100 * 1000;
clk_hz = KHZ(100);
break;
case SPI_CLK_400KHZ:
clk_hz = 400 * 1000;
clk_hz = KHZ(400);
break;
case SPI_CLK_1MHZ:
clk_hz = 1000 * 1000;
clk_hz = MHZ(1);
break;
case SPI_CLK_5MHZ:
clk_hz = 5 * 1000 * 1000;
clk_hz = MHZ(5);
break;
case SPI_CLK_10MHZ:
clk_hz = 10 * 1000 * 1000;
clk_hz = MHZ(10);
break;
default:
clk_hz = 100 * 1000;
clk_hz = KHZ(100);
break;
}
uint16_t dvsr = CLOCK_PERIPH / clk_hz;
Expand Down

0 comments on commit 3f39468

Please sign in to comment.