Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
IO_Config_Override.h
00001 /** 00002 * @file IO_Config.h 00003 * @brief 00004 * 00005 * DAPLink Interface Firmware 00006 * Copyright (c) 2009-2016, ARM Limited, All Rights Reserved 00007 * SPDX-License-Identifier: Apache-2.0 00008 * 00009 * Licensed under the Apache License, Version 2.0 (the "License"); you may 00010 * not use this file except in compliance with the License. 00011 * You may obtain a copy of the License at 00012 * 00013 * http://www.apache.org/licenses/LICENSE-2.0 00014 * 00015 * Unless required by applicable law or agreed to in writing, software 00016 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 00017 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00018 * See the License for the specific language governing permissions and 00019 * limitations under the License. 00020 */ 00021 00022 // Override all defines if IO_CONFIG_OVERRIDE is defined 00023 00024 #ifndef __IO_CONFIG_OVERRIDE_H__ 00025 #define __IO_CONFIG_OVERRIDE_H__ 00026 00027 #include "MKL26Z4.h" 00028 #include "compiler.h" 00029 #include "daplink.h" 00030 00031 // This GPIO configuration is only valid for the KL26 HIC 00032 COMPILER_ASSERT(DAPLINK_HIC_ID == DAPLINK_HIC_ID_KL26); 00033 00034 00035 // Debug Port I/O Pins 00036 00037 // SWCLK Pin PTC5(C5) 00038 #define PIN_SWCLK_PORT PORTC 00039 #define PIN_SWCLK_GPIO PTC 00040 #define PIN_SWCLK_BIT (5) 00041 #define PIN_SWCLK (1<<PIN_SWCLK_BIT) 00042 00043 // SWDIO Pin PTC6(C6) 00044 #define PIN_SWDIO_PORT PORTC 00045 #define PIN_SWDIO_GPIO PTC 00046 #define PIN_SWDIO_BIT (6) 00047 #define PIN_SWDIO (1<<PIN_SWDIO_BIT) 00048 00049 // nRESET Pin PTC8(C8) 00050 #define PIN_nRESET_PORT PORTC 00051 #define PIN_nRESET_GPIO PTC 00052 #define PIN_nRESET_BIT (1/*8 DUE TO SMALLER PACKAGE*/) 00053 #define PIN_nRESET (1<<PIN_nRESET_BIT) 00054 00055 // PWR_REG_EN PTD2 - Not connected 00056 #define PIN_POWER_EN_PORT PORTD 00057 #define PIN_POWER_EN_GPIO PTD 00058 #define PIN_POWER_EN_BIT (2) 00059 #define PIN_POWER_EN (1<<PIN_POWER_EN_BIT) 00060 00061 // VTRG_FAULT_B PTD3 - Not connected 00062 #define PIN_VTRG_FAULT_B_PORT PORTD 00063 #define PIN_VTRG_FAULT_B_GPIO PTD 00064 #define PIN_VTRG_FAULT_B_BIT (7) 00065 #define PIN_VTRG_FAULT_B_EN (1<<PIN_VTRG_FAULT_B_BIT) 00066 00067 // Debug Unit LEDs 00068 00069 // HID_LED PTD4 00070 #define PIN_HID_LED_PORT PORTD 00071 #define PIN_HID_LED_GPIO PTD 00072 #define PIN_HID_LED_BIT (4) 00073 #define PIN_HID_LED (1<<PIN_HID_LED_BIT) 00074 00075 // MSC_LED PTD5 00076 #define PIN_MSC_LED_PORT PORTD 00077 #define PIN_MSC_LED_GPIO PTD 00078 #define PIN_MSC_LED_BIT (4) 00079 #define PIN_MSC_LED (1<<PIN_MSC_LED_BIT) 00080 00081 // CDC_LED PTD6 00082 #define PIN_CDC_LED_PORT PORTD 00083 #define PIN_CDC_LED_GPIO PTD 00084 #define PIN_CDC_LED_BIT (4) 00085 #define PIN_CDC_LED (1<<PIN_CDC_LED_BIT) 00086 00087 // SW RESET BUTTON PTB1 00088 #define PIN_SW_RESET_PORT PORTB 00089 #define PIN_SW_RESET_GPIO PTB 00090 #define PIN_SW_RESET_BIT (1) 00091 #define PIN_SW_RESET (1<<PIN_SW_RESET_BIT) 00092 00093 // Connected LED Not available 00094 00095 // Target Running LED Not available 00096 00097 // UART 00098 #define UART_PORT PORTC 00099 #define UART_NUM (1) 00100 // RX PTC3 00101 #define PIN_UART_RX_GPIO PTC 00102 #define PIN_UART_RX_BIT (3) 00103 #define PIN_UART_RX (1<<PIN_UART_RX_BIT) 00104 #define PIN_UART_RX_MUX_ALT (3) 00105 // TX PTC4 00106 #define PIN_UART_TX_GPIO PTC 00107 #define PIN_UART_TX_BIT (4) 00108 #define PIN_UART_TX (1<<PIN_UART_TX_BIT) 00109 #define PIN_UART_TX_MUX_ALT (3) 00110 00111 #define UART UART1 00112 #define UART_RX_TX_IRQn UART1_IRQn 00113 #define UART_RX_TX_IRQHandler UART1_IRQHandler 00114 00115 #endif
Generated on Tue Jul 12 2022 15:37:19 by
1.7.2