STM32 Blue Pill Drivers
Drivers that could be used to interface and interact with STM32F103C8T6 Microcontroller
Loading...
Searching...
No Matches
RCC exported functions

RCC exported functions. More...

+ Collaboration diagram for RCC exported functions:

Functions

void RCC_vInit (void)
 This function initializes the RCC peripheral. More...
 
void RCC_vEnablePeripheralABP2 (t_RCC_APB2Peripherals enuPeripheral)
 This function enables the clock of a peripheral connected to the APB2 bus. More...
 
void RCC_vDisablePeripheralABP2 (t_RCC_APB2Peripherals enuPeripheral)
 This function disables the clock of a peripheral connected to the APB2 bus. More...
 
void RCC_vEnablePeripheralABP1 (t_RCC_APB1Peripherals enuPeripheral)
 This function enables the clock of a peripheral connected to the APB1 bus. More...
 
void RCC_vDisablePeripheralABP1 (t_RCC_APB1Peripherals enuPeripheral)
 This function disables the clock of a peripheral connected to the APB1 bus. More...
 
void RCC_vEnablePeripheralAHB (t_RCC_AHBPeripherals enuPeripheral)
 This function enables the clock of a peripheral connected to the AHB bus. More...
 
void RCC_vDisablePeripheralAHB (t_RCC_AHBPeripherals enuPeripheral)
 This function disables the clock of a peripheral connected to the AHB bus. More...
 

Detailed Description

RCC exported functions.

Function Documentation

◆ RCC_vInit()

void RCC_vInit ( void  )

#include <MCAL/RCC/RCC_interface.h>

This function initializes the RCC peripheral.

This function initializes the RCC peripheral

325{
327 {
329 }
331 {
333 }
335 {
336 RCC_vInitPLL();
337 }
338 else
339 {
340 /* Do nothing */
341 }
342
349 RCC_vInitMCO();
350}
static void RCC_vInitMCO(void)
This function initializes the MCO.
Definition: RCC_program.c:106
static void RCC_vSetADCPreScaler(void)
This function sets the ADC prescaler.
Definition: RCC_program.c:278
static void RCC_vInitHSIClock(void)
This function initializes the HSI clock.
Definition: RCC_program.c:48
static void RCC_vInitSystemClock(void)
This function initializes the system clock.
Definition: RCC_program.c:93
static void RCC_vInitPLL(void)
This function initializes the PLL clock.
Definition: RCC_program.c:61
static void RCC_vSetUSBPrescaler(void)
This function sets the USB prescaler.
Definition: RCC_program.c:288
static void RCC_vSetAPB2Prescaler(void)
This function sets the APB2 prescaler.
Definition: RCC_program.c:318
static void RCC_vSetAHBPrescaler(void)
This function sets the AHB prescaler.
Definition: RCC_program.c:298
static void RCC_vInitHSEClock(void)
This function initializes the HSE clock.
Definition: RCC_program.c:22
static void RCC_vSetAPB1Prescaler(void)
This function sets the APB1 prescaler.
Definition: RCC_program.c:308
#define RCC_SYSTEM_CLOCK_SOURCE
This macro defines the system clock source.
Definition: RCC_config.h:64
@ RCC_SystemClock_HSI
HSI clock selected as system clock.
Definition: RCC_interface.h:207
@ RCC_SystemClock_HSE
HSE clock selected as system clock.
Definition: RCC_interface.h:211
@ RCC_SystemClock_PLL
PLL clock selected as system clock.
Definition: RCC_interface.h:215

References RCC_SYSTEM_CLOCK_SOURCE, RCC_SystemClock_HSE, RCC_SystemClock_HSI, RCC_SystemClock_PLL, RCC_vInitHSEClock(), RCC_vInitHSIClock(), RCC_vInitMCO(), RCC_vInitPLL(), RCC_vInitSystemClock(), RCC_vSetADCPreScaler(), RCC_vSetAHBPrescaler(), RCC_vSetAPB1Prescaler(), RCC_vSetAPB2Prescaler(), and RCC_vSetUSBPrescaler().

Referenced by vAPPS_main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RCC_vEnablePeripheralABP2()

void RCC_vEnablePeripheralABP2 ( t_RCC_APB2Peripherals  enuPeripheral)

#include <MCAL/RCC/RCC_interface.h>

This function enables the clock of a peripheral connected to the APB2 bus.

This function enables the clock of a peripheral connected to the APB2 bus

Parameters
[in]enuPeripheralPeripheral to be enabled
353{
355}
static void RCC_vSetAPB2PeripheralClockStatus(t_RCC_APB2Peripherals enuPeripheral, t_bool bStatus)
This function initializes a certain peripheral clock on APB2 bus.
Definition: RCC_program.c:119
#define TRUE
Type definition for TRUE.
Definition: LSTD_VALUES.h:30

References RCC_vSetAPB2PeripheralClockStatus(), and TRUE.

Referenced by vTestApp_TestingGPIO_main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RCC_vDisablePeripheralABP2()

void RCC_vDisablePeripheralABP2 ( t_RCC_APB2Peripherals  enuPeripheral)

#include <MCAL/RCC/RCC_interface.h>

This function disables the clock of a peripheral connected to the APB2 bus.

This function disables the clock of a peripheral connected to the APB2 bus

Parameters
[in]enuPeripheralPeripheral to be disabled
358{
360}
#define FALSE
Type definition for FALSE.
Definition: LSTD_VALUES.h:36

References FALSE, and RCC_vSetAPB2PeripheralClockStatus().

+ Here is the call graph for this function:

◆ RCC_vEnablePeripheralABP1()

void RCC_vEnablePeripheralABP1 ( t_RCC_APB1Peripherals  enuPeripheral)

#include <MCAL/RCC/RCC_interface.h>

This function enables the clock of a peripheral connected to the APB1 bus.

This function enables the clock of a peripheral connected to the APB1 bus

Parameters
[in]enuPeripheralPeripheral to be enabled
363{
365}
static void RCC_vSetAPB1PeripheralClockStatus(t_RCC_APB1Peripherals enuPeripheral, t_bool bStatus)
This function initializes a certain peripheral clock on APB1 bus.
Definition: RCC_program.c:178

References RCC_vSetAPB1PeripheralClockStatus(), and TRUE.

+ Here is the call graph for this function:

◆ RCC_vDisablePeripheralABP1()

void RCC_vDisablePeripheralABP1 ( t_RCC_APB1Peripherals  enuPeripheral)

#include <MCAL/RCC/RCC_interface.h>

This function disables the clock of a peripheral connected to the APB1 bus.

This function disables the clock of a peripheral connected to the APB1 bus

Parameters
[in]enuPeripheralPeripheral to be disabled
368{
370}

References FALSE, and RCC_vSetAPB1PeripheralClockStatus().

+ Here is the call graph for this function:

◆ RCC_vEnablePeripheralAHB()

void RCC_vEnablePeripheralAHB ( t_RCC_AHBPeripherals  enuPeripheral)

#include <MCAL/RCC/RCC_interface.h>

This function enables the clock of a peripheral connected to the AHB bus.

This function enables the clock of a peripheral connected to the AHB bus

Parameters
[in]enuPeripheralPeripheral to be enabled
373{
375}
static void RCC_vSetAHBPeripheralClockStatus(t_RCC_AHBPeripherals enuPeripheral, t_bool bStatus)
This function initializes a certain peripheral clock on AHB bus.
Definition: RCC_program.c:255

References RCC_vSetAHBPeripheralClockStatus(), and TRUE.

+ Here is the call graph for this function:

◆ RCC_vDisablePeripheralAHB()

void RCC_vDisablePeripheralAHB ( t_RCC_AHBPeripherals  enuPeripheral)

#include <MCAL/RCC/RCC_interface.h>

This function disables the clock of a peripheral connected to the AHB bus.

This function disables the clock of a peripheral connected to the AHB bus

Parameters
[in]enuPeripheralPeripheral to be disabled
378{
380}

References FALSE, and RCC_vSetAHBPeripheralClockStatus().

+ Here is the call graph for this function: