1 /** 2 * @file lv_nuttx_fbdev.h 3 * 4 */ 5 6 #ifndef LV_NUTTX_FBDEV_H 7 #define LV_NUTTX_FBDEV_H 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /********************* 14 * INCLUDES 15 *********************/ 16 17 #include "../../display/lv_display.h" 18 19 #if LV_USE_NUTTX 20 21 /********************* 22 * DEFINES 23 *********************/ 24 25 /********************** 26 * TYPEDEFS 27 **********************/ 28 29 /********************** 30 * GLOBAL PROTOTYPES 31 **********************/ 32 33 /** 34 * Create a new display with NuttX backend. 35 */ 36 lv_display_t * lv_nuttx_fbdev_create(void); 37 38 /** 39 * Initialize display with specified framebuffer device 40 * @param disp pointer to display with NuttX backend 41 * @param file the name of framebuffer device 42 */ 43 int lv_nuttx_fbdev_set_file(lv_display_t * disp, const char * file); 44 45 /********************** 46 * MACROS 47 **********************/ 48 49 #endif /* LV_USE_NUTTX */ 50 51 #ifdef __cplusplus 52 } /* extern "C" */ 53 #endif 54 55 #endif /* LV_NUTTX_FBDEV_H */ 56