David Sidrane
a3e2777208
NuttX/nuttx with SDIO fixes ( #13311 )
...
* NuttX/nuttx with SDIO fixes
5 years ago
Beat Küng
1dd6b6a505
stm32f3: add libs and stubs for F3 build (thiemar_s2740vc-v1)
5 years ago
Beat Küng
3b7c1b4ff1
src/drivers/boards: move to platforms/nuttx/src/px4/common
5 years ago
Beat Küng
be7ed5e388
src/drivers/boards/common/{stm32,kinetis}: move under platforms/nuttx/src/px4
5 years ago
Beat Küng
58e161347b
board_mcu_version: move to platforms/nuttx/src/px4
5 years ago
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.
5 years ago
Beat Küng
b30171ba8d
board_common.h: move under platforms/common
...
Also move board_determine_hw_info and board_gpio_init under platforms/nuttx
5 years ago
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)
5 years ago
Daniel Agar
6f1f5e0325
clang-tidy: partially fix readability-redundant-declaration
5 years ago
Daniel Agar
a7f330075a
clang-tidy: enable hicpp-braces-around-statements and fix
5 years ago
Daniel Agar
4192414576
clang-tidy: partially fix cppcoreguidelines-pro-type-reinterpret-cast
5 years ago
Daniel Agar
967446af4c
clang-tidy: enable readability-simplify-boolean-expr and fix
5 years ago
Daniel Agar
279df3b1b8
clang-tidy: partially fix hicpp-use-equals-delete
5 years ago
Daniel Agar
ae27dd60a6
Jenkins re-enable clang-tidy and update .clang-tidy
...
- device/Device: fix explicit constructor and uninitialized fields
- systemcmds/motor_test: update NULL to nullptr
5 years ago
Igor Mišić
f4ee9141cb
DShot: updated driver to use NuttX DMA functions ( #13233 )
5 years ago
Matthias Grob
d60e1e2774
ControlMath: switch to gtest for unit tessting
5 years ago
Julian Oes
8e625285fc
platforms: initialize strings
...
This might fix a warning about argv being a TAINTED_SCALAR further down.
5 years ago
Beat Küng
25aded36ec
WorkQueue: avoid potential semaphore counter overflow
...
This could happen in the following cases:
- IRQ/publisher rate is faster than the processing rate, and therefore
WorkQueue::Add is called at a higher rate
- a long-running or stuck task that blocks the work queue a long time
Both cases are not expected to happen under 'normal' circumstances (if the
system runs as expected).
5 years ago
Beat Küng
17551a99f8
io_timer: fix potential invalid memory access
5 years ago
Matthias Grob
e843090383
Replace a lot of memset with {} initializers
5 years ago
Beat Küng
8a9744d05a
dshot: allow boards to enable dshot only on a subset of the timers
5 years ago
Beat Küng
d0a7490222
dshot: update timer generation before DMA request
...
This reloads the timer configuration before triggering DMA. Without that,
in rare cases, there were 17 bits sent instead of 16.
The 1. bit (1. pulse) was always wrong (too much), the rest of the bits
were the correct DShot packet that was meant to be sent.
5 years ago
Beat Küng
7445c25fcc
dshot: check if DMA still in progress
...
No other functional change, just restructuring.
5 years ago
Beat Küng
182efaa757
dshot: reduce static buffer size
...
And handle failures of up_dshot_init().
On Omnibus: reduces memory usage if dshot is enabled by ~1.0KB.
The buffer is roughly 1KB in size.
5 years ago
Beat Küng
69c10dcaac
dshot: move implementation to a separate directory & library
...
So that the static memory overhead is not added to targets w/o dshot
5 years ago
Beat Küng
23dbd9426a
dshot: handle dcache, flush cache before DMA transfer
5 years ago
Beat Küng
3234aca53b
px4_micro_hal: add PX4_ARCH_DCACHE_LINESIZE definition
5 years ago
Igor Mišić
5bd9659301
stm32 timers: add dshot implementation
5 years ago
Daniel Agar
3c623af903
ekf2: move to WQ with uORB callback scheduling
5 years ago
Daniel Agar
26364d44c9
px4_work_queue: command line status output and shutdown empty queues
...
* adds a work_queue systemcmd that will bring a tree view of all active work queues and work items
* WorkQueues now track attached WorkItems and will shutdown when the last WorkItem is detached
5 years ago
Daniel Agar
3687677095
cmake: show sitl_gazebo build output and improve rebuild
5 years ago
Kjkinney
3f9b3fb4da
px4_log: publish all PX4_INFO messages as well ( #12954 )
5 years ago
Daniel Agar
86dc4c5a00
cmake generate vscode launch.json
5 years ago
Daniel Agar
fb7521eb5e
cmake px4_base -> px4_parse_function_args
5 years ago
Daniel Agar
d27dfcd921
NuttX CMakeLists.txt extract helpers (jlink, upload, etc)
5 years ago
Julian Oes
78d3986013
platforms: fix main function signature
6 years ago
Beat Küng
d3fb610fde
mixer_module: create MixingOutput library and use in fmu
...
This should be a pure refactoring, no functional change.
6 years ago
Beat Küng
43fdcd7876
px4_middleware: remove that header and move px4::init to px4_init.h
...
delete include:
for i in $(grep -rl 'px4_middleware.h' src platforms); do sed -i '/#include <px4_middleware.h/d' $i; done
6 years ago
Beat Küng
f32abe8534
src/platforms: move remaining source files to platforms/common
6 years ago
Beat Küng
f8e0441e7b
src/platforms/common: move to platforms/common
...
Script to update include paths:
for i in $(grep -rl 'include <px4_work_queue' src platforms); do sed -i 's/#include <px4_work_queue/#include <px4_platform_common\/px4_work_queue/' $i; done
6 years ago
Beat Küng
5d0e72040c
src/platforms/posix: move to platforms/posix/src/px4/common and src/drivers/driver_framework_wrapper
6 years ago
Beat Küng
fa8165a1c3
platforms/posix/src: move to platforms/posix/src/px4/common
6 years ago
Beat Küng
3bdfd8ce8d
ToneAlarmInterface: move to drivers/drv_tone_alarm
...
It belongs there since it's not a library providing the implementation, but
just declaring the interface.
6 years ago
Beat Küng
f3fccf53f6
src/drivers/{kinetis,stm32}: move to arch-specific directories
6 years ago
Beat Küng
3003e7d0fc
drv_led_pwm: move to arch-specific directory
6 years ago
Beat Küng
bd1b267baa
NuttX hrt: move into arch-specific directory
6 years ago
Beat Küng
1cb6c36a00
adc: refactor into arch-specific directories
6 years ago
Beat Küng
ab43a83bed
platform: restructure (NuttX) architecture-specific code
...
updated: tone_alarm, px4io_serial, px4_micro_hal
6 years ago
Daniel Agar
e8dcd8c2fc
cmake nuttx ignore linking target warning
6 years ago
roangel
e50dd7c364
replay: close replay log file after replay is finished, then exit ( #11264 )
6 years ago