- include ../Pixracer/hwdef.dat
- ## undefs and fixups
- undef COMPASS
- undef IOMCU_UART
- undef USART6
- undef ROMFS
- undef IMU
- undef HAL_CHIBIOS_ARCH_FMUV4
- #undef BOOTLOADER_DEV_LIST
- undef HAL_OS_FATFS_IO
- undef SDIO
- undef FLASH_RESERVE_START_KB
- undef HAL_WITH_RAMTRON
- undef HAL_HAVE_SAFETY_SWITCH
- undef LED_SAFETY
- undef SAFETY_IN
- HAL_WITH_RAMTRON 0
- STDOUT_SERIAL SD2
- STDOUT_BAUDRATE 57600
- ## memory
- # the location where the bootloader will put the firmware
- # we use first 32k
- FLASH_RESERVE_START_KB 32
- # reserve 256 bytes for comms between app and bootloader
- RAM_RESERVE_START 256
- MAIN_STACK 0x2000
- PROCESS_STACK 0x6000
- ## ap_periph
- # board ID for firmware load
- APJ_BOARD_ID 1101
- # setup build for a peripheral firmware
- env AP_PERIPH 1
- define PERIPH_FW TRUE
- define HAL_BUILD_AP_PERIPH
- # ap_periph capabilities
- #define HAL_PERIPH_ENABLE_GPS
- #define HAL_PERIPH_ENABLE_MAG
- #define HAL_PERIPH_ENABLE_BARO
- define HAL_PERIPH_ENABLE_RCOUT_TRANSLATOR
- ## run lean
- # single GPS and compass for peripherals
- define GPS_MAX_RECEIVERS 1
- define GPS_MAX_INSTANCES 1
- define HAL_COMPASS_MAX_SENSORS 1
- # shutdown unused resources
- define HAL_NO_GCS
- define HAL_NO_LOGGING
- define HAL_NO_MONITOR_THREAD
- define HAL_DISABLE_LOOP_DELAY
- define HAL_USE_RTC FALSE
- define DISABLE_SERIAL_ESC_COMM TRUE
- define NO_DATAFLASH TRUE
- define HAL_NO_RCIN_THREAD
- define HAL_BARO_ALLOW_INIT_NO_BARO
- define HAL_USE_ADC FALSE
- define STM32_ADC_USE_ADC1 FALSE
- define HAL_DISABLE_ADC_DRIVER TRUE
- env DISABLE_SCRIPTING 1
- ## can
- define HAL_CAN_DEFAULT_NODE_ID 0
- define CAN_APP_NODE_NAME "org.ardupilot.Pixracer-periph"
- define HAL_CAN_DRIVER_DEFAULT 1
- # use the app descriptor needed by MissionPlanner for CAN upload
- env APP_DESCRIPTOR MissionPlanner
- ## misc
- # use blue LED
- define HAL_GPIO_PIN_LED HAL_GPIO_C_LED_PIN
Posted by Anonymous on Sat 12 Dec 13:43
download | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.