[rt-thread] beautify rt-thread port codes
This commit is contained in:
parent
c25cd63b1c
commit
eac974c6e4
|
@ -1,3 +1,5 @@
|
|||
# RT-Thread building script for bridge
|
||||
|
||||
import os
|
||||
from building import *
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue