diff options
author | flabbergast <s3+flabbergast@sdfeu.org> | 2016-03-21 21:01:05 +0000 |
---|---|---|
committer | flabbergast <s3+flabbergast@sdfeu.org> | 2016-03-22 16:24:19 +0000 |
commit | 7d8012e9ee0b2460f50ca7e8c4d58d70546c7027 (patch) | |
tree | be1d9c38802fe34144af560448e94318f2501bce /os/hal/boards/PJRC_TEENSY_3/board.c | |
parent | 2443b6c6f41dd349d1680f85aad65e979fb21bdc (diff) | |
download | ChibiOS-Contrib-7d8012e9ee0b2460f50ca7e8c4d58d70546c7027.tar.gz ChibiOS-Contrib-7d8012e9ee0b2460f50ca7e8c4d58d70546c7027.tar.bz2 ChibiOS-Contrib-7d8012e9ee0b2460f50ca7e8c4d58d70546c7027.zip |
[KINETIS] Update boards.
Add FRDM-KL26Z, Teensy LC and 3.1. Update definitions for
FRDM-KL25Z, MCHCK, Teensy 3.0.
Diffstat (limited to 'os/hal/boards/PJRC_TEENSY_3/board.c')
-rw-r--r-- | os/hal/boards/PJRC_TEENSY_3/board.c | 13 |
1 files changed, 7 insertions, 6 deletions
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();
}
/**
|