mirror of
https://github.com/zlgopen/awtk.git
synced 2025-05-08 19:44:45 +08:00
improve for stm32
This commit is contained in:
parent
761780abd8
commit
1c7f84f874
@ -106,7 +106,7 @@ ret_t application_init() {
|
||||
progress_bar = progress_bar_create(win, 10, 80, 168, 30);
|
||||
widget_set_value(progress_bar, 40);
|
||||
timer_add(on_timer, progress_bar, 1000);
|
||||
// progress_bar_set_show_text(progress_bar, TRUE);
|
||||
//progress_bar_set_show_text(progress_bar, TRUE);
|
||||
|
||||
widget_on(ok, EVT_CLICK, on_inc, progress_bar);
|
||||
widget_on(cancel, EVT_CLICK, on_dec, progress_bar);
|
||||
@ -116,8 +116,6 @@ ret_t application_init() {
|
||||
timer_add(on_timer, progress_bar, 1000);
|
||||
widget_set_value(progress_bar, 40);
|
||||
progress_bar_set_vertical(progress_bar, TRUE);
|
||||
widget_on(ok, EVT_CLICK, on_inc, progress_bar);
|
||||
widget_on(cancel, EVT_CLICK, on_dec, progress_bar);
|
||||
|
||||
check_button = check_button_create(win, 10, 150, 80, 30);
|
||||
widget_set_text(check_button, L"Book");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/**
|
||||
/**
|
||||
* File: resource_manager.h
|
||||
* Author: Li XianJing <xianjimli@hotmail.com>
|
||||
* Brief: resource manager
|
||||
@ -51,7 +51,7 @@ ret_t resource_manager_add(const resource_info_t* info);
|
||||
const resource_info_t* resource_manager_ref(resource_type_t type, const char* name);
|
||||
ret_t resource_manager_unref(const resource_info_t* info);
|
||||
|
||||
ret_t resource_manager_deinit();
|
||||
ret_t resource_manager_deinit(void);
|
||||
|
||||
END_C_DECLS
|
||||
|
||||
|
@ -53,5 +53,5 @@ ret_t platform_prepare() {
|
||||
|
||||
uint32_t get_time_ms() {
|
||||
/*TODO*/
|
||||
return 0;
|
||||
return RTC_GetCounter();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user