Skip to content

Commit

Permalink
Remove template code from porting files
Browse files Browse the repository at this point in the history
  • Loading branch information
mzyy94 committed Jan 28, 2024
1 parent 88598fc commit deb91be
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 309 deletions.
15 changes: 1 addition & 14 deletions src/lv_port_disp.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
/**
* @file lv_port_disp_templ.c
*
*/

/*Copy this file as "lv_port_disp.c" and set this value to "1" to enable content*/
#if 1
// SPDX-License-Identifier: MIT

/*********************
* INCLUDES
Expand Down Expand Up @@ -83,7 +77,6 @@ void lv_port_disp_init(void)
/*Initialize your display and the required peripherals.*/
static void disp_init(void)
{
/*You code here*/
}

volatile bool disp_flush_enabled = true;
Expand Down Expand Up @@ -119,9 +112,3 @@ static void disp_flush(lv_display_t * disp_drv, const lv_area_t * area, uint8_t
*Inform the graphics library that you are ready with the flushing*/
lv_display_flush_ready(disp_drv);
}

#else /*Enable this file at the top*/
/*This dummy typedef exists purely to silence -Wpedantic.*/
typedef int keep_pedantic_happy;
#endif
10 changes: 1 addition & 9 deletions src/lv_port_disp.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
/**
* @file lv_port_disp_templ.h
*
*/

/*Copy this file as "lv_port_disp.h" and set this value to "1" to enable content*/
#if 1
// SPDX-License-Identifier: MIT

#ifndef LV_PORT_DISP_H
#define LV_PORT_DISP_H
Expand Down Expand Up @@ -53,5 +47,3 @@ void disp_disable_update(void);
#endif

#endif /*LV_PORT_DISP_TEMPL_H*/

#endif /*Disable/Enable content*/
Loading

0 comments on commit deb91be

Please sign in to comment.