mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-10-02 14:23:19 +08:00
[bsp]Fix Chinese coding errors in annotations.
This commit is contained in:
committed by
Man, Jianting (Meco)
parent
d7ef1d1b4e
commit
7a31ab9115
@@ -34,12 +34,12 @@ extern "C" {
|
||||
typedef enum
|
||||
{
|
||||
OTP_Complete = 0,
|
||||
OTP_ReadOnProgramOrSleep, //�ڱ�̡�����״̬�¶�OTP���ж�����
|
||||
OTP_ProgramIn_HiddenOrRO_Block, //��ֻ�������б��
|
||||
OTP_ProgramOutOfAddr, //��̷�Χ����OTP��Χ
|
||||
OTP_ProgramOnSleep, //������״̬���б�̲���
|
||||
OTP_WakeUpOnNoSleep, //�ڷ�����״̬�½��л��Ѳ���
|
||||
OTP_TimeOut, //OTP��ɱ�־λ��ʱû����λ
|
||||
OTP_ReadOnProgramOrSleep, //在编程或休眠状态下读取OTP数据
|
||||
OTP_ProgramIn_HiddenOrRO_Block, //在只读或隐藏块中编程
|
||||
OTP_ProgramOutOfAddr, //超出OTP地址范围
|
||||
OTP_ProgramOnSleep, //在睡眠状态下编程
|
||||
OTP_WakeUpOnNoSleep, //在非睡眠状态下从唤醒
|
||||
OTP_TimeOut, //OTP写入超时
|
||||
OTP_DataWrong,
|
||||
}OTP_StatusTypeDef;
|
||||
|
||||
|
||||
@@ -65,14 +65,14 @@ typedef struct
|
||||
#define SENSOR_Port_S67 (SENSOR_Port_S6 | SENSOR_Port_S7)
|
||||
#define IS_SENSOR_PORT(PORT) ((((PORT) & (uint32_t)0xFFFFFF00) == 0x00) && ((PORT) != (uint32_t)0x00))
|
||||
|
||||
/* �ⲿ��̬��������������Ƶ�� */
|
||||
/* 外部静态检测频率 */
|
||||
#define SENSOR_PUPU_Frequency_Default ((uint32_t)0x0000)
|
||||
#define SENSOR_PUPU_Frequency_500ms ((uint32_t)0x0000)
|
||||
#define SENSOR_PUPU_Frequency_1s ((uint32_t)0x0001)
|
||||
#define IS_SENSOR_EXT_PUPU_FREQ(FREQ) ((FREQ) == SENSOR_PUPU_Frequency_500ms ||\
|
||||
(FREQ) == SENSOR_PUPU_Frequency_1s)
|
||||
|
||||
/* �ⲿ��̬�������������� */
|
||||
/* 外部静态采样个数 */
|
||||
#define SENSOR_STATIC_SAMPLE_Default ((uint32_t)0x0001)
|
||||
#define SENSOR_STATIC_SAMPLE_1 ((uint32_t)0x0000)
|
||||
#define SENSOR_STATIC_SAMPLE_2 ((uint32_t)0x0001)
|
||||
@@ -81,7 +81,7 @@ typedef struct
|
||||
#define IS_SENSOR_EXT_STATIC_SAMPLE(COUNT) ((COUNT) >= SENSOR_STATIC_SAMPLE_1 &&\
|
||||
(COUNT) <= SENSOR_STATIC_SAMPLE_4)
|
||||
|
||||
/* �ⲿ��̬�������������� */
|
||||
/* 外部动态采样个数 */
|
||||
#define SENSOR_DYNAMIC_SAMPLE_Default ((uint32_t)0x0002)
|
||||
#define SENSOR_DYNAMIC_SAMPLE_1 ((uint32_t)0x0000)
|
||||
#define SENSOR_DYNAMIC_SAMPLE_2 ((uint32_t)0x0001)
|
||||
@@ -91,7 +91,7 @@ typedef struct
|
||||
(COUNT) <= SENSOR_DYNAMIC_SAMPLE_4)
|
||||
|
||||
|
||||
/* �ⲿ��̬�����������������裬������Чʱ�� */
|
||||
/* 外部动态采样保持时间,单位为标准时钟周期 */
|
||||
#define SENSOR_PUPU_HoldTime_Default ((uint32_t)0x0002)
|
||||
#define SENSOR_PUPU_HoldTime_1_2 ((uint32_t)0x0000)
|
||||
#define SENSOR_PUPU_HoldTime_1_4 ((uint32_t)0x0001)
|
||||
@@ -102,7 +102,7 @@ typedef struct
|
||||
(TIME) == SENSOR_PUPU_HoldTime_1_8 ||\
|
||||
(TIME) == SENSOR_PUPU_HoldTime_1_16)
|
||||
|
||||
/* ��̬���������Ƶ�� */
|
||||
/* 动态检测频率 */
|
||||
#define SENSOR_DynamicFrequency_Default ((uint32_t)0x0003)
|
||||
#define SENSOR_DynamicFrequency_31_25ms ((uint32_t)0x0000)
|
||||
#define SENSOR_DynamicFrequency_125ms ((uint32_t)0x0001)
|
||||
|
||||
@@ -31,31 +31,30 @@
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
#include "air105.h"
|
||||
|
||||
|
||||
#define SSC_ITSysXTAL12M BIT(18) //ϵͳ��12Mʱ�ӱ�־
|
||||
#define SSC_ITSysGlitch BIT(17) //����Դë�̱�־
|
||||
#define SSC_ITSysVolHigh BIT(16) //����Դ��ѹ��־
|
||||
#define SSC_ITSysVolLow BIT(15) //����ԴǷѹ��־
|
||||
#define SSC_ITSysXTAL12M BIT(18) //系统12M时钟源标志
|
||||
#define SSC_ITSysGlitch BIT(17) //供源噪声标志
|
||||
#define SSC_ITSysVolHigh BIT(16) //供源电压高标志
|
||||
#define SSC_ITSysVolLow BIT(15) //供源电压低标志
|
||||
|
||||
typedef struct
|
||||
{
|
||||
FunctionalState ParityCheck; //��żУ��ʹ��
|
||||
FunctionalState ParityCheck; //偶校验使用
|
||||
}SSC_InitTypeDef;
|
||||
|
||||
|
||||
/*
|
||||
* ��BPK��Ϊ4��ÿ��256����Ϊ��λ���ö�дȨ��
|
||||
* SSC_BPKAccessCtrBlock_0Ϊ��ʼ0��ַ��
|
||||
*/
|
||||
* 以BPK为4,每256为一单元格编号,用于多单元格写入
|
||||
* SSC_BPKAccessCtrBlock_0为初始0地址。
|
||||
*/
|
||||
#define SSC_BPKAccessCtrBlock_0 (0x01)
|
||||
#define SSC_BPKAccessCtrBlock_1 (0x02)
|
||||
#define SSC_BPKAccessCtrBlock_All (0x03)
|
||||
|
||||
typedef enum
|
||||
{
|
||||
SSC_BPKReadOnly = 0x01, //BPK��ֻ��
|
||||
SSC_BPKWriteOnly = 0x02, //BPK��ֻд
|
||||
SSC_BPKReadWrite = 0x03 //BPK���д
|
||||
SSC_BPKReadOnly = 0x01, //BPK只读
|
||||
SSC_BPKWriteOnly = 0x02, //BPK只写
|
||||
SSC_BPKReadWrite = 0x03 //BPK读写
|
||||
}SSC_BPKAccessCtrlTypeDef;
|
||||
#define IS_BPK_ACCESS_CTRL(CTRL) (((CTRL) == SSC_BPKReadOnly) || ((CTRL) == SSC_BPKWriteOnly) || \
|
||||
((CTRL) == SSC_BPKReadWrite))
|
||||
@@ -76,7 +75,7 @@ typedef enum
|
||||
|
||||
/**
|
||||
* @method SSC_Init
|
||||
* @brief SSC��ȫ���Գ�ʼ��
|
||||
* @brief SSC全局初始化函数
|
||||
* @param SSC_InitTypeDef SSC_InitStruct
|
||||
* @retval void
|
||||
*/
|
||||
@@ -85,7 +84,7 @@ void SSC_Init(SSC_InitTypeDef *SSC_InitStruct);
|
||||
|
||||
/**
|
||||
* @method SSC_GetITStatus
|
||||
* @brief SSC��ȫ�ж�״̬
|
||||
* @brief SSC全局状态判断函数
|
||||
* @param uint32_t SSC_IT
|
||||
* @retval ITStatus
|
||||
*/
|
||||
@@ -94,7 +93,7 @@ ITStatus SSC_GetITStatus(uint32_t SSC_IT);
|
||||
|
||||
/**
|
||||
* @method SSC_ClearITPendingBit
|
||||
* @brief SSC��ȫ�ж����
|
||||
* @brief SSC清除全局中断状态函数
|
||||
* @param uint32_t SSC_IT
|
||||
* @retval void
|
||||
*/
|
||||
@@ -103,7 +102,7 @@ void SSC_ClearITPendingBit( uint32_t SSC_IT);
|
||||
|
||||
/**
|
||||
* @method SSC_SetDataRAMScrambler
|
||||
* @brief ��������RAM����
|
||||
* @brief 设置数据RAM扰码
|
||||
* @param uint32_t Scrambler
|
||||
* @retval void
|
||||
*/
|
||||
@@ -112,7 +111,7 @@ void SSC_SetDataRAMScrambler(uint32_t Scrambler);
|
||||
|
||||
/**
|
||||
* @method SSC_BPKAccessCtrConfig
|
||||
* @brief ����BPK����Ȩ��
|
||||
* @brief 配置BPK访问权限
|
||||
* @param uint32_t SSC_BPKAccessCtrBlock
|
||||
* @param SSC_BPKAccessCtrlTypeDef SSC_BPKAccessCtr
|
||||
* @retval void
|
||||
@@ -122,7 +121,7 @@ void SSC_BPKAccessCtrlConfig(uint32_t SSC_BPKAccessCtrBlock, SSC_BPKAccessCtrlTy
|
||||
|
||||
/**
|
||||
* @method SSC_SENSOR_Enable
|
||||
* @brief ����ϵͳSensor
|
||||
* @brief 使能系统Sensor
|
||||
* @param SSC_SENSOR
|
||||
* @retval
|
||||
*/
|
||||
@@ -131,7 +130,7 @@ uint32_t SSC_SENSORCmd(uint32_t SSC_SENSOR, FunctionalState NewState);
|
||||
|
||||
/**
|
||||
* @method SSC_SENSORLock
|
||||
* @brief ����ϵͳSensor����״̬
|
||||
* @brief 锁定系统Sensor状态
|
||||
* @param SSC_SENSOR
|
||||
* @retval
|
||||
*/
|
||||
@@ -140,7 +139,7 @@ void SSC_SENSORLock(uint32_t SSC_SENSOR);
|
||||
|
||||
/**
|
||||
* @method SSC_SENSOR_AttackRespMode
|
||||
* @brief ϵͳSensor��Ӧ��ʽ
|
||||
* @brief 系统Sensor响应模式
|
||||
* @param SSC_SENSOR_RespMode
|
||||
* @retval
|
||||
*/
|
||||
|
||||
@@ -116,7 +116,7 @@ ITStatus TRNG_GetITStatus(uint32_t TRNG_IT)
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ����жϱ�־λ
|
||||
* @brief 设置TRNG中断标志位
|
||||
* @param TRNG_IT:
|
||||
* TRNG_IT_RNG0_S128
|
||||
* TRNG_IT_RNG1_S128
|
||||
|
||||
@@ -147,19 +147,19 @@ typedef enum {
|
||||
G2D_SEQ_NORMAL = 0x0,
|
||||
|
||||
/* for interleaved yuv422 */
|
||||
G2D_SEQ_VYUY = 0x1, /* pixel 0�ڵ�16λ */
|
||||
G2D_SEQ_YVYU = 0x2, /* pixel 1�ڵ�16λ */
|
||||
G2D_SEQ_VYUY = 0x1, /* pixel 0在16位 */
|
||||
G2D_SEQ_YVYU = 0x2, /* pixel 1在16位 */
|
||||
|
||||
/* for uv_combined yuv420 */
|
||||
G2D_SEQ_VUVU = 0x3,
|
||||
|
||||
/* for 16bpp rgb */
|
||||
G2D_SEQ_P10 = 0x4, /* pixel 0�ڵ�16λ */
|
||||
G2D_SEQ_P01 = 0x5, /* pixel 1�ڵ�16λ */
|
||||
G2D_SEQ_P10 = 0x4, /* pixel 0在16位 */
|
||||
G2D_SEQ_P01 = 0x5, /* pixel 1在16位 */
|
||||
|
||||
/* planar format or 8bpp rgb */
|
||||
G2D_SEQ_P3210 = 0x6, /* pixel 0�ڵ�8λ */
|
||||
G2D_SEQ_P0123 = 0x7, /* pixel 3�ڵ�8λ */
|
||||
G2D_SEQ_P3210 = 0x6, /* pixel 0在8位 */
|
||||
G2D_SEQ_P0123 = 0x7, /* pixel 3在8位 */
|
||||
|
||||
/* for 4bpp rgb */
|
||||
G2D_SEQ_P76543210 = 0x8, /* 7,6,5,4,3,2,1,0 */
|
||||
|
||||
@@ -300,7 +300,7 @@ __s32 g2d_vsu_para_set(struct scaler_submodule *p_scal, __u32 fmt, __u32 in_w,
|
||||
|
||||
temp = in_w << VSU_PHASE_FRAC_BITWIDTH;
|
||||
if (out_w)
|
||||
//do_div(temp, out_w);/////////////tempÊǽá¹û
|
||||
// do_div(temp, out_w); /////////// temp是被除数
|
||||
temp = temp/out_w;
|
||||
else
|
||||
temp = 0;
|
||||
|
||||
@@ -39,7 +39,7 @@ static inline void put_be32(__u8 *buf, __u32 val)
|
||||
buf[3] = (__u8)val;
|
||||
}
|
||||
|
||||
/* ȡ����ֵ */
|
||||
/* 取绝对值 */
|
||||
#undef absolute
|
||||
#define absolute(p) ((p) > 0 ? (p) : -(p))
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -39,7 +39,7 @@ typedef struct tag_PARTITION
|
||||
__u8 classname[12]; // major device name
|
||||
__u8 name[12]; // minor device name
|
||||
__u8 res[24]; // reserved
|
||||
} PARTITION; // 64 bytes Ӧ�ô��� pack
|
||||
} PARTITION; // 64 bytes 应该使用 pack
|
||||
|
||||
// mbr information
|
||||
typedef struct tag_MBR
|
||||
|
||||
Reference in New Issue
Block a user