Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
haoJin750TFT
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
时昊
haoJin750TFT
Commits
5c35c886
Commit
5c35c886
authored
Aug 16, 2024
by
张金硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:配置P14_7AD端口为输入模式采集电压,修改可调背光等级数量及PWM占空比,修改主题模式自动时的逻辑
parent
7780a58f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
40 deletions
+35
-40
HaoJin750TFT.uvprojx
.../Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvprojx
+7
-7
HaoJin750TFT.sct
...ject/Cmsemicon/BAT32A279/MDK_ARM/Objects/HaoJin750TFT.sct
+2
-2
userdefine.h
...BAT32A279/MDK_ARM/RTE/Device/BAT32A279KM64FB/userdefine.h
+1
-1
BackLight.c
Firmware/Source/Application/BackLight.c
+22
-27
GpioUser.c
Firmware/Source/Application/GpioUser.c
+1
-1
Analog_Signals.c
Firmware/Source/Component/Analog/Analog_Signals.c
+2
-2
No files found.
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvprojx
View file @
5c35c886
...
...
@@ -275,7 +275,7 @@
</OCR_RVCT3>
<OCR_RVCT4>
<Type>
1
</Type>
<StartAddress>
0x
c40
0
</StartAddress>
<StartAddress>
0x0
</StartAddress>
<Size>
0x73c00
</Size>
</OCR_RVCT4>
<OCR_RVCT5>
...
...
@@ -361,7 +361,7 @@
</VariousControls>
</Aads>
<LDads>
<umfTarg>
0
</umfTarg>
<umfTarg>
1
</umfTarg>
<Ropi>
0
</Ropi>
<Rwpi>
0
</Rwpi>
<noStLib>
0
</noStLib>
...
...
@@ -968,16 +968,16 @@
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Component\AMT630H\PicBin.h
</FilePath>
</File>
<File>
<FileName>
UartProtocol.h
</FileName>
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Component\AMT630H\UartProtocol.h
</FilePath>
</File>
<File>
<FileName>
UartProtocol_V1.32_BAT32A239.lib
</FileName>
<FileType>
4
</FileType>
<FilePath>
..\..\..\..\Source\Component\AMT630H\UartProtocol_V1.32_BAT32A239.lib
</FilePath>
</File>
<File>
<FileName>
UartProtocol.h
</FileName>
<FileType>
5
</FileType>
<FilePath>
..\..\..\..\Source\Component\AMT630H\UartProtocol.h
</FilePath>
</File>
<File>
<FileName>
AMT630H_Datas.c
</FileName>
<FileType>
1
</FileType>
...
...
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/Objects/HaoJin750TFT.sct
View file @
5c35c886
...
...
@@ -2,8 +2,8 @@
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************
LR_IROM1 0x0000
c4
00 0x00073C00 { ; load region size_region
ER_IROM1 0x0000
c4
00 0x00073C00 { ; load address = execution address
LR_IROM1 0x0000
00
00 0x00073C00 { ; load region size_region
ER_IROM1 0x0000
00
00 0x00073C00 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
...
...
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/RTE/Device/BAT32A279KM64FB/userdefine.h
View file @
5c35c886
...
...
@@ -20,7 +20,7 @@ User definitions
typedef
unsigned
short
MD_STATUS
;
#define HAS_BOOTLOADER (
1
u) // 仅仿真App时设置为0
#define HAS_BOOTLOADER (
0
u) // 仅仿真App时设置为0
#define APP_BASE (0x0000C400ul)
/* Status list definition */
...
...
Firmware/Source/Application/BackLight.c
View file @
5c35c886
...
...
@@ -30,7 +30,7 @@ typedef struct
}
_st_BacklightLevel
;
#define Backlight_Max 10
#define BacklightLevel_Max
10
#define BacklightLevel_Max
5
_st_Backlight
BacklightTable
[
Backlight_Max
]
=
{
/*温度 阻值 */
...
...
@@ -50,9 +50,9 @@ _st_BacklightLevel BacklightLevelTable[BacklightLevel_Max] =
/*背光等级 背光占空比 */
{
1
,
100
},
{
2
,
200
},
{
3
,
3
00
},
{
4
,
4
00
},
{
5
,
5
00
},
{
3
,
4
00
},
{
4
,
6
00
},
{
5
,
8
00
},
};
...
...
@@ -116,37 +116,32 @@ void Data_Light_Res_service(Light_uint8_t deltaTime)//获取光感阻值,并
timeCount
+=
deltaTime
;
if
(
LightADCompleteFlg
)
{
if
(
LightR
_Status
==
0
)
if
(
LightR
<=
80
0
)
{
if
(
LightR
>
2
0
)
LightR_Status_Count
++
;
if
(
LightR
_Status_Count
>=
15
0
)
{
LightR_Status_Count
++
;
}
else
LightR_Status_Count
=
0
;
LightR_Status
=
0
;
}
}
else
if
(
LightR
>
800
)
{
LightR_Status_Count
++
;
if
(
LightR_Status_Count
>=
150
)
{
LightR_Status_Count
=
0
;
}
LightR_Status_Count
=
0
;
LightR_Status
=
1
;
}
}
if
(
LightR_Status
==
0
)
{
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
200
);
}
else
{
if
(
LightR
<
20
)
{
LightR_Status_Count
++
;
}
else
{
LightR_Status_Count
=
0
;
}
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
800
);
TimerM_PWM_set_duty
(
TIMERM_COUNTER1
,
TIMERM_CHB
,
800
);
}
if
(
LightR_Status_Count
>=
150
)
{
LightR_Status_Count
=
0
;
LightR_Status
=
!
LightR_Status
;
}
}
}
...
...
Firmware/Source/Application/GpioUser.c
View file @
5c35c886
...
...
@@ -80,7 +80,7 @@ void Gpio_Init(_GpioUser_Enum InitMode)
RTE_GPIO_Config
(
RTE_GPIO_PORT14_PIN00
,
GpioOut_Low
);
//L_BD433Ctrl_OUT
RTE_GPIO_Config
(
RTE_GPIO_PORT14_PIN01
,
RTE_GPIO_DIR_IN
);
//L_BiasBitSW_燃油_OUT---
RTE_GPIO_Config
(
RTE_GPIO_PORT14_PIN06
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT14_PIN07
,
GpioOut_Low
);
RTE_GPIO_Config
(
RTE_GPIO_PORT14_PIN07
,
RTE_GPIO_DIR_IN
);
}
else
{
...
...
Firmware/Source/Component/Analog/Analog_Signals.c
View file @
5c35c886
...
...
@@ -85,7 +85,7 @@ const __attribute__((aligned(4))) ADC_Ch_Cfg_st_t stADCChCfg[ADC_SIGNAL_CH_NUMBE
{
3U
,
2U
,
0U
,
2U
,
0U
,
1U
,
ADC_Res_Calc_Circuit101
,},
{
4U
,
2U
,
0U
,
2U
,
0U
,
1U
,
ADC_Res_Calc_Circuit101
,},
{
5U
,
3U
,
0U
,
5000U
,
0U
,
10U
,
ADC_Res_Calc_Circuit201
,},
{
6U
,
2U
,
0U
,
2U
,
0U
,
1U
,
ADC_Res_Calc_Circuit101
,},
{
6U
,
0U
,
0U
,
0U
,
0U
,
1U
,
ADC_Voltage_Calc_Circuit101
,},
};
...
...
@@ -97,7 +97,7 @@ const __attribute__((aligned(4))) ADC_Res_List_st_t stADCResList[ADC_SIGNAL_CH_N
{
0U
,
0U
,
500U
,
300U
,},
{
0U
,
0U
,
500U
,
0U
,},
{
47000U
,
0U
,
100000U
,
0U
,},
{
0U
,
0U
,
50
0U
,
0U
,},
{
0U
,
100000U
,
0U
,
0U
,},
};
/* Private function prototypes ----------------------------------------------*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment