Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Rattenking
rt-thread
提交
be8b381a
R
rt-thread
项目概览
Rattenking
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
3
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
be8b381a
编写于
4月 02, 2023
作者:
F
Frankx
提交者:
GitHub
4月 01, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bsp] Fix many abnormal symbols in annotations. (#7148)
上级
5f7170ec
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
89 addition
and
89 deletion
+89
-89
bsp/acm32/acm32f4xx-nucleo/libraries/Device/ACM32F4.h
bsp/acm32/acm32f4xx-nucleo/libraries/Device/ACM32F4.h
+2
-2
bsp/acm32/acm32f4xx-nucleo/libraries/Device/System_ACM32F4.c
bsp/acm32/acm32f4xx-nucleo/libraries/Device/System_ACM32F4.c
+5
-5
bsp/acm32/acm32f4xx-nucleo/libraries/HAL_Driver/Inc/HAL_AES.h
...acm32/acm32f4xx-nucleo/libraries/HAL_Driver/Inc/HAL_AES.h
+1
-1
bsp/acm32/acm32f4xx-nucleo/libraries/HAL_Driver/Inc/HAL_FAU.h
...acm32/acm32f4xx-nucleo/libraries/HAL_Driver/Inc/HAL_FAU.h
+8
-8
bsp/acm32/acm32f4xx-nucleo/libraries/HAL_Driver/Inc/HAL_RTC.h
...acm32/acm32f4xx-nucleo/libraries/HAL_Driver/Inc/HAL_RTC.h
+18
-20
bsp/acm32/acm32f4xx-nucleo/libraries/HAL_Driver/Inc/HAL_UART.h
...cm32/acm32f4xx-nucleo/libraries/HAL_Driver/Inc/HAL_UART.h
+1
-1
bsp/acm32/acm32f4xx-nucleo/libraries/HAL_Driver/Src/HAL_DAC.c
...acm32/acm32f4xx-nucleo/libraries/HAL_Driver/Src/HAL_DAC.c
+20
-20
bsp/acm32/acm32f4xx-nucleo/libraries/HAL_Driver/Src/HAL_FSUSB.c
...m32/acm32f4xx-nucleo/libraries/HAL_Driver/Src/HAL_FSUSB.c
+1
-1
bsp/acm32/acm32f4xx-nucleo/libraries/HAL_Driver/Src/HAL_GPIO.c
...cm32/acm32f4xx-nucleo/libraries/HAL_Driver/Src/HAL_GPIO.c
+33
-31
未找到文件。
bsp/acm32/acm32f4xx-nucleo/libraries/Device/ACM32F4.h
浏览文件 @
be8b381a
...
...
@@ -6,7 +6,7 @@
* This file contains:
* - Data structures and the address mapping for all peripherals
* - Peripheral's registers declarations and bits definition
* - Macros to access peripheral
s
registers hardware
* - Macros to access peripheral
'
s registers hardware
*
******************************************************************************
*/
...
...
@@ -197,7 +197,7 @@ typedef struct
}
TIM_TypeDef
;
///*------------------- RTC
PM
U Registers ----------------------*/
///*------------------- RTC
和PM
U Registers ----------------------*/
typedef
struct
{
__IO
uint32_t
WP
;
...
...
bsp/acm32/acm32f4xx-nucleo/libraries/Device/System_ACM32F4.c
浏览文件 @
be8b381a
...
...
@@ -578,7 +578,7 @@ void System_Enter_Standby_Mode(void)
* Description : clear all stop setting and status
* Input : none
* Output : none
* Author : CWT Date : 2021
?
* Author : CWT Date : 2021
年4月
**********************************************************************************/
void
System_Clear_Stop_Wakeup
(
void
)
{
...
...
@@ -658,7 +658,7 @@ void System_Enter_Sleep_Mode(uint8_t SleepEntry)
* Description : Get System Last Reset Reason
* Input : none
* Output : RESET_REASON
* Author : CWT Date : 2021
?
* Author : CWT Date : 2021
年4月
**********************************************************************************/
RESET_REASON
System_Return_Last_Reset_Reason
(
void
)
{
...
...
@@ -688,14 +688,14 @@ RESET_REASON System_Return_Last_Reset_Reason(void)
return
RESET_REASON_INVALID
;
// this should not happen
}
/*********************************************************************************
/*********************************************************************************
* Function : System_Set_Buzzer_Divider
* Description : set buzzer divide factor
* Input :
div: div factor, if div = 80 then output buzzer freq=HCLK/80
enable: FUNC_DISABLE and FUNC_ENABLE
* Output : none
* Author : xwl Date : 2021
?o
* Author : xwl Date : 2021
年4月
**********************************************************************************/
void
System_Set_Buzzer_Divider
(
uint32_t
div
,
FUNC_DISABLE_ENABLE
enable
)
{
...
...
@@ -715,7 +715,7 @@ void System_Set_Buzzer_Divider(uint32_t div, FUNC_DISABLE_ENABLE enable)
* Description : Configure USB PHY, such as clock select, pll...
* Input : none
* Output : 0: fail, 1:success
* Author : xwl Date : 2021
?
* Author : xwl Date : 2021
年4月
**********************************************************************************/
uint32_t
System_USB_PHY_Config
(
void
)
{
...
...
bsp/acm32/acm32f4xx-nucleo/libraries/HAL_Driver/Inc/HAL_AES.h
浏览文件 @
be8b381a
...
...
@@ -63,7 +63,7 @@ Input:
operation -- AES_ENCRYPTION,AES_DECRYPTION
mode -- AES_ECB_MODE, AES_CBC_MODE,
iv -- initial vector for CBC mode
security_mode -- AES_NORMAL_MODE, AES_SECURITY_M
DOE£¬
security_mode -- AES_NORMAL_MODE, AES_SECURITY_M
ODE
Return: None
*******************************************************************************/
...
...
bsp/acm32/acm32f4xx-nucleo/libraries/HAL_Driver/Inc/HAL_FAU.h
浏览文件 @
be8b381a
...
...
@@ -8,7 +8,7 @@
/**************************************************************************
* Function Name : HAL_CORDIC_CosSin( precision 1 )
* Description : calculate the sin & cos value of the input angle
* Input : - angle_para : input angle data in radians, divided by
¦Ð
[range[-1,1],Q31 format];
* Input : - angle_para : input angle data in radians, divided by
π[
range[-1,1],Q31 format];
* Output : - * cos_data : the cos value of the input angle[range[-1,1],Q31 format]
- * sin_data : the sin value of the input angle[range[-1,1],Q31 format]
* Return : None
...
...
@@ -17,7 +17,7 @@ void HAL_CORDIC_CosSin_1(int angle_para, int* cos_data, int* sin_data);
/**************************************************************************
* Function Name : HAL_CORDIC_CosSin( precision 2 )
* Description : calculate the sin & cos value of the input angle
* Input : - angle_para : input angle data in radians, divided by
¦Ð
[range[-1,1],Q31 format];
* Input : - angle_para : input angle data in radians, divided by
π[
range[-1,1],Q31 format];
* Output : - * cos_data : the cos value of the input angle[range[-1,1],Q31 format]
- * sin_data : the sin value of the input angle[range[-1,1],Q31 format]
* Return : None
...
...
@@ -26,7 +26,7 @@ void HAL_CORDIC_CosSin_2(int angle_para, int* cos_data, int* sin_data);
/**************************************************************************
* Function Name : HAL_CORDIC_CosSin( precision 3 )
* Description : calculate the sin & cos value of the input angle
* Input : - angle_para : input angle data in radians, divided by
¦Ð
[range[-1,1],Q31 format];
* Input : - angle_para : input angle data in radians, divided by
π[
range[-1,1],Q31 format];
* Output : - * cos_data : the cos value of the input angle[range[-1,1],Q31 format]
- * sin_data : the sin value of the input angle[range[-1,1],Q31 format]
* Return : None
...
...
@@ -35,7 +35,7 @@ void HAL_CORDIC_CosSin_3(int angle_para, int* cos_data, int* sin_data);
/**************************************************************************
* Function Name : HAL_CORDIC_CosSin( precision 4 )
* Description : calculate the sin & cos value of the input angle
* Input : - angle_para : input angle data in radians, divided by
¦Ð
[range[-1,1],Q31 format];
* Input : - angle_para : input angle data in radians, divided by
π[
range[-1,1],Q31 format];
* Output : - * cos_data : the cos value of the input angle[range[-1,1],Q31 format]
- * sin_data : the sin value of the input angle[range[-1,1],Q31 format]
* Return : None
...
...
@@ -44,7 +44,7 @@ void HAL_CORDIC_CosSin_4(int angle_para, int* cos_data, int* sin_data);
/**************************************************************************
* Function Name : HAL_CORDIC_CosSin( precision 5 )
* Description : calculate the sin & cos value of the input angle
* Input : - angle_para : input angle data in radians, divided by
¦Ð
[range[-1,1],Q31 format];
* Input : - angle_para : input angle data in radians, divided by
π[
range[-1,1],Q31 format];
* Output : - * cos_data : the cos value of the input angle[range[-1,1],Q31 format]
- * sin_data : the sin value of the input angle[range[-1,1],Q31 format]
* Return : None
...
...
@@ -53,7 +53,7 @@ void HAL_CORDIC_CosSin_5(int angle_para, int* cos_data, int* sin_data);
/**************************************************************************
* Function Name : HAL_CORDIC_CosSin( precision 6 )
* Description : calculate the sin & cos value of the input angle
* Input : - angle_para : input angle data in radians, divided by
¦Ð
[range[-1,1],Q31 format];
* Input : - angle_para : input angle data in radians, divided by
π[
range[-1,1],Q31 format];
* Output : - * cos_data : the cos value of the input angle[range[-1,1],Q31 format]
- * sin_data : the sin value of the input angle[range[-1,1],Q31 format]
* Return : None
...
...
@@ -62,7 +62,7 @@ void HAL_CORDIC_CosSin_6(int angle_para, int* cos_data, int* sin_data);
/**************************************************************************
* Function Name : HAL_CORDIC_CosSin( precision 7 )
* Description : calculate the sin & cos value of the input angle
* Input : - angle_para : input angle data in radians, divided by
¦Ð
[range[-1,1],Q31 format];
* Input : - angle_para : input angle data in radians, divided by
π[
range[-1,1],Q31 format];
* Output : - * cos_data : the cos value of the input angle[range[-1,1],Q31 format]
- * sin_data : the sin value of the input angle[range[-1,1],Q31 format]
* Return : None
...
...
@@ -71,7 +71,7 @@ void HAL_CORDIC_CosSin_7(int angle_para, int* cos_data, int* sin_data);
/**************************************************************************
* Function Name : HAL_CORDIC_CosSin( precision 8 )
* Description : calculate the sin & cos value of the input angle
* Input : - angle_para : input angle data in radians, divided by
¦Ð
[range[-1,1],Q31 format];
* Input : - angle_para : input angle data in radians, divided by
π[
range[-1,1],Q31 format];
* Output : - * cos_data : the cos value of the input angle[range[-1,1],Q31 format]
- * sin_data : the sin value of the input angle[range[-1,1],Q31 format]
* Return : None
...
...
bsp/acm32/acm32f4xx-nucleo/libraries/HAL_Driver/Inc/HAL_RTC.h
浏览文件 @
be8b381a
...
...
@@ -383,7 +383,7 @@ typedef struct
uint8_t
u8_WeekDay
;
/*!< Specifies the RTC Date WeekDay.
This parameter can be a value of @ref RTC_WeekDay_Definitions */
}
RTC_DateTypeDef
;
/* Attention: Year
、Month、Date、W
eek use BCD code */
/* Attention: Year
、Month、Date、W
eek use BCD code */
/**
...
...
@@ -400,8 +400,7 @@ typedef struct
uint8_t
u8_Seconds
;
/*!< Specifies the RTC Time Seconds.
This parameter must be a number between Min_Data = 0x00 and Max_Data = 0x59 */
}
RTC_TimeTypeDef
;
/* Attention: Hour、Minute、Second use BCD code */
/* Attention: Hour、Minute、Second use BCD code */
/**
* @brief RTC Time structure definition
...
...
@@ -461,41 +460,40 @@ typedef struct
/** @brief PC13 function select
* @param __FUNC__: PC13 function select.
* This parameter can be 0: GPIO
,1:RTC Fout,2:RTC tamper 3:
PC13 Value
* This parameter can be 0: GPIO
0/1/RTC Fout/2/RTC tamper/3/
PC13 Value
*/
#define __HAL_RTC_PC13_SEL(__FUNC__) (PMU->IOSEL |= (PMU->IOSEL & ~(0x3)) | (__FUNC__))
/** @brief PC14 function select
* @param __FUNC__: PC14 function select.
* This parameter can be 0: GPIO,1:PC14 Value
*/
* This parameter can be 0: GPIO_1_PC14 Value */
#define __HAL_RTC_PC14_SEL(__FUNC__) (PMU->IOSEL |= (PMU->IOSEL & ~(0x3 << 3)) | (__FUNC__ << 3))
/** @brief PC15 function select
* @param __FUNC__: PC15 function select.
* This parameter can be 0: GPIO
,1:
PC15 Value
* This parameter can be 0: GPIO
_1_
PC15 Value
*/
#define __HAL_RTC_PC15_SEL(__FUNC__) (PMU->IOSEL |= (PMU->IOSEL & ~(0x3 << 5)) | (__FUNC__ << 5))
/** @brief PC13 Value set
* @param __FUNC__: PC13 Value set.
* This parameter can be 0: set
,1:clae
r
* This parameter can be 0: set
to 1 to clea
r
*/
#define __HAL_RTC_PC13_VALUE(__VALUE__) (PMU->IOSEL |= (PMU->IOSEL & ~(1 << 8)) | (__VALUE__ << 8))
/** @brief PC14 Value set
* @param __FUNC__: PC14 Value set.
* This parameter can be 0: set,1:clae
r
* This parameter can be 0: set to 1 to clea
r
*/
#define __HAL_RTC_PC14_VALUE(__VALUE__) (PMU->IOSEL |= (PMU->IOSEL & ~(1 << 9)) | (__VALUE__ << 9))
/** @brief PC15 Value set
* @param __FUNC__: PC15 Value set.
* This parameter can be 0: set
,1:clae
r
* This parameter can be 0: set
to 1 to clea
r
*/
#define __HAL_RTC_PC15_VALUE(__VALUE__) (PMU->IOSEL |= (PMU->IOSEL & ~(1 << 10)) | (__VALUE__ << 10))
/* @brief PC13
、PC14、P
C15 pull up or pull down */
/* @brief PC13
、PC14、P
C15 pull up or pull down */
#define __HAL_RTC_PC13_PULL_UP_ENABLE() (PMU->IOCR |= BIT0)
#define __HAL_RTC_PC13_PULL_UP_DISABLE() (PMU->IOCR &= ~BIT0)
#define __HAL_RTC_PC13_PULL_DOWN_ENABLE() (PMU->IOCR |= BIT1)
...
...
@@ -511,7 +509,7 @@ typedef struct
#define __HAL_RTC_PC15_PULL_DOWN_ENABLE() (PMU->IOCR |= BIT17)
#define __HAL_RTC_PC15_PULL_DOWN_DISABLE() (PMU->IOCR &= ~BIT17)
/* @brief PC13
、PC14、P
C15 digit or analog */
/* @brief PC13
、PC14、P
C15 digit or analog */
#define __HAL_RTC_PC13_ANALOG() (PMU->IOCR |= BIT6)
#define __HAL_RTC_PC13_DIGIT() (PMU->IOCR &= ~BIT6)
...
...
@@ -607,35 +605,35 @@ typedef struct
* @}
*/
/* RTC stamp1 interrupt enable
、
disable */
/* RTC stamp1 interrupt enable
/
disable */
#define __HAL_RTC_ENABLE_STAMP1_IT (RTC->IE |= (RTC_IE_STP1RIE | RTC_IE_STP1FIE))
#define __HAL_RTC_DISABLE_STAMP1_IT (RTC->IE &= ~(RTC_IE_STP1RIE | RTC_IE_STP1FIE))
/* RTC stamp2 interrupt enable
、
disable */
/* RTC stamp2 interrupt enable
/
disable */
#define __HAL_RTC_ENABLE_STAMP2_IT (RTC->IE |= (RTC_IE_STP2RIE | RTC_IE_STP2FIE))
#define __HAL_RTC_DISABLE_STAMP2_IT (RTC->IE &= ~(RTC_IE_STP2RIE | RTC_IE_STP2FIE))
/* RTC 32S interrupt enable
、
disable */
/* RTC 32S interrupt enable
/
disable */
#define __HAL_RTC_ENABLE_32S_IT (RTC->IE |= RTC_IE_ADJ32)
#define __HAL_RTC_DISABLE_32S_IT (RTC->IE &= ~RTC_IE_ADJ32)
/* RTC alarm interrupt enable
、
disable */
/* RTC alarm interrupt enable
/
disable */
#define __HAL_RTC_ENABLE_ALM_IT (RTC->IE |= RTC_IE_ALM)
#define __HAL_RTC_DISABLE_ALM_IT (RTC->IE &= RTC_IE_ALM)
/* RTC sec interrupt enable
、
disable */
/* RTC sec interrupt enable
/
disable */
#define __HAL_RTC_ENABLE_SEC_IT (RTC->IE |= RTC_IE_SEC)
#define __HAL_RTC_DISABLE_SEC_IT (RTC->IE &= ~RTC_IE_SEC)
/* RTC Minutes interrupt enable
、
disable */
/* RTC Minutes interrupt enable
/
disable */
#define __HAL_RTC_ENABLE_MIN_IT (RTC->IE |= RTC_IE_MIN)
#define __HAL_RTC_DISABLE_MIN_IT (RTC->IE &= ~RTC_IE_MIN)
/* RTC Hour interrupt enable
、
disable */
/* RTC Hour interrupt enable
/
disable */
#define __HAL_RTC_ENABLE_HOUR_IT (RTC->IE |= RTC_IE_HOUR)
#define __HAL_RTC_DISABLE_HOUR_IT (RTC->IE &= ~RTC_IE_HOUR)
/* RTC Date interrupt enable
、
disable */
/* RTC Date interrupt enable
/
disable */
#define __HAL_RTC_ENABLE_DATE_IT (RTC->IE |= RTC_IE_DATE)
#define __HAL_RTC_DISABLE_DATE_IT (RTC->IE &= ~RTC_IE_DATE)
...
...
bsp/acm32/acm32f4xx-nucleo/libraries/HAL_Driver/Inc/HAL_UART.h
浏览文件 @
be8b381a
...
...
@@ -127,7 +127,7 @@
#define UART_MODE_RX (0x00000200)
/*!< RX mode */
#define UART_MODE_TX (0x00000100)
/*!< TX mode */
#define UART_MODE_TX_RX (0x00000300)
/*!< RX and TX mode */
#define UART_MODE_TX_RX_DEBUG (0x10000300)
/*!< RXTX mode and Debug use this uart */
#define UART_MODE_TX_RX_DEBUG (0x10000300)
/*!< RX
/
TX mode and Debug use this uart */
#define UART_MODE_HALF_DUPLEX (0x20000300)
/*!< Single half duplex */
/**
* @}
...
...
bsp/acm32/acm32f4xx-nucleo/libraries/HAL_Driver/Src/HAL_DAC.c
浏览文件 @
be8b381a
...
...
@@ -13,13 +13,13 @@
*/
#include "ACM32Fxx_HAL.h"
/*********************************************************************************
/*********************************************************************************
* Function : HAL_DAC_IRQHandler
* Description : This function uses the interruption of DMA underrun.
* Input : hdac : pointer to a DAC_HandleTypeDef structure that contains
* the configuration information for DAC module
* Output :
* Author : CWT Data : 2020
年
* Author : CWT Data : 2020
年
**********************************************************************************/
void
HAL_DAC_IRQHandler
(
DAC_HandleTypeDef
*
hdac
)
{
...
...
@@ -35,7 +35,7 @@ void HAL_DAC_IRQHandler(DAC_HandleTypeDef *hdac)
* Input : hdac : pointer to a DAC_HandleTypeDef structure that contains
* the configuration information for DAC module
* Output :
* Author : CWT Data : 2020
年
* Author : CWT Data : 2020
年
**********************************************************************************/
__weak
void
HAL_DAC_MspInit
(
DAC_HandleTypeDef
*
hdac
)
...
...
@@ -73,7 +73,7 @@ __weak void HAL_DAC_MspInit(DAC_HandleTypeDef *hdac)
* Input : hdac : pointer to a DAC_HandleTypeDef structure that contains
* the configuration information for DAC module
* Output :
* Author : CWT Data : 2020
年
* Author : CWT Data : 2020
年
**********************************************************************************/
void
HAL_DAC_MspDeInit
(
DAC_HandleTypeDef
*
hdac
)
{
...
...
@@ -106,7 +106,7 @@ void HAL_DAC_MspDeInit(DAC_HandleTypeDef* hdac)
* Input : hdac : pointer to a DAC_HandleTypeDef structure that contains
* the configuration information for DAC module
* Output : HAL status
* Author : CWT Data : 2020
年
* Author : CWT Data : 2020
年
**********************************************************************************/
HAL_StatusTypeDef
HAL_DAC_Init
(
DAC_HandleTypeDef
*
hdac
)
{
...
...
@@ -125,7 +125,7 @@ HAL_StatusTypeDef HAL_DAC_Init(DAC_HandleTypeDef *hdac)
* Input : hdac : pointer to a DAC_HandleTypeDef structure that contains
* the configuration information for DAC module
* Output : HAL status
* Author : CWT Data : 2020
年
* Author : CWT Data : 2020
年
**********************************************************************************/
HAL_StatusTypeDef
HAL_DAC_DeInit
(
DAC_HandleTypeDef
*
hdac
)
{
...
...
@@ -150,7 +150,7 @@ HAL_StatusTypeDef HAL_DAC_DeInit(DAC_HandleTypeDef* hdac)
* sConfig:DAC configuration structure
* Channel:This parameter can be one of the following values: @arg DAC_CHANNEL_1 @argDAC_CHANNEL_2
* Output : HAL status
* Author : CWT Data : 2020
年
* Author : CWT Data : 2020
年
**********************************************************************************/
HAL_StatusTypeDef
HAL_DAC_ConfigChannel
(
DAC_HandleTypeDef
*
hdac
,
DAC_ChannelConfTypeDef
*
sConfig
,
uint32_t
Channel
)
{
...
...
@@ -270,7 +270,7 @@ HAL_StatusTypeDef HAL_DAC_ConfigChannel(DAC_HandleTypeDef* hdac, DAC_ChannelConf
* the configuration information for the specified DAC.
* Channel:This parameter can be one of the following values: @arg DAC_CHANNEL_1 @argDAC_CHANNEL_2
* Output : HAL status
* Author : CWT Data : 2020
年
* Author : CWT Data : 2020
年
**********************************************************************************/
HAL_StatusTypeDef
HAL_DAC_Start
(
DAC_HandleTypeDef
*
hdac
,
uint32_t
Channel
)
{
...
...
@@ -314,7 +314,7 @@ HAL_StatusTypeDef HAL_DAC_Start(DAC_HandleTypeDef *hdac, uint32_t Channel)
* the configuration information for the specified DAC.
* Channel:This parameter can be one of the following values: @arg DAC_CHANNEL_1 @argDAC_CHANNEL_2
* Output : HAL status
* Author : CWT Data : 2020
年
* Author : CWT Data : 2020
年
**********************************************************************************/
HAL_StatusTypeDef
HAL_DAC_Stop
(
DAC_HandleTypeDef
*
hdac
,
uint32_t
Channel
)
{
...
...
@@ -347,7 +347,7 @@ HAL_StatusTypeDef HAL_DAC_Stop(DAC_HandleTypeDef* hdac, uint32_t Channel)
* Alignment: Specifies the data alignment for DAC channel.This parameter can be one of the following values:
@arg DAC_ALIGN_8B_R @arg DAC_ALIGN_12B_L @arg DAC_ALIGN_12B_R
* Output : HAL status
* Author : CWT Data : 2020
年
* Author : CWT Data : 2020
年
**********************************************************************************/
HAL_StatusTypeDef
HAL_DAC_Start_DMA
(
DAC_HandleTypeDef
*
hdac
,
uint32_t
Channel
,
uint32_t
*
pData
,
uint32_t
Length
,
uint32_t
Alignment
)
{
...
...
@@ -443,7 +443,7 @@ HAL_StatusTypeDef HAL_DAC_Start_DMA(DAC_HandleTypeDef *hdac, uint32_t Channel, u
* the configuration information for the specified DAC.
* Channel:This parameter can be one of the following values: @arg DAC_CHANNEL_1 @argDAC_CHANNEL_2 @arg DAC_CHANNEL_Dual
* Output : HAL status
* Author : CWT Data : 2020
年
* Author : CWT Data : 2020
年
**********************************************************************************/
HAL_StatusTypeDef
HAL_DAC_Stop_DMA
(
DAC_HandleTypeDef
*
hdac
,
uint32_t
Channel
)
{
...
...
@@ -494,7 +494,7 @@ HAL_StatusTypeDef HAL_DAC_Stop_DMA(DAC_HandleTypeDef* hdac, uint32_t Channel)
* @arg DAC_ALIGN_8B_R @arg DAC_ALIGN_12B_L @arg DAC_ALIGN_12B_R
* Data:The destination peripheral Buffer address.
* Output : HAL status
* Author : CWT Data : 2020
年
* Author : CWT Data : 2020
年
**********************************************************************************/
HAL_StatusTypeDef
HAL_DAC_SetValue
(
DAC_HandleTypeDef
*
hdac
,
uint32_t
Channel
,
uint32_t
Alignment
,
uint32_t
Data
)
{
...
...
@@ -537,7 +537,7 @@ HAL_StatusTypeDef HAL_DAC_SetValue(DAC_HandleTypeDef *hdac, uint32_t Channel, ui
* @arg DAC_ALIGN_8B_R @arg DAC_ALIGN_12B_L @arg DAC_ALIGN_12B_R
* Datax:The destination peripheral Buffer address.
* Output : HAL status
* Author : CWT Data : 2020
年
* Author : CWT Data : 2020
年
**********************************************************************************/
HAL_StatusTypeDef
HAL_DACEx_DualSetValue
(
DAC_HandleTypeDef
*
hdac
,
uint32_t
Alignment
,
uint32_t
Data1
,
uint32_t
Data2
)
{
...
...
@@ -573,7 +573,7 @@ HAL_StatusTypeDef HAL_DACEx_DualSetValue(DAC_HandleTypeDef *hdac, uint32_t Align
* the configuration information for the specified DAC.
* Channel:This parameter can be one of the following values: @arg DAC_CHANNEL_1 @arg DAC_CHANNEL_2
* Output : The selected DAC channel data output value.
* Author : CWT Data : 2020
年
* Author : CWT Data : 2020
年
**********************************************************************************/
uint32_t
HAL_DAC_GetValue
(
DAC_HandleTypeDef
*
hdac
,
uint32_t
Channel
)
{
...
...
@@ -600,7 +600,7 @@ uint32_t HAL_DAC_GetValue(DAC_HandleTypeDef* hdac, uint32_t Channel)
* Input : hdac : hdac pointer to a DAC_HandleTypeDef structure that contains
* the configuration information for the specified DAC.
* Output : The selected DAC channel data output value.
* Author : CWT Data : 2020
年
* Author : CWT Data : 2020
年
**********************************************************************************/
uint32_t
HAL_DACEx_DualGetValue
(
DAC_HandleTypeDef
*
hdac
)
{
...
...
@@ -638,7 +638,7 @@ uint32_t HAL_DACEx_DualGetValue(DAC_HandleTypeDef *hdac)
* @arg DAC_TRIANGLEAMPLITUDE_1023: Select max triangle amplitude of 1023
* @arg DAC_TRIANGLEAMPLITUDE_2047: Select max triangle amplitude of 2047
* @arg DAC_TRIANGLEAMPLITUDE_4095: Select max triangle amplitude of 4095
* Author : CWT Data : 2020
年
* Author : CWT Data : 2020
年
**********************************************************************************/
HAL_StatusTypeDef
HAL_DACEx_TriangleWaveGenerate
(
DAC_HandleTypeDef
*
hdac
,
uint32_t
Channel
,
uint32_t
Amplitude
)
...
...
@@ -679,7 +679,7 @@ HAL_StatusTypeDef HAL_DACEx_TriangleWaveGenerate(DAC_HandleTypeDef *hdac, uint32
* @arg DAC_LFSRUNMASK_BITS10_0: Unmask DAC channel LFSR bit[10:0] for noise wave generation
* @arg DAC_LFSRUNMASK_BITS11_0: Unmask DAC channel LFSR bit[11:0] for noise wave generation
* Output : HAL status
* Author : CWT Data : 2020
年
* Author : CWT Data : 2020
年
**********************************************************************************/
HAL_StatusTypeDef
HAL_DACEx_NoiseWaveGenerate
(
DAC_HandleTypeDef
*
hdac
,
uint32_t
Channel
,
uint32_t
Amplitude
)
{
...
...
@@ -704,7 +704,7 @@ HAL_StatusTypeDef HAL_DACEx_NoiseWaveGenerate(DAC_HandleTypeDef *hdac, uint32_t
* @arg DAC_CHANNEL_1: DAC Channel1 selected
* @arg DAC_CHANNEL_2: DAC Channel2 selected
* Output : HAL status
* Author : CWT Data : 2020
年
* Author : CWT Data : 2020
年
**********************************************************************************/
HAL_StatusTypeDef
HAL_DACEx_SelfCalibrate
(
DAC_HandleTypeDef
*
hdac
,
DAC_ChannelConfTypeDef
*
sConfig
,
uint32_t
Channel
)
{
...
...
@@ -778,7 +778,7 @@ HAL_StatusTypeDef HAL_DACEx_SelfCalibrate(DAC_HandleTypeDef *hdac, DAC_ChannelCo
* @arg DAC_CHANNEL_2: DAC Channel2 selected
* NewTrimmingValue: DAC new trimming value
* Output : HAL status
* Author : CWT Data : 2020
年
* Author : CWT Data : 2020
年
**********************************************************************************/
HAL_StatusTypeDef
HAL_DACEx_SetUserTrimming
(
DAC_HandleTypeDef
*
hdac
,
DAC_ChannelConfTypeDef
*
sConfig
,
uint32_t
Channel
,
uint32_t
NewTrimmingValue
)
{
...
...
@@ -815,7 +815,7 @@ HAL_StatusTypeDef HAL_DACEx_SetUserTrimming(DAC_HandleTypeDef *hdac, DAC_Channel
* @arg DAC_CHANNEL_1: DAC Channel1 selected
* @arg DAC_CHANNEL_2: DAC Channel2 selected
* Output : Trimming value : range: 0->31
* Author : CWT Data : 2020
年
* Author : CWT Data : 2020
年
**********************************************************************************/
uint32_t
HAL_DACEx_GetTrimOffset
(
DAC_HandleTypeDef
*
hdac
,
uint32_t
Channel
)
{
...
...
bsp/acm32/acm32f4xx-nucleo/libraries/HAL_Driver/Src/HAL_FSUSB.c
浏览文件 @
be8b381a
...
...
@@ -348,7 +348,7 @@ void HAL_FSUSB_Receive_Data(uint8_t *buffer,uint32_t length,uint8_t ep_index)
}
//ep_index
表示端点编号
//ep_index
表示的是菜单
void
HAL_FSUSB_EP0_Send_Empty_Packet
(
void
)
{
HAL_FSUSB_Start_EP_Transfer
(
0
,
USB_EP0
);
...
...
bsp/acm32/acm32f4xx-nucleo/libraries/HAL_Driver/Src/HAL_GPIO.c
浏览文件 @
be8b381a
...
...
@@ -17,7 +17,7 @@
* Description : GPIO interrupt Handler
* Input :
* Outpu :
* Author : Chris_Kyle Data
: 2020?
* Author : Chris_Kyle Data
: 2020年
**********************************************************************************/
void
HAL_GPIO_IRQHandler
(
enum_GPIOx_t
fe_GPIO
,
uint32_t
fu32_GPIO_Pin
)
{
...
...
@@ -67,7 +67,7 @@ void HAL_GPIO_IRQHandler(enum_GPIOx_t fe_GPIO, uint32_t fu32_GPIO_Pin)
* Input : GPIO_Init: pointer to a GPIO_InitTypeDef structure that contains
the configuration information for the specified GPIO peripheral.
* Outpu :
* Author : Chris_Kyle Data : 2020
?
* Author : Chris_Kyle Data : 2020
年
**********************************************************************************/
void
HAL_GPIO_Init
(
enum_GPIOx_t
fe_GPIO
,
GPIO_InitTypeDef
*
GPIO_Init
)
{
...
...
@@ -75,12 +75,14 @@ void HAL_GPIO_Init(enum_GPIOx_t fe_GPIO, GPIO_InitTypeDef *GPIO_Init)
uint32_t
lu32_Current_Pin
;
uint32_t
lu32_Position_Mask
;
volatile
uint32_t
*
lu32_SEL1
=
NULL
;
// ??? -> 1???䨮?????1
volatile
uint32_t
*
lu32_SEL2
=
NULL
;
// ??? -> 1???䨮?????2
volatile
uint32_t
*
lu32_PollUP
=
NULL
;
// ??? -> ?-????????
volatile
uint32_t
*
lu32_PollDown
=
NULL
;
// ??? -> ??-????????
volatile
uint32_t
*
lu32_ODEnable
=
NULL
;
// ??? -> ?a??1?????
volatile
uint32_t
*
lu32_ADS
=
NULL
;
// ??? -> y????a????????
volatile
uint32_t
*
lu32_SEL1
=
NULL
;
// 選擇器 -> 1路選擇器的選擇位1
volatile
uint32_t
*
lu32_SEL2
=
NULL
;
// 選擇器 -> 1路選擇器的選擇位2
volatile
uint32_t
*
lu32_PollUP
=
NULL
;
// 拉上阻抗 -> 上拉阻抗的選擇位
volatile
uint32_t
*
lu32_PollDown
=
NULL
;
// 拉下阻抗 -> 下拉阻抗的選擇位
volatile
uint32_t
*
lu32_ODEnable
=
NULL
;
// 輸出使能 -> 允許輸出1的選擇位
volatile
uint32_t
*
lu32_ADS
=
NULL
;
// 輸入模式 -> 輸入模式的允許輸出選擇位
GPIO_TypeDef
*
GPIOx
;
...
...
@@ -202,11 +204,11 @@ void HAL_GPIO_Init(enum_GPIOx_t fe_GPIO, GPIO_InitTypeDef *GPIO_Init)
{
/* Get Position Mask */
if
(
lu32_Position
<
16
)
{
/* G
OIOA?GPIOC?
GPIOE */
{
/* G
PIOA、GPIOC、
GPIOE */
lu32_Position_Mask
=
lu32_Position
;
}
else
{
/* GPIOB
?GPIOD?
GPIOF */
{
/* GPIOB
、GPIOD、
GPIOF */
lu32_Position_Mask
=
lu32_Position
-
16
;
}
...
...
@@ -228,7 +230,7 @@ void HAL_GPIO_Init(enum_GPIOx_t fe_GPIO, GPIO_InitTypeDef *GPIO_Init)
case
GPIO_MODE_IT_HIGH_LEVEL
:
case
GPIO_MODE_IT_LOW_LEVEL
:
{
/* Set direction Input
?Enable INT
*/
/* Set direction Input
, Enable INT
*/
GPIOx
->
DIR
&=
~
lu32_Current_Pin
;
GPIOx
->
IEN
|=
lu32_Current_Pin
;
...
...
@@ -311,11 +313,11 @@ void HAL_GPIO_Init(enum_GPIOx_t fe_GPIO, GPIO_InitTypeDef *GPIO_Init)
{
/* Get Position Mask */
if
(
lu32_Position
<
16
)
{
/* GOIOA
?GPIOC?
GPIOE */
{
/* GOIOA
、GPIOC、
GPIOE */
lu32_Position_Mask
=
lu32_Position
;
}
else
{
/* GPIOB
?GPIOD?
GPIOF */
{
/* GPIOB
、GPIOD、
GPIOF */
lu32_Position_Mask
=
lu32_Position
-
16
;
}
...
...
@@ -344,14 +346,13 @@ void HAL_GPIO_Init(enum_GPIOx_t fe_GPIO, GPIO_InitTypeDef *GPIO_Init)
lu32_Position
++
;
}
}
/*********************************************************************************
* Function : HAL_GPIO_DeInit
* Description : De-initializes the GPIOx peripheral registers to their default reset values.
* Input :
fe_GPIOo
to select the GPIO peripheral.
* Input : fu32_Pin
o
specifies the port bit to be written.
* Input :
GPIOx:
to select the GPIO peripheral.
* Input : fu32_Pin
:
specifies the port bit to be written.
This parameter can be one of GPIO_PIN_x where x can be (0..15).
* Outpu
:
* Outpu
t
:
* Author : Chris_Kyle Data : 2020
**********************************************************************************/
void
HAL_GPIO_DeInit
(
enum_GPIOx_t
fe_GPIO
,
uint32_t
fu32_Pin
)
...
...
@@ -360,12 +361,13 @@ void HAL_GPIO_DeInit(enum_GPIOx_t fe_GPIO, uint32_t fu32_Pin)
uint32_t
lu32_Current_Pin
;
uint32_t
lu32_Position_Mask
;
volatile
uint32_t
*
lu32_SEL1
=
NULL
;
// ??? -> 1???䨮?????1
volatile
uint32_t
*
lu32_SEL2
=
NULL
;
// ??? -> 1???䨮?????2
volatile
uint32_t
*
lu32_PollUP
=
NULL
;
// ??? -> ?-????????
volatile
uint32_t
*
lu32_PollDown
=
NULL
;
// ??? -> ??-????????
volatile
uint32_t
*
lu32_ODEnable
=
NULL
;
// ??? -> ?a??1?????
volatile
uint32_t
*
lu32_ADS
=
NULL
;
// ??? -> y????a????????
volatile
uint32_t
*
lu32_SEL1
=
NULL
;
// 初始化指针 -> 选择器1的内存地址
volatile
uint32_t
*
lu32_SEL2
=
NULL
;
// 初始化指针 -> 选择器2的内存地址
volatile
uint32_t
*
lu32_PollUP
=
NULL
;
// 初始化指针 -> 上拉操作的内存地址
volatile
uint32_t
*
lu32_PollDown
=
NULL
;
// 初始化指针 -> 下拉操作的内存地址
volatile
uint32_t
*
lu32_ODEnable
=
NULL
;
// 初始化指针 -> 开启输出设备的内存地址
volatile
uint32_t
*
lu32_ADS
=
NULL
;
// 初始化指针 -> 用于存储ADS数组的内存地址
GPIO_TypeDef
*
GPIOx
;
...
...
@@ -480,11 +482,11 @@ void HAL_GPIO_DeInit(enum_GPIOx_t fe_GPIO, uint32_t fu32_Pin)
/* Get Position Mask */
if
(
lu32_Position
<
16
)
{
/* GOIOA
?GPIOC?
GPIOE */
{
/* GOIOA
、GPIOC、
GPIOE */
lu32_Position_Mask
=
lu32_Position
;
}
else
{
/* GPIOB
?GPIOD?
GPIOF */
{
/* GPIOB
、GPIOD、
GPIOF */
lu32_Position_Mask
=
lu32_Position
-
16
;
}
...
...
@@ -516,18 +518,18 @@ void HAL_GPIO_DeInit(enum_GPIOx_t fe_GPIO, uint32_t fu32_Pin)
/*********************************************************************************
* Function : HAL_GPIO_AnalogEnable
* Description : Quickly Configure to analog function
* Input : fe_GPIO
o
to select the GPIO peripheral.
* Input : fu32_Pin
o
specifies the port bit to be written.
* Input : fe_GPIO
:
to select the GPIO peripheral.
* Input : fu32_Pin
:
specifies the port bit to be written.
This parameter can be one of GPIO_PIN_x where x can be (0..15).
* Outpu :
* Author : Chris_Kyle Data : 2020
?
* Author : Chris_Kyle Data : 2020
年
**********************************************************************************/
void
HAL_GPIO_AnalogEnable
(
enum_GPIOx_t
fe_GPIO
,
uint32_t
fu32_Pin
)
{
uint32_t
lu32_Position
=
0
;
uint32_t
lu32_Current_Pin
;
volatile
uint32_t
*
lp32_ADS
=
NULL
;
// ??? -> y????a????????
volatile
uint32_t
*
lp32_ADS
=
NULL
;
// 初始化指针以用于存储ADS数组
GPIO_TypeDef
*
GPIOx
;
...
...
@@ -601,7 +603,7 @@ void HAL_GPIO_AnalogEnable(enum_GPIOx_t fe_GPIO, uint32_t fu32_Pin)
* Description : Set or clear the selected data port bit.
* Input :
* Outpu :
* Author : Chris_Kyle Data : 2020
?
* Author : Chris_Kyle Data : 2020
年
**********************************************************************************/
void
HAL_GPIO_WritePin
(
enum_GPIOx_t
fe_GPIO
,
uint32_t
fu32_GPIO_Pin
,
enum_PinState_t
fe_PinState
)
{
...
...
@@ -657,7 +659,7 @@ void HAL_GPIO_WritePin(enum_GPIOx_t fe_GPIO, uint32_t fu32_GPIO_Pin, enum_PinSta
* Description : Read the specified input port pin.
* Input :
* Outpu :
* Author : Chris_Kyle Data : 2020
?
* Author : Chris_Kyle Data : 2020
年
**********************************************************************************/
enum_PinState_t
HAL_GPIO_ReadPin
(
enum_GPIOx_t
fe_GPIO
,
uint32_t
fu32_GPIO_Pin
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录