|
|
@ -1,16 +1,18 @@ |
|
|
|
#include "app_core.hpp"
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "remote_controler_event_processer.hpp"
|
|
|
|
#include "service/front_end_controler.hpp"
|
|
|
|
#include "service/pump_ctrl_service.hpp"
|
|
|
|
#include "service/remote_controler.hpp"
|
|
|
|
#include "service/remote_controler_state_sync_service.hpp"
|
|
|
|
#include "valve_state_ctrl_service.hpp"
|
|
|
|
//
|
|
|
|
#include "service/page/page.hpp"
|
|
|
|
#include "ucomponents/zcan/zcan.hpp"
|
|
|
|
//
|
|
|
|
#include "uicontroler/front_end_controler.hpp"
|
|
|
|
#include "uicontroler/page/page.hpp"
|
|
|
|
|
|
|
|
#define TAG "main"
|
|
|
|
using namespace iflytop; |
|
|
@ -174,7 +176,7 @@ void AppCore::test() { |
|
|
|
while (true) { |
|
|
|
// ɨÃèµ½ 0x50 ˵Ã÷EEPROMÔÚÏß
|
|
|
|
uint8_t tx = 0x10; |
|
|
|
uint8_t rx = 0; |
|
|
|
uint8_t rx = 0; |
|
|
|
bool suc = FrontEndControler::ins()->echo(tx, &rx); |
|
|
|
ZLOGI(TAG, "echo suc:%d tx:%x rx:%x", suc, tx, rx); |
|
|
|
osDelay(100); |
|
|
@ -263,6 +265,5 @@ void AppCore::initialize() { |
|
|
|
|
|
|
|
test(); |
|
|
|
|
|
|
|
|
|
|
|
while (true) osDelay(30); |
|
|
|
} |