MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / get_socName_from_rtconfig

Function get_socName_from_rtconfig

tools/vscpyocd.py:87–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 return similar_num
86
87def get_socName_from_rtconfig():
88 socName = None
89 rtconfig_file = open('rtconfig.h', 'r')
90 if rtconfig_file:
91 for line in rtconfig_file.readlines():
92 if 'SOC' in line and 'FAMILY' not in line and 'SERIES' not in line:
93 socName = line.strip().split('_')[-1]
94 rtconfig_file.close()
95 return socName
96
97def get_pack_from_env():
98 if os.environ.get('ENV_ROOT') == None:

Callers 2

get_pack_from_envFunction · 0.85
get_trgetId_from_packFunction · 0.85

Calls 1

openFunction · 0.50

Tested by

no test coverage detected