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
97c637e4
Commit
97c637e4
authored
Jun 26, 2024
by
时昊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat:修改gpio和630时序
parent
7b0dc688
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1083 additions
and
1087 deletions
+1083
-1087
HaoJin750TFT.uvguix.tyw05
...ect/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvguix.tyw05
+7
-7
HaoJin750TFT.map
...ect/Cmsemicon/BAT32A279/MDK_ARM/Listings/HaoJin750TFT.map
+1008
-1008
GpioUser.h
Firmware/Source/Application/GpioUser.h
+52
-52
AMT630H.c
Firmware/Source/Component/AMT630H/AMT630H.c
+16
-20
No files found.
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/HaoJin750TFT.uvguix.tyw05
View file @
97c637e4
This diff is collapsed.
Click to expand it.
Firmware/Project/Cmsemicon/BAT32A279/MDK_ARM/Listings/HaoJin750TFT.map
View file @
97c637e4
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Firmware/Source/Application/GpioUser.h
View file @
97c637e4
...
@@ -4,75 +4,75 @@
...
@@ -4,75 +4,75 @@
#define GpioOut_High RTE_GPIO_DIR_OUT | RTE_GPIO_LEVEL_HIGH
#define GpioOut_High RTE_GPIO_DIR_OUT | RTE_GPIO_LEVEL_HIGH
#define GpioOut_Low RTE_GPIO_DIR_OUT | RTE_GPIO_LEVEL_LOW
#define GpioOut_Low RTE_GPIO_DIR_OUT | RTE_GPIO_LEVEL_LOW
/* GPIO映射 */
/* GPIO映射 */
#define
L_Fuel_POW
RTE_GPIO_PORT00_PIN00
#define
ABS_Faulty_lights
RTE_GPIO_PORT00_PIN00
#define KL15_AD_IN RTE_GPIO_PORT00_PIN01
#define KL15_AD_IN RTE_GPIO_PORT00_PIN01
#define
SD_1
RTE_GPIO_PORT00_PIN02
#define
MCU_SPI_MOSI
RTE_GPIO_PORT00_PIN02
#define
CSB_1
RTE_GPIO_PORT00_PIN03
#define
MCU_SPI_MISO
RTE_GPIO_PORT00_PIN03
#define
SCL_1
RTE_GPIO_PORT00_PIN04
#define
MCU_SPI_CLK
RTE_GPIO_PORT00_PIN04
#define
L_BiasBitSW_100
RTE_GPIO_PORT00_PIN05
#define
HighBeam_P_In
RTE_GPIO_PORT00_PIN05
#define
L_BiasBitSW_10
RTE_GPIO_PORT00_PIN06
#define
VSPEED_TEN_OUT
RTE_GPIO_PORT00_PIN06
#define Blacklight_PWM RTE_GPIO_PORT01_PIN00 //ljs
#define Blacklight_PWM RTE_GPIO_PORT01_PIN00 //ljs
#define
RXD_ESP_IN_MCU
RTE_GPIO_PORT01_PIN01
#define
LIN_RXD_ESP
RTE_GPIO_PORT01_PIN01
#define
TXD_ESP_IN_MCU
RTE_GPIO_PORT01_PIN02
#define
LIN_TXD_ESP
RTE_GPIO_PORT01_PIN02
#define
NONE_3
RTE_GPIO_PORT01_PIN03
#define
Gears_N_MCU
RTE_GPIO_PORT01_PIN03
#define
SCL_IIC
RTE_GPIO_PORT01_PIN04
#define
Low_oil_pressure_MCU
RTE_GPIO_PORT01_PIN04
#define
SDA_IIC
RTE_GPIO_PORT01_PIN05
#define
x1530_EN_MCU
RTE_GPIO_PORT01_PIN05
#define ES
peed_IOC
RTE_GPIO_PORT01_PIN06
#define ES
PEED_TEN_IN
RTE_GPIO_PORT01_PIN06
#define VS
peed_IOC
RTE_GPIO_PORT01_PIN07
#define VS
PEED_TEN_IN
RTE_GPIO_PORT01_PIN07
#define AVDD RTE_GPIO_PORT02_PIN00
#define AVDD RTE_GPIO_PORT02_PIN00
#define GND RTE_GPIO_PORT02_PIN01
#define GND RTE_GPIO_PORT02_PIN01
#define KL30_AD_MCU_IN RTE_GPIO_PORT02_PIN02 //ljs
#define KL30_AD_MCU_IN RTE_GPIO_PORT02_PIN02 //ljs
#define KL15_AD_MCU_IN RTE_GPIO_PORT02_PIN03 //ljs
#define KL15_AD_MCU_IN RTE_GPIO_PORT02_PIN03 //ljs
#define
TCS
RTE_GPIO_PORT02_PIN04
#define
A_NTC_IN
RTE_GPIO_PORT02_PIN04
#define
Fuel_AD_IN_MCU
RTE_GPIO_PORT02_PIN05
#define
A_FuelSender_BitSNSR1_IN
RTE_GPIO_PORT02_PIN05
#define
Water_Temperature
RTE_GPIO_PORT02_PIN06
#define
A_WaterTemp_IN
RTE_GPIO_PORT02_PIN06
#define
BiasBitSW_Fuel
RTE_GPIO_PORT02_PIN07
#define
A_FULESTANDARDBitSW1_IN
RTE_GPIO_PORT02_PIN07
#define
Diagnosis
RTE_GPIO_PORT03_PIN00
#define
MAINTENANCE_LAMP_OUT
RTE_GPIO_PORT03_PIN00
#define
SDB_LED_DRIVER
RTE_GPIO_PORT03_PIN01
#define
LeftTurn_MUC_OUT
RTE_GPIO_PORT03_PIN01
#define SWDIO
RTE_GPIO_PORT04_PIN00
#define SWDIO
_JTMS
RTE_GPIO_PORT04_PIN00
#define S
mart_Lock
RTE_GPIO_PORT04_PIN01
#define S
tart_stop_MCU
RTE_GPIO_PORT04_PIN01
#define
MODE_IN_MCU
RTE_GPIO_PORT04_PIN02
#define
Select_button_MCU
RTE_GPIO_PORT04_PIN02
#define VCC1V2_AMT_EN RTE_GPIO_PORT04_PIN03 //ljs
#define VCC1V2_AMT_EN RTE_GPIO_PORT04_PIN03 //ljs
#define
MCU_OUT_2CH_20k
RTE_GPIO_PORT05_PIN00
#define
CAN_MCU_RXD
RTE_GPIO_PORT05_PIN00
#define
MCU_OUT_1CH_200
RTE_GPIO_PORT05_PIN01
#define
CAN_MCU_TXD
RTE_GPIO_PORT05_PIN01
#define
Position
RTE_GPIO_PORT05_PIN02
#define
CAN_STB_MCU
RTE_GPIO_PORT05_PIN02
#define
Right_Turn
RTE_GPIO_PORT05_PIN03
#define
HighBeam_MCU
RTE_GPIO_PORT05_PIN03
#define L
eft_Turn
RTE_GPIO_PORT05_PIN04
#define L
_FuelSender_OUT
RTE_GPIO_PORT05_PIN04
#define
High_Beam
RTE_GPIO_PORT05_PIN05
#define
SWITCH_MCU
RTE_GPIO_PORT05_PIN05
#define
SCL
RTE_GPIO_PORT06_PIN00
#define
IIC_SCL_24G16
RTE_GPIO_PORT06_PIN00
#define
SDA
RTE_GPIO_PORT06_PIN01
#define
IIC_SDA_24G16
RTE_GPIO_PORT06_PIN01
#define
SCL_MCU
RTE_GPIO_PORT06_PIN02
#define
IIC_SCL_27030
RTE_GPIO_PORT06_PIN02
#define
SDA_MCU
RTE_GPIO_PORT06_PIN03
#define
I243_SDA_27030
RTE_GPIO_PORT06_PIN03
#define SCL_2 RTE_GPIO_PORT07_PIN00
#define SCL_2 RTE_GPIO_PORT07_PIN00
#define CSB_2 RTE_GPIO_PORT07_PIN01
#define CSB_2 RTE_GPIO_PORT07_PIN01
#define SD_2 RTE_GPIO_PORT07_PIN02
#define SD_2 RTE_GPIO_PORT07_PIN02
#define MCU_RSTB_LCD RTE_GPIO_PORT07_PIN03 //ljs
#define MCU_RSTB_LCD RTE_GPIO_PORT07_PIN03 //ljs
#define
L_BiasBitSW_1000
RTE_GPIO_PORT07_PIN04
#define
HighBeam_MUC_OUT
RTE_GPIO_PORT07_PIN04
#define STBYB_LCD_MCU RTE_GPIO_PORT07_PIN05 //ljs
#define STBYB_LCD_MCU RTE_GPIO_PORT07_PIN05 //ljs
#define RXD_2 RTE_GPIO_PORT07_PIN06 //ljs
#define RXD_2 RTE_GPIO_PORT07_PIN06 //ljs
#define TXD_2 RTE_GPIO_PORT07_PIN07 //ljs
#define TXD_2 RTE_GPIO_PORT07_PIN07 //ljs
#define L_BiasBitSW_POW RTE_GPIO_PORT12_PIN00
#define L_BiasBitSW_POW RTE_GPIO_PORT12_PIN00
#define
X_1
RTE_GPIO_PORT12_PIN01
#define
MCU_XI
RTE_GPIO_PORT12_PIN01
#define
X_2_EXCLK
RTE_GPIO_PORT12_PIN02
#define
MCU_XO
RTE_GPIO_PORT12_PIN02
#define X
T_1
RTE_GPIO_PORT12_PIN03
#define X
32768_IN
RTE_GPIO_PORT12_PIN03
#define X
T_2
RTE_GPIO_PORT12_PIN04
#define X
32768_OUT
RTE_GPIO_PORT12_PIN04
#define
NONE_2
RTE_GPIO_PORT13_PIN00
#define
MCU_SPI_CS
RTE_GPIO_PORT13_PIN00
#define
Neutral
RTE_GPIO_PORT13_PIN06
#define
RESEVER5_OUT_LOW
RTE_GPIO_PORT13_PIN06
#define SWCLK RTE_GPIO_PORT13_PIN07
#define SWCLK RTE_GPIO_PORT13_PIN07
#define VCC_33_EN_MCU RTE_GPIO_PORT14_PIN00 //ljs
#define VCC_33_EN_MCU RTE_GPIO_PORT14_PIN00 //ljs
#define
L_BiasBitSW_Fuel_OUT
RTE_GPIO_PORT14_PIN01
#define
RightTurn_MUC_OUT
RTE_GPIO_PORT14_PIN01
#define A_Version RTE_GPIO_PORT14_PIN06
#define A_Version RTE_GPIO_PORT14_PIN06
#define
NONE_1
RTE_GPIO_PORT14_PIN07
#define
Engine_Failure_MCU
RTE_GPIO_PORT14_PIN07
typedef
enum
typedef
enum
{
{
...
...
Firmware/Source/Component/AMT630H/AMT630H.c
View file @
97c637e4
...
@@ -141,17 +141,19 @@ void Amt630hUartRecvData(uint16_t u16UARTData)
...
@@ -141,17 +141,19 @@ void Amt630hUartRecvData(uint16_t u16UARTData)
UartRevCnts
=
0
;
UartRevCnts
=
0
;
}
}
}
}
void
AMT630H_RstCtrl
(
void
)
//需要加1530
void
AMT630H_RstCtrl
(
void
)
{
{
RTE_GPIO_Set_Level
(
VCC_33_EN_MCU
,
0
);
RTE_GPIO_Set_Level
(
VCC_33_EN_MCU
,
0
);
//630
RTE_GPIO_Set_Level
(
VCC1V2_AMT_EN
,
0
);
RTE_GPIO_Set_Level
(
VCC1V2_AMT_EN
,
0
);
//630
RTE_GPIO_Set_Level
(
STBYB_LCD_MCU
,
0
);
RTE_GPIO_Set_Level
(
STBYB_LCD_MCU
,
0
);
//lcd
RTE_GPIO_Set_Level
(
MCU_RSTB_LCD
,
0
);
RTE_GPIO_Set_Level
(
MCU_RSTB_LCD
,
0
);
//lcd
Delay_Time_Ctrl
(
10
);
Delay_Time_Ctrl
(
10
);
RTE_GPIO_Set_Level
(
VCC1V2_AMT_EN
,
1
);
RTE_GPIO_Set_Level
(
VCC1V2_AMT_EN
,
1
);
Delay_Time_Ctrl
(
15
);
Delay_Time_Ctrl
(
15
);
RTE_GPIO_Set_Level
(
VCC_33_EN_MCU
,
1
);
RTE_GPIO_Set_Level
(
VCC_33_EN_MCU
,
1
);
Delay_Time_Ctrl
(
30
);
Delay_Time_Ctrl
(
30
);
RTE_GPIO_Set_Level
(
x1530_EN_MCU
,
1
);
//1530
Delay_Time_Ctrl
(
10
);
RTE_GPIO_Set_Level
(
MCU_RSTB_LCD
,
1
);
RTE_GPIO_Set_Level
(
MCU_RSTB_LCD
,
1
);
Delay_Time_Ctrl
(
15
);
Delay_Time_Ctrl
(
15
);
RTE_GPIO_Set_Level
(
STBYB_LCD_MCU
,
1
);
RTE_GPIO_Set_Level
(
STBYB_LCD_MCU
,
1
);
...
@@ -173,33 +175,27 @@ void Amt630hInit(void)
...
@@ -173,33 +175,27 @@ void Amt630hInit(void)
AMT630H_CrcErrCounter
=
0
;
AMT630H_CrcErrCounter
=
0
;
// Param Config
// Param Config
LcdSoundParamterData
.
LcdWidth
=
800
;
LcdSoundParamterData
.
LcdWidth
=
1024
;
LcdSoundParamterData
.
LcdHeight
=
48
0
;
LcdSoundParamterData
.
LcdHeight
=
60
0
;
LcdSoundParamterData
.
LcdBpp
=
32
;
LcdSoundParamterData
.
LcdBpp
=
32
;
LcdSoundParamterData
.
LcdVideoInputValid
=
0
;
LcdSoundParamterData
.
LcdVideoInputValid
=
0
;
LcdSoundParamterData
.
Ark7116ResetPin
=
0
;
LcdSoundParamterData
.
Ark7116ResetPin
=
0
;
LcdSoundParamterData
.
LcdInterfaceType
=
LCD_INTERFACE_TTL
;
LcdSoundParamterData
.
LcdInterfaceType
=
LCD_INTERFACE_TTL
;
LcdSoundParamterData
.
LcdWiringMode
=
LCD_WIRING_MODE_BGR
;
LcdSoundParamterData
.
LcdWiringMode
=
LCD_WIRING_MODE_BGR
;
LcdSoundParamterData
.
LcdWiringBitOrder
=
LCD_WIRING_BIT_ORDER_MSB
;
LcdSoundParamterData
.
LcdWiringBitOrder
=
LCD_WIRING_BIT_ORDER_MSB
;
// `` LcdSoundParamterData.LcdDotClkReverse = 1; /* QJ 60pin TFT */
LcdSoundParamterData
.
LcdDotClkReverse
=
0
;
/* NuoMa 50pin TFT */
LcdSoundParamterData
.
LcdDotClkReverse
=
0
;
/* NuoMa 50pin TFT */
LcdSoundParamterData
.
LvdsPanelFormat
=
LVDS_PANEL_FORMAT_TI
;
LcdSoundParamterData
.
LvdsPanelFormat
=
LVDS_PANEL_FORMAT_TI
;
LcdSoundParamterData
.
LvdsPanelData
=
LVDS_PANEL_DATA_8BIT
;
LcdSoundParamterData
.
LvdsPanelData
=
LVDS_PANEL_DATA_8BIT
;
LcdSoundParamterData
.
LcdTimingVBP
=
16
;
LcdSoundParamterData
.
LcdTimingVBP
=
60
;
LcdSoundParamterData
.
LcdTimingVFP
=
1
6
;
LcdSoundParamterData
.
LcdTimingVFP
=
1
2
;
LcdSoundParamterData
.
LcdTimingVSW
=
4
;
LcdSoundParamterData
.
LcdTimingVSW
=
4
;
LcdSoundParamterData
.
LcdTimingHBP
=
8
;
LcdSoundParamterData
.
LcdTimingHBP
=
20
;
LcdSoundParamterData
.
LcdTimingHFP
=
8
;
LcdSoundParamterData
.
LcdTimingHFP
=
80
;
LcdSoundParamterData
.
LcdTimingHSW
=
4
;
LcdSoundParamterData
.
LcdTimingHSW
=
20
;
LcdSoundParamterData
.
LcdClkFreq
=
25000000
;
LcdSoundParamterData
.
LcdClkFreq
=
48000000
;
LcdSoundParamterData
.
SoundChannelNum
=
0
;
LcdSoundParamterData
.
SoundChannelNum
=
0
;
LcdSoundParamterData
.
SoundFreq
=
AUDIO_FREQ_48K
;
LcdSoundParamterData
.
SoundFreq
=
AUDIO_FREQ_48K
;
...
...
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