1#![no_std]
2#![allow(non_snake_case)]
3#![allow(non_camel_case_types)]
4#![allow(non_upper_case_globals)]
5#![allow(clippy::too_many_arguments)]
6#![allow(clippy::redundant_static_lifetimes)]
7
8include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
9
10pub fn _bindgen_raw_src() -> &'static str {
11 include_str!(concat!(env!("OUT_DIR"), "/bindings.rs"))
12}
13
14pub fn _bindgen_raw_c_header() -> &'static str {
15 include_str!("../lvgl/lvgl.h")
16}
17
18#[cfg(feature = "use-string-functions")]
19mod string_impl;
20
21#[cfg(test)]
22mod tests {
23 use super::*;
24
25 #[test]
26 fn basic_sanity_check() {
27 unsafe {
28 lv_init();
29
30 let horizontal_resolution = lv_disp_get_hor_res(core::ptr::null_mut());
31 assert_eq!(horizontal_resolution, 0);
32
33 let vertical_resolution = lv_disp_get_ver_res(core::ptr::null_mut());
34 assert_eq!(vertical_resolution, 0);
35 }
36 }
37}