Commit Graph

110 Commits

Author SHA1 Message Date
Beat Küng ccf2078c66 nxp/fmurt1062-v1: use hw description methods for timer configuration 2020-02-13 03:49:16 -08:00
Beat Küng 8cd9afc19a imxrt io_timer: remove some fields from io_timers_t and split out channel indexes
IOMUX uses different enumeration from GPIO pin + port, so we cannot use
.gpio_out, and add a .gpio_portpin.
2020-02-13 03:49:16 -08:00
Beat Küng d74d094940 nuttx configs: disable nuttx timers which are used for PWM output
These are not required, and to be consistent we enforce disabling them now.
2020-02-13 03:49:16 -08:00
Beat Küng c01f6811d0 nxp/fmuk66-v3: use hw description methods for timer configuration 2020-02-13 03:49:16 -08:00
Beat Küng 62b4f3487a io timer: remove some fields from io_timers_t and split out channel indexes
- reduces amount of board configuration required
- removes the cyclic dependency between io_timers_t and timer_io_channels_t

Fixes a bug in the fmuk66-v3 config: the 2. timer has 3 channels associated
not 2.
Fixes a bug in the modelai config: the 2. timer has 4 channels associated.
2020-02-13 03:49:16 -08:00
David Sidrane 2193cce50b rddrone-uavcan146:Board Added 2020-02-12 10:29:27 -05:00
Beat Küng b399698306 ist8310: remove calibration code
- it does nothing useful
- increases boot time by 2 seconds on pixhawk 4 due to a poll timeout:
IST8310 on I2C bus 3 at 0x0e (bus: 100 KHz, max: 400 KHz)
WARN  [ist8310] ERROR: TIMEOUT 2
2020-02-06 12:39:39 -05:00
David Sidrane 78c7f98ef1 nxp_fmurt1062-v1:Memory Reorg 2020-01-29 13:54:20 -05:00
David Sidrane 962716a7c3 nxp_fmurt1062-v1:Performance tuning 2020-01-29 13:54:20 -05:00
David Sidrane a8720057fd nxp_fmurt1062-v1:RC is on LPUART6 ttyS5 2020-01-29 13:54:20 -05:00
David Sidrane eb30041958 nxp_fmurt1062-v1:PROBES:carry includes and path needed 2020-01-29 13:54:20 -05:00
David Sidrane ef5ed2e43c nxp_fmurt1062-v1:OC remove Pull up - OC have series 47K 2020-01-29 13:54:20 -05:00
David Sidrane ec0f004a7b fmurt1062-v1:Correct SPI1_DRDY4_ICM20602 2020-01-29 13:54:20 -05:00
David Sidrane 1fd2f27493 fmurt1062-v1:Add SPI4 RESET and SYNC 2020-01-29 13:54:20 -05:00
David Sidrane 1346312012 fmurt1062-v1:Add GPIO info 2020-01-29 13:54:20 -05:00
David Sidrane 5202724f19 fmurt1062-v1:Add nARMED Support 2020-01-29 13:54:20 -05:00
David Sidrane 08ac209674 fmurt1062-v1:Set BAT ADC scaling 2020-01-29 13:54:20 -05:00
David Sidrane 453c39230f fmurt1062-v1:Consistently use ONE/ZERO on inital OUTPUT settings 2020-01-29 13:54:20 -05:00
David Sidrane 1d2187528b fmurt1062-v1:Fix LPUART8 RX, TX pin definitions 2020-01-29 13:54:20 -05:00
David Sidrane a4e9498260 fmurt1062-v1:Fix LPUART3 CTS Pin definition 2020-01-29 13:54:20 -05:00
David Sidrane 2cbec89e2b fmurt1062-v1:Fix and enable support for debut Probes 2020-01-29 13:54:20 -05:00
David Sidrane 2385e1091d fmurt1062-v1:Correct ttyS usage 2020-01-29 13:54:20 -05:00
David Sidrane e5bf0710b5 fmurt1062-v1:Support imxrt_lpi2c_reset uses GPIO with SION 2020-01-29 13:54:20 -05:00
David Sidrane f44f8a95e1 fmurt1062-v1:Update board modules ==FMUv5 2020-01-29 13:54:20 -05:00
David Sidrane 625429d3b7 fmurt1062-v1:Support configurations to fine tune LPI2C Timeouts. 2020-01-29 13:54:20 -05:00
David Sidrane 59d17b053f fmurt1062-v1:Support clock setting for SPI and I2C from board.h 2020-01-29 13:54:20 -05:00
David Sidrane 94dbf3176a fmurt1062-v1:Update board modules ==FMUv5 2020-01-29 13:54:20 -05:00
David Sidrane 51f0bc9788 fmurt1062-v1:Remove EVK build options 2020-01-29 13:54:20 -05:00
David Sidrane a8e0c29161 fmurt1062-v1:Invert USDHC CD 2020-01-29 13:54:20 -05:00
David Sidrane be14fa084b fmurt1062-v1 Build for BB Rev A 2020-01-29 13:54:20 -05:00
David Sidrane b4b597251f fmurt1062-v1:Rev to match Rev A HW 2020-01-29 13:54:20 -05:00
David Sidrane 59693dc48e Adding NXP fmurt1062-v1
Add nxp_fmurt1062-v1 to CI
2020-01-29 13:54:20 -05:00
Daniel Agar dc05ceaad2
create temperature_compensation module
- this is a new module for temperature compensation that consolidates the functionality previously handled in the sensors module (calculating runtime thermal corrections) and the events module (online thermal calibration)
 - by collecting this functionality into a single module we can optionally disable it on systems where it's not used and save some flash (if disabled at build time) or memory (disabled at run time)
2020-01-20 21:42:42 -05:00
Daniel Agar e951531b12 camera_feedback: move to WQ callback and uORB::Subscription 2019-11-30 15:49:55 -05:00
David Sidrane c93d358145 fmuk66-v3:Add Ethernet Support 2019-11-27 20:29:35 +01:00
Daniel Agar bc182e94e6
sensors split rc_update into new standalone module 2019-11-24 13:25:11 -05:00
Daniel Agar 92559f7a85
Bosch bmp280 barometer cleanup 2019-11-23 15:31:22 -05:00
Daniel Agar 5aaf1b100b delete unused md25 driver 2019-11-21 18:56:24 -05:00
Daniel Agar 8c38176d77 boards: alphabetize and sync common drivers and modules 2019-11-21 18:56:24 -05:00
Daniel Agar 84fe64b1c2
create new multicopter rate controller module (mc_rate_control) split out of mc_att_control 2019-11-19 17:03:11 -05:00
Daniel Agar 99aae8b891 NuttX use toolchain math.h and avoid empty drivers/Kconfig 2019-11-16 11:43:42 +01:00
David Sidrane 15f25a4e02 fmuk66-v3:Remove MMC support - NuttX detection is broken 2019-11-16 11:43:42 +01:00
David Sidrane 5c0aada220 fmuk66-v3:Remove CONFIG_EXAMPLES_MOUNT 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 d534349dfe nxp:fmuk66-v3 BSP Updated to NuttX 8.1+ 2019-11-16 11:43:42 +01:00
David Sidrane 11287712f8 fmuk66-v3:Fix hang on SDIO card removal/reinsertion
The interrupt driven card detect logic was enabled
   but the auto mounter was not. That interrupt was
   calling mmcsd_mediachange.

   There is a reentrancy issues in the kinetis callback logic.
   Toplevel calls mmcsd_mediachange calls SDIO_CALLBACKENABLE
   that calls kinetis_callbackenable that calls kinetis_callback
   that calls mmcsd_mediachange.
2019-11-15 11:13:38 -05:00
Daniel Agar 668984b6b0 boards: start adc in rc.board_sensors 2019-11-11 17:08:24 -05: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 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