Gleb Klochkov / Mbed OS Climatcontroll_Main

Dependencies:   esp8266-driver

Committer:
glebiuskv
Date:
Fri Apr 13 08:53:46 2018 +0000
Revision:
0:2f0e1e23c242
initial

Who changed what in which revision?

UserRevisionLine numberNew contents of line
glebiuskv 0:2f0e1e23c242 1 /**************************************************************************//**
glebiuskv 0:2f0e1e23c242 2 * @file efm32zg_af_ports.h
glebiuskv 0:2f0e1e23c242 3 * @brief EFM32ZG_AF_PORTS register and bit field definitions
glebiuskv 0:2f0e1e23c242 4 * @version 5.1.2
glebiuskv 0:2f0e1e23c242 5 ******************************************************************************
glebiuskv 0:2f0e1e23c242 6 * @section License
glebiuskv 0:2f0e1e23c242 7 * <b>Copyright 2017 Silicon Laboratories, Inc. http://www.silabs.com</b>
glebiuskv 0:2f0e1e23c242 8 ******************************************************************************
glebiuskv 0:2f0e1e23c242 9 *
glebiuskv 0:2f0e1e23c242 10 * Permission is granted to anyone to use this software for any purpose,
glebiuskv 0:2f0e1e23c242 11 * including commercial applications, and to alter it and redistribute it
glebiuskv 0:2f0e1e23c242 12 * freely, subject to the following restrictions:
glebiuskv 0:2f0e1e23c242 13 *
glebiuskv 0:2f0e1e23c242 14 * 1. The origin of this software must not be misrepresented; you must not
glebiuskv 0:2f0e1e23c242 15 * claim that you wrote the original software.@n
glebiuskv 0:2f0e1e23c242 16 * 2. Altered source versions must be plainly marked as such, and must not be
glebiuskv 0:2f0e1e23c242 17 * misrepresented as being the original software.@n
glebiuskv 0:2f0e1e23c242 18 * 3. This notice may not be removed or altered from any source distribution.
glebiuskv 0:2f0e1e23c242 19 *
glebiuskv 0:2f0e1e23c242 20 * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Laboratories, Inc.
glebiuskv 0:2f0e1e23c242 21 * has no obligation to support this Software. Silicon Laboratories, Inc. is
glebiuskv 0:2f0e1e23c242 22 * providing the Software "AS IS", with no express or implied warranties of any
glebiuskv 0:2f0e1e23c242 23 * kind, including, but not limited to, any implied warranties of
glebiuskv 0:2f0e1e23c242 24 * merchantability or fitness for any particular purpose or warranties against
glebiuskv 0:2f0e1e23c242 25 * infringement of any proprietary rights of a third party.
glebiuskv 0:2f0e1e23c242 26 *
glebiuskv 0:2f0e1e23c242 27 * Silicon Laboratories, Inc. will not be liable for any consequential,
glebiuskv 0:2f0e1e23c242 28 * incidental, or special damages, or any other relief, or for any claim by
glebiuskv 0:2f0e1e23c242 29 * any third party, arising from your use of this Software.
glebiuskv 0:2f0e1e23c242 30 *
glebiuskv 0:2f0e1e23c242 31 *****************************************************************************/
glebiuskv 0:2f0e1e23c242 32 /**************************************************************************//**
glebiuskv 0:2f0e1e23c242 33 * @addtogroup Parts
glebiuskv 0:2f0e1e23c242 34 * @{
glebiuskv 0:2f0e1e23c242 35 ******************************************************************************/
glebiuskv 0:2f0e1e23c242 36 /**************************************************************************//**
glebiuskv 0:2f0e1e23c242 37 * @defgroup EFM32ZG_AF_Ports
glebiuskv 0:2f0e1e23c242 38 * @{
glebiuskv 0:2f0e1e23c242 39 *****************************************************************************/
glebiuskv 0:2f0e1e23c242 40
glebiuskv 0:2f0e1e23c242 41 /** AF port number for location number i */
glebiuskv 0:2f0e1e23c242 42 #define AF_CMU_CLK0_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? -1 : (i) == 2 ? 3 : -1)
glebiuskv 0:2f0e1e23c242 43 #define AF_CMU_CLK1_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? -1 : (i) == 2 ? 4 : -1)
glebiuskv 0:2f0e1e23c242 44 #define AF_TIMER0_CC0_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? -1 : (i) == 3 ? -1 : (i) == 4 ? 0 : (i) == 5 ? 5 : -1)
glebiuskv 0:2f0e1e23c242 45 #define AF_TIMER0_CC1_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? -1 : (i) == 3 ? -1 : (i) == 4 ? 2 : (i) == 5 ? 5 : -1)
glebiuskv 0:2f0e1e23c242 46 #define AF_TIMER0_CC2_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? -1 : (i) == 3 ? -1 : (i) == 4 ? 2 : (i) == 5 ? 5 : -1)
glebiuskv 0:2f0e1e23c242 47 #define AF_TIMER0_CDTI0_PORT(i) (-1)
glebiuskv 0:2f0e1e23c242 48 #define AF_TIMER0_CDTI1_PORT(i) (-1)
glebiuskv 0:2f0e1e23c242 49 #define AF_TIMER0_CDTI2_PORT(i) (-1)
glebiuskv 0:2f0e1e23c242 50 #define AF_TIMER1_CC0_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 4 : (i) == 2 ? -1 : (i) == 3 ? 1 : (i) == 4 ? 3 : -1)
glebiuskv 0:2f0e1e23c242 51 #define AF_TIMER1_CC1_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 4 : (i) == 2 ? -1 : (i) == 3 ? 1 : (i) == 4 ? 3 : -1)
glebiuskv 0:2f0e1e23c242 52 #define AF_TIMER1_CC2_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 4 : (i) == 2 ? -1 : (i) == 3 ? 1 : (i) == 4 ? 2 : -1)
glebiuskv 0:2f0e1e23c242 53 #define AF_TIMER1_CDTI0_PORT(i) (-1)
glebiuskv 0:2f0e1e23c242 54 #define AF_TIMER1_CDTI1_PORT(i) (-1)
glebiuskv 0:2f0e1e23c242 55 #define AF_TIMER1_CDTI2_PORT(i) (-1)
glebiuskv 0:2f0e1e23c242 56 #define AF_ACMP0_OUT_PORT(i) ((i) == 0 ? 4 : (i) == 1 ? -1 : (i) == 2 ? 3 : -1)
glebiuskv 0:2f0e1e23c242 57 #define AF_USART1_TX_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? -1 : (i) == 2 ? 3 : (i) == 3 ? 3 : -1)
glebiuskv 0:2f0e1e23c242 58 #define AF_USART1_RX_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? -1 : (i) == 2 ? 3 : (i) == 3 ? 3 : -1)
glebiuskv 0:2f0e1e23c242 59 #define AF_USART1_CLK_PORT(i) ((i) == 0 ? 1 : (i) == 1 ? -1 : (i) == 2 ? 5 : (i) == 3 ? 2 : -1)
glebiuskv 0:2f0e1e23c242 60 #define AF_USART1_CS_PORT(i) ((i) == 0 ? 1 : (i) == 1 ? -1 : (i) == 2 ? 5 : (i) == 3 ? 2 : -1)
glebiuskv 0:2f0e1e23c242 61 #define AF_PRS_CH0_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 5 : (i) == 2 ? 2 : -1)
glebiuskv 0:2f0e1e23c242 62 #define AF_PRS_CH1_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 5 : (i) == 2 ? 2 : -1)
glebiuskv 0:2f0e1e23c242 63 #define AF_PRS_CH2_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? 5 : (i) == 2 ? 4 : -1)
glebiuskv 0:2f0e1e23c242 64 #define AF_PRS_CH3_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? -1 : (i) == 2 ? 4 : -1)
glebiuskv 0:2f0e1e23c242 65 #define AF_LEUART0_TX_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 1 : (i) == 2 ? -1 : (i) == 3 ? 5 : (i) == 4 ? 5 : -1)
glebiuskv 0:2f0e1e23c242 66 #define AF_LEUART0_RX_PORT(i) ((i) == 0 ? 3 : (i) == 1 ? 1 : (i) == 2 ? -1 : (i) == 3 ? 5 : (i) == 4 ? 0 : -1)
glebiuskv 0:2f0e1e23c242 67 #define AF_PCNT0_S0IN_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? -1 : (i) == 2 ? 2 : (i) == 3 ? 3 : -1)
glebiuskv 0:2f0e1e23c242 68 #define AF_PCNT0_S1IN_PORT(i) ((i) == 0 ? 2 : (i) == 1 ? -1 : (i) == 2 ? 2 : (i) == 3 ? 3 : -1)
glebiuskv 0:2f0e1e23c242 69 #define AF_I2C0_SDA_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 3 : (i) == 2 ? -1 : (i) == 3 ? -1 : (i) == 4 ? 2 : (i) == 5 ? 5 : (i) == 6 ? 4 : -1)
glebiuskv 0:2f0e1e23c242 70 #define AF_I2C0_SCL_PORT(i) ((i) == 0 ? 0 : (i) == 1 ? 3 : (i) == 2 ? -1 : (i) == 3 ? -1 : (i) == 4 ? 2 : (i) == 5 ? 5 : (i) == 6 ? 4 : -1)
glebiuskv 0:2f0e1e23c242 71 #define AF_DBG_SWDIO_PORT(i) ((i) == 0 ? 5 : -1)
glebiuskv 0:2f0e1e23c242 72 #define AF_DBG_SWCLK_PORT(i) ((i) == 0 ? 5 : -1)
glebiuskv 0:2f0e1e23c242 73
glebiuskv 0:2f0e1e23c242 74 /** @} End of group EFM32ZG_AF_Ports */
glebiuskv 0:2f0e1e23c242 75 /** @} End of group Parts */
glebiuskv 0:2f0e1e23c242 76