Commit 28bde7e2 authored by Mattia Rizzi's avatar Mattia Rizzi Committed by Grzegorz Daniluk

Added support for the external board

parent 4e9a29f2
......@@ -21,6 +21,7 @@
#define BASE_GPIO 0x10300
#define BASE_TIMER 0x10400
#define BASE_PPS_GEN 0x10500
#define BASE_SPI_EXT_BOARD 0x10700
/* spll parameter that are board-specific */
#define BOARD_DIVIDE_DMTD_CLOCKS 0
......
......@@ -36,7 +36,7 @@ static inline void gpio_dir(int pin, int val)
__gpio->DDR &= ~(1<<pin);
}
static inline int gpio_in(int bank, int pin)
static inline int gpio_in(int pin)
{
return __gpio->PSR & (1<<pin) ? 1: 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment