David Sidrane
490fe8256f
Add nxp imxrt device support
2020-01-29 13:54:20 -05:00
Daniel Agar
693d532bba
mRo x2.1 777 board support
2020-01-22 15:02:55 -05:00
Daniel Agar
b47eaa6061
update C++ standard (c++11 -> c++14)
...
- temporarily disable snapdragon builds until toolchain is updated
2020-01-21 21:49:10 -05:00
Daniel Agar
fcbf8b6bcd
platforms/nuttx: fix fmu-v4pro jlink debug device helper
2020-01-21 22:24:58 +01:00
Daniel Agar
de4f594937
DriverFramework purge
...
The bulk of this change was tightly coupled and needed to be deleted in one pass. Some of the smaller changes were things that broke as a result of the initial purge and subsequently fixed by further eradicating unnecessary platform differences. Finally, I deleted any dead code I came across in the related files I touched while going through everything.
- DriverFramework (src/lib/DriverFramework submodule) completely removed
- added dspal submodule in qurt platform (was brought in via DriverFramework)
- all df wrapper drivers removed
- all boards using df wrapper drivers updated to use in tree equivalents
- unused empty arch/board.h on posix and qurt removed
- unused IOCTLs removed (pub block, priv, etc)
- Integrator delete methods only used from df wrapper drivers
- commander: sensor calibration use "NuttX version" everywhere for now
- sensors: update to px4_{open, read, close} instead of DevMgr wrapper (adc open for analog differential pressure)
- battery_status: update to px4_{open, read, close} instead of DevMgr wrapper (adc open for analog differential pressure)
- cdev cleanup conflicting typedefs and names with actual OS (pollevent_t, etc)
- load_mon and top remove from linux boards (unused)
- delete unused PX4_MAIN_FUNCTION
- delete unused getreg32 macro
- delete unused SIOCDEVPRIVATE define
- named each platform tasks consistently
- posix list_devices and list_topics removed (list_files now shows all virtual files)
2020-01-13 14:07:03 -05:00
Daniel Agar
98c5c31aa1
Update submodule nuttx to latest Mon Jan 13 00:39:44 UTC 2020
...
- nuttx in PX4/Firmware (3459f0a99de671e03a894e5bb44f615c9184d702): https://github.com/PX4/NuttX/commit/4c2da2935399ca17eae0c9ad4e8822cb8efc2b0d
- nuttx current upstream: https://github.com/PX4/NuttX/commit/c6ba2c13c799dcb18b53aaf63978925473cab7ce
- Changes: https://github.com/PX4/NuttX/compare/4c2da2935399ca17eae0c9ad4e8822cb8efc2b0d...c6ba2c13c799dcb18b53aaf63978925473cab7ce
c6ba2c13c7 2019-12-24 David Sidrane - [BACKPORT] STM32F7 and STM32H7 SDMMC internal pull up usage fixed
a14d2cec3b 2019-12-22 David Sidrane - [REJECTED] Add check_format tooling
30e1808bc3 2019-12-22 David Sidrane - [REJECTED] nxstyle - output compiler like error format
2020-01-12 21:20:41 -05:00
Daniel Agar
d1e3ff553b
platforms: remove unnecessary i2c platform abstraction
2020-01-11 11:55:06 -05:00
David Sidrane
9c1543c33f
Nuttx with PX4 Contrib for SDIO PU fix
2020-01-08 12:23:01 -05:00
Daniel Agar
d19f18d40b
linux boards (ocpoc, bbblue, navio2) replace custom adc drivers with simple px4_arch implementation
2020-01-07 14:04:13 -05:00
Daniel Agar
7166b867e1
NuttX stackcheck exclude PX4 Matrix and Param
...
- instrumenting PX4 Matrix and Param methods is too burdensome
- partially restore px4_fmu-v5_stackcheck and holybro_durandal-v1_stackcheck to match default configs
2020-01-06 18:15:55 -05:00
Julian Oes
a9ca16cafe
Fix a couple of flake8 Python warnings ( #13763 )
...
* Tools: fix flake8 error
* platforms: fix flake8 error
This is just guessed.
2019-12-19 07:36:16 -08:00
Christian Clauss
6dc55f97d4
More fixes for Python 3 compatibility ( #13008 )
...
* More fixes for Python 3 compatibility
* Workaround if the six module is not pip installed
* Lose the semicolons
2019-12-19 02:05:55 -08:00
PX4 BuildBot
6f4b9f93fd
Update submodule nuttx to latest Thu Dec 12 14:57:56 UTC 2019
...
- nuttx in PX4/Firmware (327c7f3672ee5f066ec53dfe1554a02d1aa610da): https://github.com/PX4/NuttX/commit/2e55ce8ec97d37b3d3c46b1aaab0a09364fcf254
- nuttx current upstream: https://github.com/PX4/NuttX/commit/9331fda0d7f7220de33982e8a641c671b1f09c8e
- Changes: https://github.com/PX4/NuttX/compare/2e55ce8ec97d37b3d3c46b1aaab0a09364fcf254...9331fda0d7f7220de33982e8a641c671b1f09c8e
9331fda0d7 2019-12-10 David Sidrane - [BACKPORT] IMXRT106x USDHC: Support regular GPIO for CD and inversion.
91c80c708b 2019-12-05 David Sidrane - [BACKPORT] imxrt106x:pinout add ALT 8 GPIO_GPT1_CAPTURE[1|2]
32f758f0e9 2019-12-03 David Sidrane - [BACKPORT] stm32f7:Add Serial Tx DMA
2019-12-12 10:23:29 -05:00
David Sidrane
74b6cc5bce
px4_fmu-v5:Use Serial TX DMA on Telem 2
2019-12-09 16:23:16 -05:00
Matthias Grob
904ab16558
Fix trailing whitespace, EOF newline, indentation
2019-12-09 13:22:19 +01:00
Daniel Agar
1a395fb6d9
ST ISM330DLC IMU driver
2019-12-03 16:16:49 -05:00
PX4 BuildBot
5e95820e14
Update submodule nuttx to latest Sun Dec 1 00:38:57 UTC 2019
...
- nuttx in PX4/Firmware (22a005c9f4 ): https://github.com/PX4/NuttX/commit/2d7920055f96f5734d5166e2c58daa16c6dff2f5
- nuttx current upstream: https://github.com/PX4/NuttX/commit/398a59aaa4df2b32af2fdc1e3dd566f88d7eea38
- Changes: https://github.com/PX4/NuttX/compare/2d7920055f96f5734d5166e2c58daa16c6dff2f5...398a59aaa4df2b32af2fdc1e3dd566f88d7eea38
398a59aaa4 2019-11-29 David Sidrane - [BACKPORT] stm32f7:ethernet: Add some delays so that ifup() does not hog the CPU.
2019-11-30 21:16:33 -05:00
David Sidrane
44c7b90a7b
stm32h7:Bootloader fix assertion caused by USB running
...
USB was still running in transition to Firmware. This
resets the USB
2019-11-30 19:05:22 +01:00
Beat Küng
0f42ecc5c7
durandal-v1: enable dshot
2019-11-29 07:39:08 +01:00
Daniel Agar
a7fbaefd83
NuttX cmake small debug helper improvements
2019-11-26 15:39:02 -05:00
Daniel Agar
a8ea55d9b6
remove all <cmath> usage
...
* the NuttX c++ library is incomplete, let's avoid including it until we have a real standard library in place
2019-11-25 10:04:04 -05:00
David Sidrane
bbd37ada41
holybro_durandal-v1: update cdcacm product id
2019-11-22 09:39:15 -05:00
David Sidrane
7ca8a8dbaa
durandal-v1:Bootloader
...
Change PID to 0x4b:
Holybro obtained their own PID and VID but APM did not follow
the PX4 convention of makeing the board_id (0x8b) match the PID)
Incorporated the Upstream Bootloader state sequencing checking change.
Change the usb cout to send all chars in 1 write.
2019-11-22 14:32:56 +01:00
Daniel Agar
1c4a8e7c11
cmake NuttX fix generated launch.json (vscode debug)
2019-11-18 13:21:33 -05:00
Daniel Agar
82fac4a0a7
cmake NuttX linker print memory usage
2019-11-18 12:36:29 -05:00
David Sidrane
67f27eb26c
NuttX @ Offical release of 8.2
2019-11-17 04:06:49 -08:00
Daniel Agar
8ce2f30aa6
NuttX cmake improve dependencies between configure and runtime
...
- attempting to make the build slightly more robust to incomplete configures or other bad states.
2019-11-16 18:30:52 -05:00
Daniel Agar
df73a6667d
NuttX cmake improvements
...
- fix temporary Make.defs copy
- implement custom macros for COMPILE, COMPILEXX, ASSEMBLE, ARCHIVE to enable ccache properly (if available and enabled)
- fix NuttX mkdeps
- fix libapps race condition with context
2019-11-16 15:42:19 -05:00
David Sidrane
850821f47f
[REVISIT] Support upstream DSHOT Revist!
...
The Addition of PX4_ARCH_DCACHE_LINESIZE is fundamentally wrong.
It asserst that an STM32F4 has a cache and it does not.
This should be #if defined() on CONFIG_ARMV7M_DCACHE
2019-11-16 11:43:42 +01:00
Daniel Agar
2af262ed1d
NuttX cmake build wrapper thorough dependencies
2019-11-16 11:43:42 +01:00
Daniel Agar
99aae8b891
NuttX use toolchain math.h and avoid empty drivers/Kconfig
2019-11-16 11:43:42 +01:00
David Sidrane
b2f28c977d
durandal-v1 Nuttx Based PX4 bootloader
...
durandal bootloader:Run at 480 Mhz
durandal-v1:bootloader use VBUS detection
Add Durandal bootloader to build
2019-11-16 11:43:42 +01:00
David Sidrane
65a26ec060
nxp_fmuk66-v1:Port to NuttX 8.1+
2019-11-16 11:43:42 +01:00
David Sidrane
e847698c9f
PX4 System changes Supporting STM32H7
...
stm32:ToneAlarmInterfacePWM TIM15-TIM17 have a BDTR Register
common:board_crashdump Add H7 support
stm32/board_mcu_version:Support H7
PX4 ADC:Use 32 interface and resoution abstraction
Added PX4 stm32h7 ADC driver
stm32h7:adc fix ADC ready check
fmu: handle BOARD_HAS_PWM==5
cmake: improve error handling for NuttX olddefconfig failures
WorkQueueManager:Quiet loadmon stack warning
camera_trigger:GPIO support < 6 GPIO
Adjust stack sizes (under hw stack check)
PX4 System changes Supporting STM32H7 PX4IO Driver
aerotenna_ocpoc:ADC add px4_arch_adc_dn_fullcount
init.cmake:Track Upstream change needing Make.def at config time
PX4 System changes Supporting STM32H7
NuttX CMakeLists.txt Track upstream changes
Common board_crashdump add header and px4 config
NuttX simplify callinb make libapps
Use UINT32_MAX for error return
drivers:uavcannode NuttX chip is now hardware
drivers:uavcanesc NuttX chip is now hardware
px4io:Avoid Race on AP to PX4 IO upgrade
2019-11-16 11:43:42 +01:00
David Sidrane
36a75b79a4
uavcan:Changes to support Nuttx 7.31+
...
libuavcan:Update with Kinetis NuttX 8.1+ support
Traking master uavcan changes
2019-11-16 11:43:42 +01:00
David Sidrane
522ed2d99b
NuttX based PX4 bootloader
...
stm32h7 booloader:Obey VBUS input
stm32h7 booloader:Fully deinit systic
2019-11-16 11:43:42 +01:00
Beat Küng
78944a70c3
Upgrade NuttX to 8.2
...
Nuttx with PX4 contrib of bbsram fix
Nuttx 8.31+ with BBSRAM disable dcache
Nuttx 8.2-
2019-11-16 11:43:42 +01:00
Daniel Agar
7bf9700426
NuttX: math.h drop extra math defines carried in PX4 defines.h
2019-11-03 10:30:00 -05:00
Matthias Grob
933ff8d480
Remove duplicate EOF trailing newlines
...
because they can screw up git when merging branches.
2019-11-02 09:49:46 -04:00
David Sidrane
a3e2777208
NuttX/nuttx with SDIO fixes ( #13311 )
...
* NuttX/nuttx with SDIO fixes
2019-10-31 16:55:16 +01:00
Beat Küng
1dd6b6a505
stm32f3: add libs and stubs for F3 build (thiemar_s2740vc-v1)
2019-10-30 11:48:47 +01:00
Beat Küng
3b7c1b4ff1
src/drivers/boards: move to platforms/nuttx/src/px4/common
2019-10-30 11:48:47 +01:00
Beat Küng
be7ed5e388
src/drivers/boards/common/{stm32,kinetis}: move under platforms/nuttx/src/px4
2019-10-30 11:48:47 +01:00
Beat Küng
58e161347b
board_mcu_version: move to platforms/nuttx/src/px4
2019-10-30 11:48:47 +01:00
Beat Küng
e7519c9fa0
board_identity: move to platforms/nuttx/src
...
And fix a potential alignment issue in board_get_mfguid and
board_get_px4_guid.
2019-10-30 11:48:47 +01:00
Beat Küng
b30171ba8d
board_common.h: move under platforms/common
...
Also move board_determine_hw_info and board_gpio_init under platforms/nuttx
2019-10-30 11:48:47 +01:00
Beat Küng
3198610f85
src/platforms: move all headers to platforms/common/include/px4_platform_common
...
and remove the px4_ prefix, except for px4_config.h.
command to update includes:
for k in app.h atomic.h cli.h console_buffer.h defines.h getopt.h i2c.h init.h log.h micro_hal.h module.h module_params.h param.h param_macros.h posix.h sem.h sem.hpp shmem.h shutdown.h tasks.h time.h workqueue.h; do for i in $(grep -rl 'include <px4_'$k src platforms boards); do sed -i 's/#include <px4_'$k'/#include <px4_platform_common\/'$k/ $i; done; done
for in $(grep -rl 'include <px4_config.h' src platforms boards); do sed -i 's/#include <px4_config.h/#include <px4_platform_common\/px4_config.h'/ $i; done
Transitional headers for submodules are added (px4_{defines,log,time}.h)
2019-10-30 11:48:47 +01:00
Daniel Agar
4192414576
clang-tidy: partially fix cppcoreguidelines-pro-type-reinterpret-cast
2019-10-28 10:50:31 -04:00
Igor Mišić
f4ee9141cb
DShot: updated driver to use NuttX DMA functions ( #13233 )
2019-10-25 09:49:03 +02:00
Beat Küng
17551a99f8
io_timer: fix potential invalid memory access
2019-10-16 13:13:17 +02:00