[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
|
import os
|
||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
|
|
|
@ -190,7 +190,7 @@ uint8_t u8x8_pgm_read_esp(const uint8_t * addr); /* u8x8_8x8.c */
|
||||||
#define U8X8_USE_PINS
|
#define U8X8_USE_PINS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RTT_U8G2
|
#ifdef __RTTHREAD__
|
||||||
#define U8X8_USE_PINS
|
#define U8X8_USE_PINS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -197,8 +197,6 @@ else:
|
||||||
path = [cwd + '/port']
|
path = [cwd + '/port']
|
||||||
path += [cwd + '/../../csrc']
|
path += [cwd + '/../../csrc']
|
||||||
|
|
||||||
LOCAL_CCFLAGS = ''
|
group = DefineGroup('u8g2', src, depend = ['PKG_USING_U8G2_OFFICIAL'], CPPPATH = path)
|
||||||
|
|
||||||
group = DefineGroup('U8G2', src, depend = ['PKG_USING_U8G2_OFFICIAL'], CPPPATH = path, LOCAL_CCFLAGS = LOCAL_CCFLAGS, CPPDEFINES=['RTT_U8G2'])
|
|
||||||
|
|
||||||
Return('group')
|
Return('group')
|
||||||
|
|
Loading…
Reference in New Issue