Skip to content

Commit

Permalink
sparky: Adapt to new USB IRQ handling, fixup mcuconf.h for ChibiOS 17…
Browse files Browse the repository at this point in the history
…, axed two modules to save flash space.

Storm32Bgc and VtolPathFollower got axed to make it fit the flash image.
  • Loading branch information
glowtape committed Jan 6, 2018
1 parent 23992ad commit c214f63
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions flight/targets/sparky/board-info/board_hw_defs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,11 @@ static struct pios_internal_adc_cfg internal_adc_cfg = {
static const struct pios_usb_cfg pios_usb_main_cfg = {
.irq = {
.init = {
#if defined(STM32_HAS_USB)
.NVIC_IRQChannel = USB_LP_IRQn,
#else
.NVIC_IRQChannel = USB_LP_CAN1_RX0_IRQn,
#endif
.NVIC_IRQChannelPreemptionPriority = PIOS_IRQ_PRIO_LOW,
.NVIC_IRQChannelSubPriority = 0,
.NVIC_IRQChannelCmd = ENABLE,
Expand Down
4 changes: 2 additions & 2 deletions flight/targets/sparky/fw/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ OPTMODULES += Autotune
OPTMODULES += TxPID
OPTMODULES += AltitudeHold
OPTMODULES += PathPlanner
OPTMODULES += VtolPathFollower
#OPTMODULES += VtolPathFollower
OPTMODULES += FixedWingPathFollower
OPTMODULES += UAVOMavlinkBridge
OPTMODULES += UAVOMSPBridge
Expand All @@ -59,7 +59,7 @@ OPTMODULES += UAVOFrSKYSensorHubBridge
OPTMODULES += UAVOFrSKYSPortBridge
OPTMODULES += Geofence
OPTMODULES += Logging
OPTMODULES += Storm32Bgc
#OPTMODULES += Storm32Bgc
OPTMODULES += UAVOCrossfireTelemetry

# Paths
Expand Down
2 changes: 1 addition & 1 deletion flight/targets/sparky/fw/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* 0...3 Lowest...Highest.
*/

#define STM32F30x_MCUCONF
#define STM32F3xx_MCUCONF

/*
* HAL driver system settings.
Expand Down

0 comments on commit c214f63

Please sign in to comment.