diff options
author | Fabio Utzig <utzig@utzig.org> | 2016-03-28 20:37:57 -0300 |
---|---|---|
committer | Fabio Utzig <utzig@utzig.org> | 2016-03-28 20:37:57 -0300 |
commit | 341cad14a9ca8c2ed6b8a8b3a7e7183c71e00e70 (patch) | |
tree | 4bae5eb90713a09dd408121c5c35596df27be8f2 /os/hal/boards/FREESCALE_FREEDOM_KL25Z/board.h | |
parent | 778340c65318a9935a2f937ff520a32397fd07ad (diff) | |
parent | ac8960f1a83ea19645ca969e6c525defd8f47ff7 (diff) | |
download | ChibiOS-Contrib-341cad14a9ca8c2ed6b8a8b3a7e7183c71e00e70.tar.gz ChibiOS-Contrib-341cad14a9ca8c2ed6b8a8b3a7e7183c71e00e70.tar.bz2 ChibiOS-Contrib-341cad14a9ca8c2ed6b8a8b3a7e7183c71e00e70.zip |
[KINETIS] A lot of updates
Diffstat (limited to 'os/hal/boards/FREESCALE_FREEDOM_KL25Z/board.h')
-rw-r--r-- | os/hal/boards/FREESCALE_FREEDOM_KL25Z/board.h | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/os/hal/boards/FREESCALE_FREEDOM_KL25Z/board.h b/os/hal/boards/FREESCALE_FREEDOM_KL25Z/board.h index beeeef1..35d8e06 100644 --- a/os/hal/boards/FREESCALE_FREEDOM_KL25Z/board.h +++ b/os/hal/boards/FREESCALE_FREEDOM_KL25Z/board.h @@ -27,9 +27,30 @@ #define BOARD_FREESCALE_FREEDOM_KL25Z
#define BOARD_NAME "Freescale Freedom KL25Z"
-/* External 8 MHz crystal with PLL for 48 MHz core/system clock. */
-#define KINETIS_SYSCLK_FREQUENCY 48000000UL
-#define KINETIS_MCG_MODE KINETIS_MCG_MODE_PEE
+/* External 8 MHz crystal. */
+#define KINETIS_XTAL_FREQUENCY 8000000UL
+
+/*
+ * MCU type
+ */
+#define KL25
+
+/*
+ * Onboard features.
+ */
+#define GPIO_LED_RED IOPORT2
+#define PIN_LED_RED 18
+#define GPIO_LED_GREEN IOPORT2
+#define PIN_LED_GREEN 19
+#define GPIO_LED_BLUE IOPORT4
+#define PIN_LED_BLUE 1
+
+#define I2C_INERIAL_SENSOR I2C0
+
+/*
+ * Not configured:
+ * - TSI Slider on PTB16/TSI0_CH9 and PTB17/TSI_CH10
+ */
#if !defined(_FROM_ASM_)
#ifdef __cplusplus
|