MG32L003 Standard Peripherals Firmware Library

结构体 | 宏定义 | 函数
mg32l003_awk.h 文件参考

This file contains all the functions prototypes for the AWK firmware library. 更多...

`#include "mg32l003.h"`

浏览源代码.

## 结构体
struct | AWK_InitTypeDef
| AWK Init structure definition 更多...

## 宏定义
#define | AWK_CLK_SEL_STOP (0x00U << 5)
#define | AWK_CLK_SEL_LSI (0x01U << 5)
#define | AWK_CLK_SEL_HSE (0x02U << 5)
#define | AWK_CLK_SEL_LSE (0x03U << 5)
#define | IS_AWK_CLK_SEL(SEL)
#define | IS_AWK_HSE_PRSC(PRSC) (((PRSC) < 0xFFF))
#define | IS_AWK_RLOAD_VAL(VAL) (((VAL) < 0xFF))
#define | AWK_CLOCK_DIV_2 (0x00000000U)
#define | AWK_CLOCK_DIV_4 (AWK_CR_DIVSEL_0)
#define | AWK_CLOCK_DIV_8 (AWK_CR_DIVSEL_1)
#define | AWK_CLOCK_DIV_16 (AWK_CR_DIVSEL_1 | AWK_CR_DIVSEL_0)
#define | AWK_CLOCK_DIV_32 (AWK_CR_DIVSEL_2)
#define | AWK_CLOCK_DIV_64 (AWK_CR_DIVSEL_2 | AWK_CR_DIVSEL_0)
#define | AWK_CLOCK_DIV_128 (AWK_CR_DIVSEL_2 | AWK_CR_DIVSEL_1)
#define | AWK_CLOCK_DIV_256 (AWK_CR_DIVSEL_2 | AWK_CR_DIVSEL_1 | AWK_CR_DIVSEL_0)
#define | AWK_CLOCK_DIV_512 (AWK_CR_DIVSEL_3)
#define | AWK_CLOCK_DIV_1024 (AWK_CR_DIVSEL_3 | AWK_CR_DIVSEL_0)
#define | AWK_CLOCK_DIV_2048 (AWK_CR_DIVSEL_3 | AWK_CR_DIVSEL_1)
#define | AWK_CLOCK_DIV_4096 (AWK_CR_DIVSEL_3 | AWK_CR_DIVSEL_1 | AWK_CR_DIVSEL_0)
#define | AWK_CLOCK_DIV_8192 (AWK_CR_DIVSEL_3 | AWK_CR_DIVSEL_2)
#define | AWK_CLOCK_DIV_16384 (AWK_CR_DIVSEL_3 | AWK_CR_DIVSEL_2 | AWK_CR_DIVSEL_0)
#define | AWK_CLOCK_DIV_32768 (AWK_CR_DIVSEL_3 | AWK_CR_DIVSEL_2 | AWK_CR_DIVSEL_1)
#define | AWK_CLOCK_DIV_65536 (AWK_CR_DIVSEL_3 | AWK_CR_DIVSEL_2 | AWK_CR_DIVSEL_1 | AWK_CR_DIVSEL_0)
#define | IS_AWK_DIV_SEL(DIV) (((DIV) < 0xF))

## 函数
void | AWK_DeInit (void)
| Deinitializes the AWK peripheral registers to their default reset values. 更多...
void | AWK_Init (AWK_InitTypeDef *AWK_InitStruct)
| Initializes the AWK peripheral according to the specified parameters in the AWK_InitStruct. 更多...
void | AWK_StructInit (AWK_InitTypeDef *AWK_InitStruct)
void | AWK_Cmd (FunctionalState NewState)
| Enables or disables the AWK peripheral. 更多...
FlagStatus | AWK_GetFlagStatus (void)
| Checks whether the specified AWK flag is set or not. 更多...
void | AWK_ClearFlag (void)
| Clears the AWK pending flag. 更多...

## 详细描述

This file contains all the functions prototypes for the AWK firmware library.

作者
  megawin Application Team

版本
  V0.0.5

日期
  13-August-2024

## 宏定义说明

## ◆ AWK_CLK_SEL_HSE

#define AWK_CLK_SEL_HSE (0x02U << 5)

Select AWK Clock hse

## ◆ AWK_CLK_SEL_LSE

#define AWK_CLK_SEL_LSE (0x03U << 5)

Select AWK Clock lse

## ◆ AWK_CLK_SEL_LSI

#define AWK_CLK_SEL_LSI (0x01U << 5)

Select AWK Clock lsi

## ◆ AWK_CLK_SEL_STOP

#define AWK_CLK_SEL_STOP (0x00U << 5)

Select AWK Clock stop

## ◆ IS_AWK_CLK_SEL

#define IS_AWK_CLK_SEL | ( |  | SEL | ) |

值:
(((SEL) == AWK_CLK_SEL_STOP) || \
((SEL) == AWK_CLK_SEL_LSI) || \
((SEL) == AWK_CLK_SEL_HSE) || \
((SEL) == AWK_CLK_SEL_LSE))
AWK_CLK_SEL_HSE
#define AWK_CLK_SEL_HSE
Definition: mg32l003_awk.h:53
AWK_CLK_SEL_LSI
#define AWK_CLK_SEL_LSI
Definition: mg32l003_awk.h:52
AWK_CLK_SEL_LSE
#define AWK_CLK_SEL_LSE
Definition: mg32l003_awk.h:54
AWK_CLK_SEL_STOP
#define AWK_CLK_SEL_STOP
Definition: mg32l003_awk.h:51