BigW Consortium Gitlab

Commit 7b98b1e7 by Kiss-Vamosi Gabor

header udated with __cplusplus define

parent 6f1d63bf
......@@ -133,6 +133,11 @@ void lv_app_init(void)
dsc = ll_ins_head(&app_dsc_ll);
*dsc = lv_app_files_init();
#endif
#if USE_LV_APP_BENCHMARK != 0
dsc = ll_ins_head(&app_dsc_ll);
*dsc = lv_app_benchmark_init();
#endif
#if USE_LV_APP_WIFI != 0
dsc = ll_ins_head(&app_dsc_ll);
......@@ -144,10 +149,6 @@ void lv_app_init(void)
*dsc = lv_app_gsm_init();
#endif
#if USE_LV_APP_BENCHMARK != 0
dsc = ll_ins_head(&app_dsc_ll);
*dsc = lv_app_benchmark_init();
#endif
}
/**
......@@ -232,6 +233,7 @@ lv_obj_t * lv_app_sc_open(lv_app_inst_t * app)
lv_label_set_long_mode(app->sc_title, LV_LABEL_LONG_DOTS);
lv_label_set_text(app->sc_title, app->name);
lv_obj_align_us(app->sc_title, NULL, LV_ALIGN_IN_TOP_MID, 0, LV_DPI / 20);
lv_obj_set_protect(app->sc_title, LV_PROTECT_POS);
} else {
app->sc_title = NULL;
}
......@@ -565,7 +567,7 @@ static lv_action_res_t lv_app_menu_rel_action(lv_obj_t * app_btn, lv_dispi_t * d
lv_app_dsc_t ** dsc;
lv_obj_t * elem;
LL_READ(app_dsc_ll, dsc) {
LL_READ_BACK(app_dsc_ll, dsc) {
if(((*dsc)->mode & LV_APP_MODE_NOT_LIST) == 0) {
elem = lv_list_add(app_list, NULL, (*dsc)->name, lv_app_menu_elem_rel_action);
lv_obj_set_free_p(elem, *dsc);
......
......@@ -6,6 +6,10 @@
#ifndef LV_APP_H
#define LV_APP_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -244,6 +248,10 @@ lv_app_style_t * lv_app_style_get(void);
#include "lvgl/lv_appx/lv_app_gsm.h"
#include "lvgl/lv_appx/lv_app_benchmark.h"
#endif /*LV_APP_ENABLE != 0*/
#endif /*LV_APP_ENABLE*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_APP_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_APP_FSEL_H
#define LV_APP_FSEL_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -62,6 +66,10 @@ void lv_app_fsel_close(void);
* MACROS
**********************/
#endif /*LV_APP_ENABLE != 0*/
#endif /*LV_APP_ENABLE*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_APP_FSEL_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_APP_KB_H
#define LV_APP_KB_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -57,6 +61,11 @@ void lv_app_kb_close(bool ok);
/**********************
* MACROS
**********************/
#endif /*LV_APP_ENABLE != 0*/
#endif /*LV_APP_ENABLE*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_APP_KB_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_APP_NOTICE_H
#define LV_APP_NOTICE_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -58,6 +62,11 @@ lv_obj_t * lv_app_notice_add(const char * format, ...);
* MACROS
**********************/
#endif /*LV_APP_NOTICE_H*/
#endif /*LV_APP_ENABLE*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_APP_NOTICE_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_APP_BENCHMARK_H
#define LV_APP_BENCHMARK_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -36,4 +40,8 @@ const lv_app_dsc_t * lv_app_benchmark_init(void);
#endif /*LV_APP_ENABLE != 0 && USE_LV_APP_BENCHMARK != 0*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* LV_APP_BENCHMARK_H */
......@@ -6,6 +6,10 @@
#ifndef LV_APP_EXAMPLE_H
#define LV_APP_EXAMPLE_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -36,4 +40,9 @@ const lv_app_dsc_t * lv_app_example_init(void);
#endif /*LV_APP_ENABLE != 0 && USE_LV_APP_EXAMPLE != 0*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* LV_APP_EXAMPLE_H */
......@@ -6,6 +6,10 @@
#ifndef LV_APP_FILES_H
#define LV_APP_FILES_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -36,4 +40,8 @@ const lv_app_dsc_t * lv_app_files_init(void);
#endif /*LV_APP_ENABLE != 0 && USE_LV_APP_FILES != 0*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* LV_APP_EXAMPLE_H */
......@@ -6,6 +6,10 @@
#ifndef LV_APP_GSM_H
#define LV_APP_GSM_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -36,4 +40,8 @@ const lv_app_dsc_t * lv_app_gsm_init(void);
#endif /*LV_APP_ENABLE != 0 && USE_LV_APP_EXAMPLE != 0*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* LV_APP_EXAMPLE_H */
......@@ -6,6 +6,10 @@
#ifndef LV_APP_PHANTOM_H
#define LV_APP_PHANTOM_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -39,4 +43,8 @@ const lv_app_dsc_t * lv_app_phantom_init(void);
#endif /*LV_APP_ENABLE != 0 && USE_LV_APP_PHANTOM != 0*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* LV_APP_PHANTOM_H */
......@@ -6,6 +6,10 @@
#ifndef LV_APP_SYSMON_H
#define LV_APP_SYSMON_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -36,4 +40,8 @@ const lv_app_dsc_t * lv_app_sysmon_init(void);
#endif /*LV_APP_ENABLE != 0 && USE_LV_APP_SYSMON != 0*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* LV_APP_SYSMON_H */
......@@ -6,6 +6,10 @@
#ifndef LV_APP_TERMINAL_H
#define LV_APP_TERMINAL_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -43,4 +47,8 @@ const lv_app_dsc_t * lv_app_terminal_init(void);
#endif /*LV_APP_ENABLE != 0 && USE_LV_APP_TERMINAL != 0*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* LV_APP_TERMINAL_H */
......@@ -6,6 +6,10 @@
#ifndef LV_APP_WIFI_H
#define LV_APP_WIFI_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -36,4 +40,8 @@ const lv_app_dsc_t * lv_app_wifi_init(void);
#endif /*LV_APP_ENABLE != 0 && USE_LV_APP_EXAMPLE != 0*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* LV_APP_EXAMPLE_H */
......@@ -109,6 +109,9 @@
/*Gauge (dependencies:bar, lmeter; misc: trigo)*/
#define USE_LV_GAUGE 1
#if USE_LV_GAUGE != 0
#define LV_GAUGE_MAX_NEEDLE 4 /*Max number of needles. Used in the style.*/
#endif
/*Chart (dependencies: -)*/
#define USE_LV_CHART 1
......@@ -149,7 +152,6 @@
/*Slider (dependencies: lv_bar)*/
#define USE_LV_SLIDER 1
/*==================
* LV APP SETTINGS
* =================*/
......@@ -163,8 +165,8 @@
*****************************/
#define LV_APP_DESKTOP 1 /*Create a desktop-like environment*/
#define LV_APP_SC_WIDTH (LV_HOR_RES / 4) /*Shortcut width*/
#define LV_APP_SC_HEIGHT (LV_VER_RES / 3) /*Shortcut height*/
#define LV_APP_SC_WIDTH (LV_DPI * 2) /*Shortcut width*/
#define LV_APP_SC_HEIGHT (3 * LV_DPI / 2) /*Shortcut height*/
#define LV_APP_FONT_SMALL FONT_DEJAVU_20 /*A small font*/
#define LV_APP_FONT_MEDIUM FONT_DEFAULT /*A medium font*/
#define LV_APP_FONT_LARGE FONT_DEJAVU_40 /*A large font*/
......@@ -242,6 +244,12 @@
#define LV_APP_FILES_CHUNK_MAX_SIZE 1024 /*Max chunk size when the user sets it*/
#endif /*USE_LV_APP_FILES != 0*/
/*Benchmark*/
#define USE_LV_APP_BENCHMARK 1
#if USE_LV_APP_BENCHMARK != 0
/*No settings*/
#endif
/*WiFi (requires hal/wifi)*/
#define USE_LV_APP_WIFI 0
#if USE_LV_APP_WIFI != 0
......
......@@ -6,6 +6,10 @@
#ifndef LV_DRAW_H
#define LV_DRAW_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -81,4 +85,9 @@ void lv_draw_line(const point_t * p1, const point_t * p2, const area_t * mask_p,
* MACROS
**********************/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_DRAW_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_DRAW_RBASIC_H
#define LV_DRAW_RBASIC_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -68,4 +72,9 @@ void lv_rmap(const area_t * cords_p, const area_t * mask_p,
* MACROS
**********************/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_DRAW_RBASIC_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_DRAW_VBASIC_H
#define LV_DRAW_VBASIC_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -74,6 +78,10 @@ void lv_vmap(const area_t * cords_p, const area_t * mask_p,
* MACROS
**********************/
#endif
#endif /*LV_VDB_SIZE != 0*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_DRAW_RBASIC_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_DISPI_H
#define LV_DISPI_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -103,4 +107,9 @@ void lv_dispi_wait_release(lv_dispi_t * dispi);
* MACROS
**********************/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_DISPI_H*/
......@@ -26,7 +26,6 @@
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
......@@ -1472,6 +1471,7 @@ static void lv_style_refr_core(void * style_p, lv_obj_t * obj)
lv_obj_t * i;
LL_READ(obj->child_ll, i) {
if(i->style_p == style_p || style_p == NULL) {
lv_obj_inv(i);
i->signal_f(i, LV_SIGNAL_STYLE_CHG, NULL);
lv_obj_inv(i);
}
......
......@@ -6,6 +6,10 @@
#ifndef LV_OBJ_H
#define LV_OBJ_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -127,7 +131,7 @@ typedef enum
LV_PROTECT_CHILD_CHG = 0x01, /*Disable the child change signal. Used by the library*/
LV_PROTECT_PARENT = 0x02, /*Prevent automatic parent change (e.g. in lv_page)*/
LV_PROTECT_POS = 0x04, /*Prevent automatic positioning (e.g. in lv_cont layout)*/
LV_PROTECT_FOLLOW = 0x08, /*Prevent an object follow in automatic ordering (e.g. in lv_cont PRETTY layout)*/
LV_PROTECT_FOLLOW = 0x08, /*Prevent the object be followed in automatic ordering (e.g. in lv_cont PRETTY layout)*/
}lv_protect_t;
typedef enum
......@@ -665,4 +669,9 @@ void * lv_obj_get_free_p(lv_obj_t * obj);
* MACROS
**********************/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_OBJ_H*/
......@@ -49,6 +49,7 @@ static void lv_refr_obj(lv_obj_t * obj, const area_t * mask_ori_p);
static lv_join_t inv_buf[LV_INV_FIFO_SIZE];
static uint16_t inv_buf_p;
static void (*monitor_cb)(uint32_t, uint32_t);
static uint32_t px_num;
/**********************
* MACROS
......@@ -146,12 +147,25 @@ void lv_refr_set_monitor_cb(void (*cb)(uint32_t, uint32_t))
*/
static void lv_refr_task(void * param)
{
uint32_t start = systick_get();
lv_refr_join_area();
lv_refr_areas();
bool refr_done = false;
if(inv_buf_p != 0) refr_done = true;
memset(inv_buf, 0, sizeof(inv_buf));
inv_buf_p = 0;
/* In the callback lv_obj_inv can occur
* therefore be sure the inv_buf is cleared prior to it*/
if(refr_done != false) {
if(monitor_cb != NULL) {
monitor_cb(systick_elaps(start), px_num);
}
}
}
......@@ -200,9 +214,8 @@ static void lv_refr_join_area(void)
*/
static void lv_refr_areas(void)
{
px_num = 0;
uint32_t i;
uint32_t start = systick_get();
uint32_t px_num = 0;
for(i = 0; i < inv_buf_p; i++) {
/*Refresh the unjoined areas*/
......@@ -218,12 +231,6 @@ static void lv_refr_areas(void)
}
}
if(inv_buf_p != 0) {
if(monitor_cb != NULL) {
monitor_cb(systick_elaps(start), px_num);
}
}
}
#if LV_VDB_SIZE == 0
......
......@@ -3,12 +3,20 @@
*
*/
#ifndef LV_REFR_H
#define LV_REFR_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "lv_obj.h"
#include <stdbool.h>
/*********************
* DEFINES
*********************/
......@@ -49,6 +57,14 @@ void lv_inv_area(const area_t * area_p);
* @param cb pointer to a callback function (void my_refr_cb(uint32_t time_ms, uint32_t px_num))
*/
void lv_refr_set_monitor_cb(void (*cb)(uint32_t, uint32_t));
/**********************
* STATIC FUNCTIONS
**********************/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_REFR_H*/
......@@ -75,7 +75,7 @@ void lv_style_init (void)
lv_style_scr.font = font_get(FONT_DEFAULT);
lv_style_scr.letter_space = 1 * LV_DOWNSCALE;
lv_style_scr.line_space = 3 * LV_DOWNSCALE;
lv_style_scr.line_space = 2 * LV_DOWNSCALE;
lv_style_scr.txt_align = LV_TXT_ALIGN_LEFT;
lv_style_scr.img_recolor = OPA_TRANSP;
lv_style_scr.line_width = 1 * LV_DOWNSCALE;
......
......@@ -6,6 +6,10 @@
#ifndef LV_STYLE_H
#define LV_STYLE_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -102,4 +106,9 @@ void lv_style_cpy(lv_style_t * dest, const lv_style_t * src);
* MACROS
**********************/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_STYLE_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_VDB_H
#define LV_VDB_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -51,6 +55,10 @@ void lv_vdb_flush(void);
* MACROS
**********************/
#endif
#endif /*LV_VDB_SIZE != 0*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_VDB_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_BAR_H
#define LV_BAR_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -118,6 +122,10 @@ lv_style_t * lv_bar_get_style_indic(lv_obj_t * bar);
* MACROS
**********************/
#endif
#endif /*USE_LV_BAR*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_BAR_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_BTN_H
#define LV_BTN_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -156,6 +160,10 @@ lv_style_t * lv_btn_get_style(lv_obj_t * btn, lv_btn_state_t state);
* MACROS
**********************/
#endif
#endif /*USE_LV_BTN*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_BTN_H*/
......@@ -7,6 +7,10 @@
#ifndef LV_BTNM_H
#define LV_BTNM_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -120,4 +124,8 @@ lv_style_t * lv_btnm_get_style_btn(lv_obj_t * btnm, lv_btn_state_t state);
#endif /*USE_LV_BTNM*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_BTNM_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_CB_H
#define LV_CB_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -87,6 +91,10 @@ lv_obj_t * lv_cb_get_bullet(lv_obj_t * cb);
* MACROS
**********************/
#endif
#endif /*USE_LV_CB*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_CB_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_CHART_H
#define LV_CHART_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -190,6 +194,10 @@ opa_t lv_chart_get_dl_dark(lv_obj_t * chart, opa_t dark_eff);
* MACROS
**********************/
#endif
#endif /*USE_LV_CHART*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_CHART_H*/
......@@ -382,6 +382,8 @@ static void lv_cont_layout_center(lv_obj_t * cont)
cord_t h_tot = 0;
LL_READ(cont->child_ll, child) {
if(lv_obj_get_hidden(child) != false ||
lv_obj_is_protected(child, LV_PROTECT_POS) != false) continue;
h_tot += lv_obj_get_height(child) + style->opad;
obj_num ++;
}
......
......@@ -6,6 +6,10 @@
#ifndef LV_CONT_H
#define LV_CONT_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -107,6 +111,10 @@ bool lv_cont_get_vfit(lv_obj_t * cont);
* MACROS
**********************/
#endif
#endif /*USE_LV_CONT*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_CONT_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_DDLIST_H
#define LV_DDLIST_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -122,7 +126,13 @@ const char * lv_ddlist_get_options(lv_obj_t * ddlist);
*/
uint16_t lv_ddlist_get_selected(lv_obj_t * ddlist);
/**
* Get the current selected option as a string
* @param ddlist pointer to ddlist object
* @param buf pointer to an array to store the string
*/
void lv_ddlist_get_selected_str(lv_obj_t * ddlist, char * buf);
/**
* Get the auto size attribute.
* @param ddlist pointer to a drop down list object
......@@ -141,6 +151,10 @@ lv_style_t * lv_ddlist_get_style_select(lv_obj_t * ddlist);
* MACROS
**********************/
#endif
#endif /*USE_LV_DDLIST*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_DDLIST_H*/
......@@ -21,6 +21,10 @@
/*********************
* DEFINES
*********************/
#ifndef LV_GAUGE_MAX_NEEDLE
#define LV_GAUGE_MAX_NEEDLE 4 /*Max number of needles. Used in the style.*/
#endif
#define LV_GAUGE_DEF_NEEDLE_COLOR COLOR_RED
/**********************
......
......@@ -6,6 +6,10 @@
#ifndef LV_GAUGE_H
#define LV_GAUGE_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -31,7 +35,6 @@
/*********************
* DEFINES
*********************/
#define LV_GAUGE_MAX_NEEDLE 4 /*Max number of needles. Used in the style.*/
/**********************
* TYPEDEFS
......@@ -133,6 +136,10 @@ lv_style_t * lv_gauge_get_style_critical(lv_obj_t * gauge);
* MACROS
**********************/
#endif
#endif /*USE_LV_GAUGE*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_GAUGE_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_IMG_H
#define LV_IMG_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -136,6 +140,10 @@ bool lv_img_get_upscale(lv_obj_t * img);
/*Use this macro to declare an image in a c file*/
#define LV_IMG_DECLARE(var_name) extern const color_int_t var_name[];
#endif
#endif /*USE_LV_IMG*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_IMG_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_LABEL_H
#define LV_LABEL_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -170,6 +174,10 @@ uint16_t lv_label_get_letter_on(lv_obj_t * label, point_t * pos);
* MACROS
**********************/
#endif
#endif /*USE_LV_LABEL*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_LABEL_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_LED_H
#define LV_LED_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -87,6 +91,10 @@ uint8_t lv_led_get_bright(lv_obj_t * led);
* MACROS
**********************/
#endif
#endif /*USE_LV_LED*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_LED_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_LINE_H
#define LV_LINE_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -110,6 +114,10 @@ bool lv_line_get_upscale(lv_obj_t * line);
* MACROS
**********************/
#endif
#endif /*USE_LV_LINE*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_LINE_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_LIST_H
#define LV_LIST_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -163,6 +167,10 @@ lv_style_t * lv_list_get_style_img(lv_obj_t * list, lv_btn_state_t state);
* MACROS
**********************/
#endif
#endif /*USE_LV_LIST*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_LIST_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_LMETER_H
#define LV_LMETER_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -88,6 +92,10 @@ uint16_t lv_lmeter_get_scale_angle(lv_obj_t * lmeter);
* MACROS
**********************/
#endif
#endif /*USE_LV_LMETER*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_LMETER_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_MBOX_H
#define LV_MBOX_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -161,6 +165,10 @@ lv_style_t * lv_mbox_get_style_btn(lv_obj_t * mbox, lv_btn_state_t state);
* MACROS
**********************/
#endif
#endif /*USE_LV_MBOX*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_MBOX_H*/
......@@ -13,6 +13,10 @@
#ifndef LV_TEMPL_H
#define LV_TEMPL_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -61,6 +65,10 @@ bool lv_templ_signal(lv_obj_t * templ, lv_signal_t sign, void * param);
* MACROS
**********************/
#endif
#endif /*USE_LV_TEMPL*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_TEMPL_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_PAGE_H
#define LV_PAGE_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -158,6 +162,10 @@ lv_style_t * lv_page_get_style_sb(lv_obj_t * page);
* MACROS
**********************/
#endif
#endif /*USE_LV_PAGE*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_PAGE_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_SLIDER_H
#define LV_SLIDER_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -91,6 +95,10 @@ lv_style_t * lv_slider_get_style_knob(lv_obj_t * slider);
* MACROS
**********************/
#endif
#endif /*USE_LV_SLIDER*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_SLIDER_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_TA_H
#define LV_TA_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -182,6 +186,10 @@ bool lv_ta_get_pwd_mode(lv_obj_t * ta);
* MACROS
**********************/
#endif
#endif /*USE_LV_TA_H*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_TA_H*/
......@@ -6,6 +6,10 @@
#ifndef LV_WIN_H
#define LV_WIN_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -169,4 +173,8 @@ lv_obj_t * lv_win_get_from_cbtn(lv_obj_t * ctrl_btn);
#endif /*USE_LV_WIN*/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_WIN_H*/
......@@ -6,6 +6,10 @@
#ifndef LVGL_H
#define LVGL_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
......@@ -55,7 +59,7 @@
* DEFINES
*********************/
#define LVGL_VERSION_MAJOR 4
#define LVGL_VERSION_MINOR 0
#define LVGL_VERSION_MINOR 1
#define LVGL_VERSION_PATH 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment