You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
808 B
34 lines
808 B
#!/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', |
|
'AP_BoardConfig', |
|
'AP_SBusOut' |
|
], |
|
exclude_src=[ |
|
'libraries/AP_HAL_ChibiOS/Storage.cpp' |
|
] |
|
) |
|
|
|
bld.ap_program( |
|
program_name='iofirmware_lowpolh', |
|
use='iofirmware_libs', |
|
program_groups=['bin','iofirmware'], |
|
defines=['IOMCU_IMU_HEATER_POLARITY=0'] |
|
) |
|
|
|
bld.ap_program( |
|
program_name='iofirmware_highpolh', |
|
use='iofirmware_libs', |
|
program_groups=['bin','iofirmware'], |
|
defines=['IOMCU_IMU_HEATER_POLARITY=1'] |
|
)
|
|
|