forked from PX4/PX4-Autopilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into pr-support-AirSeries
- Loading branch information
Showing
53 changed files
with
4,432 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CONFIG_BOARD_TOOLCHAIN="arm-none-eabi" | ||
CONFIG_BOARD_ARCHITECTURE="cortex-m4" | ||
CONFIG_BOARD_ROMFSROOT="" | ||
CONFIG_BOARD_CONSTRAINED_MEMORY=y | ||
CONFIG_DRIVERS_BOOTLOADERS=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"board_id": 86, | ||
"magic": "PX4FWv1", | ||
"description": "Firmware for the ARK Teseo GPS board", | ||
"image": "", | ||
"build_time": 0, | ||
"summary": "ARKTESEOGPS", | ||
"version": "0.1", | ||
"image_size": 0, | ||
"image_maxsize": 2080768, | ||
"git_identity": "", | ||
"board_revision": 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
# | ||
# board specific defaults | ||
#------------------------------------------------------------------------------ | ||
|
||
param set-default CBRK_IO_SAFETY 0 | ||
param set-default CANNODE_SUB_MBD 1 | ||
param set-default CANNODE_SUB_RTCM 1 | ||
param set-default MBE_ENABLE 1 | ||
param set-default SENS_IMU_CLPNOTI 0 | ||
|
||
tone_alarm start | ||
|
||
ekf2 start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
# | ||
# board sensors init | ||
#------------------------------------------------------------------------------ | ||
echo "Starting Teseo GPS" | ||
teseo_gps start -d /dev/ttyS0 -b 460800 | ||
|
||
icm42688p -R 0 -s start | ||
|
||
bmp388 -I -b 1 start | ||
|
||
if ! iis2mdc -R 2 -I -b 1 start | ||
then | ||
bmm150 -I -b 1 start | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# | ||
# This file is autogenerated: PLEASE DO NOT EDIT IT. | ||
# | ||
# You can use "make menuconfig" to make any modifications to the installed .config file. | ||
# You can then do "make savedefconfig" to generate a new defconfig file that includes your | ||
# modifications. | ||
# | ||
CONFIG_ARCH="arm" | ||
CONFIG_ARCH_BOARD_CUSTOM=y | ||
CONFIG_ARCH_BOARD_CUSTOM_DIR="../../../../boards/ark/teseo-gps/nuttx-config" | ||
CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH=y | ||
CONFIG_ARCH_BOARD_CUSTOM_NAME="px4" | ||
CONFIG_ARCH_CHIP="stm32" | ||
CONFIG_ARCH_CHIP_STM32=y | ||
CONFIG_ARCH_CHIP_STM32F412CE=y | ||
CONFIG_ARCH_INTERRUPTSTACK=4096 | ||
CONFIG_ARMV7M_MEMCPY=y | ||
CONFIG_ARMV7M_USEBASEPRI=y | ||
CONFIG_BINFMT_DISABLE=y | ||
CONFIG_BOARDCTL=y | ||
CONFIG_BOARD_LOOPSPERMSEC=16717 | ||
CONFIG_DEBUG_FULLOPT=y | ||
CONFIG_DEBUG_SYMBOLS=y | ||
CONFIG_DEBUG_TCBINFO=y | ||
CONFIG_DEFAULT_SMALL=y | ||
CONFIG_DISABLE_MOUNTPOINT=y | ||
CONFIG_EXPERIMENTAL=y | ||
CONFIG_FDCLONE_DISABLE=y | ||
CONFIG_FDCLONE_STDIO=y | ||
CONFIG_HAVE_CXX=y | ||
CONFIG_HAVE_CXXINITIALIZE=y | ||
CONFIG_IDLETHREAD_STACKSIZE=4096 | ||
CONFIG_INIT_STACKSIZE=4096 | ||
CONFIG_LIBC_FLOATINGPOINT=y | ||
CONFIG_LIBC_LONG_LONG=y | ||
CONFIG_LIBC_STRERROR=y | ||
CONFIG_MM_REGIONS=2 | ||
CONFIG_NAME_MAX=0 | ||
CONFIG_NUNGET_CHARS=0 | ||
CONFIG_PREALLOC_TIMERS=0 | ||
CONFIG_PTHREAD_STACK_MIN=512 | ||
CONFIG_RAM_SIZE=262144 | ||
CONFIG_RAM_START=0x20010000 | ||
CONFIG_RAW_BINARY=y | ||
CONFIG_SIG_DEFAULT=y | ||
CONFIG_SIG_SIGALRM_ACTION=y | ||
CONFIG_SIG_SIGUSR1_ACTION=y | ||
CONFIG_SIG_SIGUSR2_ACTION=y | ||
CONFIG_STACK_COLORATION=y | ||
CONFIG_START_DAY=30 | ||
CONFIG_START_MONTH=11 | ||
CONFIG_STDIO_DISABLE_BUFFERING=y | ||
CONFIG_STM32_FLASH_CONFIG_G=y | ||
CONFIG_STM32_NOEXT_VECTORS=y | ||
CONFIG_STM32_TIM8=y | ||
CONFIG_TASK_NAME_SIZE=0 | ||
CONFIG_USEC_PER_TICK=1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
/************************************************************************************ | ||
* configs/px4fmu/include/board.h | ||
* include/arch/board/board.h | ||
* | ||
* Copyright (C) 2009 Gregory Nutt. All rights reserved. | ||
* Author: Gregory Nutt <[email protected]> | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
* are met: | ||
* | ||
* 1. Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* 2. Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in | ||
* the documentation and/or other materials provided with the | ||
* distribution. | ||
* 3. Neither the name NuttX nor the names of its contributors may be | ||
* used to endorse or promote products derived from this software | ||
* without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | ||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | ||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS | ||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | ||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN | ||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
* POSSIBILITY OF SUCH DAMAGE. | ||
* | ||
************************************************************************************/ | ||
#include "board_dma_map.h" | ||
|
||
#ifndef __ARCH_BOARD_BOARD_H | ||
#define __ARCH_BOARD_BOARD_H | ||
|
||
#include <nuttx/config.h> | ||
#ifndef __ASSEMBLY__ | ||
# include <stdint.h> | ||
#endif | ||
|
||
#include <stm32.h> | ||
|
||
/* HSI - 8 MHz RC factory-trimmed | ||
* LSI - 32 KHz RC | ||
* HSE - 8 MHz Crystal | ||
* LSE - not installed | ||
*/ | ||
#define STM32_BOARD_USEHSE 1 | ||
#define STM32_BOARD_XTAL 8000000 | ||
#define STM32_HSE_FREQUENCY STM32_BOARD_XTAL | ||
|
||
#define STM32_HSI_FREQUENCY 16000000ul | ||
#define STM32_LSI_FREQUENCY 32000 | ||
|
||
/* Main PLL Configuration */ | ||
#define STM32_PLLCFG_PLLM RCC_PLLCFG_PLLM(8) | ||
#define STM32_PLLCFG_PLLN RCC_PLLCFG_PLLN(384) | ||
#define STM32_PLLCFG_PLLP RCC_PLLCFG_PLLP_4 | ||
#define STM32_PLLCFG_PLLQ RCC_PLLCFG_PLLQ(8) | ||
#define STM32_PLLCFG_PLLR RCC_PLLCFG_PLLR(2) | ||
|
||
#define STM32_RCC_PLLI2SCFGR_PLLI2SM RCC_PLLI2SCFGR_PLLI2SM(16) | ||
#define STM32_RCC_PLLI2SCFGR_PLLI2SN RCC_PLLI2SCFGR_PLLI2SN(192) | ||
#define STM32_RCC_PLLI2SCFGR_PLLI2SQ RCC_PLLI2SCFGR_PLLI2SQ(2) | ||
#define STM32_RCC_PLLI2SCFGR_PLLI2SR RCC_PLLI2SCFGR_PLLI2SR(2) | ||
#define STM32_RCC_PLLI2SCFGR_PLLI2SSRC RCC_PLLI2SCFGR_PLLI2SSRC(0) /* HSE or HSI depending on PLLSRC of PLLCFGR*/ | ||
|
||
#define STM32_RCC_DCKCFGR2_CK48MSEL RCC_DCKCFGR2_CK48MSEL_PLL | ||
#define STM32_RCC_DCKCFGR2_FMPI2C1SEL RCC_DCKCFGR2_FMPI2C1SEL_APB | ||
#define STM32_RCC_DCKCFGR2_SDIOSEL RCC_DCKCFGR2_SDIOSEL_48MHZ | ||
|
||
#define STM32_SYSCLK_FREQUENCY 96000000ul | ||
|
||
/* AHB clock (HCLK) is SYSCLK (96MHz) */ | ||
#define STM32_RCC_CFGR_HPRE RCC_CFGR_HPRE_SYSCLK /* HCLK = SYSCLK / 1 */ | ||
#define STM32_HCLK_FREQUENCY STM32_SYSCLK_FREQUENCY | ||
#define STM32_BOARD_HCLK STM32_HCLK_FREQUENCY /* Same as above, to satisfy compiler */ | ||
|
||
/* APB1 clock (PCLK1) is HCLK/2 (48MHz) */ | ||
#define STM32_RCC_CFGR_PPRE1 RCC_CFGR_PPRE1_HCLKd2 /* PCLK1 = HCLK / 2 */ | ||
#define STM32_PCLK1_FREQUENCY (STM32_HCLK_FREQUENCY/2) | ||
|
||
/* Timers driven from APB1 will be twice PCLK1 (see page 112 of reference manual) */ | ||
#define STM32_APB1_TIM2_CLKIN (2*STM32_PCLK1_FREQUENCY) | ||
#define STM32_APB1_TIM3_CLKIN (2*STM32_PCLK1_FREQUENCY) | ||
#define STM32_APB1_TIM4_CLKIN (2*STM32_PCLK1_FREQUENCY) | ||
#define STM32_APB1_TIM5_CLKIN (2*STM32_PCLK1_FREQUENCY) | ||
#define STM32_APB1_TIM12_CLKIN (2*STM32_PCLK1_FREQUENCY) | ||
#define STM32_APB1_TIM13_CLKIN (2*STM32_PCLK1_FREQUENCY) | ||
#define STM32_APB1_TIM14_CLKIN (2*STM32_PCLK1_FREQUENCY) | ||
|
||
/* APB2 clock (PCLK2) is HCLK (96MHz) */ | ||
#define STM32_RCC_CFGR_PPRE2 RCC_CFGR_PPRE2_HCLK /* PCLK2 = HCLK */ | ||
#define STM32_PCLK2_FREQUENCY (STM32_HCLK_FREQUENCY) | ||
|
||
/* Timers driven from APB2 will be PCLK2 since no prescale division */ | ||
#define STM32_APB2_TIM1_CLKIN (STM32_PCLK2_FREQUENCY) | ||
#define STM32_APB2_TIM8_CLKIN (STM32_PCLK2_FREQUENCY) | ||
#define STM32_APB2_TIM9_CLKIN (STM32_PCLK2_FREQUENCY) | ||
#define STM32_APB2_TIM10_CLKIN (STM32_PCLK2_FREQUENCY) | ||
#define STM32_APB2_TIM11_CLKIN (STM32_PCLK2_FREQUENCY) | ||
|
||
/* Timer Frequencies, if APBx is set to 1, frequency is same to APBx otherwise frequency is 2xAPBx. */ | ||
#define BOARD_TIM2_FREQUENCY (2 * STM32_PCLK1_FREQUENCY) | ||
#define BOARD_TIM3_FREQUENCY (2 * STM32_PCLK1_FREQUENCY) | ||
#define BOARD_TIM4_FREQUENCY (2 * STM32_PCLK1_FREQUENCY) | ||
#define BOARD_TIM5_FREQUENCY (2 * STM32_PCLK1_FREQUENCY) | ||
#define BOARD_TIM6_FREQUENCY (2 * STM32_PCLK1_FREQUENCY) | ||
#define BOARD_TIM7_FREQUENCY (2 * STM32_PCLK1_FREQUENCY) | ||
#define BOARD_TIM8_FREQUENCY (2 * STM32_PCLK2_FREQUENCY) | ||
|
||
/* Alternate function pin selections ************************************************/ | ||
|
||
/* UARTs */ | ||
#define GPIO_USART1_RX GPIO_USART1_RX_2 | ||
#define GPIO_USART1_TX GPIO_USART1_TX_3 | ||
|
||
#define GPIO_USART2_RX GPIO_USART2_RX_1 | ||
#define GPIO_USART2_TX GPIO_USART2_TX_1 | ||
|
||
/* CAN */ | ||
#define GPIO_CAN1_RX GPIO_CAN1_RX_1 | ||
#define GPIO_CAN1_TX GPIO_CAN1_TX_1 | ||
|
||
/* I2C */ | ||
|
||
#define GPIO_MCU_I2C1_SCL | ||
#define GPIO_MCU_I2C1_SDA | ||
|
||
#define GPIO_I2C1_SCL GPIO_I2C1_SCL_1 | ||
#define GPIO_I2C1_SDA GPIO_I2C1_SDA_1 | ||
|
||
#define GPIO_I2C1_SCL_GPIO (GPIO_OUTPUT | GPIO_OPENDRAIN |GPIO_SPEED_50MHz | GPIO_OUTPUT_SET | GPIO_PORTB | GPIO_PIN6) | ||
#define GPIO_I2C1_SDA_GPIO (GPIO_OUTPUT | GPIO_OPENDRAIN |GPIO_SPEED_50MHz | GPIO_OUTPUT_SET | GPIO_PORTB | GPIO_PIN7) | ||
|
||
#define GPIO_I2C2_SCL GPIO_I2C2_SCL_1 | ||
#define GPIO_I2C2_SDA GPIO_I2C2_SDA_4 | ||
|
||
#define GPIO_I2C2_SCL_GPIO (GPIO_OUTPUT | GPIO_OPENDRAIN |GPIO_SPEED_50MHz | GPIO_OUTPUT_SET | GPIO_PORTB | GPIO_PIN9) | ||
#define GPIO_I2C2_SDA_GPIO (GPIO_OUTPUT | GPIO_OPENDRAIN |GPIO_SPEED_50MHz | GPIO_OUTPUT_SET | GPIO_PORTB | GPIO_PIN10) | ||
|
||
/* SPI */ | ||
#define GPIO_SPI1_MISO GPIO_SPI1_MISO_1 | ||
#define GPIO_SPI1_MOSI GPIO_SPI1_MOSI_1 | ||
#define GPIO_SPI1_SCK GPIO_SPI1_SCK_1 | ||
|
||
#endif /* __ARCH_BOARD_BOARD_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/**************************************************************************** | ||
* | ||
* Copyright (c) 2021 PX4 Development Team. All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
* are met: | ||
* | ||
* 1. Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* 2. Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in | ||
* the documentation and/or other materials provided with the | ||
* distribution. | ||
* 3. Neither the name PX4 nor the names of its contributors may be | ||
* used to endorse or promote products derived from this software | ||
* without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | ||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | ||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS | ||
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | ||
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN | ||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
* POSSIBILITY OF SUCH DAMAGE. | ||
* | ||
****************************************************************************/ | ||
|
||
#pragma once | ||
|
||
// DMA1 Channel/Stream Selections | ||
//--------------------------------------------//---------------------------//---------------- | ||
|
||
|
||
// DMA2 Channel/Stream Selections | ||
//--------------------------------------------//---------------------------//---------------- | ||
#define DMACHAN_SPI1_RX DMAMAP_SPI1_RX_1 // DMA2, Stream 0, Channel 3 | ||
#define DMACHAN_SPI1_TX DMAMAP_SPI1_TX_1 // DMA2, Stream 3, Channel 3 | ||
#define DMACHAN_USART1_RX DMAMAP_USART1_RX_1 // DMA2, Stream 2, Channel 4 | ||
#define DMAMAP_USART1_RX DMAMAP_USART1_RX_1 | ||
//#define DMACHAN_USART1_TX DMAMAP_USART1_TX // DMA2, Stream 7, Channel 4 |
Oops, something went wrong.