From 7d8012e9ee0b2460f50ca7e8c4d58d70546c7027 Mon Sep 17 00:00:00 2001 From: flabbergast Date: Mon, 21 Mar 2016 21:01:05 +0000 Subject: [KINETIS] Update boards. Add FRDM-KL26Z, Teensy LC and 3.1. Update definitions for FRDM-KL25Z, MCHCK, Teensy 3.0. --- os/hal/boards/PJRC_TEENSY_3/board.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'os/hal/boards/PJRC_TEENSY_3/board.c') diff --git a/os/hal/boards/PJRC_TEENSY_3/board.c b/os/hal/boards/PJRC_TEENSY_3/board.c index 68b13d0..f89c7e5 100644 --- a/os/hal/boards/PJRC_TEENSY_3/board.c +++ b/os/hal/boards/PJRC_TEENSY_3/board.c @@ -13,8 +13,6 @@ See the License for the specific language governing permissions and limitations under the License. */ - -#include "ch.h" #include "hal.h" #if HAL_USE_PAL || defined(__DOXYGEN__) @@ -34,16 +32,19 @@ const PALConfig pal_default_config = * PTA5 - PIN24 * PTA12 - PIN3 * PTA13 - PIN4 + * + * PTA18/19 crystal + * PTA0/3 SWD */ .port = IOPORT1, .pads = { - PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, - PAL_MODE_UNCONNECTED, PAL_MODE_OUTPUT_PUSHPULL, PAL_MODE_OUTPUT_PUSHPULL, + PAL_MODE_ALTERNATIVE_7, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, + PAL_MODE_ALTERNATIVE_7, PAL_MODE_OUTPUT_PUSHPULL, PAL_MODE_OUTPUT_PUSHPULL, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, PAL_MODE_OUTPUT_PUSHPULL, PAL_MODE_OUTPUT_PUSHPULL, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, - PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, + PAL_MODE_INPUT_ANALOG, PAL_MODE_INPUT_ANALOG, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, PAL_MODE_UNCONNECTED, @@ -171,7 +172,7 @@ const PALConfig pal_default_config = */ void __early_init(void) { - mk20d50_clock_init(); + k20x_clock_init(); } /** -- cgit v1.2.3