Skip to content

Commit

Permalink
board/nucleo-f401: Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
latsku committed Nov 29, 2015
1 parent 88659ad commit 2e39734
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion boards/nucleo-f401/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ static void leds_init(void)
/* disable pull resistors */
LED_GREEN_PORT->PUPDR &= ~(0x3 << LED_GREEN_PIN * 2);
/* turn all LEDs off */
LED_GREEN_PORT->BSRRL = (1 << LED_GREEN_PIN);
LED_GREEN_PORT->BSRRL &= (1 << LED_GREEN_PIN);

}
2 changes: 1 addition & 1 deletion boards/nucleo-f401/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ extern "C" {
#define SPI_0_DEV SPI1
#define SPI_0_CLKEN() (RCC->APB2ENR |= RCC_APB2ENR_SPI1EN)
#define SPI_0_CLKDIS() (RCC->APB2ENR &= ~RCC_APB2ENR_SPI1EN)
#define SPI_0_BUS_DIV 1 /* 1 -> SPI runs with half CPU clock, 0 -> quarter CPU clock */
#define SPI_0_BUS_DIV 1 /* 1 -> SPI bus runs with half CPU clock, 0 -> quarter CPU clock */
#define SPI_0_IRQ SPI1_IRQn
#define SPI_0_IRQ_HANDLER isr_spi1
/* SPI 0 pin configuration */
Expand Down

0 comments on commit 2e39734

Please sign in to comment.