From eac974c6e4f285371413c01953b4380224e0113c Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sun, 3 Oct 2021 21:17:44 -0400 Subject: [PATCH] [rt-thread] beautify rt-thread port codes --- SConscript | 2 ++ csrc/u8x8.h | 2 +- sys/rt-thread/SConscript | 4 +--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SConscript b/SConscript index 24acc85f..ffc7f8f5 100644 --- a/SConscript +++ b/SConscript @@ -1,3 +1,5 @@ +# RT-Thread building script for bridge + import os from building import * diff --git a/csrc/u8x8.h b/csrc/u8x8.h index dd2af91a..ceafa40d 100644 --- a/csrc/u8x8.h +++ b/csrc/u8x8.h @@ -190,7 +190,7 @@ uint8_t u8x8_pgm_read_esp(const uint8_t * addr); /* u8x8_8x8.c */ #define U8X8_USE_PINS #endif -#ifdef RTT_U8G2 +#ifdef __RTTHREAD__ #define U8X8_USE_PINS #endif diff --git a/sys/rt-thread/SConscript b/sys/rt-thread/SConscript index 1cf9468e..53eeeea7 100644 --- a/sys/rt-thread/SConscript +++ b/sys/rt-thread/SConscript @@ -197,8 +197,6 @@ else: path = [cwd + '/port'] path += [cwd + '/../../csrc'] -LOCAL_CCFLAGS = '' - -group = DefineGroup('U8G2', src, depend = ['PKG_USING_U8G2_OFFICIAL'], CPPPATH = path, LOCAL_CCFLAGS = LOCAL_CCFLAGS, CPPDEFINES=['RTT_U8G2']) +group = DefineGroup('u8g2', src, depend = ['PKG_USING_U8G2_OFFICIAL'], CPPPATH = path) Return('group')