From 35a1ca043ec346b1e855ee894c16d57cabc96bc6 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Tue, 3 Apr 2018 16:05:07 +0200 Subject: [PATCH] boards/nucleo-f429zi: fix spi divtable --- boards/nucleo144-f429/include/periph_conf.h | 24 ++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/boards/nucleo144-f429/include/periph_conf.h b/boards/nucleo144-f429/include/periph_conf.h index 8e2be7f10cb6..20114d728abf 100644 --- a/boards/nucleo144-f429/include/periph_conf.h +++ b/boards/nucleo144-f429/include/periph_conf.h @@ -174,19 +174,19 @@ static const pwm_conf_t pwm_config[] = { * @{ */ static const uint8_t spi_divtable[2][5] = { - { /* for APB1 @ 90000000Hz */ - 7, /* -> 351562Hz */ - 7, /* -> 351562Hz */ - 6, /* -> 703125Hz */ - 3, /* -> 5625000Hz */ - 2 /* -> 11250000Hz */ + { /* for APB1 @ 42000000Hz */ + 7, /* -> 164062Hz */ + 6, /* -> 328125Hz */ + 4, /* -> 1312500Hz */ + 2, /* -> 5250000Hz */ + 1 /* -> 10500000Hz */ }, - { /* for APB2 @ 180000000Hz */ - 7, /* -> 703125Hz */ - 7, /* -> 703125Hz */ - 7, /* -> 703125Hz */ - 4, /* -> 5625000Hz */ - 3 /* -> 11250000Hz */ + { /* for APB2 @ 84000000Hz */ + 7, /* -> 328125Hz */ + 7, /* -> 328125Hz */ + 5, /* -> 1312500Hz */ + 3, /* -> 5250000Hz */ + 2 /* -> 10500000Hz */ } };