summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
Diffstat (limited to 'board')
-rw-r--r--board/CMakeLists.txt5
-rw-r--r--board/include/board.h (renamed from board/board.h)0
-rw-r--r--board/include/clock_config.h (renamed from board/clock_config.h)0
-rw-r--r--board/include/pin_mux.h (renamed from board/pin_mux.h)0
-rw-r--r--board/include/usb_host_config.h (renamed from board/usb_host_config.h)0
-rw-r--r--board/src/board.c (renamed from board/board.c)0
-rw-r--r--board/src/clock_config.c (renamed from board/clock_config.c)0
-rw-r--r--board/src/pin_mux.c (renamed from board/pin_mux.c)60
8 files changed, 65 insertions, 0 deletions
diff --git a/board/CMakeLists.txt b/board/CMakeLists.txt
new file mode 100644
index 0000000..9a2cf79
--- /dev/null
+++ b/board/CMakeLists.txt
@@ -0,0 +1,5 @@
+list(APPEND SOURCES
+ ${CMAKE_CURRENT_LIST_DIR}/src/board.c
+ ${CMAKE_CURRENT_LIST_DIR}/src/clock_config.c
+ ${CMAKE_CURRENT_LIST_DIR}/src/pin_mux.c
+) \ No newline at end of file
diff --git a/board/board.h b/board/include/board.h
index 49e8767..49e8767 100644
--- a/board/board.h
+++ b/board/include/board.h
diff --git a/board/clock_config.h b/board/include/clock_config.h
index f9c2406..f9c2406 100644
--- a/board/clock_config.h
+++ b/board/include/clock_config.h
diff --git a/board/pin_mux.h b/board/include/pin_mux.h
index 3c8ce86..3c8ce86 100644
--- a/board/pin_mux.h
+++ b/board/include/pin_mux.h
diff --git a/board/usb_host_config.h b/board/include/usb_host_config.h
index 0bde321..0bde321 100644
--- a/board/usb_host_config.h
+++ b/board/include/usb_host_config.h
diff --git a/board/board.c b/board/src/board.c
index ba853ad..ba853ad 100644
--- a/board/board.c
+++ b/board/src/board.c
diff --git a/board/clock_config.c b/board/src/clock_config.c
index 4da9ef5..4da9ef5 100644
--- a/board/clock_config.c
+++ b/board/src/clock_config.c
diff --git a/board/pin_mux.c b/board/src/pin_mux.c
index d012afc..f7e1e94 100644
--- a/board/pin_mux.c
+++ b/board/src/pin_mux.c
@@ -37,6 +37,66 @@
#include "fsl_debug_console.h"
#include "gpio_ext.h"
+const struct gpio_id gpio_list[] = {
+#ifndef USE_SWO
+ {PORTA, GPIOA, 3},
+#endif
+ {PORTA, GPIOA, 5},
+#ifdef TESTER_BUILD
+ {PORTA, GPIOA, 12},
+ {PORTA, GPIOA, 13},
+#endif
+ {PORTA, GPIOA, 17},
+#ifndef BOARD_USES_ADC
+ {PORTB, GPIOB, 0},
+ {PORTB, GPIOB, 1},
+ {PORTB, GPIOB, 2},
+ {PORTB, GPIOB, 3},
+#endif
+ {PORTB, GPIOB, 10},
+ {PORTB, GPIOB, 11},
+ {PORTB, GPIOB, 16},
+ {PORTB, GPIOB, 17},
+ {PORTB, GPIOB, 18},
+ {PORTB, GPIOB, 19},
+ {PORTC, GPIOC, 0},
+ {PORTC, GPIOC, 1},
+ {PORTC, GPIOC, 2},
+ {PORTC, GPIOC, 3},
+ {PORTC, GPIOC, 4},
+ {PORTC, GPIOC, 6},
+ {PORTC, GPIOC, 7},
+#ifdef TESTER_BUILD
+ {PORTC, GPIOC, 16},
+ {PORTC, GPIOC, 17},
+#endif
+ {PORTD, GPIOD, 0},
+ {PORTD, GPIOD, 1},
+ {PORTD, GPIOD, 2},
+ {PORTD, GPIOD, 3},
+ {PORTD, GPIOD, 4},
+ {PORTD, GPIOD, 5},
+ {PORTD, GPIOD, 6},
+ {PORTD, GPIOD, 7},
+ {PORTD, GPIOD, 8},
+ {PORTD, GPIOD, 9},
+ {PORTD, GPIOD, 11},
+ {PORTD, GPIOD, 12},
+ {PORTD, GPIOD, 13},
+ {PORTD, GPIOD, 14},
+ {PORTD, GPIOD, 15},
+#if !defined(SDK_DEBUGCONSOLE) || defined(TESTER_BUILD)
+ {PORTE, GPIOE, 0},
+ {PORTE, GPIOE, 1},
+#endif
+ {PORTE, GPIOE, 2},
+ {PORTE, GPIOE, 3},
+ {PORTE, GPIOE, 4},
+ {PORTE, GPIOE, 5},
+ {PORTE, GPIOE, 24},
+ {PORTE, GPIOE, 25}
+};
+
/*******************************************************************************
* Code
******************************************************************************/