Commit 589101c4 authored by 何锐's avatar 何锐

feat:完成驱动10屏检测台,引脚需要配置宏定义

parent 4e37a5e1
...@@ -17,6 +17,14 @@ typedef enum ...@@ -17,6 +17,14 @@ typedef enum
{ {
BU91R65_CHANNEL_1 = 0, BU91R65_CHANNEL_1 = 0,
BU91R65_CHANNEL_2, BU91R65_CHANNEL_2,
BU91R65_CHANNEL_3,
BU91R65_CHANNEL_4,
BU91R65_CHANNEL_5,
BU91R65_CHANNEL_6,
BU91R65_CHANNEL_7,
BU91R65_CHANNEL_8,
BU91R65_CHANNEL_9,
BU91R65_CHANNEL_10,
BU91R65_CHANNEL_MAX, BU91R65_CHANNEL_MAX,
} BU91R65_Channel_en_t; /* 段码通道 */ } BU91R65_Channel_en_t; /* 段码通道 */
...@@ -133,7 +141,8 @@ typedef struct ...@@ -133,7 +141,8 @@ typedef struct
*/ */
extern uint8_t BU91R65_Set_Numble(const BU91R65_USER_st_t* pBU91R65User, uint8_t enBU91R65Value, BU91R65_Number_SEG_en_t enBU91R65SEGNum, uint8_t Enable); extern uint8_t BU91R65_Set_Numble(const BU91R65_USER_st_t* pBU91R65User, uint8_t enBU91R65Value, BU91R65_Number_SEG_en_t enBU91R65SEGNum, uint8_t Enable);
void Clear_All_BU91R65(void); extern void Clear_All_BU91R65(void);
extern void Open_All_BU91R65(void);
// void BU91R65_DSIP(void); // void BU91R65_DSIP(void);
#define LIBERTY_STRING_LENTH 17 #define LIBERTY_STRING_LENTH 17
......
...@@ -110,17 +110,7 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent) ...@@ -110,17 +110,7 @@ void Key_Operation_SW2(Key_Event_en_t enKeyEvent)
{ {
if ( enKeyEvent == KEY_EVENT_SHORT_PRESS ) if ( enKeyEvent == KEY_EVENT_SHORT_PRESS )
{ {
if(MENU_CHECK_STEP == 0)
{
if(left_turn == 0)
{
left_turn = 1;
}
else
{
left_turn = 0;
}
}
} }
} }
......
...@@ -709,7 +709,7 @@ uint32_t R485_Send_0x41(void) ...@@ -709,7 +709,7 @@ uint32_t R485_Send_0x41(void)
uint32_t R485_Send_0x42(void) uint32_t R485_Send_0x42(void)
{ {
LINE_OUT_NEG_09 = 1; // LINE_OUT_NEG_09 = 1;
memset(R485_ID42h.Msg, 0xFF, 64); memset(R485_ID42h.Msg, 0xFF, 64);
uint32_t u32sendendflag = 0; uint32_t u32sendendflag = 0;
R485_ID42h.Sig.TPower = 0; //T动力状态 R485_ID42h.Sig.TPower = 0; //T动力状态
...@@ -764,7 +764,7 @@ uint32_t R485_Send_0x42(void) ...@@ -764,7 +764,7 @@ uint32_t R485_Send_0x42(void)
} }
uint32_t R485_Send_ble0x42(void) uint32_t R485_Send_ble0x42(void)
{ {
LINE_OUT_NEG_09 = 1; // LINE_OUT_NEG_09 = 1;
memset(R485_ID42h.Msg, 0xFF, 64); memset(R485_ID42h.Msg, 0xFF, 64);
uint32_t u32sendendflag = 0; uint32_t u32sendendflag = 0;
R485_ID42h.Sig.BLE_MAC01 = 0xAA; //发送mac地址 R485_ID42h.Sig.BLE_MAC01 = 0xAA; //发送mac地址
......
...@@ -74,8 +74,9 @@ void RTE_GPIO_Init(void) ...@@ -74,8 +74,9 @@ void RTE_GPIO_Init(void)
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0; gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0;
gpio_temp.enGPIOPIN = GPIO_PIN_14; gpio_temp.enGPIOPIN = GPIO_PIN_14;
gpio_temp.enGPIOMode = GPIO_MODE_PORT; gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_IN; gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1; gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp);//Pin0-14 LJS 电压采集 正控7 GPIO_Config(&gpio_temp);//Pin0-14 LJS 电压采集 正控7
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_0; gpio_temp.enGPIOPort = GPIO_PORT_GROUP_0;
gpio_temp.enGPIOPIN = GPIO_PIN_6; gpio_temp.enGPIOPIN = GPIO_PIN_6;
...@@ -83,16 +84,17 @@ void RTE_GPIO_Init(void) ...@@ -83,16 +84,17 @@ void RTE_GPIO_Init(void)
gpio_temp.enGPIODir = GPIO_DIR_OUT; gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1; gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp); GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0; gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0;
gpio_temp.enGPIOPIN = GPIO_PIN_9; gpio_temp.enGPIOPIN = GPIO_PIN_9;
gpio_temp.enGPIOMode = GPIO_MODE_PORT; gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_IN; gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1; gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp); GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0; gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0;
gpio_temp.enGPIOPIN = GPIO_PIN_7; gpio_temp.enGPIOPIN = GPIO_PIN_7;
gpio_temp.enGPIOMode = GPIO_MODE_PORT; gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_IN; gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1; gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp); GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_8; gpio_temp.enGPIOPort = GPIO_PORT_GROUP_8;
...@@ -108,6 +110,12 @@ void RTE_GPIO_Init(void) ...@@ -108,6 +110,12 @@ void RTE_GPIO_Init(void)
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1; gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp); GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_10; gpio_temp.enGPIOPort = GPIO_PORT_GROUP_10;
gpio_temp.enGPIOPIN = GPIO_PIN_15;
gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_10;
gpio_temp.enGPIOPIN = GPIO_PIN_14; gpio_temp.enGPIOPIN = GPIO_PIN_14;
gpio_temp.enGPIOMode = GPIO_MODE_PORT; gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_OUT; gpio_temp.enGPIODir = GPIO_DIR_OUT;
...@@ -125,6 +133,30 @@ void RTE_GPIO_Init(void) ...@@ -125,6 +133,30 @@ void RTE_GPIO_Init(void)
gpio_temp.enGPIODir = GPIO_DIR_OUT; gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1; gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp); GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_10;
gpio_temp.enGPIOPIN = GPIO_PIN_9;
gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_10;
gpio_temp.enGPIOPIN = GPIO_PIN_7;
gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_10;
gpio_temp.enGPIOPIN = GPIO_PIN_6;
gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_10;
gpio_temp.enGPIOPIN = GPIO_PIN_12;
gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0; gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0;
gpio_temp.enGPIOPIN = GPIO_PIN_11; gpio_temp.enGPIOPIN = GPIO_PIN_11;
gpio_temp.enGPIOMode = GPIO_MODE_PORT; gpio_temp.enGPIOMode = GPIO_MODE_PORT;
...@@ -134,13 +166,13 @@ void RTE_GPIO_Init(void) ...@@ -134,13 +166,13 @@ void RTE_GPIO_Init(void)
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0; gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0;
gpio_temp.enGPIOPIN = GPIO_PIN_8; gpio_temp.enGPIOPIN = GPIO_PIN_8;
gpio_temp.enGPIOMode = GPIO_MODE_PORT; gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_IN; gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1; gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp); GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0; gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0;
gpio_temp.enGPIOPIN = GPIO_PIN_10; gpio_temp.enGPIOPIN = GPIO_PIN_10;
gpio_temp.enGPIOMode = GPIO_MODE_PORT; gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_IN; gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1; gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp); GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0; gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0;
...@@ -152,19 +184,19 @@ void RTE_GPIO_Init(void) ...@@ -152,19 +184,19 @@ void RTE_GPIO_Init(void)
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0; gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0;
gpio_temp.enGPIOPIN = GPIO_PIN_13; gpio_temp.enGPIOPIN = GPIO_PIN_13;
gpio_temp.enGPIOMode = GPIO_MODE_PORT; gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_IN; gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1; gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp); GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0; gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0;
gpio_temp.enGPIOPIN = GPIO_PIN_14; gpio_temp.enGPIOPIN = GPIO_PIN_14;
gpio_temp.enGPIOMode = GPIO_MODE_PORT; gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_IN; gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1; gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp); GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0; gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0;
gpio_temp.enGPIOPIN = GPIO_PIN_15; gpio_temp.enGPIOPIN = GPIO_PIN_15;
gpio_temp.enGPIOMode = GPIO_MODE_PORT; gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_IN; gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1; gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp); GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_0; gpio_temp.enGPIOPort = GPIO_PORT_GROUP_0;
...@@ -179,6 +211,55 @@ void RTE_GPIO_Init(void) ...@@ -179,6 +211,55 @@ void RTE_GPIO_Init(void)
gpio_temp.enGPIODir = GPIO_DIR_OUT; gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1; gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp); GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_9;
gpio_temp.enGPIOPIN = GPIO_PIN_0;
gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_9;
gpio_temp.enGPIOPIN = GPIO_PIN_1;
gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_9;
gpio_temp.enGPIOPIN = GPIO_PIN_2;
gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_9;
gpio_temp.enGPIOPIN = GPIO_PIN_3;
gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0;
gpio_temp.enGPIOPIN = GPIO_PIN_2;
gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0;
gpio_temp.enGPIOPIN = GPIO_PIN_3;
gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp);
gpio_temp.enGPIOPort = GPIO_PORT_GROUP_AP0;
gpio_temp.enGPIOPIN = GPIO_PIN_4;
gpio_temp.enGPIOMode = GPIO_MODE_PORT;
gpio_temp.enGPIODir = GPIO_DIR_OUT;
gpio_temp.enGPIOAltFun = GPIO_ALTER_FUN_1;
GPIO_Config(&gpio_temp);
// queren = 0; // queren = 0;
// LINE_OUT_NEG_01 = 1; // LINE_OUT_NEG_01 = 1;
// LINE_OUT_NEG_02 = 1; // LINE_OUT_NEG_02 = 1;
......
...@@ -4,56 +4,15 @@ ...@@ -4,56 +4,15 @@
#include "TYW_stdint.h" #include "TYW_stdint.h"
#include "GPIO.h" #include "GPIO.h"
#define LCD_CSB1 GPIO_OUT_PORT08_PIN07
#define LCD_CSB2 GPIO_OUT_PORT10_PIN01 // #define LINE_OUT_NEG_09 GPIO_OUT_PORT10_PIN04 //485_RE
#define LCD_CSB1_DIR GPIO_DIR_PORT08_PIN07
#define LCD_CSB2_DIR GPIO_DIR_PORT10_PIN01
#define LCD_SCK1 GPIO_OUT_PORT10_PIN11
#define LCD_SCK2 GPIO_OUT_PORT10_PIN00
#define LCD_SCK1_DIR GPIO_DIR_PORT10_PIN11
#define LCD_SCK2_DIR GPIO_DIR_PORT10_PIN00
#define LCD_SDI1_OUT GPIO_OUT_PORT10_PIN09
#define LCD_SDI1_INPUT GPIO_IN_PORT10_PIN09
#define LCD_SDI1_DIR GPIO_DIR_PORT10_PIN09
#define LCD_SDI2_OUT GPIO_OUT_PORT08_PIN09
#define LCD_SDI2_INPUT GPIO_IN_PORT08_PIN09
#define LCD_SDI2_DIR GPIO_DIR_PORT08_PIN09
#define LCD_SDO1_OUT GPIO_OUT_PORT10_PIN10
#define LCD_SDO1_INPUT GPIO_IN_PORT10_PIN10
#define LCD_SDO1_DIR GPIO_DIR_PORT10_PIN10
#define LCD_SDO2_OUT GPIO_OUT_PORT08_PIN10
#define LCD_SDO2_INPUT GPIO_IN_PORT08_PIN10
#define LCD_SDO2_DIR GPIO_DIR_PORT08_PIN10
#define LCD_ERROUT1_OUT GPIO_OUT_PORT08_PIN08
#define LCD_ERROUT1_INPUT GPIO_IN_PORT08_PIN08
#define LCD_ERROUT1_DIR GPIO_DIR_PORT08_PIN08
#define LCD_ERROUT2_OUT GPIO_OUT_PORT11_PIN02
#define LCD_ERROUT2_INPUT GPIO_IN_PORT11_PIN02
#define LCD_ERROUT2_DIR GPIO_DIR_PORT11_PIN02
#define LCD_INHB_DIR GPIO_DIR_PORT11_PIN03
#define LCD_INHB_INPUT GPIO_IN_PORT11_PIN03
#define LCD_INHB_OUT GPIO_OUT_PORT11_PIN03
#define LINE_OUT_NEG_09 GPIO_OUT_PORT10_PIN04 //485_RE
#define ONE_START GPIO_OUT_PORT10_PIN14 //一键启动
#define ABC_OUT GPIO_OUT_PORT00_PIN04 //ABC轮动报警输出
#define BCDD_MCU GPIO_OUT_PORT10_PIN00 //脚撑 #define BCDD_MCU GPIO_OUT_PORT10_PIN00 //脚撑
#define RELAY_VBAT_MCU GPIO_OUT_PORT10_PIN10 #define RELAY_VBAT_MCU GPIO_OUT_PORT10_PIN10
#define RELAY_DC12V_MCU GPIO_OUT_PORT10_PIN09
#define RELAY_KEY_MCU GPIO_OUT_PORT10_PIN07
#define RELAY_LIGHTCONTROL_MCU GPIO_OUT_PORT10_PIN06 //光控大灯MCU
#define ZXSW_12V GPIO_OUT_PORT11_PIN05 //转向12V #define ZXSW_12V GPIO_OUT_PORT11_PIN05 //转向12V
#define FULL_BEAM GPIO_OUT_PORT09_PIN04 //远光 #define FULL_BEAM GPIO_OUT_PORT09_PIN04 //远光
#define left_turn GPIO_OUT_PORT09_PIN03 //左转
#define right_turn GPIO_OUT_PORT09_PIN02 //右转
#define SW1 GPIO_IN_PORT09_PIN01 #define SW1 GPIO_IN_PORT09_PIN01
#define SW2 GPIO_IN_PORT09_PIN00 #define SW2 GPIO_IN_PORT09_PIN00
...@@ -76,13 +35,10 @@ ...@@ -76,13 +35,10 @@
/* ---------------------旧的-------------------------- */ /* ---------------------旧的-------------------------- */
// #define POWER_CTRL_KL30 GPIO_OUT_PORT10_PIN13
#define POWER_CTRL_KL15 GPIO_OUT_PORT10_PIN12
#define SW10 GPIO_IN_PORT10_PIN02 #define SW10 GPIO_IN_PORT10_PIN02
#define LINE_OUT_NEG_01 GPIO_OUT_PORT09_PIN06 //12V #define LINE_OUT_NEG_01 GPIO_OUT_PORT09_PIN06 //12V
#define LINE_OUT_NEG_02 GPIO_OUT_PORT09_PIN05 //BAT #define LINE_OUT_NEG_02 GPIO_OUT_PORT09_PIN05 //BAT
#define LINE_OUT_NEG_03 GPIO_OUT_PORT09_PIN04 //BAT~ #define LINE_OUT_NEG_03 GPIO_OUT_PORT09_PIN04 //BAT~
#define LINE_OUT_NEG_04 GPIO_OUT_PORT09_PIN03 //ACC1
#define LINE_FUEL_RES01 GPIO_OUT_PORT00_PIN13 #define LINE_FUEL_RES01 GPIO_OUT_PORT00_PIN13
...@@ -95,9 +51,7 @@ ...@@ -95,9 +51,7 @@
#define LED3 GPIO_OUT_APORT00_PIN10 //右转 #define LED3 GPIO_OUT_APORT00_PIN10 //右转
#define LED4 GPIO_OUT_APORT00_PIN11 //左转 #define LED4 GPIO_OUT_APORT00_PIN11 //左转
#define LINE_OUT_NEG_06 GPIO_OUT_PORT09_PIN01 //位置灯
#define LINE_jinguang GPIO_OUT_PORT10_PIN10 //近光 #define LINE_jinguang GPIO_OUT_PORT10_PIN10 //近光
#define POWER_CTRL_KL30_Current GPIO_OUT_PORT10_PIN14 //蓝牙
//zh: //zh:
/****************************************************************************** /******************************************************************************
......
...@@ -4,6 +4,14 @@ ...@@ -4,6 +4,14 @@
#include "TYW_stdint.h" #include "TYW_stdint.h"
#include "BU91R65_User.h" #include "BU91R65_User.h"
typedef enum
{
SEG_OFF = 0U, // 段码打开
SEG_ON, // 段码关闭
SEG_STATE_MAX
} Seg_State_en_t;
typedef struct typedef struct
{ {
uint8_t u8SelfCheck_Status; uint8_t u8SelfCheck_Status;
...@@ -12,7 +20,7 @@ typedef struct ...@@ -12,7 +20,7 @@ typedef struct
typedef struct typedef struct
{ {
uint8_t u8SEGDisplay_Status; uint8_t u8SEGDisplay_Step;
uint16_t u16SEGDisplay_Count; uint16_t u16SEGDisplay_Count;
}SEGDiaplay_Control_Struct; }SEGDiaplay_Control_Struct;
......
...@@ -113,121 +113,121 @@ void Sys_Run_Mode_10ms_Tasks_Group(void) ...@@ -113,121 +113,121 @@ void Sys_Run_Mode_10ms_Tasks_Group(void)
// RS485_User_Tx_Data(); // RS485_User_Tx_Data();
if(clearOdoFlag == 0) // if(clearOdoFlag == 0)
{ // {
backsend(); // backsend();
// RS485_TX_finish = 0; // RS485_TX_finish = 0;
if(RS485_TX_finish == 0) // if(RS485_TX_finish == 0)
{
LINE_OUT_NEG_09 = 1;
if(LINE_OUT_NEG_09 == 1)
{
if(connectbleFlag == 0)
{
if(zhenduanflag == 0)
{
// R485_Send_Line_0x47(MENU_CHECK_STEP);
RS485_User_Tx_Data();
comparestart = 0;
}
else if(zhenduanflag == 1)
{
R485_Send_0x47();
comparestart = 0;
}
else if(zhenduanflag == 2)
{
R485_Sendcheck_0x47();
}
else
{
;
}
}
else
{
// if(send0x42time<0xFFFFFFFF)
// { // {
// send0x42time++; // // LINE_OUT_NEG_09 = 1;
// if(LINE_OUT_NEG_09 == 1)
// {
// if(connectbleFlag == 0)
// {
// if(zhenduanflag == 0)
// {
// // R485_Send_Line_0x47(MENU_CHECK_STEP);
// RS485_User_Tx_Data();
// comparestart = 0;
// } // }
// if(bleOFFtoONtime<0xFFFFFFFF) // else if(zhenduanflag == 1)
// { // {
// bleOFFtoONtime++; // R485_Send_0x47();
// comparestart = 0;
// } // }
if(RS485_TX_finish == 0) // else if(zhenduanflag == 2)
{ // {
if(startONfalg == 0) // R485_Sendcheck_0x47();
{ // }
if(send0x42time<130) // else
{ // {
R485_Send_0x42(); // ;
Display_TFT_Clear(); // }
} // }
else // else
{ // {
// bleOFFtoONtime = 0; // // if(send0x42time<0xFFFFFFFF)
// LINE_OUT_NEG_01 = 0; // // {
// LINE_OUT_NEG_02 = 0; // // send0x42time++;
// LINE_OUT_NEG_03 = 0; // // }
// LINE_OUT_NEG_04 = 0; // // if(bleOFFtoONtime<0xFFFFFFFF)
startONfalg = 1; // // {
Display_TFT_Clear(); // // bleOFFtoONtime++;
} // // }
} // if(RS485_TX_finish == 0)
else // {
{ // if(startONfalg == 0)
if(startIGONtime >= 50) // {
{ // if(send0x42time<130)
// LINE_OUT_NEG_01 = 1; // {
// LINE_OUT_NEG_02 = 1; // R485_Send_0x42();
// LINE_OUT_NEG_03 = 1; // Display_TFT_Clear();
// LINE_OUT_NEG_04 = 1; // }
R485_Send_0x80(); // else
blename[4] = 0xFF; // {
// // bleOFFtoONtime = 0;
// // LINE_OUT_NEG_01 = 0;
// // LINE_OUT_NEG_02 = 0;
// // LINE_OUT_NEG_03 = 0;
// // LINE_OUT_NEG_04 = 0;
// startONfalg = 1;
// Display_TFT_Clear();
// }
// }
// else
// {
// if(startIGONtime >= 50)
// {
// // LINE_OUT_NEG_01 = 1;
// // LINE_OUT_NEG_02 = 1;
// // LINE_OUT_NEG_03 = 1;
// // LINE_OUT_NEG_04 = 1;
// R485_Send_0x80();
// blename[4] = 0xFF;
} // }
} // }
RS485_send_time = 0; // RS485_send_time = 0;
RS485_TX_finish = 1; // RS485_TX_finish = 1;
} // }
} // }
} // }
// // else
// // {
// // RS485_TX_finish = 0;
// // }
// }
// else // else
// { // {
// RS485_TX_finish = 0; // // backsend();
// // LINE_OUT_NEG_09 = 0;
// if(LINE_OUT_NEG_09 == 0)
// {
// Recv_Byte();
// } // }
}
else
{
// backsend();
LINE_OUT_NEG_09 = 0;
if(LINE_OUT_NEG_09 == 0)
{
Recv_Byte();
}
// }
} // // queren = 0;
// queren = 0; // }
} // else
else // {
{ // MENU_CHECK_STEP = 3;
MENU_CHECK_STEP = 3; // backsend();
backsend(); // RS485_User_Tx_Data();
RS485_User_Tx_Data(); // if(clearodotime < 3000)
if(clearodotime < 3000) // clearodotime++;
clearodotime++; // if(clearodotime >= 1500)
if(clearodotime >= 1500) // {
{ // // Port_SetPortPinLevel(2,9,PortGpioHigh);
// Port_SetPortPinLevel(2,9,PortGpioHigh); // // queren = 1;
// queren = 1; // }
} // }
}
} }
...@@ -339,6 +339,19 @@ void Sys_Run_Mode_100ms_Tasks_Group(void) ...@@ -339,6 +339,19 @@ void Sys_Run_Mode_100ms_Tasks_Group(void)
// // HW_CHECK_IPK_EXIST( ); // // HW_CHECK_IPK_EXIST( );
// Recv_Byte1(); // Recv_Byte1();
// } // }
// GPIO_OUT_PORT11_PIN06 = 1;
// GPIO_OUT_PORT11_PIN04 = 1;
// GPIO_OUT_PORT11_PIN05 = 1;
// GPIO_OUT_PORT10_PIN15 = 1;
// GPIO_OUT_PORT10_PIN04 = 1;
// GPIO_OUT_PORT10_PIN05 = 1;
// GPIO_OUT_PORT00_PIN03 = 1;
// GPIO_OUT_PORT00_PIN01 = 1;
// GPIO_OUT_PORT00_PIN02 = 1;
// GPIO_OUT_PORT00_PIN13 = 1;
// GPIO_OUT_PORT00_PIN11 = 1;
// GPIO_OUT_PORT00_PIN12 = 1;
Display_PageNum(); Display_PageNum();
Check_SEG_Display(); Check_SEG_Display();
......
...@@ -8,28 +8,28 @@ void set_pin_high(uint8_t mode) ...@@ -8,28 +8,28 @@ void set_pin_high(uint8_t mode)
// GPIO_DIR_PORT00_PIN08 = 0; // GPIO_DIR_PORT00_PIN08 = 0;
// TX_OUT = 0; // TX_OUT = 0;
if(mode == 0) // if(mode == 0)
{ // {
TX_OUT = 0; // TX_OUT = 0;
} // }
else // else
{ // {
ONE_START = 1; // ONE_START = 1;
} // }
} }
void set_pin_low(uint8_t mode) void set_pin_low(uint8_t mode)
{ {
// GPIO_DIR_PORT00_PIN08 = 0; // GPIO_DIR_PORT00_PIN08 = 0;
// TX_OUT = 1; // TX_OUT = 1;
if(mode == 0) // if(mode == 0)
{ // {
TX_OUT = 1; // TX_OUT = 1;
} // }
else // else
{ // {
ONE_START = 0; // ONE_START = 0;
} // }
} }
void lsdn_delay_us(uint32_t us) void lsdn_delay_us(uint32_t us)
{ {
......
...@@ -12,6 +12,38 @@ BU91R65_Handler_st_t g_stBU91R65Chip1; ...@@ -12,6 +12,38 @@ BU91R65_Handler_st_t g_stBU91R65Chip1;
// uint8_t g_u8BU91R65Chip1Buffer[BU91R65_BUFFER_SIZE]; // uint8_t g_u8BU91R65Chip1Buffer[BU91R65_BUFFER_SIZE];
BU91R65DDRAMUnion g_stBU91R65Chip1Seg; BU91R65DDRAMUnion g_stBU91R65Chip1Seg;
BU91R65_Handler_st_t g_stBU91R65Chip2;
// uint8_t g_u8BU91R65Chip0Buffer[BU91R65_BUFFER_SIZE];
BU91R65DDRAMUnion g_stBU91R65Chip2Seg;
BU91R65_Handler_st_t g_stBU91R65Chip3;
// uint8_t g_u8BU91R65Chip1Buffer[BU91R65_BUFFER_SIZE];
BU91R65DDRAMUnion g_stBU91R65Chip3Seg;
BU91R65_Handler_st_t g_stBU91R65Chip4;
// uint8_t g_u8BU91R65Chip1Buffer[BU91R65_BUFFER_SIZE];
BU91R65DDRAMUnion g_stBU91R65Chip4Seg;
BU91R65_Handler_st_t g_stBU91R65Chip5;
// uint8_t g_u8BU91R65Chip1Buffer[BU91R65_BUFFER_SIZE];
BU91R65DDRAMUnion g_stBU91R65Chip5Seg;
BU91R65_Handler_st_t g_stBU91R65Chip6;
// uint8_t g_u8BU91R65Chip1Buffer[BU91R65_BUFFER_SIZE];
BU91R65DDRAMUnion g_stBU91R65Chip6Seg;
BU91R65_Handler_st_t g_stBU91R65Chip7;
// uint8_t g_u8BU91R65Chip1Buffer[BU91R65_BUFFER_SIZE];
BU91R65DDRAMUnion g_stBU91R65Chip7Seg;
BU91R65_Handler_st_t g_stBU91R65Chip8;
// uint8_t g_u8BU91R65Chip1Buffer[BU91R65_BUFFER_SIZE];
BU91R65DDRAMUnion g_stBU91R65Chip8Seg;
BU91R65_Handler_st_t g_stBU91R65Chip9;
// uint8_t g_u8BU91R65Chip1Buffer[BU91R65_BUFFER_SIZE];
BU91R65DDRAMUnion g_stBU91R65Chip9Seg;
// BU91R65_Handler_st_t g_stBU98R10Chip2; // BU91R65_Handler_st_t g_stBU98R10Chip2;
// uint8_t g_u8BU98R10Chip2Buffer[BU91R65_BUFFER_SIZE]; // uint8_t g_u8BU98R10Chip2Buffer[BU91R65_BUFFER_SIZE];
// BU91R65DDRAMUnion g_stBU98R10Chip2Seg; // BU91R65DDRAMUnion g_stBU98R10Chip2Seg;
...@@ -52,6 +84,69 @@ void BU91R65_Register(void) ...@@ -52,6 +84,69 @@ void BU91R65_Register(void)
stConfig.pu8Buffer = &g_stBU91R65Chip1Seg; stConfig.pu8Buffer = &g_stBU91R65Chip1Seg;
BU91R65_Add(&g_stBU91R65Chip1, &stConfig); BU91R65_Add(&g_stBU91R65Chip1, &stConfig);
stConfig.u8DefaultVal = 0x00U;
stConfig.u8FrameFreq = BU98R10_FRAME_FREQ_120_0_Hz;
stConfig.u16PinCS = BU91R65_Chip0_Set_nCSb;
stConfig.u16PinSCLK = BU91R65_Chip0_Set_SCLKb;
stConfig.u16PinSD = BU91R65_Chip0_Set_SDb;
stConfig.pu8Buffer = &g_stBU91R65Chip2Seg;
BU91R65_Add(&g_stBU91R65Chip2, &stConfig);
stConfig.u16PinCS = BU91R65_Chip1_Set_nCSb;
stConfig.u16PinSCLK = BU91R65_Chip1_Set_SCLKb;
stConfig.u16PinSD = BU91R65_Chip1_Set_SDb;
stConfig.pu8Buffer = &g_stBU91R65Chip3Seg;
BU91R65_Add(&g_stBU91R65Chip3, &stConfig);
stConfig.u8DefaultVal = 0x00U;
stConfig.u8FrameFreq = BU98R10_FRAME_FREQ_120_0_Hz;
stConfig.u16PinCS = BU91R65_Chip0_Set_nCSa;
stConfig.u16PinSCLK = BU91R65_Chip0_Set_SCLKa;
stConfig.u16PinSD = BU91R65_Chip0_Set_SDa;
stConfig.pu8Buffer = &g_stBU91R65Chip4Seg;
BU91R65_Add(&g_stBU91R65Chip4, &stConfig);
stConfig.u16PinCS = BU91R65_Chip1_Set_nCSa;
stConfig.u16PinSCLK = BU91R65_Chip1_Set_SCLKa;
stConfig.u16PinSD = BU91R65_Chip1_Set_SDa;
stConfig.pu8Buffer = &g_stBU91R65Chip5Seg;
BU91R65_Add(&g_stBU91R65Chip5, &stConfig);
stConfig.u8DefaultVal = 0x00U;
stConfig.u8FrameFreq = BU98R10_FRAME_FREQ_120_0_Hz;
stConfig.u16PinCS = BU91R65_Chip0_Set_nCSc;
stConfig.u16PinSCLK = BU91R65_Chip0_Set_SCLKc;
stConfig.u16PinSD = BU91R65_Chip0_Set_SDc;
stConfig.pu8Buffer = &g_stBU91R65Chip6Seg;
BU91R65_Add(&g_stBU91R65Chip6, &stConfig);
stConfig.u16PinCS = BU91R65_Chip1_Set_nCSc;
stConfig.u16PinSCLK = BU91R65_Chip1_Set_SCLKc;
stConfig.u16PinSD = BU91R65_Chip1_Set_SDc;
stConfig.pu8Buffer = &g_stBU91R65Chip7Seg;
BU91R65_Add(&g_stBU91R65Chip7, &stConfig);
stConfig.u8DefaultVal = 0x00U;
stConfig.u8FrameFreq = BU98R10_FRAME_FREQ_120_0_Hz;
stConfig.u16PinCS = BU91R65_Chip0_Set_nCSd;
stConfig.u16PinSCLK = BU91R65_Chip0_Set_SCLKd;
stConfig.u16PinSD = BU91R65_Chip0_Set_SDd;
stConfig.pu8Buffer = &g_stBU91R65Chip8Seg;
BU91R65_Add(&g_stBU91R65Chip8, &stConfig);
stConfig.u16PinCS = BU91R65_Chip1_Set_nCSd;
stConfig.u16PinSCLK = BU91R65_Chip1_Set_SCLKd;
stConfig.u16PinSD = BU91R65_Chip1_Set_SDd;
stConfig.pu8Buffer = &g_stBU91R65Chip9Seg;
BU91R65_Add(&g_stBU91R65Chip9, &stConfig);
// stConfig.u16PinCS = RTE_GPIO_PORT11_PIN07; // stConfig.u16PinCS = RTE_GPIO_PORT11_PIN07;
// stConfig.u16PinSCLK = RTE_GPIO_PORT11_PIN04; // stConfig.u16PinSCLK = RTE_GPIO_PORT11_PIN04;
// stConfig.u16PinSD = RTE_GPIO_PORT10_PIN10; // stConfig.u16PinSD = RTE_GPIO_PORT10_PIN10;
......
...@@ -717,6 +717,15 @@ typedef union ...@@ -717,6 +717,15 @@ typedef union
}BU91R65DDRAMUnion; }BU91R65DDRAMUnion;
extern BU91R65DDRAMUnion g_stBU91R65Chip0Seg; extern BU91R65DDRAMUnion g_stBU91R65Chip0Seg;
extern BU91R65DDRAMUnion g_stBU91R65Chip1Seg;
extern BU91R65DDRAMUnion g_stBU91R65Chip2Seg;
extern BU91R65DDRAMUnion g_stBU91R65Chip3Seg;
extern BU91R65DDRAMUnion g_stBU91R65Chip4Seg;
extern BU91R65DDRAMUnion g_stBU91R65Chip5Seg;
extern BU91R65DDRAMUnion g_stBU91R65Chip6Seg;
extern BU91R65DDRAMUnion g_stBU91R65Chip7Seg;
extern BU91R65DDRAMUnion g_stBU91R65Chip8Seg;
extern BU91R65DDRAMUnion g_stBU91R65Chip9Seg;
#define BU91R65_CHIP0_DDRAM g_stBU91R65Chip0Seg.Byte #define BU91R65_CHIP0_DDRAM g_stBU91R65Chip0Seg.Byte
...@@ -1362,9 +1371,23 @@ extern BU91R65DDRAMUnion g_stBU91R65Chip0Seg; ...@@ -1362,9 +1371,23 @@ extern BU91R65DDRAMUnion g_stBU91R65Chip0Seg;
#define BU91R65_CHIP0_COM3_SEG159 (g_stBU91R65Chip0Seg.BU91R65_Seg_st_t.u8Seg159COM3) #define BU91R65_CHIP0_COM3_SEG159 (g_stBU91R65Chip0Seg.BU91R65_Seg_st_t.u8Seg159COM3)
extern BU91R65_Handler_st_t g_stBU91R65Chip1; extern BU91R65_Handler_st_t g_stBU91R65Chip1;
extern BU91R65_Handler_st_t g_stBU91R65Chip2;
extern BU91R65_Handler_st_t g_stBU91R65Chip3;
extern BU91R65_Handler_st_t g_stBU91R65Chip4;
extern BU91R65_Handler_st_t g_stBU91R65Chip5;
// extern BU91R65_Handler_st_t g_stBU91R65Chip6;
// extern BU91R65_Handler_st_t g_stBU91R65Chip7;
// extern BU91R65_Handler_st_t g_stBU91R65Chip8;
// extern BU91R65_Handler_st_t g_stBU91R65Chip9;
#define BU91R65_CHIP1 (&g_stBU91R65Chip1) #define BU91R65_CHIP1 (&g_stBU91R65Chip1)
#define BU91R65_CHIP2 (&g_stBU91R65Chip2)
#define BU91R65_CHIP3 (&g_stBU91R65Chip3)
#define BU91R65_CHIP4 (&g_stBU91R65Chip4)
#define BU91R65_CHIP5 (&g_stBU91R65Chip5)
// #define BU91R65_CHIP6 (&g_stBU91R65Chip6)
// #define BU91R65_CHIP7 (&g_stBU91R65Chip7)
// #define BU91R65_CHIP8 (&g_stBU91R65Chip8)
// #define BU91R65_CHIP9 (&g_stBU91R65Chip9)
extern BU91R65DDRAMUnion g_stBU91R65Chip1Seg; extern BU91R65DDRAMUnion g_stBU91R65Chip1Seg;
#define BU91R65_CHIP1_DDRAM g_stBU91R65Chip1Seg.Byte #define BU91R65_CHIP1_DDRAM g_stBU91R65Chip1Seg.Byte
...@@ -2013,8 +2036,24 @@ extern BU91R65DDRAMUnion g_stBU91R65Chip1Seg; ...@@ -2013,8 +2036,24 @@ extern BU91R65DDRAMUnion g_stBU91R65Chip1Seg;
// #define CHIP1_SEG(n,m) (g_stBU91R65Chip0Seg.BU91R65_Seg_st_t.u8Seg##n##COM##m) // #define CHIP1_SEG(n,m) (g_stBU91R65Chip0Seg.BU91R65_Seg_st_t.u8Seg##n##COM##m)
// #define CHIP2_SEG(m,n) (g_stBU91R65Chip1Seg.BU91R65_Seg_st_t.u8Seg##n##COM##m) // #define CHIP2_SEG(m,n) (g_stBU91R65Chip1Seg.BU91R65_Seg_st_t.u8Seg##n##COM##m)
#define CHIP1_SEG(m,n) (g_stBU91R65Chip0Seg.BU91R65_Seg_st_t.u8Seg##n##COM##m) // #define CHIP1_SEG(m,n) (g_stBU91R65Chip0Seg.BU91R65_Seg_st_t.u8Seg##n##COM##m)
#define CHIP2_SEG(m,n) (g_stBU91R65Chip1Seg.BU91R65_Seg_st_t.u8Seg##n##COM##m) #define CHIP2_SEG(m,n) (g_stBU91R65Chip1Seg.BU91R65_Seg_st_t.u8Seg##n##COM##m)
// #define CHIP3_SEG(m,n) (g_stBU91R65Chip2Seg.BU91R65_Seg_st_t.u8Seg##n##COM##m)
#define CHIP4_SEG(m,n) (g_stBU91R65Chip3Seg.BU91R65_Seg_st_t.u8Seg##n##COM##m)
// #define CHIP5_SEG(m,n) (g_stBU91R65Chip4Seg.BU91R65_Seg_st_t.u8Seg##n##COM##m)
#define CHIP6_SEG(m,n) (g_stBU91R65Chip5Seg.BU91R65_Seg_st_t.u8Seg##n##COM##m)
// #define CHIP7_SEG(m,n) (g_stBU91R65Chip6Seg.BU91R65_Seg_st_t.u8Seg##n##COM##m)
#define CHIP8_SEG(m,n) (g_stBU91R65Chip7Seg.BU91R65_Seg_st_t.u8Seg##n##COM##m)
// #define CHIP9_SEG(m,n) (g_stBU91R65Chip8Seg.BU91R65_Seg_st_t.u8Seg##n##COM##m)
#define CHIP10_SEG(m,n) (g_stBU91R65Chip9Seg.BU91R65_Seg_st_t.u8Seg##n##COM##m)
#define CHIP_SEG(m, n, val) do { \
CHIP2_SEG(m, n) = val; \
CHIP4_SEG(m, n) = val; \
CHIP6_SEG(m, n) = val; \
CHIP8_SEG(m, n) = val; \
CHIP10_SEG(m, n) = val; \
} while(0)
// extern BU91R65_Handler_st_t g_stBU98R10Chip2; // extern BU91R65_Handler_st_t g_stBU98R10Chip2;
// #define BU98R10_CHIP2 (&g_stBU98R10Chip2) // #define BU98R10_CHIP2 (&g_stBU98R10Chip2)
......
...@@ -153,11 +153,11 @@ typedef union ...@@ -153,11 +153,11 @@ typedef union
extern D8080_data_t D8080_data; extern D8080_data_t D8080_data;
#define SIM_8080_P_A0 GPIO_OUT_PORT11_PIN01 // #define SIM_8080_P_A0 GPIO_OUT_PORT11_PIN01
// #define SIM_8080_P_A0 GPIO_OUT_PORT11_PIN05 // #define SIM_8080_P_A0 GPIO_OUT_PORT11_PIN05
#define SIM_8080_P_nRD GPIO_OUT_PORT11_PIN04 // #define SIM_8080_P_nRD GPIO_OUT_PORT11_PIN04
#define SIM_8080_P_nWR GPIO_OUT_PORT11_PIN03 // #define SIM_8080_P_nWR GPIO_OUT_PORT11_PIN03
#define SIM_8080_P_nCS GPIO_OUT_PORT11_PIN02 // #define SIM_8080_P_nCS GPIO_OUT_PORT11_PIN02
......
...@@ -78,8 +78,12 @@ void Sys_Startup_Init(void) ...@@ -78,8 +78,12 @@ void Sys_Startup_Init(void)
// GPIO_DIR_PORT00_PIN08 = 1; // GPIO_DIR_PORT00_PIN08 = 1;
// TX_OUT = 0; // TX_OUT = 0;
ONE_START = 1;
ABC_OUT = 0; LCD_INHB = 1;
LCD_INHBa = 1;
LCD_INHBb = 1;
LCD_INHBc = 1;
LCD_INHBd = 1;
GPIO_SET_KEPP( ); GPIO_SET_KEPP( );
RTE_ADC_Init( ); RTE_ADC_Init( );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment