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 "sam3u2c.h"
00026 #include "daplink.h"
00027 
00028 #ifdef IO_CONFIG_OVERRIDE
00029 #include "IO_Config_Override.h"
00030 #endif
00031 
00032 // This GPIO configuration is only valid for the LPC11U35 HIC
00033 COMPILER_ASSERT(DAPLINK_HIC_ID == DAPLINK_HIC_ID_SAM3U2C);
00034 
00035 // DAP LED
00036 #ifndef PIN_DAP_LED
00037 #define PIN_DAP_LED_PORT        PIOA
00038 #define PIN_DAP_LED_BIT         29
00039 #define PIN_DAP_LED             (1UL << PIN_DAP_LED_BIT)
00040 #endif
00041 
00042 // MSD LED
00043 #ifndef PIN_MSD_LED
00044 #define PIN_MSD_LED_PORT        PIOA
00045 #define PIN_MSD_LED_BIT         28
00046 #define PIN_MSD_LED             (1UL << PIN_MSD_LED_BIT)
00047 #endif
00048 
00049 // CDC LED
00050 #ifndef PIN_CDC_LED
00051 #define PIN_CDC_LED_PORT        PIOA
00052 #define PIN_CDC_LED_BIT         31
00053 #define PIN_CDC_LED             (1UL << PIN_CDC_LED_BIT)
00054 #endif
00055 
00056 // Non-Forwarded Reset in PIN - Not used
00057 
00058 // Forwarded Reset in PIN     
00059 #ifndef PIN_RESET_IN_FWRD
00060 #define PIN_RESET_IN_FWRD_PORT  PIOA
00061 #define PIN_RESET_IN_FWRD_BIT   25
00062 #define PIN_RESET_IN_FWRD       (1UL << PIN_RESET_IN_FWRD_BIT)
00063 #endif
00064 
00065 // nRESET OUT Pin
00066 #ifndef PIN_nRESET
00067 #define PIN_nRESET_PORT         PIOA
00068 #define PIN_nRESET_BIT          4
00069 #define PIN_nRESET              (1UL << PIN_nRESET_BIT)
00070 #endif
00071 
00072 // SWCLK/TCK Pin
00073 #ifndef PIN_SWCLK
00074 #define PIN_SWCLK_PORT          PIOA
00075 #define PIN_SWCLK_BIT           17
00076 #define PIN_SWCLK               (1UL << PIN_SWCLK_BIT)
00077 #endif
00078 
00079 // SWDIO/TMS In/Out Pin
00080 #ifndef PIN_SWDIO
00081 #define PIN_SWDIO_PORT          PIOA
00082 #define PIN_SWDIO_BIT           18
00083 #define PIN_SWDIO               (1UL << PIN_SWDIO_BIT)
00084 #endif
00085 
00086 // TDI Pin - Not used
00087 
00088 // SWO/TDO Pin - Not used
00089 
00090 #endif