[rt-thread] beautify rt-thread port codes

This commit is contained in:
Meco Man 2021-10-03 21:17:44 -04:00
parent c25cd63b1c
commit eac974c6e4
3 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,5 @@
# RT-Thread building script for bridge
import os
from building import *

View File

@ -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

View File

@ -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')