Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions drivers/spi/spi_cc13xx_cc26xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ static int spi_cc13xx_cc26xx_configure(const struct device *dev,
return -EINVAL;
}

if (config->frequency < 2000000) {
LOG_ERR("Frequencies lower than 2 MHz are not supported");
if (config->frequency < CPU_FREQ / (254 * (255 + 1))) {
LOG_ERR("Frequencies lower than %d Hz are not supported",
CPU_FREQ / (254 * (255 + 1)));
return -EINVAL;
}

Expand Down
Loading