Skip to content

Commit

Permalink
Merge pull request #30 from Hyungsin/hamilton-board
Browse files Browse the repository at this point in the history
maximize spi speed for hamilton
  • Loading branch information
immesys authored Oct 12, 2017
2 parents 3625baa + 8f74338 commit db45ef2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boards/hamilton/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ extern "C" {
*/
#if CLOCK_USE_OSCULP32_DFLL
#define AT86RF2XX_PARAMS_BOARD {.spi = SPI_DEV(0), \
.spi_clk = SPI_CLK_5MHZ, \
.spi_clk = SPI_CLK_8MHZ, \
.cs_pin = GPIO_PIN(PB, 31), \
.int_pin = GPIO_PIN(PB, 0), \
.sleep_pin = GPIO_PIN(PA, 20), \
.reset_pin = GPIO_PIN(PB, 15)}
#else
#define AT86RF2XX_PARAMS_BOARD {.spi = SPI_DEV(0), \
.spi_clk = SPI_CLK_1MHZ, \
.spi_clk = SPI_CLK_4MHZ, \
.cs_pin = GPIO_PIN(PB, 31), \
.int_pin = GPIO_PIN(PB, 0), \
.sleep_pin = GPIO_PIN(PA, 20), \
Expand Down
2 changes: 2 additions & 0 deletions cpu/sam0_common/include/periph_cpu_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ typedef enum {
SPI_CLK_100KHZ = 100000U, /**< drive the SPI bus with 100KHz */
SPI_CLK_400KHZ = 400000U, /**< drive the SPI bus with 400KHz */
SPI_CLK_1MHZ = 1000000U, /**< drive the SPI bus with 1MHz */
SPI_CLK_4MHZ = 4000000U, /**< drive the SPI bus with 4MHz */
SPI_CLK_5MHZ = 5000000U, /**< drive the SPI bus with 5MHz */
SPI_CLK_8MHZ = 8000000U, /**< drive the SPI bus with 8MHz */
SPI_CLK_10MHZ = 10000000U /**< drive the SPI bus with 10MHz */
} spi_clk_t;
/** @} */
Expand Down

0 comments on commit db45ef2

Please sign in to comment.