The official mbed C/C SDK provides the software platform and libraries to build your applications.

Fork of mbed by mbed official

Committer:
Kojto
Date:
Wed Apr 29 10:16:23 2015 +0100
Revision:
98:8ab26030e058
Release 98 of the mbed library

Changes:
- Silabs new targets (Giant, Zero, Happy, Leopard, Wonder Geckos)
- Asynchronous SPI, I2C, Serial
- LowPower classes
- Nordic - nordic SDK v8.0 update
- Teensy - gcc arm fix for startup
- Nucleo F411 - usb freq fix

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 98:8ab26030e058 1 /**************************************************************************//**
Kojto 98:8ab26030e058 2 * @file efm32gg_af_ports.h
Kojto 98:8ab26030e058 3 * @brief EFM32GG_AF_PORTS register and bit field definitions
Kojto 98:8ab26030e058 4 * @version 3.20.6
Kojto 98:8ab26030e058 5 ******************************************************************************
Kojto 98:8ab26030e058 6 * @section License
Kojto 98:8ab26030e058 7 * <b>(C) Copyright 2014 Silicon Laboratories, Inc. http://www.silabs.com</b>
Kojto 98:8ab26030e058 8 ******************************************************************************
Kojto 98:8ab26030e058 9 *
Kojto 98:8ab26030e058 10 * Permission is granted to anyone to use this software for any purpose,
Kojto 98:8ab26030e058 11 * including commercial applications, and to alter it and redistribute it
Kojto 98:8ab26030e058 12 * freely, subject to the following restrictions:
Kojto 98:8ab26030e058 13 *
Kojto 98:8ab26030e058 14 * 1. The origin of this software must not be misrepresented; you must not
Kojto 98:8ab26030e058 15 * claim that you wrote the original software.@n
Kojto 98:8ab26030e058 16 * 2. Altered source versions must be plainly marked as such, and must not be
Kojto 98:8ab26030e058 17 * misrepresented as being the original software.@n
Kojto 98:8ab26030e058 18 * 3. This notice may not be removed or altered from any source distribution.
Kojto 98:8ab26030e058 19 *
Kojto 98:8ab26030e058 20 * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Laboratories, Inc.
Kojto 98:8ab26030e058 21 * has no obligation to support this Software. Silicon Laboratories, Inc. is
Kojto 98:8ab26030e058 22 * providing the Software "AS IS", with no express or implied warranties of any
Kojto 98:8ab26030e058 23 * kind, including, but not limited to, any implied warranties of
Kojto 98:8ab26030e058 24 * merchantability or fitness for any particular purpose or warranties against
Kojto 98:8ab26030e058 25 * infringement of any proprietary rights of a third party.
Kojto 98:8ab26030e058 26 *
Kojto 98:8ab26030e058 27 * Silicon Laboratories, Inc. will not be liable for any consequential,
Kojto 98:8ab26030e058 28 * incidental, or special damages, or any other relief, or for any claim by
Kojto 98:8ab26030e058 29 * any third party, arising from your use of this Software.
Kojto 98:8ab26030e058 30 *
Kojto 98:8ab26030e058 31 *****************************************************************************/
Kojto 98:8ab26030e058 32 /**************************************************************************//**
Kojto 98:8ab26030e058 33 * @defgroup EFM32GG_AF_Ports
Kojto 98:8ab26030e058 34 * @{
Kojto 98:8ab26030e058 35 *****************************************************************************/
Kojto 98:8ab26030e058 36
Kojto 98:8ab26030e058 37 /** AF port number for location number i */
Kojto 98:8ab26030e058 38 #define AF_USB_VBUSEN_PORT(i) ((i) == 0 ? 5 : -1)
Kojto 98:8ab26030e058 39 #define AF_USB_DMPU_PORT(i) ((i) == 0 ? 3 : -1)
Kojto 98:8ab26030e058 40 #define AF_CMU_CLK0_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 2 : (i) == 2 ? 3 : -1)
Kojto 98:8ab26030e058 41 #define AF_CMU_CLK1_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 3 : (i) == 2 ? 4 : -1)
Kojto 98:8ab26030e058 42 #define AF_LESENSE_CH0_PORT(i) ((i) == 0 ? 2 : -1)
Kojto 98:8ab26030e058 43 #define AF_LESENSE_CH1_PORT(i) ((i) == 0 ? 2 : -1)
Kojto 98:8ab26030e058 44 #define AF_LESENSE_CH2_PORT(i) ((i) == 0 ? 2 : -1)
Kojto 98:8ab26030e058 45 #define AF_LESENSE_CH3_PORT(i) ((i) == 0 ? 2 : -1)
Kojto 98:8ab26030e058 46 #define AF_LESENSE_CH4_PORT(i) ((i) == 0 ? 2 : -1)
Kojto 98:8ab26030e058 47 #define AF_LESENSE_CH5_PORT(i) ((i) == 0 ? 2 : -1)
Kojto 98:8ab26030e058 48 #define AF_LESENSE_CH6_PORT(i) ((i) == 0 ? 2 : -1)
Kojto 98:8ab26030e058 49 #define AF_LESENSE_CH7_PORT(i) ((i) == 0 ? 2 : -1)
Kojto 98:8ab26030e058 50 #define AF_LESENSE_CH8_PORT(i) ((i) == 0 ? 2 : -1)
Kojto 98:8ab26030e058 51 #define AF_LESENSE_CH9_PORT(i) ((i) == 0 ? 2 : -1)
Kojto 98:8ab26030e058 52 #define AF_LESENSE_CH10_PORT(i) ((i) == 0 ? 2 : -1)
Kojto 98:8ab26030e058 53 #define AF_LESENSE_CH11_PORT(i) ((i) == 0 ? 2 : -1)
Kojto 98:8ab26030e058 54 #define AF_LESENSE_CH12_PORT(i) ((i) == 0 ? 2 : -1)
Kojto 98:8ab26030e058 55 #define AF_LESENSE_CH13_PORT(i) ((i) == 0 ? 2 : -1)
Kojto 98:8ab26030e058 56 #define AF_LESENSE_CH14_PORT(i) ((i) == 0 ? 2 : -1)
Kojto 98:8ab26030e058 57 #define AF_LESENSE_CH15_PORT(i) ((i) == 0 ? 2 : -1)
Kojto 98:8ab26030e058 58 #define AF_LESENSE_ALTEX0_PORT(i) ((i) == 0 ? 3 : -1)
Kojto 98:8ab26030e058 59 #define AF_LESENSE_ALTEX1_PORT(i) ((i) == 0 ? 3 : -1)
Kojto 98:8ab26030e058 60 #define AF_LESENSE_ALTEX2_PORT(i) ((i) == 0 ? 0 : -1)
Kojto 98:8ab26030e058 61 #define AF_LESENSE_ALTEX3_PORT(i) ((i) == 0 ? 0 : -1)
Kojto 98:8ab26030e058 62 #define AF_LESENSE_ALTEX4_PORT(i) ((i) == 0 ? 0 : -1)
Kojto 98:8ab26030e058 63 #define AF_LESENSE_ALTEX5_PORT(i) ((i) == 0 ? 4 : -1)
Kojto 98:8ab26030e058 64 #define AF_LESENSE_ALTEX6_PORT(i) ((i) == 0 ? 4 : -1)
Kojto 98:8ab26030e058 65 #define AF_LESENSE_ALTEX7_PORT(i) ((i) == 0 ? 4 : -1)
Kojto 98:8ab26030e058 66 #define AF_LETIMER0_OUT0_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 1 : (i) == 2 ? 5 : (i) == 3 ? 2 : -1)
Kojto 98:8ab26030e058 67 #define AF_LETIMER0_OUT1_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 1 : (i) == 2 ? 5 : (i) == 3 ? 2 : -1)
Kojto 98:8ab26030e058 68 #define AF_EBI_AD00_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 4 : -1)
Kojto 98:8ab26030e058 69 #define AF_EBI_AD01_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 4 : -1)
Kojto 98:8ab26030e058 70 #define AF_EBI_AD02_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 4 : -1)
Kojto 98:8ab26030e058 71 #define AF_EBI_AD03_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 4 : -1)
Kojto 98:8ab26030e058 72 #define AF_EBI_AD04_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 4 : -1)
Kojto 98:8ab26030e058 73 #define AF_EBI_AD05_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 4 : -1)
Kojto 98:8ab26030e058 74 #define AF_EBI_AD06_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 4 : -1)
Kojto 98:8ab26030e058 75 #define AF_EBI_AD07_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 4 : -1)
Kojto 98:8ab26030e058 76 #define AF_EBI_AD08_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 0 : -1)
Kojto 98:8ab26030e058 77 #define AF_EBI_AD09_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 0 : -1)
Kojto 98:8ab26030e058 78 #define AF_EBI_AD10_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 0 : -1)
Kojto 98:8ab26030e058 79 #define AF_EBI_AD11_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 0 : -1)
Kojto 98:8ab26030e058 80 #define AF_EBI_AD12_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 0 : -1)
Kojto 98:8ab26030e058 81 #define AF_EBI_AD13_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 0 : -1)
Kojto 98:8ab26030e058 82 #define AF_EBI_AD14_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 0 : -1)
Kojto 98:8ab26030e058 83 #define AF_EBI_AD15_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 0 : -1)
Kojto 98:8ab26030e058 84 #define AF_EBI_CS0_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 3 : (i) == 2 ? 3 : -1)
Kojto 98:8ab26030e058 85 #define AF_EBI_CS1_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 3 : (i) == 2 ? 3 : -1)
Kojto 98:8ab26030e058 86 #define AF_EBI_CS2_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 3 : (i) == 2 ? 3 : -1)
Kojto 98:8ab26030e058 87 #define AF_EBI_CS3_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 3 : (i) == 2 ? 3 : -1)
Kojto 98:8ab26030e058 88 #define AF_EBI_ARDY_PORT(i) ((i) == 0 ? 5 : (i) == 1 ? 5 : (i) == 2 ? 5 : -1)
Kojto 98:8ab26030e058 89 #define AF_EBI_ALE_PORT(i) ((i) == 0 ? 5 : (i) == 1 ? 2 : (i) == 2 ? 2 : -1)
Kojto 98:8ab26030e058 90 #define AF_EBI_WEn_PORT(i) ((i) == 0 ? 5 : (i) == 1 ? 5 : (i) == 2 ? 5 : -1)
Kojto 98:8ab26030e058 91 #define AF_EBI_REn_PORT(i) ((i) == 0 ? 5 : (i) == 1 ? 5 : (i) == 2 ? 5 : -1)
Kojto 98:8ab26030e058 92 #define AF_EBI_NANDWEn_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 2 : (i) == 2 ? 2 : -1)
Kojto 98:8ab26030e058 93 #define AF_EBI_NANDREn_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 2 : (i) == 2 ? 2 : -1)
Kojto 98:8ab26030e058 94 #define AF_EBI_BL0_PORT(i) ((i) == 0 ? 5 : (i) == 1 ? 5 : (i) == 2 ? 5 : -1)
Kojto 98:8ab26030e058 95 #define AF_EBI_BL1_PORT(i) ((i) == 0 ? 5 : (i) == 1 ? 5 : (i) == 2 ? 5 : -1)
Kojto 98:8ab26030e058 96 #define AF_EBI_A00_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 0 : -1)
Kojto 98:8ab26030e058 97 #define AF_EBI_A01_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 0 : -1)
Kojto 98:8ab26030e058 98 #define AF_EBI_A02_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 0 : -1)
Kojto 98:8ab26030e058 99 #define AF_EBI_A03_PORT(i) ((i) == 0 ? 1 : (i) == 1 ? 1 : (i) == 2 ? 1 : -1)
Kojto 98:8ab26030e058 100 #define AF_EBI_A04_PORT(i) ((i) == 0 ? 1 : (i) == 1 ? 1 : (i) == 2 ? 1 : -1)
Kojto 98:8ab26030e058 101 #define AF_EBI_A05_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 2 : (i) == 2 ? 2 : -1)
Kojto 98:8ab26030e058 102 #define AF_EBI_A06_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 2 : (i) == 2 ? 2 : -1)
Kojto 98:8ab26030e058 103 #define AF_EBI_A07_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 4 : -1)
Kojto 98:8ab26030e058 104 #define AF_EBI_A08_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 4 : -1)
Kojto 98:8ab26030e058 105 #define AF_EBI_A09_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 2 : (i) == 2 ? 2 : -1)
Kojto 98:8ab26030e058 106 #define AF_EBI_A10_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 2 : (i) == 2 ? 2 : -1)
Kojto 98:8ab26030e058 107 #define AF_EBI_A11_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 4 : -1)
Kojto 98:8ab26030e058 108 #define AF_EBI_A12_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 4 : -1)
Kojto 98:8ab26030e058 109 #define AF_EBI_A13_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 4 : -1)
Kojto 98:8ab26030e058 110 #define AF_EBI_A14_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 4 : -1)
Kojto 98:8ab26030e058 111 #define AF_EBI_A15_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 2 : (i) == 2 ? 2 : -1)
Kojto 98:8ab26030e058 112 #define AF_EBI_A16_PORT(i) ((i) == 0 ? 1 : (i) == 1 ? 1 : (i) == 2 ? 1 : -1)
Kojto 98:8ab26030e058 113 #define AF_EBI_A17_PORT(i) ((i) == 0 ? 1 : (i) == 1 ? 1 : (i) == 2 ? 1 : -1)
Kojto 98:8ab26030e058 114 #define AF_EBI_A18_PORT(i) ((i) == 0 ? 1 : (i) == 1 ? 1 : (i) == 2 ? 1 : -1)
Kojto 98:8ab26030e058 115 #define AF_EBI_A19_PORT(i) ((i) == 0 ? 1 : (i) == 1 ? 1 : (i) == 2 ? 1 : -1)
Kojto 98:8ab26030e058 116 #define AF_EBI_A20_PORT(i) ((i) == 0 ? 1 : (i) == 1 ? 1 : (i) == 2 ? 1 : -1)
Kojto 98:8ab26030e058 117 #define AF_EBI_A21_PORT(i) ((i) == 0 ? 1 : (i) == 1 ? 1 : (i) == 2 ? 1 : -1)
Kojto 98:8ab26030e058 118 #define AF_EBI_A22_PORT(i) ((i) == 0 ? 1 : (i) == 1 ? 1 : (i) == 2 ? 1 : -1)
Kojto 98:8ab26030e058 119 #define AF_EBI_A23_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 2 : (i) == 2 ? 2 : -1)
Kojto 98:8ab26030e058 120 #define AF_EBI_A24_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 2 : (i) == 2 ? 2 : -1)
Kojto 98:8ab26030e058 121 #define AF_EBI_A25_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 2 : (i) == 2 ? 2 : -1)
Kojto 98:8ab26030e058 122 #define AF_EBI_A26_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 2 : (i) == 2 ? 2 : -1)
Kojto 98:8ab26030e058 123 #define AF_EBI_A27_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 3 : (i) == 2 ? 3 : -1)
Kojto 98:8ab26030e058 124 #define AF_EBI_CSTFT_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 0 : -1)
Kojto 98:8ab26030e058 125 #define AF_EBI_DCLK_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 0 : -1)
Kojto 98:8ab26030e058 126 #define AF_EBI_DTEN_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 0 : -1)
Kojto 98:8ab26030e058 127 #define AF_EBI_VSNC_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 0 : -1)
Kojto 98:8ab26030e058 128 #define AF_EBI_HSNC_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 0 : -1)
Kojto 98:8ab26030e058 129 #define AF_USART0_TX_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 2 : (i) == 3 ? 4 : (i) == 4 ? 1 : (i) == 5 ? 2 : -1)
Kojto 98:8ab26030e058 130 #define AF_USART0_RX_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 2 : (i) == 3 ? 4 : (i) == 4 ? 1 : (i) == 5 ? 2 : -1)
Kojto 98:8ab26030e058 131 #define AF_USART0_CLK_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 2 : (i) == 3 ? 2 : (i) == 4 ? 1 : (i) == 5 ? 1 : -1)
Kojto 98:8ab26030e058 132 #define AF_USART0_CS_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 2 : (i) == 3 ? 2 : (i) == 4 ? 1 : (i) == 5 ? 1 : -1)
Kojto 98:8ab26030e058 133 #define AF_USART1_TX_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 3 : (i) == 2 ? 3 : -1)
Kojto 98:8ab26030e058 134 #define AF_USART1_RX_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 3 : (i) == 2 ? 3 : -1)
Kojto 98:8ab26030e058 135 #define AF_USART1_CLK_PORT(i) ((i) == 0 ? 1 : (i) == 1 ? 3 : (i) == 2 ? 5 : -1)
Kojto 98:8ab26030e058 136 #define AF_USART1_CS_PORT(i) ((i) == 0 ? 1 : (i) == 1 ? 3 : (i) == 2 ? 5 : -1)
Kojto 98:8ab26030e058 137 #define AF_USART2_TX_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 1 : -1)
Kojto 98:8ab26030e058 138 #define AF_USART2_RX_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 1 : -1)
Kojto 98:8ab26030e058 139 #define AF_USART2_CLK_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 1 : -1)
Kojto 98:8ab26030e058 140 #define AF_USART2_CS_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 1 : -1)
Kojto 98:8ab26030e058 141 #define AF_UART0_TX_PORT(i) ((i) == 0 ? 5 : (i) == 1 ? 4 : (i) == 2 ? 0 : (i) == 3 ? 2 : -1)
Kojto 98:8ab26030e058 142 #define AF_UART0_RX_PORT(i) ((i) == 0 ? 5 : (i) == 1 ? 4 : (i) == 2 ? 0 : (i) == 3 ? 2 : -1)
Kojto 98:8ab26030e058 143 #define AF_UART0_CLK_PORT(i) (-1)
Kojto 98:8ab26030e058 144 #define AF_UART0_CS_PORT(i) (-1)
Kojto 98:8ab26030e058 145 #define AF_UART1_TX_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 5 : (i) == 2 ? 1 : (i) == 3 ? 4 : -1)
Kojto 98:8ab26030e058 146 #define AF_UART1_RX_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 5 : (i) == 2 ? 1 : (i) == 3 ? 4 : -1)
Kojto 98:8ab26030e058 147 #define AF_UART1_CLK_PORT(i) (-1)
Kojto 98:8ab26030e058 148 #define AF_UART1_CS_PORT(i) (-1)
Kojto 98:8ab26030e058 149 #define AF_TIMER0_CC0_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 5 : (i) == 3 ? 3 : (i) == 4 ? 0 : (i) == 5 ? 5 : -1)
Kojto 98:8ab26030e058 150 #define AF_TIMER0_CC1_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 5 : (i) == 3 ? 3 : (i) == 4 ? 2 : (i) == 5 ? 5 : -1)
Kojto 98:8ab26030e058 151 #define AF_TIMER0_CC2_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 5 : (i) == 3 ? 3 : (i) == 4 ? 2 : (i) == 5 ? 5 : -1)
Kojto 98:8ab26030e058 152 #define AF_TIMER0_CDTI0_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 2 : (i) == 2 ? 5 : (i) == 3 ? 2 : (i) == 4 ? 2 : (i) == 5 ? 5 : -1)
Kojto 98:8ab26030e058 153 #define AF_TIMER0_CDTI1_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 2 : (i) == 2 ? 5 : (i) == 3 ? 2 : (i) == 4 ? 2 : (i) == 5 ? 5 : -1)
Kojto 98:8ab26030e058 154 #define AF_TIMER0_CDTI2_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 2 : (i) == 2 ? 5 : (i) == 3 ? 2 : (i) == 4 ? 2 : (i) == 5 ? 5 : -1)
Kojto 98:8ab26030e058 155 #define AF_TIMER1_CC0_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 4 : (i) == 2 ? 1 : (i) == 3 ? 1 : (i) == 4 ? 3 : -1)
Kojto 98:8ab26030e058 156 #define AF_TIMER1_CC1_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 4 : (i) == 2 ? 1 : (i) == 3 ? 1 : (i) == 4 ? 3 : -1)
Kojto 98:8ab26030e058 157 #define AF_TIMER1_CC2_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 4 : (i) == 2 ? 1 : (i) == 3 ? 1 : (i) == 4 ? 2 : -1)
Kojto 98:8ab26030e058 158 #define AF_TIMER1_CDTI0_PORT(i) (-1)
Kojto 98:8ab26030e058 159 #define AF_TIMER1_CDTI1_PORT(i) (-1)
Kojto 98:8ab26030e058 160 #define AF_TIMER1_CDTI2_PORT(i) (-1)
Kojto 98:8ab26030e058 161 #define AF_TIMER2_CC0_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 2 : -1)
Kojto 98:8ab26030e058 162 #define AF_TIMER2_CC1_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 2 : -1)
Kojto 98:8ab26030e058 163 #define AF_TIMER2_CC2_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 2 : -1)
Kojto 98:8ab26030e058 164 #define AF_TIMER2_CDTI0_PORT(i) (-1)
Kojto 98:8ab26030e058 165 #define AF_TIMER2_CDTI1_PORT(i) (-1)
Kojto 98:8ab26030e058 166 #define AF_TIMER2_CDTI2_PORT(i) (-1)
Kojto 98:8ab26030e058 167 #define AF_TIMER3_CC0_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : -1)
Kojto 98:8ab26030e058 168 #define AF_TIMER3_CC1_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : -1)
Kojto 98:8ab26030e058 169 #define AF_TIMER3_CC2_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 4 : -1)
Kojto 98:8ab26030e058 170 #define AF_TIMER3_CDTI0_PORT(i) (-1)
Kojto 98:8ab26030e058 171 #define AF_TIMER3_CDTI1_PORT(i) (-1)
Kojto 98:8ab26030e058 172 #define AF_TIMER3_CDTI2_PORT(i) (-1)
Kojto 98:8ab26030e058 173 #define AF_ACMP0_OUT_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? 4 : (i) == 2 ? 3 : -1)
Kojto 98:8ab26030e058 174 #define AF_ACMP1_OUT_PORT(i) ((i) == 0 ? 5 : (i) == 1 ? 4 : (i) == 2 ? 3 : -1)
Kojto 98:8ab26030e058 175 #define AF_I2C0_SDA_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 3 : (i) == 2 ? 2 : (i) == 3 ? 3 : (i) == 4 ? 2 : (i) == 5 ? 5 : (i) == 6 ? 4 : -1)
Kojto 98:8ab26030e058 176 #define AF_I2C0_SCL_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 3 : (i) == 2 ? 2 : (i) == 3 ? 3 : (i) == 4 ? 2 : (i) == 5 ? 5 : (i) == 6 ? 4 : -1)
Kojto 98:8ab26030e058 177 #define AF_I2C1_SDA_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 1 : (i) == 2 ? 4 : -1)
Kojto 98:8ab26030e058 178 #define AF_I2C1_SCL_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 1 : (i) == 2 ? 4 : -1)
Kojto 98:8ab26030e058 179 #define AF_PRS_CH0_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 5 : -1)
Kojto 98:8ab26030e058 180 #define AF_PRS_CH1_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 5 : -1)
Kojto 98:8ab26030e058 181 #define AF_PRS_CH2_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 5 : -1)
Kojto 98:8ab26030e058 182 #define AF_PRS_CH3_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 4 : -1)
Kojto 98:8ab26030e058 183 #define AF_LEUART0_TX_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 1 : (i) == 2 ? 4 : (i) == 3 ? 5 : (i) == 4 ? 5 : -1)
Kojto 98:8ab26030e058 184 #define AF_LEUART0_RX_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 1 : (i) == 2 ? 4 : (i) == 3 ? 5 : (i) == 4 ? 0 : -1)
Kojto 98:8ab26030e058 185 #define AF_LEUART1_TX_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 0 : -1)
Kojto 98:8ab26030e058 186 #define AF_LEUART1_RX_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 0 : -1)
Kojto 98:8ab26030e058 187 #define AF_PCNT0_S0IN_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 4 : (i) == 2 ? 2 : (i) == 3 ? 3 : -1)
Kojto 98:8ab26030e058 188 #define AF_PCNT0_S1IN_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 4 : (i) == 2 ? 2 : (i) == 3 ? 3 : -1)
Kojto 98:8ab26030e058 189 #define AF_PCNT1_S0IN_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 1 : -1)
Kojto 98:8ab26030e058 190 #define AF_PCNT1_S1IN_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 1 : -1)
Kojto 98:8ab26030e058 191 #define AF_PCNT2_S0IN_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 4 : -1)
Kojto 98:8ab26030e058 192 #define AF_PCNT2_S1IN_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 4 : -1)
Kojto 98:8ab26030e058 193 #define AF_DBG_SWO_PORT(i) ((i) == 0 ? 5 : (i) == 1 ? 2 : (i) == 2 ? 3 : (i) == 3 ? 3 : -1)
Kojto 98:8ab26030e058 194 #define AF_DBG_SWDIO_PORT(i) ((i) == 0 ? 5 : (i) == 1 ? 5 : (i) == 2 ? 5 : (i) == 3 ? 5 : -1)
Kojto 98:8ab26030e058 195 #define AF_DBG_SWCLK_PORT(i) ((i) == 0 ? 5 : (i) == 1 ? 5 : (i) == 2 ? 5 : (i) == 3 ? 5 : -1)
Kojto 98:8ab26030e058 196 #define AF_ETM_TCLK_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 5 : (i) == 2 ? 2 : (i) == 3 ? 0 : -1)
Kojto 98:8ab26030e058 197 #define AF_ETM_TD0_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 5 : (i) == 2 ? 2 : (i) == 3 ? 0 : -1)
Kojto 98:8ab26030e058 198 #define AF_ETM_TD1_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 3 : (i) == 2 ? 3 : (i) == 3 ? 0 : -1)
Kojto 98:8ab26030e058 199 #define AF_ETM_TD2_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 1 : (i) == 2 ? 3 : (i) == 3 ? 0 : -1)
Kojto 98:8ab26030e058 200 #define AF_ETM_TD3_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 5 : (i) == 2 ? 3 : (i) == 3 ? 0 : -1)
Kojto 98:8ab26030e058 201
Kojto 98:8ab26030e058 202 /** @} End of group EFM32GG_AF_Ports */
Kojto 98:8ab26030e058 203
Kojto 98:8ab26030e058 204