Prusa MINI Firmware overview
|
#include "gui_timer.h"
#include <string.h>
#include "stm32f4xx_hal.h"
#include "screen.h"
◆ GUI_MAX_TIMERS
◆ GUI_TIMER_NONE
◆ GUI_TIMER_1SHT
◆ GUI_TIMER_PERI
◆ GUI_MENU_TIMEOUT
#define GUI_MENU_TIMEOUT 3 |
◆ gui_timer_t
◆ gui_timer_new()
int8_t gui_timer_new |
( |
uint8_t |
timer, |
|
|
uint32_t |
ms, |
|
|
int16_t |
win_id |
|
) |
| |
◆ gui_timer_create_oneshot()
int8_t gui_timer_create_oneshot |
( |
uint32_t |
ms, |
|
|
int16_t |
win_id |
|
) |
| |
◆ gui_timer_create_periodical()
int8_t gui_timer_create_periodical |
( |
uint32_t |
ms, |
|
|
int16_t |
win_id |
|
) |
| |
◆ gui_timer_create_timeout()
int8_t gui_timer_create_timeout |
( |
uint32_t |
ms, |
|
|
int16_t |
win_id |
|
) |
| |
◆ gui_timer_delete()
void gui_timer_delete |
( |
int8_t |
id | ) |
|
◆ gui_timers_delete_by_window_id()
void gui_timers_delete_by_window_id |
( |
int16_t |
win_id | ) |
|
◆ gui_timers_cycle()
uint32_t gui_timers_cycle |
( |
void |
| ) |
|
102 uint32_t diff_min = 0xffffffff;
124 }
else if (diff_min < diff)
◆ gui_timer_reset()
void gui_timer_reset |
( |
int8_t |
id | ) |
|
◆ gui_timer_expired()
int8_t gui_timer_expired |
( |
int8_t |
id | ) |
|
◆ gui_get_menu_timeout_id()
int8_t gui_get_menu_timeout_id |
( |
void |
| ) |
|
◆ gui_timers
◆ gui_timer_count
int8_t gui_timer_count = -1 |
◆ gui_menu_timeout_id
int8_t gui_menu_timeout_id = -1 |
uint32_t delay
Definition: gui_timer.c:20
uint32_t f_timer
Definition: gui_timer.c:26
int8_t gui_menu_timeout_id
Definition: gui_timer.c:36
uint32_t f_timer
Definition: window.h:94
#define GUI_MAX_TIMERS
Definition: gui_timer.c:8
void gui_timer_delete(int8_t id)
Definition: gui_timer.c:79
#define GUI_TIMER_NONE
Definition: gui_timer.c:10
int8_t gui_timer_count
Definition: gui_timer.c:35
uint32_t HAL_GetTick(void)
Provides a tick value in millisecond.
Definition: stm32f4xx_hal.c:339
#define GUI_TIMER_1SHT
Definition: gui_timer.c:11
window_t * window_ptr(int16_t id)
Definition: window.c:82
Definition: gui_timer.c:18
const uint8_t[]
Definition: 404_html.c:3
void delay(uint32_t ms)
Definition: wiring_time.c:42
int16_t win_id
Definition: gui_timer.c:29
#define GUI_MENU_TIMEOUT
Definition: gui_timer.c:13
#define GUI_TIMER_PERI
Definition: gui_timer.c:12
int8_t gui_timer_new(uint8_t timer, uint32_t ms, int16_t win_id)
Definition: gui_timer.c:38
#define WINDOW_EVENT_TIMER
Definition: window.h:50
gui_timer_t gui_timers[GUI_MAX_TIMERS]
Definition: gui_timer.c:34
void screen_dispatch_event(window_t *window, uint8_t event, void *param)
Definition: screen.c:103
uint32_t start
Definition: gui_timer.c:19