Alan C. Assis
0baf524def
apps: Modify oneshot example to let users see it working
2022-02-25 11:55:10 +08:00
Xiang Xiao
4cc0c755bf
Remove CONFIG_CLOCK_MONOTONIC special code
...
since this opion doesn't exist anymore
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-23 01:21:44 +08:00
Piet
c1757660a6
apps: hello_rust example program
2022-02-20 07:37:29 +08:00
raiden00pl
81f15936c1
examples/foc/foc_parseargs.c: fix help message
2022-02-17 10:30:41 +01:00
raiden00pl
95b1625a6d
examples/foc/foc_motor: store the configured FOC run mode in a separate variable
...
The controller mode can change during example execution and depends on the thread state (IDENT [not yet upstream] / ALIGN / RUN)
2022-02-17 10:30:41 +01:00
raiden00pl
3b1967ec71
examples/foc: add an option to disable motor controller logic
...
This is useful feature for debug purposes.
2022-02-16 23:57:27 +08:00
raiden00pl
e6b6c14f53
examples/foc: make the FOC current controller configurable
...
For now only the FOC PI current controller is supported, but this can be easily extended to support other control methods
2022-02-16 23:49:46 +08:00
Petro Karashchenko
9a85c405f5
examples/buttons: fix strange code in buttons_main
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-02-16 23:48:24 +08:00
chao.an
c48a8fdf4e
examples/tcpecho: fix typo
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-02-08 20:57:55 +01:00
Gerson Fernando Budke
836cd05526
examples: Add mcuboot Swap Test example
...
This example demonstrate swap between two valid images. Instructions
are available at readme.md file inside project directory.
Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2022-02-02 17:38:29 +08:00
Petro Karashchenko
41c8342927
examples/lvgldemo: bugfix typos and enable GRAPHICS_LVGL
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-29 00:54:29 +08:00
Petro Karashchenko
480400c523
examples/pca9635: change O_RDONLY to O_WRONLY for driver open call
...
PCA9635 driver does not support neither need nor write operations.
The ioctl is supports PWMIOC_SETLED_BRIGHTNESS that is write like
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-29 00:52:24 +08:00
Petro Karashchenko
2498be1f40
romfsimg: add attribute to set minimum 4 bytes aignment for romfs image data
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-28 00:02:45 +08:00
Petro Karashchenko
3c556384ea
examples/chrono: fix typo in log message
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-25 23:09:12 +01:00
Xiang Xiao
c7e96dbe32
Fix the nxstyle warning
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-17 07:57:22 +01:00
Petro Karashchenko
9480c0ec12
include: fix double include pre-processor guards
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-16 17:36:21 +08:00
Fotis Panagiotopoulos
bc5d8034f1
Typo fixes.
2022-01-06 10:30:41 +08:00
Abdelatif Guettouche
33475cbff6
hts221_reader_main.c: Fix the start IOCTL.
...
SNIOC_START is not handled by the hts221 driver.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2022-01-02 10:45:02 +08:00
Norman Rasmussen
2e773bcdc6
Use macros from fixedmath.h for manipulating duty cycle
...
This avoids magic shift logic in code, and has no change to behavior.
2021-12-29 06:25:27 -06:00
Norman Rasmussen
28c133a503
Adjust channel and duty bounds to allow testing sentinel values
...
commit 7354ab187ed701ae041b45a0a6603878ab9b165d and commit
1e2f06718103e7028809012a69b7ac932e9ae537 added code to skip all
remaining channels when the channel number is -1. This adds support for
testing that using the example app. The BL602 driver's first channel is
channel 0, so this also allows the example app to select the first
channel.
2021-12-29 06:25:27 -06:00
Norman Rasmussen
75c1e43334
increase number of supported PWM channels from 4 to 6
...
commit d8199fe460
changed Kconfig, but it
looks like pwm_main.c should have been changed too. This adds support
for the 5th and 6th channels to the code, and adds an error if more than
6 channels are configured.
2021-12-29 06:25:27 -06:00
Norman Rasmussen
ec93611307
examples/mqttc: Fix handling of getaddrinfo errors
...
commit 36d4bfa774
set a hostname to work
around getaddrinfo failing. getaddrinfo returns a non-zero value on
error, and there should be an early return after the error message is
printed.
2021-12-29 02:45:47 -06:00
Petro Karashchenko
5ac15130db
apps: remove space befone newline in logs
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2021-12-27 20:52:08 -06:00
Diego Herranz
0e8e08e2a0
Add example app for isl29023 driver
...
Created from the hdc1008_demo example.
2021-12-25 19:53:05 +08:00
Alan C. Assis
64a09770c8
apps/sht3x: Add simple application to test SHT3x sensor
2021-12-24 12:02:45 -06:00
zhanghu6
2bd3a1701c
sched note: printf API example
...
test API:
void sched_note_string(FAR const char *buf);
void sched_note_dump(uint32_t module, uint8_t event,
FAR const void *buf, size_t len);
void sched_note_printf(FAR const char *fmt, ...) printflike(1, 2);
void sched_note_bprintf(uint32_t module, uint8_t event,
FAR const char *fmt, ...) printflike(3, 4);
https://github.com/apache/incubator-nuttx/pull/4963
suggestion:
1. add "&" after the command when running this example.
2. must enable SCHED_INSTRUMENTATION_DUMP, and that enable CONFIG_SYSTEM_TRACE can help you view log.
2021-12-19 20:29:52 -06:00
Fadil R. Berisha
2aadb22301
examples/wget: Saving a file downloaded with wget
...
wget [-o <local-path>] <url>
2021-12-19 20:28:56 -06:00
Diego Herranz
7ba6f7cdb3
examples/hdc1008_demo: fix formatting after decimal point
...
Modulo operation used to calculate digits after decimal point,
but if that result is <10, a leading zero wasn't added, giving a
wrong value.
Same as 34c7bec0dc
but on the example app.
2021-12-18 07:14:03 -06:00
Jari van Ewijk
21e0ff1153
timer_gpout example: rename to timer_gpio
2021-12-09 12:00:44 -06:00
Jari van Ewijk
128996fb5f
timer_gpout example: use /dev/gpioN instead of /dev/gpoutN
2021-12-09 12:00:44 -06:00
Jari van Ewijk
71f5af47e4
GPIO example application: Add support for changing pintypes
2021-12-09 11:34:53 -06:00
raiden00pl
0577bd2c33
examples/foc: add a simple character based interface to interact with the app
2021-12-08 12:20:42 -06:00
raiden00pl
37aa562f03
examples/foc: move adc and button interfaces logic to a separate file
2021-12-07 07:51:12 -06:00
raiden00pl
ea27aacbd2
examples/foc: move threads related logic to a separate file
2021-12-07 07:51:12 -06:00
raiden00pl
3fda1294d7
examples/foc: move setpoint and vbus configuration from foc_adc.h to foc_cfg.h
2021-12-07 07:51:12 -06:00
raiden00pl
edeaacedb0
examples/foc/foc_cfg.h: fix typo
2021-12-07 07:51:12 -06:00
Xiang Xiao
9397e92fcd
examples/thttpd: Don't touch task_tcb_s::argv field
...
since it move to task_info_s now
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-06 09:58:38 +01:00
futerigele
c26e5a0b44
examples/touchscreen: added timestamp printing in tc
...
added timestamp printing in tc
Signed-off-by: futerigele <futerigele@xiaomi.com>
2021-12-04 01:05:16 -06:00
liushuai25
02ff4a8a59
fix: fb: set overlay to 0
...
when CONFIG_FB_OVERLAY=y, need set overlay=0,
otherwise the lcd driver doesn't know which
layer to get.
Signed-off-by: liushuai25 <liushuai25@xiaomi.com>
2021-11-25 08:00:45 -06:00
Xiang Xiao
75c11d4480
examples/helloxx: add extern "C" to main implementation directly
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-11-23 17:23:05 -03:00
erhan cengiz
6b7fe2ac51
FOC Kconfig corrected
2021-11-08 07:40:09 -06:00
raiden00pl
629e5a8e62
examples/foc: add support for sensor index search
2021-11-07 03:46:17 -06:00
raiden00pl
15b66aa128
examples/foc: add Qenco support
2021-11-07 03:44:03 -06:00
raiden00pl
f38d7d2ed3
examples/foc: terminate main loop if FOC control loop terminated
2021-11-07 03:42:06 -06:00
raiden00pl
5ee9572531
examples/foc: add Hall sensor support
2021-11-04 13:50:57 -05:00
raiden00pl
c771942d8e
examples/foc: add support for sensor alignment
2021-11-04 13:50:57 -05:00
raiden00pl
b30f3329f6
foc/examples: initial logic to support torque, velocity and position controller modes
2021-11-04 13:50:57 -05:00
raiden00pl
b0eeefd0a5
examples/foc: add logic for controller state machine
2021-11-04 13:50:57 -05:00
raiden00pl
f9cec1c770
examples/foc: move the motor controller code to separate files
2021-10-31 12:13:45 -05:00
raiden00pl
22ed7da99c
examples/foc: move the common FOC dev logic from threads to one place
2021-10-31 12:13:45 -05:00