Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Feb 2, 2023
1 parent d13d29e commit 2f6e842
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions examples/lvglterm/lvglterm.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@
#include <port/lv_port.h>
#include "nshlib/nshlib.h"

/* NSH Redirection requires Pipes */

#ifndef CONFIG_DEV_PIPE_SIZE
# error "FIFO and Named Pipe Drivers" should be enabled in menuconfig
#endif

/* NSH Output requires a Monospaced Font */

#ifndef LV_FONT_UNSCII_16
# error LVGL Font UNSCII 16 should be enabled in menuconfig
#endif

/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
Expand Down Expand Up @@ -70,15 +82,6 @@
#define READ_PIPE 0
#define WRITE_PIPE 1

#ifndef CONFIG_DEV_PIPE_SIZE
# error "Device Drivers > FIFO and named pipe drivers" should be enabled in menuconfig
#endif

// TODO: Configure font
#ifndef CONFIG_LV_FONT_UNSCII_16
# error "LVGL configuration > Font usage > Enable built-in fonts > UNSCII 16" should be enabled in menuconfig
#endif

/****************************************************************************
* Private Function Prototypes
****************************************************************************/
Expand Down

0 comments on commit 2f6e842

Please sign in to comment.