Skip to content

Commit

Permalink
simplicity_sdk: add EFR32FG23 device
Browse files Browse the repository at this point in the history
Origin: Simplicity SDK
License: Zlib
URL: https://github.com/SiliconLabs/simplicity_sdk
Commit: 19a4476b12e9e827cbdd89c58141494fea188a67
Version: 2024.6.2
Purpose: HAL for EFR32ZG23 Silicon Labs device

Signed-off-by: Yishai Jaffe <[email protected]>
  • Loading branch information
yishai1999 authored and jhedberg committed Dec 18, 2024
1 parent b258374 commit 6371fa8
Show file tree
Hide file tree
Showing 60 changed files with 44,370 additions and 0 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/**************************************************************************//**
* @file
* @brief EFR32ZG23 BURAM register and bit field definitions
******************************************************************************
* # License
* <b>Copyright 2024 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.
*
*****************************************************************************/
#ifndef EFR32ZG23_BURAM_H
#define EFR32ZG23_BURAM_H
#define BURAM_HAS_SET_CLEAR

/**************************************************************************//**
* @addtogroup Parts
* @{
******************************************************************************/
/**************************************************************************//**
* @defgroup EFR32ZG23_BURAM BURAM
* @{
* @brief EFR32ZG23 BURAM Register Declaration.
*****************************************************************************/

/** BURAM RET Register Group Declaration. */
typedef struct buram_ret_typedef{
__IOM uint32_t REG; /**< Retention Register */
} BURAM_RET_TypeDef;

/** BURAM Register Declaration. */
typedef struct buram_typedef{
BURAM_RET_TypeDef RET[32U]; /**< RetentionReg */
uint32_t RESERVED0[992U]; /**< Reserved for future use */
BURAM_RET_TypeDef RET_SET[32U]; /**< RetentionReg */
uint32_t RESERVED1[992U]; /**< Reserved for future use */
BURAM_RET_TypeDef RET_CLR[32U]; /**< RetentionReg */
uint32_t RESERVED2[992U]; /**< Reserved for future use */
BURAM_RET_TypeDef RET_TGL[32U]; /**< RetentionReg */
} BURAM_TypeDef;
/** @} End of group EFR32ZG23_BURAM */

/**************************************************************************//**
* @addtogroup EFR32ZG23_BURAM
* @{
* @defgroup EFR32ZG23_BURAM_BitFields BURAM Bit Fields
* @{
*****************************************************************************/

/* Bit fields for BURAM RET_REG */
#define _BURAM_RET_REG_RESETVALUE 0x00000000UL /**< Default value for BURAM_RET_REG */
#define _BURAM_RET_REG_MASK 0xFFFFFFFFUL /**< Mask for BURAM_RET_REG */
#define _BURAM_RET_REG_RETREG_SHIFT 0 /**< Shift value for BURAM_RETREG */
#define _BURAM_RET_REG_RETREG_MASK 0xFFFFFFFFUL /**< Bit mask for BURAM_RETREG */
#define _BURAM_RET_REG_RETREG_DEFAULT 0x00000000UL /**< Mode DEFAULT for BURAM_RET_REG */
#define BURAM_RET_REG_RETREG_DEFAULT (_BURAM_RET_REG_RETREG_DEFAULT << 0) /**< Shifted mode DEFAULT for BURAM_RET_REG */

/** @} End of group EFR32ZG23_BURAM_BitFields */
/** @} End of group EFR32ZG23_BURAM */
/** @} End of group Parts */

#endif // EFR32ZG23_BURAM_H

Large diffs are not rendered by default.

1,128 changes: 1,128 additions & 0 deletions simplicity_sdk/platform/Device/SiliconLabs/EFR32ZG23/Include/efr32zg23_cmu.h

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/**************************************************************************//**
* @file
* @brief EFR32ZG23 DMA descriptor bit field definitions
******************************************************************************
* # License
* <b>Copyright 2024 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.
*
*****************************************************************************/
#ifndef EFR32ZG23_DMA_DESCRIPTOR_H
#define EFR32ZG23_DMA_DESCRIPTOR_H

#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 DMA_DESCRIPTOR DMA Descriptor
* @{
*****************************************************************************/
/** DMA_DESCRIPTOR Register Declaration */
typedef struct {
/* Note! Use of double __IOM (volatile) qualifier to ensure that both */
/* pointer and referenced memory are declared volatile. */
__IOM uint32_t CTRL; /**< DMA control register */
__IOM void * __IOM SRC; /**< DMA source address */
__IOM void * __IOM DST; /**< DMA destination address */
__IOM void * __IOM LINK; /**< DMA link address */
} DMA_DESCRIPTOR_TypeDef; /**< @} */

/** @} End of group Parts */

#endif // EFR32ZG23_DMA_DESCRIPTOR_H
Loading

0 comments on commit 6371fa8

Please sign in to comment.