Skip to content

ext: gecko: Add Silabs Gecko SDK for EFM32TG SoCs #108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,743 changes: 2,743 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg108f16.h

Large diffs are not rendered by default.

2,743 changes: 2,743 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg108f32.h

Large diffs are not rendered by default.

2,743 changes: 2,743 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg108f4.h

Large diffs are not rendered by default.

2,743 changes: 2,743 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg108f8.h

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg110f16.h

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg110f32.h

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg110f4.h

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg110f8.h

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg210f16.h

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg210f32.h

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg210f8.h

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg222f16.h

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg222f32.h

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg222f8.h

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg225f16.h

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg225f32.h

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg225f8.h

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg230f16.h

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg230f32.h

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg230f8.h

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg232f16.h

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg232f32.h

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg232f8.h

Large diffs are not rendered by default.

411 changes: 411 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg822f16.h

Large diffs are not rendered by default.

411 changes: 411 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg822f32.h

Large diffs are not rendered by default.

411 changes: 411 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg822f8.h

Large diffs are not rendered by default.

411 changes: 411 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg825f16.h

Large diffs are not rendered by default.

411 changes: 411 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg825f32.h

Large diffs are not rendered by default.

411 changes: 411 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg825f8.h

Large diffs are not rendered by default.

411 changes: 411 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg840f16.h

Large diffs are not rendered by default.

411 changes: 411 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg840f32.h

Large diffs are not rendered by default.

411 changes: 411 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg840f8.h

Large diffs are not rendered by default.

411 changes: 411 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg842f16.h

Large diffs are not rendered by default.

411 changes: 411 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg842f32.h

Large diffs are not rendered by default.

411 changes: 411 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg842f8.h

Large diffs are not rendered by default.

338 changes: 338 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg_acmp.h

Large diffs are not rendered by default.

660 changes: 660 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg_adc.h

Large diffs are not rendered by default.

246 changes: 246 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg_aes.h

Large diffs are not rendered by default.

111 changes: 111 additions & 0 deletions gecko/Device/SiliconLabs/EFM32TG/Include/efm32tg_af_pins.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
/***************************************************************************//**
* @file
* @brief EFM32TG_AF_PINS register and bit field definitions
*******************************************************************************
* # License
* <b>Copyright 2022 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* SPDX-License-Identifier: Zlib
*
* The licensor of this software is Silicon Laboratories Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
******************************************************************************/

#if defined(__ICCARM__)
#pragma system_include /* Treat file as system include file. */
#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
#pragma clang system_header /* Treat file as system include file. */
#endif

/***************************************************************************//**
* @addtogroup Parts
* @{
******************************************************************************/
/***************************************************************************//**
* @defgroup EFM32TG_AF_Pins
* @{
******************************************************************************/

#define AF_CMU_CLK0_PIN(i) ((i) == 0 ? 2 : (i) == 1 ? 12 : (i) == 2 ? 7 : -1) /**< Pin number for AF_CMU_CLK0 location number i */
#define AF_CMU_CLK1_PIN(i) ((i) == 0 ? 1 : (i) == 1 ? 8 : (i) == 2 ? 12 : -1) /**< Pin number for AF_CMU_CLK1 location number i */
#define AF_LESENSE_CH0_PIN(i) ((i) == 0 ? 0 : -1) /**< Pin number for AF_LESENSE_CH0 location number i */
#define AF_LESENSE_CH1_PIN(i) ((i) == 0 ? 1 : -1) /**< Pin number for AF_LESENSE_CH1 location number i */
#define AF_LESENSE_CH2_PIN(i) ((i) == 0 ? 2 : -1) /**< Pin number for AF_LESENSE_CH2 location number i */
#define AF_LESENSE_CH3_PIN(i) ((i) == 0 ? 3 : -1) /**< Pin number for AF_LESENSE_CH3 location number i */
#define AF_LESENSE_CH4_PIN(i) ((i) == 0 ? 4 : -1) /**< Pin number for AF_LESENSE_CH4 location number i */
#define AF_LESENSE_CH5_PIN(i) ((i) == 0 ? 5 : -1) /**< Pin number for AF_LESENSE_CH5 location number i */
#define AF_LESENSE_CH6_PIN(i) ((i) == 0 ? 6 : -1) /**< Pin number for AF_LESENSE_CH6 location number i */
#define AF_LESENSE_CH7_PIN(i) ((i) == 0 ? 7 : -1) /**< Pin number for AF_LESENSE_CH7 location number i */
#define AF_LESENSE_CH8_PIN(i) ((i) == 0 ? 8 : -1) /**< Pin number for AF_LESENSE_CH8 location number i */
#define AF_LESENSE_CH9_PIN(i) ((i) == 0 ? 9 : -1) /**< Pin number for AF_LESENSE_CH9 location number i */
#define AF_LESENSE_CH10_PIN(i) ((i) == 0 ? 10 : -1) /**< Pin number for AF_LESENSE_CH10 location number i */
#define AF_LESENSE_CH11_PIN(i) ((i) == 0 ? 11 : -1) /**< Pin number for AF_LESENSE_CH11 location number i */
#define AF_LESENSE_CH12_PIN(i) ((i) == 0 ? 12 : -1) /**< Pin number for AF_LESENSE_CH12 location number i */
#define AF_LESENSE_CH13_PIN(i) ((i) == 0 ? 13 : -1) /**< Pin number for AF_LESENSE_CH13 location number i */
#define AF_LESENSE_CH14_PIN(i) ((i) == 0 ? 14 : -1) /**< Pin number for AF_LESENSE_CH14 location number i */
#define AF_LESENSE_CH15_PIN(i) ((i) == 0 ? 15 : -1) /**< Pin number for AF_LESENSE_CH15 location number i */
#define AF_LESENSE_ALTEX0_PIN(i) ((i) == 0 ? 6 : -1) /**< Pin number for AF_LESENSE_ALTEX0 location number i */
#define AF_LESENSE_ALTEX1_PIN(i) ((i) == 0 ? 7 : -1) /**< Pin number for AF_LESENSE_ALTEX1 location number i */
#define AF_LESENSE_ALTEX2_PIN(i) ((i) == 0 ? 3 : -1) /**< Pin number for AF_LESENSE_ALTEX2 location number i */
#define AF_LESENSE_ALTEX3_PIN(i) ((i) == 0 ? 4 : -1) /**< Pin number for AF_LESENSE_ALTEX3 location number i */
#define AF_LESENSE_ALTEX4_PIN(i) ((i) == 0 ? 5 : -1) /**< Pin number for AF_LESENSE_ALTEX4 location number i */
#define AF_LESENSE_ALTEX5_PIN(i) ((i) == 0 ? 11 : -1) /**< Pin number for AF_LESENSE_ALTEX5 location number i */
#define AF_LESENSE_ALTEX6_PIN(i) ((i) == 0 ? 12 : -1) /**< Pin number for AF_LESENSE_ALTEX6 location number i */
#define AF_LESENSE_ALTEX7_PIN(i) ((i) == 0 ? 13 : -1) /**< Pin number for AF_LESENSE_ALTEX7 location number i */
#define AF_ACMP0_OUT_PIN(i) ((i) == 0 ? 13 : (i) == 1 ? -1 : (i) == 2 ? 6 : -1) /**< Pin number for AF_ACMP0_OUT location number i */
#define AF_ACMP1_OUT_PIN(i) ((i) == 0 ? 2 : (i) == 1 ? -1 : (i) == 2 ? 7 : -1) /**< Pin number for AF_ACMP1_OUT location number i */
#define AF_USART0_TX_PIN(i) ((i) == 0 ? 10 : (i) == 1 ? 7 : (i) == 2 ? 11 : (i) == 3 ? 13 : (i) == 4 ? 7 : (i) == 5 ? 0 : -1) /**< Pin number for AF_USART0_TX location number i */
#define AF_USART0_RX_PIN(i) ((i) == 0 ? 11 : (i) == 1 ? 6 : (i) == 2 ? 10 : (i) == 3 ? 12 : (i) == 4 ? 8 : (i) == 5 ? 1 : -1) /**< Pin number for AF_USART0_RX location number i */
#define AF_USART0_CLK_PIN(i) ((i) == 0 ? 12 : (i) == 1 ? 5 : (i) == 2 ? 9 : (i) == 3 ? 15 : (i) == 4 ? 13 : (i) == 5 ? 13 : -1) /**< Pin number for AF_USART0_CLK location number i */
#define AF_USART0_CS_PIN(i) ((i) == 0 ? 13 : (i) == 1 ? 4 : (i) == 2 ? 8 : (i) == 3 ? 14 : (i) == 4 ? 14 : (i) == 5 ? 14 : -1) /**< Pin number for AF_USART0_CS location number i */
#define AF_USART1_TX_PIN(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? 7 : -1) /**< Pin number for AF_USART1_TX location number i */
#define AF_USART1_RX_PIN(i) ((i) == 0 ? 1 : (i) == 1 ? 1 : (i) == 2 ? 6 : -1) /**< Pin number for AF_USART1_RX location number i */
#define AF_USART1_CLK_PIN(i) ((i) == 0 ? 7 : (i) == 1 ? 2 : (i) == 2 ? 0 : -1) /**< Pin number for AF_USART1_CLK location number i */
#define AF_USART1_CS_PIN(i) ((i) == 0 ? 8 : (i) == 1 ? 3 : (i) == 2 ? 1 : -1) /**< Pin number for AF_USART1_CS location number i */
#define AF_TIMER0_CC0_PIN(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : (i) == 2 ? -1 : (i) == 3 ? 1 : (i) == 4 ? 0 : (i) == 5 ? 0 : -1) /**< Pin number for AF_TIMER0_CC0 location number i */
#define AF_TIMER0_CC1_PIN(i) ((i) == 0 ? 1 : (i) == 1 ? 1 : (i) == 2 ? -1 : (i) == 3 ? 2 : (i) == 4 ? 0 : (i) == 5 ? 1 : -1) /**< Pin number for AF_TIMER0_CC1 location number i */
#define AF_TIMER0_CC2_PIN(i) ((i) == 0 ? 2 : (i) == 1 ? 2 : (i) == 2 ? -1 : (i) == 3 ? 3 : (i) == 4 ? 1 : (i) == 5 ? 2 : -1) /**< Pin number for AF_TIMER0_CC2 location number i */
#define AF_TIMER0_CDTI0_PIN(i) (-1) /**< Pin number for AF_TIMER0_CDTI0 location number i */
#define AF_TIMER0_CDTI1_PIN(i) (-1) /**< Pin number for AF_TIMER0_CDTI1 location number i */
#define AF_TIMER0_CDTI2_PIN(i) (-1) /**< Pin number for AF_TIMER0_CDTI2 location number i */
#define AF_TIMER1_CC0_PIN(i) ((i) == 0 ? 13 : (i) == 1 ? 10 : (i) == 2 ? -1 : (i) == 3 ? 7 : (i) == 4 ? 6 : -1) /**< Pin number for AF_TIMER1_CC0 location number i */
#define AF_TIMER1_CC1_PIN(i) ((i) == 0 ? 14 : (i) == 1 ? 11 : (i) == 2 ? -1 : (i) == 3 ? 8 : (i) == 4 ? 7 : -1) /**< Pin number for AF_TIMER1_CC1 location number i */
#define AF_TIMER1_CC2_PIN(i) ((i) == 0 ? 15 : (i) == 1 ? 12 : (i) == 2 ? -1 : (i) == 3 ? 11 : (i) == 4 ? 13 : -1) /**< Pin number for AF_TIMER1_CC2 location number i */
#define AF_TIMER1_CDTI0_PIN(i) (-1) /**< Pin number for AF_TIMER1_CDTI0 location number i */
#define AF_TIMER1_CDTI1_PIN(i) (-1) /**< Pin number for AF_TIMER1_CDTI1 location number i */
#define AF_TIMER1_CDTI2_PIN(i) (-1) /**< Pin number for AF_TIMER1_CDTI2 location number i */
#define AF_PRS_CH0_PIN(i) ((i) == 0 ? 0 : (i) == 1 ? 3 : -1) /**< Pin number for AF_PRS_CH0 location number i */
#define AF_PRS_CH1_PIN(i) ((i) == 0 ? 1 : (i) == 1 ? 4 : -1) /**< Pin number for AF_PRS_CH1 location number i */
#define AF_PRS_CH2_PIN(i) ((i) == 0 ? 0 : (i) == 1 ? 5 : -1) /**< Pin number for AF_PRS_CH2 location number i */
#define AF_PRS_CH3_PIN(i) ((i) == 0 ? 1 : (i) == 1 ? 8 : -1) /**< Pin number for AF_PRS_CH3 location number i */
#define AF_LEUART0_TX_PIN(i) ((i) == 0 ? 4 : (i) == 1 ? 13 : (i) == 2 ? 14 : (i) == 3 ? 0 : (i) == 4 ? 2 : -1) /**< Pin number for AF_LEUART0_TX location number i */
#define AF_LEUART0_RX_PIN(i) ((i) == 0 ? 5 : (i) == 1 ? 14 : (i) == 2 ? 15 : (i) == 3 ? 1 : (i) == 4 ? 0 : -1) /**< Pin number for AF_LEUART0_RX location number i */
#define AF_LETIMER0_OUT0_PIN(i) ((i) == 0 ? 6 : (i) == 1 ? 11 : (i) == 2 ? 0 : (i) == 3 ? 4 : -1) /**< Pin number for AF_LETIMER0_OUT0 location number i */
#define AF_LETIMER0_OUT1_PIN(i) ((i) == 0 ? 7 : (i) == 1 ? 12 : (i) == 2 ? 1 : (i) == 3 ? 5 : -1) /**< Pin number for AF_LETIMER0_OUT1 location number i */
#define AF_PCNT0_S0IN_PIN(i) ((i) == 0 ? 13 : (i) == 1 ? -1 : (i) == 2 ? 0 : (i) == 3 ? 6 : -1) /**< Pin number for AF_PCNT0_S0IN location number i */
#define AF_PCNT0_S1IN_PIN(i) ((i) == 0 ? 14 : (i) == 1 ? -1 : (i) == 2 ? 1 : (i) == 3 ? 7 : -1) /**< Pin number for AF_PCNT0_S1IN location number i */
#define AF_I2C0_SDA_PIN(i) ((i) == 0 ? 0 : (i) == 1 ? 6 : (i) == 2 ? 6 : (i) == 3 ? -1 : (i) == 4 ? 0 : (i) == 5 ? 0 : (i) == 6 ? 12 : -1) /**< Pin number for AF_I2C0_SDA location number i */
#define AF_I2C0_SCL_PIN(i) ((i) == 0 ? 1 : (i) == 1 ? 7 : (i) == 2 ? 7 : (i) == 3 ? -1 : (i) == 4 ? 1 : (i) == 5 ? 1 : (i) == 6 ? 13 : -1) /**< Pin number for AF_I2C0_SCL location number i */
#define AF_DBG_SWO_PIN(i) ((i) == 0 ? 2 : (i) == 1 ? 15 : -1) /**< Pin number for AF_DBG_SWO location number i */
#define AF_DBG_SWDIO_PIN(i) ((i) == 0 ? 1 : (i) == 1 ? 1 : -1) /**< Pin number for AF_DBG_SWDIO location number i */
#define AF_DBG_SWCLK_PIN(i) ((i) == 0 ? 0 : (i) == 1 ? 0 : -1) /**< Pin number for AF_DBG_SWCLK location number i */

/** @} End of group EFM32TG_AF_Pins */
/** @} End of group Parts */
Loading