Arrow / Mbed OS DAPLink Reset
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers IO_Config.h Source File

IO_Config.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 #ifndef __IO_CONFIG_H__
00023 #define __IO_CONFIG_H__
00024 
00025 #include "NuMicro.h"
00026 #include "compiler.h"
00027 #include "daplink.h"
00028 
00029 COMPILER_ASSERT(DAPLINK_HIC_ID == DAPLINK_HIC_ID_M48SSIDAE);
00030 
00031 // SWD
00032 #define SWD_DAT_IO  PA9
00033 #define SWD_DAT_GRP PA
00034 #define SWD_DAT_BIT 9
00035 
00036 #define SWD_CLK_IO  PA10
00037 #define SWD_CLK_GRP PA
00038 #define SWD_CLK_BIT 10
00039 
00040 #define DBG_RST_IO  PF5
00041 #define DBG_RST_GRP PF
00042 #define DBG_RST_BIT 5
00043 
00044 // LED
00045 #define LED_ICE_IO  PF4
00046 #define LED_ICE_GRP PF
00047 #define LED_ICE_BIT 4
00048 
00049 #define LED_ISP_IO  PC6
00050 #define LED_ISP_GRP PC
00051 #define LED_ISP_BIT 6
00052 
00053 #define LED_RED_IO  PB9
00054 #define LED_RED_GRP PB
00055 #define LED_RED_BIT 9
00056 
00057 #define LED_GRE_IO  PB8
00058 #define LED_GRE_GRP PB
00059 #define LED_GRE_BIT 8
00060 
00061 // Other
00062 #define OFF_BTN_IO  PC7
00063 #define OFF_BTN_GRP PC
00064 #define OFF_BTN_BIT 7
00065 
00066 #endif