Sherman e7f64fe07f
[renesas/ra2l1-cpk] add Captouch板载触摸按键配置说明.md (#6227)
* [renesas/ra2l1-cpk] add Captouch板载触摸按键配置说明.md

* Update Captouch板载触摸按键配置说明.md

Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2022-08-13 20:53:51 -04:00

29 lines
747 B
Python

import glob
Import('RTT_ROOT')
Import('rtconfig')
from building import *
cwd = GetCurrentDir()
src = []
group = []
CPPPATH = []
file = glob.glob('*.tifcfg')
if len(file):
if rtconfig.PLATFORM == 'iar':
print("\nThe current project does not support iar build\n")
Return('group')
elif rtconfig.PLATFORM == 'gcc':
src += ['qe_touch_config.c']
src += ['qe_sample_rtthread.c']
CPPPATH = [cwd, ]
elif rtconfig.PLATFORM == 'armclang':
src += ['qe_touch_config.c']
src += ['qe_sample_rtthread.c']
CPPPATH = [cwd, ]
CPPDEFINES = ['QE_TOUCH_CONFIGURATION']
group = DefineGroup('QE-Touch', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
Return('group')