Skip to content

Commit

Permalink
hwdef: modifying CarbonixF405 board
Browse files Browse the repository at this point in the history
kept only default #defines
  • Loading branch information
loki077 committed Nov 22, 2023
1 parent 59438f9 commit 84f2a70
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 29 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/CarbonixF405/hwdef-bl.dat
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ APJ_BOARD_ID 1064
# setup build for a peripheral firmware
env AP_PERIPH 1

# crystal frequency set to 0 to use internal clock
OSCILLATOR_HZ 0
# crystal frequency set to 0 to use internal clock; currently configured for external crystal 12MHZ
OSCILLATOR_HZ 12000000

# assume 1024K flash part
FLASH_SIZE_KB 1024
Expand Down
32 changes: 5 additions & 27 deletions libraries/AP_HAL_ChibiOS/hwdef/CarbonixF405/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ APJ_BOARD_ID 1064
# setup build for a peripheral firmware
env AP_PERIPH 1

# crystal frequency set to 0 to use internal clock
OSCILLATOR_HZ 0
# crystal frequency set to 0 to use internal clock; currently configured for external crystal 12MHZ
OSCILLATOR_HZ 12000000

define AP_CUSTOM_FIRMWARE_STRING "CarboPilot V5.0.1-dev"

#MCU F405 Flash 1024
FLASH_SIZE_KB 1024
Expand Down Expand Up @@ -115,33 +117,9 @@ define HAL_NO_MONITOR_THREAD

define AP_PARAM_MAX_EMBEDDED_PARAM 512

define CAN_APP_NODE_NAME "org.ardupilot.CarbonixF405"

define HAL_PERIPH_ENABLE_MAG
define HAL_PERIPH_ENABLE_BARO
define HAL_PERIPH_ENABLE_RC_OUT

# enable ESC control
define HAL_SUPPORT_RCOUT_SERIAL 1
define HAL_WITH_ESC_TELEM 1

# enable GPS
define HAL_PERIPH_ENABLE_GPS
define HAL_PERIPH_GPS_PORT_DEFAULT 2
#define HAL_PERIPH_ENABLE_NOTIFY
#define HAL_PERIPH_ENABLE_NCP5623_LED_WITHOUT_NOTIFY

# default ADSB off by setting 0 baudrate
define HAL_PERIPH_ENABLE_ADSB
define HAL_PERIPH_ADSB_PORT_DEFAULT 3
define HAL_PERIPH_ADSB_BAUD_DEFAULT 57600

BARO MS56XX I2C:0:0x76
COMPASS MMC5XX3 I2C:0:0x30 false ROTATION_NONE

define AP_COMPASS_QMC5883P_ENABLED 1
COMPASS QMC5883P I2C:0:0x2C false ROTATION_YAW_180




define HAL_PERIPH_ARM_MONITORING_ENABLE 1

0 comments on commit 84f2a70

Please sign in to comment.