Jukka Laitinen
9449ed6e66
Add support for protected build in drivers, systemcmds and modules Kconfig
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae >
2022-02-18 07:58:58 +01:00
Daniel Agar
0029a75ab0
systemcmds: convert c -> c++
2021-12-21 09:22:49 -05:00
Peter van der Perk
d5e3e9a7bc
[Kconfig] Decompose Kconfig, now each module has its own Kconfig
...
Which is better for versioning and decomposability
2021-10-07 10:09:01 -04:00
Daniel Agar
6d78054f50
mavlink USB auto start/stop on boards with VBUS
...
- no longer start sercon or mavlink usb by default
- on USB connection (VBUS) monitor serial USB at low rate and start Mavlink if there's a HEARTBEAT or nshterm on 3 consecutive carriage returns
- the mavlink USB instance is automatically stopped and serdis executed if USB is disconnected
- skipping Mavlink USB (and sercon) saves a considerable amount of memory on older boards
2021-10-03 15:32:54 -04: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
78ef8aab2d
STACK_MAIN increase default 1024 -> 2048
2019-08-30 19:11:51 -07:00
Daniel Agar
ea3acb7121
cmake remove circular linking and reorganize
...
- px4_add_module now requires MAIN
- px4_add_library doesn't automatically link
2018-04-29 21:48:54 -04:00
Beat Küng
ba1a483cd6
nshterm: add documentation
2017-07-14 11:57:11 +02:00
David Sidrane
fd7d399958
Upstream Nuttx restructured directories use micro_hal
2016-12-21 08:34:20 +01:00
Julian Oes
8ff237c69f
Remove size optimization for individual modules
...
It makes more sense to set the optimization flags on a platform basis
instead of individually for each module. This allows for different
optimization options for SITL, NuttX, Snapdragon, etc.
2016-09-30 08:11:51 +02:00
Beat Küng
8a12dee125
cmake: remove all module.mk files & cmake conversion script ( #4918 )
...
It seems these files are leftovers.
2016-06-28 09:26:36 +02:00
James Goppert
967e4dd127
Modified cmake to use STACK_MAX and STACK_MAIN
2016-04-14 13:36:36 -04:00
James Goppert
1d6b31d196
Switch to cmake build system.
2015-09-07 20:37:45 -04:00
Daniel Agar
88d58ae051
format src/systemcmds/nshterm
2015-09-05 12:21:11 -04:00
Lorenz Meier
1ef7d13487
Increase NSH back-off time
2015-08-13 23:26:35 +02:00
Lorenz Meier
aa61d3b2d6
Merged beta into master
2015-08-08 11:33:42 +02:00
Lorenz Meier
e09771be17
NSH terminal: Increase hold-off time to ensure USB is up and running
2015-08-08 11:31:58 +02:00
Mark Charlebois
9758112e31
Use px4_config.h instead of nuttx/config.h
...
Modified code to use OS independent header file for config settings.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-20 10:55:41 -07:00
Lorenz Meier
18d756dd59
USB startup: Ensure that we are not talking to the peripheral too soon. Startup does not take longer due to smart rearrangement of launch calls
2015-01-26 08:59:19 +01:00
Lorenz Meier
d70ed8ad12
NSH term fix
2015-01-04 19:04:56 +01:00
Lorenz Meier
552ff80969
Fix NSH timeout logic
2015-01-04 18:53:34 +01:00
Lorenz Meier
db144f8da7
Merge pull request #1419 from PX4/nshterm
...
NSH term: Only time out if no arming information is available, if arming...
2014-11-17 07:59:05 +01:00
Lorenz Meier
8652ee0b64
Drop NSH priority to keep system responsive
2014-11-03 09:48:24 +01:00
Lorenz Meier
83eb81251c
NSH term: Only time out if no arming information is available, if arming information is available abort if unconnected on arming
2014-11-01 11:22:18 +01:00
Lorenz Meier
eeda1886f0
Simplify error messages for NSH term
2014-11-01 11:07:36 +01:00
Lorenz Meier
9f3c352959
Leave NSH terminal enough stack space
2014-10-30 16:38:27 +01:00
Lorenz Meier
54fc6aa678
Hotfix: Optimize shell commands for size - we do not need massive performance there
2014-08-13 10:33:46 +02:00
Anton Babushkin
c9eea8fbfa
nshterm: increase stack size to fix crash on 'ls -l'
2014-07-29 12:01:09 +02:00
Lorenz Meier
04efee0bc8
nshterm: Hotfix for retries counter
2014-06-30 12:23:38 +02:00
Lorenz Meier
ea99fd8446
nshterm: Reduce stack size further after more thorough inspection
2014-05-16 10:48:41 +02:00
Lorenz Meier
6018ffa462
nshterm: Use only the stack we really need
2014-05-14 14:02:01 +02:00
Lorenz Meier
f35e6efbca
Check 30 seconds for USB port
2014-01-07 08:37:06 +01:00
Lorenz Meier
95260d4535
Fixed NSH terminal init
2013-08-20 09:36:26 +02:00
Lorenz Meier
1ae5a6ac1d
Minimized nshterm flags, fixed some pretty stupid non-standard coding in top, now behaving with two shell instances as expected
2013-08-19 15:02:15 +02:00
Lorenz Meier
80f38e3dea
Put console and syslog on UART8, added support to nshterm for proper serial port config
2013-08-18 21:00:47 +02:00
Andrew Tridgell
4708693f86
nshterm: start a nsh console on any device
...
this is used in APM startup to fallback to a console on ttyACM0 if
startup fails for any reason
2013-08-03 11:41:35 +02:00