ESP_Web_Update
This commit is contained in:
@@ -49,7 +49,8 @@ int core0_main(void)
|
||||
Power_Ctrl_Init();
|
||||
ESP8266_Init();
|
||||
Status_LED_Init();
|
||||
|
||||
oled_init();
|
||||
oled_show_string(0, 0, "ESP8266 Test");
|
||||
|
||||
// ON_LED(STATUS_LED_7);
|
||||
// ON_LED(STATUS_LED_8);
|
||||
@@ -57,20 +58,25 @@ int core0_main(void)
|
||||
uint32 t = 0;
|
||||
uint8 dir = 0;
|
||||
|
||||
// Power_Out_Enable(&power_outs[0], 1);
|
||||
// Power_Out_Enable(&power_outs[1], 1);
|
||||
// Power_Out_Enable(&power_outs[2], 1);
|
||||
// Power_Out_Enable(&power_outs[3], 1);
|
||||
// Power_Out_Enable(&power_outs[4], 1);
|
||||
// Power_Out_Enable(&power_outs[5], 1);
|
||||
// Power_Out_Enable(&power_outs[6], 1);
|
||||
// Power_Out_Enable(&power_outs[7], 1);
|
||||
// Power_Out_Enable(&power_outs[0], 1);
|
||||
// Power_Out_Enable(&power_outs[1], 1);
|
||||
// Power_Out_Enable(&power_outs[2], 1);
|
||||
// Power_Out_Enable(&power_outs[3], 1);
|
||||
// Power_Out_Enable(&power_outs[4], 1);
|
||||
// Power_Out_Enable(&power_outs[5], 1);
|
||||
// Power_Out_Enable(&power_outs[6], 1);
|
||||
// Power_Out_Enable(&power_outs[7], 1);
|
||||
|
||||
// Power_Out_Set_PWM(&power_outs[4], 3000);
|
||||
// Power_Out_Set_PWM(&power_outs[5], 4000);
|
||||
// Power_Out_Set_PWM(&power_outs[6], 5000);
|
||||
// Power_Out_Set_PWM(&power_outs[7], 6000);
|
||||
|
||||
Power_Ctrl_Enable_Output(0, 1);
|
||||
Power_Ctrl_Enable_Output(1, 1);
|
||||
Power_Ctrl_Enable_Output(2, 1);
|
||||
Power_Ctrl_Enable_Output(3, 1);
|
||||
|
||||
Power_Ctrl_Enable_Output(4, 1);
|
||||
Power_Ctrl_Enable_Output(5, 1);
|
||||
Power_Ctrl_Enable_Output(6, 1);
|
||||
@@ -80,14 +86,10 @@ int core0_main(void)
|
||||
while (TRUE)
|
||||
{
|
||||
Flash_LED(STATUS_LED_10);
|
||||
ESP8266_Main_Loop_Change_Mode();
|
||||
// if(!esp8266_download_passthrough)
|
||||
// {
|
||||
Power_Vofa_Set();
|
||||
Power_Status_Upload();
|
||||
system_delay_ms(1);
|
||||
// }
|
||||
|
||||
Power_Vofa_Set();
|
||||
Power_Status_Upload();
|
||||
system_delay_ms(1);
|
||||
|
||||
|
||||
// system_delay_ms(1);
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include "zf_common_headfile.h"
|
||||
#pragma section all "cpu1_dsram"
|
||||
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>#pragma section all restore<72><65><EFBFBD><EFBFBD>֮<EFBFBD><D6AE><EFBFBD><EFBFBD>ȫ<EFBFBD>ֱ<EFBFBD><D6B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>CPU1<55><31>RAM<41><4D>
|
||||
|
||||
#include "esp8266.h"
|
||||
// **************************** <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ****************************
|
||||
|
||||
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǿ<EFBFBD>Դ<EFBFBD><D4B4><EFBFBD>չ<EFBFBD><D5B9><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֲ<EFBFBD><D6B2><EFBFBD>߲<EFBFBD><DFB2>Ը<EFBFBD><D4B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
@@ -58,7 +58,6 @@ void core1_main(void)
|
||||
// <20>˴<EFBFBD><CBB4><EFBFBD>д<EFBFBD><D0B4>Ҫѭ<D2AA><D1AD>ִ<EFBFBD>еĴ<D0B5><C4B4><EFBFBD>
|
||||
|
||||
|
||||
|
||||
// <20>˴<EFBFBD><CBB4><EFBFBD>д<EFBFBD><D0B4>Ҫѭ<D2AA><D1AD>ִ<EFBFBD>еĴ<D0B5><C4B4><EFBFBD>
|
||||
}
|
||||
}
|
||||
|
||||
21
user/isr.c
21
user/isr.c
@@ -180,8 +180,13 @@ IFX_INTERRUPT(uart0_tx_isr, 0, UART0_TX_INT_PRIO)
|
||||
IFX_INTERRUPT(uart0_rx_isr, 0, UART0_RX_INT_PRIO)
|
||||
{
|
||||
interrupt_global_enable(0); // <20><><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>Ƕ<EFBFBD><C7B6>
|
||||
// VOFA_Receiver_Callback();
|
||||
ESP8266_Auto_Download_Uart_Hook();
|
||||
uint8 rev_tmp;
|
||||
while(uart_query_byte(VOFA_CLIENT_UART_PORT, &rev_tmp))
|
||||
{
|
||||
VOFA_Receiver_Callback(rev_tmp);
|
||||
}
|
||||
|
||||
// ESP8266_Auto_Download_Uart_Hook();
|
||||
// Flash_LED(STATUS_LED_8);
|
||||
// uint8 rev_tmp;
|
||||
// while(uart_query_byte(UART_0, &rev_tmp))
|
||||
@@ -194,19 +199,15 @@ IFX_INTERRUPT(uart0_rx_isr, 0, UART0_RX_INT_PRIO)
|
||||
#endif // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><DEB8><EFBFBD> DEBUG_UART_INDEX <20><><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><CEB4><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>ŵ<EFBFBD><C5B5><EFBFBD>Ӧ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD>ж<EFBFBD>ȥ
|
||||
}
|
||||
|
||||
void isr_uart0_rx_interrupt_hook_back(uint8 rev_data)
|
||||
{
|
||||
VOFA_Receiver_Callback(rev_data);
|
||||
}
|
||||
// void isr_uart0_rx_interrupt_hook_back(uint8 rev_data)
|
||||
// {
|
||||
// VOFA_Receiver_Callback(rev_data);
|
||||
// }
|
||||
|
||||
// <20><><EFBFBD><EFBFBD>1Ĭ<31><C4AC><EFBFBD><EFBFBD><EFBFBD>ӵ<EFBFBD><D3B5><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD><CDB7><EFBFBD>ô<EFBFBD><C3B4><EFBFBD>
|
||||
IFX_INTERRUPT(uart1_tx_isr, 0, UART1_TX_INT_PRIO)
|
||||
{
|
||||
interrupt_global_enable(0); // <20><><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>Ƕ<EFBFBD><C7B6>
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
IFX_INTERRUPT(uart1_rx_isr, 0, UART1_RX_INT_PRIO)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user