15 changed files with 79 additions and 96 deletions
-
3.vscode/settings.json
-
19Core/Src/stm32f4xx_hal_msp.c
-
3Core/Src/stm32f4xx_it.c
-
18Usr/service/app_core.c
-
36Usr/service/front_end_controler.c
-
15Usr/service/front_end_controler.h
-
8Usr/service/page/Page_SettingTime.c
-
4Usr/service/page/Page_SettingTime.h
-
8Usr/service/page/Page_main.c
-
6Usr/service/page/Page_main.h
-
32Usr/service/page/page_processer.c
-
14Usr/service/page/page_processer.h
-
5stm32basic/ztask.c
-
4stm32basic/ztask.h
-
BINui/ui.HMI
@ -1,12 +1,14 @@ |
|||
#include "Page_SettingTime.h" |
|||
|
|||
#include "front_end_controler.h" |
|||
|
|||
#define TAG "Page_SettingTime" |
|||
|
|||
void OnPageLoade_settingtime(){ |
|||
|
|||
|
|||
void OnPageLoade_settingtime(){ |
|||
ZLOGI(TAG, "OnPageLoade_settingtime"); |
|||
} |
|||
|
|||
void OnPageButton_settingtime(uint8_t bid, uint8_t val){ |
|||
|
|||
ZLOGI(TAG, "OnPageLoade_settingtime bid:%d val:%d", bid, val); |
|||
} |
@ -1,5 +1,5 @@ |
|||
#pragma once |
|||
#include "stm32f4xx_hal.h" |
|||
#include "page_processer.h" |
|||
|
|||
void OnPageLoade_settingtime(); |
|||
void OnPageButton_settingtime(uint8_t bid, uint8_t val); |
|||
void OnPageButton_settingtime(uint8_t bid, uint8_t val); |
@ -1,13 +1,17 @@ |
|||
#include "Page_main.h" |
|||
#include "front_end_controler.h" |
|||
|
|||
#define PAGE pg_main |
|||
#define TAG "Page_main" |
|||
|
|||
|
|||
void OnPageLoad_main(){ |
|||
|
|||
|
|||
|
|||
void OnPageLoad_main(){ |
|||
ZLOGI(TAG, "OnPageLoad_main"); |
|||
} |
|||
|
|||
void OnPageButton_main(uint8_t bid, uint8_t val){ |
|||
|
|||
ZLOGI(TAG, "OnPageButton_main bid:%d val:%d", bid, val); |
|||
} |
@ -1,7 +1,7 @@ |
|||
#pragma once |
|||
|
|||
#include "stm32f4xx_hal.h" |
|||
|
|||
//#include "stm32f4xx_hal.h" |
|||
#include "page_processer.h" |
|||
void OnPageLoad_main(); |
|||
|
|||
void OnPageButton_main(uint8_t bid, uint8_t val); |
|||
void OnPageButton_main(uint8_t bid, uint8_t val); |
@ -1,20 +1,16 @@ |
|||
#pragma once |
|||
|
|||
|
|||
#include "Page_main.h" |
|||
#include "Page_SettingTime.h" |
|||
#include <stdint.h> |
|||
#include "ui.h" |
|||
|
|||
// extern PageProcesser Page_initialize; |
|||
|
|||
// typedef enum{ |
|||
// Page_main, |
|||
// Page_SetingTime, |
|||
// } page_t; |
|||
#include "tjc_processer.h" |
|||
#include "zlog.h" |
|||
|
|||
typedef struct { |
|||
void (*OnPageLoad)(); |
|||
void (*OnPageButton)(uint8_t,uint8_t); |
|||
} PageProcesser; |
|||
|
|||
void page_processer(tjc_event_t* event, uint8_t page); |
|||
void Page_initialize(uint8_t page); |
|||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue