nuttx/drivers
Michał Łyszczek 459b4434b1 drivers/analog/hx711.c: fix averaging on negative values
ptype of ((int32_t)0 * (uint32_t)0) is (unsigned). "i" counter was
declared unsigned to not make comparision with "unsigned char" in for loop.
This resulted in calculation in average to be implicitly casted to unsigned,
and when negative number was added to it, it turned into huge value.

Change type of "i" to signed, and just cast (unsigned char) to (int)
to fix this.

Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
2024-03-03 01:56:40 +08:00
..
1wire 1wrie:fix typo 2023-08-03 00:06:24 -07:00
analog drivers/analog/hx711.c: fix averaging on negative values 2024-03-03 01:56:40 +08:00
audio esp32-sparrow-kit: Add I2S support for the board's microphone 2024-02-20 06:46:06 -08:00
bch poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
can poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
clk rpmsg: make all the rpmsg services deponds on RPMSG 2024-02-18 04:09:34 -08:00
contactless mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
crypto Fix Kconfig style 2023-12-09 13:44:46 -08:00
devicetree fdt: Add initial FDT support and procfs for userspace export 2023-08-05 12:41:06 -07:00
dma
dummy build: add initial cmake build system 2023-07-08 13:50:48 +08:00
eeprom Documentation: remove all migrated READMEs 2023-10-29 21:03:54 -03:00
efuse nuttx: use lib_free for memory de-allocation after strdup or asprintf 2023-08-08 11:58:29 -03:00
i2c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
i2s mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
input nuttx/list: rename container_of to list_container_of from public header 2024-02-29 19:44:54 +08:00
ioexpander rpmsg: make all the rpmsg services deponds on RPMSG 2024-02-18 04:09:34 -08:00
ipcc poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
lcd sim_lcd: add open & close 2023-12-18 09:06:29 -08:00
leds drivers/leds/ws2812: Fix WS2812 pixel size 2023-12-24 16:38:06 -08:00
loop enable O_CLOEXEC explicit 2023-09-22 13:51:00 +08:00
math math/mpi: add mpi driver in math 2023-10-17 13:43:43 +08:00
misc nuttx/list: rename container_of to list_container_of from public header 2024-02-29 19:44:54 +08:00
mmcsd fs: procfs add poll support 2023-12-26 19:23:13 -08:00
modem driver/alt1250: Modify return value 2024-02-27 13:16:52 +08:00
motor drivers/foc: add support for drv8301 power-stage driver 2023-11-18 17:07:20 -08:00
mtd rpmsg: make all the rpmsg services deponds on RPMSG 2024-02-18 04:09:34 -08:00
net rpmsg: make all the rpmsg services deponds on RPMSG 2024-02-18 04:09:34 -08:00
note fix build with CONFIG_SCHED_INSTRUMENTATION_FUNCTION 2024-01-22 19:30:40 +08:00
pci cosmetic changes after pci code rebase 2024-01-25 09:09:30 -08:00
pipes poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
power nuttx/list: rename container_of to list_container_of from public header 2024-02-29 19:44:54 +08:00
rc poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
regmap Documentation: remove all migrated READMEs 2023-10-29 21:03:54 -03:00
reset added mutex lock before lookup reset controller by name 2023-08-11 20:39:16 +08:00
rf build: add initial cmake build system 2023-07-08 13:50:48 +08:00
rmt xtensa/esp/rmt: Add the lower-half implementation of the RMT driver 2023-12-24 16:38:06 -08:00
rpmsg rptun ioctl: Strip rpmsg ioctl and rptun ioctl. 2024-02-19 02:15:45 -08:00
rptun rptun ioctl: remove rptun_panic and rptun_dump_all 2024-02-21 21:38:05 -08:00
segger segger/rtt: correct macro name to avoid unable to change default mode 2023-11-30 06:16:09 -08:00
sensors nuttx/list: rename container_of to list_container_of from public header 2024-02-29 19:44:54 +08:00
serial rpmsg: make all the rpmsg services deponds on RPMSG 2024-02-18 04:09:34 -08:00
spi poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
syslog rpmsg: make all the rpmsg services deponds on RPMSG 2024-02-18 04:09:34 -08:00
timers nuttx/list: rename container_of to list_container_of from public header 2024-02-29 19:44:54 +08:00
usbdev usb: document revision and typo fixing 2024-01-18 21:09:20 -08:00
usbhost usb: document revision and typo fixing 2024-01-18 21:09:20 -08:00
usbmisc poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
usbmonitor build: add initial cmake build system 2023-07-08 13:50:48 +08:00
usrsock rpmsg: make all the rpmsg services deponds on RPMSG 2024-02-18 04:09:34 -08:00
video drivers/goldfish_fb: optimize goldfish fb register 2023-12-18 09:08:32 -08:00
virt cosmetic changes after pci code rebase 2024-01-25 09:09:30 -08:00
virtio nuttx/list: rename container_of to list_container_of from public header 2024-02-29 19:44:54 +08:00
wireless mrf24j40: add support for IEEE802154_ATTR_PHY_REGDUMP 2024-02-17 05:00:27 -08:00
.gitignore
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
drivers_initialize.c driver/tee: add optee client driver module 2023-11-23 06:25:48 -08:00
Kconfig Various fixes for PCI work 2024-01-25 09:09:30 -08:00
Makefile Various fixes for PCI work 2024-01-25 09:09:30 -08:00