BLE_API v2.1.3

MCU Clock Source Definition
Porting » MCU Porting Related » MCU Definition

Defined supported MCU clock source for user. More...

#define | MCU_CLK_SOURCE_HXT 0
#define | MCU_CLK_SOURCE_HIRC 1
#define | MCU_CLK_SOURCE_PLL 2
#define | PCLK_DIV 2u
#define | InterruptDisable __disable_irq
| Different MCU may supports different interrupt definition. More...
#define | InterruptEnable __enable_irq

## Detailed Description

Defined supported MCU clock source for user.

## Macro Definition Documentation

## ◆ InterruptDisable

#define InterruptDisable __disable_irq

Different MCU may supports different interrupt definition.

Note
  If it is not ARM based MCU please undefined it and re-defined InterruptDisable and InterruptEnable. Disable interrupt function definition for ARM based.

## ◆ InterruptEnable

#define InterruptEnable __enable_irq

Enable interrupt function definition for ARM based.

## ◆ MCU_CLK_SOURCE_HIRC

#define MCU_CLK_SOURCE_HIRC 1

HIRC

## ◆ MCU_CLK_SOURCE_HXT

#define MCU_CLK_SOURCE_HXT 0

HXT

## ◆ MCU_CLK_SOURCE_PLL

#define MCU_CLK_SOURCE_PLL 2

PLL

## ◆ PCLK_DIV

#define PCLK_DIV 2u

PCLK=CPU_CLOCK_RATE/PCLK_DIV. it is better to choose PCLK=8*N (24MHz or 32MHz) for SPI_clock=12M