mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-18 11:53:05 +08:00
1. Board level reset or poweroff 2. Power supply class Signed-off-by: GuEe-GUI <2991707448@qq.com>
19 lines
347 B
Python
19 lines
347 B
Python
from building import *
|
|
|
|
group = []
|
|
|
|
if not GetDepend(['RT_USING_POWER_SUPPLY']):
|
|
Return('group')
|
|
|
|
cwd = GetCurrentDir()
|
|
CPPPATH = [cwd + '/../../include']
|
|
|
|
src = ['supply.c']
|
|
|
|
if GetDepend(['RT_POWER_SUPPLY_DAEMON']):
|
|
src += ['supply-daemon.c']
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|