* arch/arm/src/str71x/str71x_rccu.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/
#ifndef __ARCH_ARM_SRC_STR71X_STR71X_RCCU_H
#define __ARCH_ARM_SRC_STR71X_STR71X_RCCU_H
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include "str71x_map.h"
* Pre-processor Definitions
****************************************************************************/
#define STR71X_RCCU_CCR_OFFSET (0x0000)
#define STR71X_RCCU_CFR_OFFSET (0x0008)
#define STR71X_RCCU_PLL1CR_OFFSET (0x0018)
#define STR71X_RCCU_PER_OFFSET (0x001c)
#define STR71X_RCCU_SMR_OFFSET (0x0020)
#define STR71X_RCCU_CCR (STR71X_RCCU_BASE + STR71X_RCCU_CCR_OFFSET)
#define STR71X_RCCU_CFR (STR71X_RCCU_BASE + STR71X_RCCU_CFR_OFFSET)
#define STR71X_RCCU_PLL1CR (STR71X_RCCU_BASE + STR71X_RCCU_PLL1CR_OFFSET)
#define STR71X_RCCU_PER (STR71X_RCCU_BASE + STR71X_RCCU_PER_OFFSET)
#define STR71X_RCCU_SMR (STR71X_RCCU_BASE + STR71X_RCCU_SMR_OFFSET)
#define STR71X_RCCUCCR_LPOWFI (0x00000001)
#define STR71X_RCCUCCR_WFICLKSEL (0x00000002)
#define STR71X_RCCUCCR_CKAFSEL (0x00000004)
#define STR71X_RCCUCCR_SRESEN (0x00000008)
#define STR71X_RCCUCCR_ENCLOCK (0x00000080)
#define STR71X_RCCUCCR_ENCKAF (0x00000100)
#define STR71X_RCCUCCR_ENCK216 (0x00000200)
#define STR71X_RCCUCCR_ENSTOP (0x00000400)
#define STR71X_RCCUCCR_ENHALT (0x00000800)
#define STR71X_RCCUCFR_CSUCKSEL (0x00000001)
#define STR71X_RCCUCFR_LOCK (0x00000002)
#define STR71X_RCCUCFR_CKAFST (0x00000004)
#define STR71X_RCCUCFR_CK216 (0x00000008)
#define STR71X_RCCUCFR_CKSTOPEN (0x00000010)
#define STR71X_RCCUCFR_SOFTRES (0x00000020)
#define STR71X_RCCUCFR_WDGRES (0x00000040)
#define STR71X_RCCUCFR_RTCALARM (0x00000080)
#define STR71X_RCCUCFR_LVDRES (0x00000200)
#define STR71X_RCCUCFR_WKPRES (0x00000400)
#define STR71X_RCCUCFR_LOCKI (0x00000800)
#define STR71X_RCCUCFR_CKAFI (0x00001000)
#define STR71X_RCCUCFR_CK216I (0x00002000)
#define STR71X_RCCUCFR_STOPI (0x00004000)
#define STR71X_RCCUCFR_DIV2 (0x00008000)
#define STR71X_RCCUPLL1CR_DXMASK (0x00000003)
#define STR71X_RCCUPLL1CR_DIV1 (0x00000000)
#define STR71X_RCCUPLL1CR_DIV2 (0x00000001)
#define STR71X_RCCUPLL1CR_DIV3 (0x00000002)
#define STR71X_RCCUPLL1CR_DIV4 (0x00000003)
#define STR71X_RCCUPLL1CR_DIV5 (0x00000004)
#define STR71X_RCCUPLL1CR_DIV6 (0x00000005)
#define STR71X_RCCUPLL1CR_DIV7 (0x00000006)
#define STR71X_RCCUPLL1CR_CLK2 (0x00000007)
#define STR71X_RCCUPLL1CR_FREERM (0x00000007)
#define STR71X_RCCUPLL1CR_MXMASK (0x00000030)
#define STR71X_RCCUPLL1CR_MUL20 (0x00000000)
#define STR71X_RCCUPLL1CR_MUL12 (0x00000010)
#define STR71X_RCCUPLL1CR_MUL24 (0x00000020)
#define STR71X_RCCUPLL1CR_MUL16 (0x00000030)
#define STR71X_RCCUPLL1CR_FREFRANGE (0x00000040)
#define STR71X_RCCUPLL1CR_FREEN (0x00000080)
#define STR71X_RCCUPER_EMI (0x00000004)
#define STR71X_RCCUPER_USBKERNEL (0x00000010)
#define STR71X_RCCUSMR_WFI (0x00000001)
#define STR71X_RCCUSMR_HALT (0x00000000)
* Public Types
****************************************************************************/
* Public Data
****************************************************************************/
* Public Functions Prototypes
****************************************************************************/
#endif