2018-05-02 08:22:17 -03:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# encoding: utf-8
|
|
|
|
|
|
|
|
def build(bld):
|
|
|
|
bld.ap_stlib(
|
|
|
|
name= 'iofirmware_libs',
|
|
|
|
ap_vehicle='iofirmware',
|
|
|
|
ap_libraries= [
|
|
|
|
'AP_Common',
|
|
|
|
'AP_HAL',
|
|
|
|
'AP_HAL_Empty',
|
|
|
|
'AP_Math',
|
|
|
|
'AP_RCProtocol',
|
2018-10-29 02:51:43 -03:00
|
|
|
'AP_BoardConfig',
|
|
|
|
'AP_SBusOut'
|
2018-05-02 08:22:17 -03:00
|
|
|
],
|
|
|
|
exclude_src=[
|
|
|
|
'libraries/AP_HAL_ChibiOS/Storage.cpp'
|
|
|
|
]
|
|
|
|
)
|
2019-07-21 23:49:50 -03:00
|
|
|
|
|
|
|
bld.ap_program(
|
|
|
|
program_name='iofirmware_lowpolh',
|
|
|
|
use='iofirmware_libs',
|
|
|
|
program_groups=['bin','iofirmware'],
|
|
|
|
defines=['IOMCU_IMU_HEATER_POLARITY=0']
|
|
|
|
)
|
|
|
|
|
2018-05-02 08:22:17 -03:00
|
|
|
bld.ap_program(
|
2019-07-21 23:49:50 -03:00
|
|
|
program_name='iofirmware_highpolh',
|
2018-05-02 08:22:17 -03:00
|
|
|
use='iofirmware_libs',
|
2018-09-14 07:11:48 -03:00
|
|
|
program_groups=['bin','iofirmware'],
|
2019-07-21 23:49:50 -03:00
|
|
|
defines=['IOMCU_IMU_HEATER_POLARITY=1']
|
2018-05-02 08:22:17 -03:00
|
|
|
)
|