Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
added mavstation Image prototype. Runs on the latest version.
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrtny committed Nov 6, 2014
1 parent 25763a6 commit d1379c4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
12 changes: 12 additions & 0 deletions Images/mavstation.prototype
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"board_id": 20,
"magic": "MAVSTATION",
"description": "Firmware for the Mavstation board",
"image": "",
"build_time": 0,
"summary": "MAVSTATION",
"version": "0.1",
"image_size": 0,
"git_identity": "",
"board_revision": 0
}
2 changes: 1 addition & 1 deletion makefiles/upload.mk
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ upload-serial-px4fmu-v1: $(BUNDLE) $(UPLOADER)
upload-serial-px4fmu-v2: $(BUNDLE) $(UPLOADER)
$(Q) $(PYTHON) -u $(UPLOADER) --port $(SERIAL_PORTS) $(BUNDLE)

upload-serial-mavstation_default: $(BUNDLE) $(UPLOADER)
upload-serial-mavstation: $(BUNDLE) $(UPLOADER)
$(Q) $(PYTHON) -u $(UPLOADER) --port $(SERIAL_PORTS) $(BUNDLE)

#
Expand Down
2 changes: 1 addition & 1 deletion nuttx-configs/mavstation/nsh/appconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

# Path to example in apps/examples containing the user_start entry point

CONFIGURED_APPS += examples/nsh
#CONFIGURED_APPS += examples/nsh
#CONFIGURED_APPS += examples/mavstation
#CONFIGURED_APPS += examples/hello

Expand Down
6 changes: 4 additions & 2 deletions nuttx-configs/mavstation/nsh/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ CONFIG_ARCH=arm
CONFIG_ARCH_ARM=y
CONFIG_ARCH_CORTEXM3=y
CONFIG_ARCH_CHIP=stm32
CONFIG_ARCH_CHIP_STM32F100C8=y
CONFIG_ARCH_CHIP_STM32F102CB=y
CONFIG_ARCH_BOARD=mavstation
CONFIG_ARCH_BOARD_MAVSTATION=y
CONFIG_BOARD_LOOPSPERMSEC=24000
Expand Down Expand Up @@ -111,7 +111,7 @@ CONFIG_STM32_JTAG_SW_ENABLE=n
# Individual subsystems can be enabled:
# AHB:
CONFIG_STM32_DMA1=y
CONFIG_STM32_DMA2=y
CONFIG_STM32_DMA2=n
CONFIG_STM32_CRC=n
# APB1:
# Timers 2,3 and 4 are owned by the PWM driver
Expand Down Expand Up @@ -187,6 +187,8 @@ CONFIG_USART1_2STOP=0
CONFIG_USART2_2STOP=0
CONFIG_USART3_2STOP=0

CONFIG_USART1_RXDMA=y
SERIAL_HAVE_CONSOLE_DMA=y
#
# PX4IO specific driver settings
#
Expand Down
1 change: 1 addition & 0 deletions src/modules/mavstation_firmware/mavstation.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
*/

#include <nuttx/config.h>
#include <nuttx/arch.h>

#include <stdio.h> // required for task_create
#include <stdbool.h>
Expand Down

0 comments on commit d1379c4

Please sign in to comment.