Arrow / Mbed OS DAPLink Reset
Embed: (wiki syntax)

« Back to documentation index

lpc43xx_cgu.h File Reference

lpc43xx_cgu.h File Reference

DAPLink Interface Firmware Copyright (c) 2009-2016, ARM Limited, All Rights Reserved SPDX-License-Identifier: Apache-2.0. More...

Go to the source code of this file.

Data Structures

struct  CGU_PERIPHERAL_S
 CGU structure definitions. More...

Enumerations

enum  CGU_ENTITY_T {
  CGU_CLKSRC_32KHZ_OSC = 0, CGU_CLKSRC_IRC, CGU_CLKSRC_ENET_RX_CLK, CGU_CLKSRC_ENET_TX_CLK,
  CGU_CLKSRC_GP_CLKIN, CGU_CLKSRC_TCK, CGU_CLKSRC_XTAL_OSC, CGU_CLKSRC_PLL0 ,
  CGU_CLKSRC_PLL1, CGU_CLKSRC_IDIVA = CGU_CLKSRC_PLL1 + 3, CGU_CLKSRC_IDIVB, CGU_CLKSRC_IDIVC,
  CGU_CLKSRC_IDIVD, CGU_CLKSRC_IDIVE, CGU_BASE_SAFE, CGU_BASE_USB0 ,
  CGU_BASE_USB1, CGU_BASE_M4, CGU_BASE_SPIFI, CGU_BASE_PHY_RX = CGU_BASE_SPIFI + 2,
  CGU_BASE_PHY_TX, CGU_BASE_APB1, CGU_BASE_APB3, CGU_BASE_LCD ,
  CGU_BASE_SDIO, CGU_BASE_SSP0, CGU_BASE_SSP1, CGU_BASE_UART0,
  CGU_BASE_UART1, CGU_BASE_UART2, CGU_BASE_UART3, CGU_BASE_CLKOUT ,
  CGU_ENTITY_NUM
}
 

CGU enumeration.

More...
enum  CGU_PERIPHERAL_T {
  CGU_PERIPHERAL_ADC0 = 0, CGU_PERIPHERAL_ADC1, CGU_PERIPHERAL_AES, CGU_PERIPHERAL_APB1_BUS,
  CGU_PERIPHERAL_APB3_BUS, CGU_PERIPHERAL_CAN, CGU_PERIPHERAL_CREG, CGU_PERIPHERAL_DAC,
  CGU_PERIPHERAL_DMA, CGU_PERIPHERAL_EMC, CGU_PERIPHERAL_ETHERNET , CGU_PERIPHERAL_GPIO,
  CGU_PERIPHERAL_I2C0, CGU_PERIPHERAL_I2C1, CGU_PERIPHERAL_I2S, CGU_PERIPHERAL_LCD,
  CGU_PERIPHERAL_M4CORE, CGU_PERIPHERAL_M4_BUS, CGU_PERIPHERAL_MOTOCON, CGU_PERIPHERAL_QEI,
  CGU_PERIPHERAL_RITIMER, CGU_PERIPHERAL_SCT, CGU_PERIPHERAL_SCU, CGU_PERIPHERAL_SDIO,
  CGU_PERIPHERAL_SPIFI, CGU_PERIPHERAL_SSP0, CGU_PERIPHERAL_SSP1, CGU_PERIPHERAL_TIMER0,
  CGU_PERIPHERAL_TIMER1, CGU_PERIPHERAL_TIMER2, CGU_PERIPHERAL_TIMER3, CGU_PERIPHERAL_UART0,
  CGU_PERIPHERAL_UART1, CGU_PERIPHERAL_UART2, CGU_PERIPHERAL_UART3, CGU_PERIPHERAL_USB0,
  CGU_PERIPHERAL_USB1, CGU_PERIPHERAL_WWDT
}
enum  CGU_ERROR
 

CGU error status enumerate definition.

More...

Functions

uint32_t CGU_Init (uint32_t wantedFreq)
 Clock generate initialize/de-initialize.
uint32_t CGU_ConfigPWR (CGU_PERIPHERAL_T PPType, FunctionalState en)
 Clock Generator and Clock Control.
uint32_t CGU_GetPCLKFrequency (CGU_PERIPHERAL_T Clock)
 Get peripheral clock frequency.
uint32_t CGU_SetXTALOSC (uint32_t ClockFrequency)
 Clock Source and Base Clock operation.
uint32_t CGU_SetDIV (CGU_ENTITY_T SelectDivider, uint32_t divisor)
 Set clock divider.
uint32_t CGU_SetPLL0 (void)
 Get current USB PLL clock from XTAL.
uint32_t CGU_SetPLL0audio (void)
 Get current Audio PLL clock from XTAL.
uint32_t CGU_SetPLL1 (uint32_t mult)
 Setting PLL1.
uint32_t CGU_EnableEntity (CGU_ENTITY_T ClockEntity, uint32_t en)
 Enable clock entity.
uint32_t CGU_EntityConnect (CGU_ENTITY_T ClockSource, CGU_ENTITY_T ClockEntity)
 Connect entity clock source.
uint32_t CGU_GetBaseStatus (CGU_ENTITY_T Base)
 Get current base status.
void CGU_UpdateClock (void)
 Update clock.
uint32_t CGU_RealFrequencyCompare (CGU_ENTITY_T Clock, CGU_ENTITY_T CompareToClock, uint32_t *m, uint32_t *d)
 Compare one source clock to another source clock.

Detailed Description

DAPLink Interface Firmware Copyright (c) 2009-2016, ARM Limited, All Rights Reserved SPDX-License-Identifier: Apache-2.0.

Licensed 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.

Definition in file lpc43xx_cgu.h.