Gregory Nutt
641a98a434
arch/: The saved return register state is available on the user stack. Thic commit reorders some logic so that certain, critical registers are preserved in the TCB. This does not make the logic 100% secure, but does prevent some obvious things. sched/signal/sig_delivery: Add a flag to the TCB to indicate that we are in a signal handler. Use this flag to assure that a there a never attempts to nest signal handling operations on a thread. This was guaranteed before but when locking of pre-emption during signal delivering was eliminated in a previous commit, there was a remote possibility of an attempt to do nested signal handling. This flag assures that there is only one signal handled at a time.
2019-02-03 15:29:47 -06:00
Gregory Nutt
6408857f6d
sched/sched/sched_processtimer.c: Add a configurable call out to a user-provided function, 'timer hook', on each timer interrupt.
2019-01-30 07:22:44 -06:00
Xiang Xiao
2f49cdb311
include/nuttx/list.h: Fix some typos.
2019-01-29 07:37:22 -06:00
Gregory Nutt
5a0f514615
drivers/timers/timer.c: Support the signal notification through SIGEV_THREAD
2019-01-28 06:32:27 -06:00
Gregory Nutt
732bef73a7
include/net/if.h: Fix some macro definitions overlooked in commit d105dc9b5e
. Also corrects the name of a structure: mii_ioctl_notify_s vs mii_iotcl_notify_s.
2019-01-27 16:43:42 -06:00
Xiang Xiao
af5e479fb5
fs/littlefs: VFS wrapper improvement: (1) Support block device interface, (2) support ioctl, stat and sync file operation, (3) support forceformat and autoformat option, (4) update file->f_pos and dir->fd_position, (5)remote the internal struct from dir, and (6) emove mtd byte read/write requirement.
2019-01-27 12:31:28 -06:00
zhuyanlin
d53a5381f0
include/nuttx/list.h: Added a Linux-compatible list implementation.
2019-01-27 11:56:25 -06:00
Xiang Xiao
43d47a66c5
include/pthread.h and signal.h: Avoid redefinition of types
2019-01-27 11:34:39 -06:00
Xiang Xiao
daf26128d7
include/nuttx/fs/fs.h: Move the union inode_ops_u i_mtd field into the mount section of inode_ops_u and remove the guard to simplify fs which support both block and mtd.
2019-01-27 11:27:46 -06:00
Xiang Xiao
d0ac00c2f5
include/stdbool.h: Define bool only when __cplusplus isn't defined.
2019-01-27 11:25:00 -06:00
Xiang Xiao
bc43769f60
include/nuttx/serial/uart_16550.h: Fix warning: 'struct file' declared inside parameter list.
2019-01-27 11:22:40 -06:00
Xiang Xiao
6884af68d8
include/nuttx/irq.h: Fix enter_critical_section/spin_lock_irqsave macro typo error and remove the duplicated inclusion of arch/irq.h
2019-01-27 11:21:03 -06:00
ligd
32075ef9d8
drivers/power/pm_activity.c: Add pm_staycount API for get stay numbers. This function is currently not used and a waste of FLASH space.
2019-01-27 11:19:26 -06:00
Xiang Xiao
fe421022e2
sched/wqueue/kwork_notifier.c and several Kconfig files: Notifier should work with either lpwork or hpwork and other minor typo fix.
2019-01-27 11:02:56 -06:00
Xiang Xiao
e57f7cf6ae
Critical Section Monitor (sched/ and fs/procfs: Remove SCHED_IRQMONITOR_GETTIME to simplify the clock source selection: (1) Use up_critmon_gettime if SCHED_IRQMONITOR, (2) Call clock_systimespec if SCHED_TICKLESS, (3) Don't collect timing info for all other cases and move up_critmon_* to arch.h avoid the duplicated declaration.
2019-01-27 10:13:28 -06:00
Xiang Xiao
fb63c0a293
sched/signal and related changes to other OS subsystems.
2019-01-27 09:28:59 -06:00
Xiang Xiao
d105dc9b5e
drivers/net/phy_notify.c and all network drivers that support PHY notifications: Support the signal notification through SIGEV_THREAD
2019-01-27 08:57:23 -06:00
Xiang Xiao
5e8ae23edc
drivers/timers/oneshot.c: Support signal notification through SIGEV_THREAD
...
drivers/timers/rtc.c: Support signal notification through SIGEV_THREAD
drivers/input/ajoystick.c: Support signal notification through SIGEV_THREAD
drivers/input/djoystick.c: Support signal notification through SIGEV_THREAD
drivers/input/button_upper.c: Support signal notification through SIGEV_THREAD
drivers/sensors/zerocross.c: Support signal notification through SIGEV_THREAD
drivers/wireless/ieee802154: Support signal notification through SIGEV_THREAD
drivers/lcd/ft80x.c: Support signal notification through SIGEV_THREAD
2019-01-27 08:53:12 -06:00
Xiang Xiao
16850297f3
libs/unistd and other affected files: Hostname support no longer depends on CONFIG_NET since the host name is also useful in the non-network environment. CONFIG_NET_HOSTNAME changed to CONFIG_LIB_HOSTNAME.
2019-01-27 06:56:16 -06:00
Alan Carvalho de Assis
db0b9b7c34
arch/arm/src/samd2l2 serial: Fix SAMD2L2 serial driver it needs sam_usart_enable() to work
2019-01-26 12:51:51 -06:00
Xiang Xiao
8763e51583
libs/libc/symtab/symtab_findorderedbyvalue.c: Remove unused symtab_findorderedbyvalue.
2019-01-26 12:42:30 -06:00
Xiang Xiao
da4ab2af98
include/nuttx/elf.h: I forgot to add this header file that was introduced in a preceding commiti 095e28d45e
.
2019-01-26 11:56:49 -06:00
Xiang Xiao
0edcd6b85e
binfmt/libelf, libs/libc/modlib: Optimize elf load speed: (1) Don't zero out memory, (2) Reduce the initial buffer size to 32 bytes.
2019-01-26 11:34:40 -06:00
Xiang Xiao
095e28d45e
binfmt/, binfmt/libelf/, include/nuttx, libs/libc/machine, libs/libc/modlib, and others: Move elf related arch function to include/nuttx/elf.h because the implementation is located in libs/libc/machine and in order to avoid the conflict with the 3rd party libraries and clean up the file inclusion: (1) Remove redundant elf32.h, (2) Remove nuttx/binfmt/elf.h in libs/libc/machine, (2) Remove nuttx/binfmt/elf.h in modlib, and (4) Rmove nuttx/module.h in modlib.
2019-01-26 11:18:45 -06:00
Ken Pettit
b507fe9606
drivers/sensors/ina3221.h: Fix errors in register addresses and bitfield values.
2019-01-26 09:59:06 -06:00
Xiang Xiao
ee28417246
mm/iob/iob_notifier.c: Don't check iob_navail in iob_notifier_setup to avoid a potential race condition.
2019-01-26 09:43:54 -06:00
Gregory Nutt
8e55c1324a
Fix all naming resulting from moving move all file system tests from apps/examples/ to apps/testing/ (fstest, nxffs, smart, smart_test).
2019-01-24 14:55:44 -06:00
raiden00pl
f841175540
Merged in raiden00/nuttx_pe (pull request #822 )
...
Improvements for STM32 PWM
arch/arm/src/stm32/stm32_pwm: fix polarity and IDLE state configuration for advanced timer PWM
include/dsp.h: raise error if math.h not present
Approved-by: GregoryN <gnutt@nuttx.org>
2019-01-23 17:52:27 +00:00
Gregory Nutt
3a13d4a5f5
include/nuttx/lcd/edid.h: Add extended EDID block IDs
2019-01-20 15:07:57 -06:00
Gregory Nutt
bb2391358c
Cosmetic changes for coding style for last PR
2019-01-20 07:38:55 -06:00
raiden00pl
a7d4abd8d2
Merged in raiden00/nuttx_lora (pull request #821 )
...
Initial support for sx127x radio
Approved-by: GregoryN <gnutt@nuttx.org>
2019-01-20 13:03:11 +00:00
Gregory Nutt
25f6586c92
Update some input parameter descriptions.
2019-01-19 14:15:23 -06:00
Gregory Nutt
4e98eb7581
include/nuttx/lcd/tda19988.h: Trivial update to some comments.
2019-01-16 15:04:25 -06:00
Gregory Nutt
536735420b
drivers/lcd/tda19988.c: Remove EDID definitions. Use definitions from new edid.h.
2019-01-15 12:48:46 -06:00
Gregory Nutt
9df0a387ba
include/nuttx/lcd/edid.h: Add EDID definitions
2019-01-15 12:40:13 -06:00
Gregory Nutt
28dc49c627
include/nuttx/lcd: Fix more errors in comments.
2019-01-15 09:52:48 -06:00
Gregory Nutt
01ad48ed1a
include/nuttx/lcd: Fix some errors in comments.
2019-01-15 09:49:45 -06:00
Gregory Nutt
a830d59da2
This commit brings in a complete, but untested, implementation of a driver for the TI TDA19988 HDMI Encoder. This encoder is used on the Beaglebone Black board. Since this driver is untested, it requires CONFIG_EXPERIMENTAL in the configuration.
...
Squashed commit of the following:
drivers/lcd/tda19988.c: Numerous changes for a clean compilation.
drivers/lcd/tda19988: Bring in the final pieces from the FreeBSD TDA19988 driver. The driver is now code complete.
drivers/lcd/tda19988.c: Flesh on EDID read logic (still not complete). Add unlink shutdown logic.
drivers/lcd/tda19988.c: Add logic to read one EDID block.
drivers/lcd/tda19988.c: Add tda19988_read_edid() interface. Flesh read() and seek() methods.
drivers/lcd/st7032.c: Fix another error in seek method: Does not account for negative offsets!
drivers/lcd/tda19988.c: Add basic IOCTL infrastructure to support configuratin the video mode. Mostly just a framework for now.
drivers/lcd/tda19988.c: Add more register definitions. Encode page+address in the same was as FreeBSD.
drivers/lcd/tda19988.c: Add support for CEC messaging.
drivers/lcd/tda19988.c: Implement the unlink method. No IOCTLs defined yet.
drivers/lcd/tda19988.c: Add placeholders for missing character driver methods.
drivers/lcd/tda19988.c: Trivial interface improvement to permit reading multiple TDA19988 registers.
drivers/lcd/tda19988.c: Feeble start of TCA19988 drivers. Consists of lower half interface definition and some I2C helper functions. Nothing more.
2019-01-15 08:55:53 -06:00
Gregory Nutt
7bf79759bb
include/nuttx/compiler.h: Correct support of C-version-specific features. Cannot depend on GCC version because -std=c89 may be used on comomand line. Need instead to use __STDC_VERSION__ to determine if a feature is supported. Also add conditional support inline, depending on C99.
2019-01-09 15:39:54 -06:00
lihaichen
87a5e4cd2d
Addes the ARM mbed littlefs to NuttX
...
Squashed commit of the following:
Author: Gregory Nutt <gnutt@nuttx.org>
fs/littlefs: Fix some compilation errors.
fs/littlefs: Brings code a little closer to NuttX coding standard. Not 100%, but closer.
fs/littlefs: Convert all C++ style comments to C comments.
Author: lihaichen <li8303@163.com>
fs/littlefs: Adds port of the mbed littlefs.
depends on !DISABLE_MOUNTPOINT && MTD_BYTE_WRITE
register_mtddriver("/dev/w25", mtd, 0755, NULL);
mount("/dev/w25", "/w25", "littlefs", 0, NULL);
2019-01-09 14:26:51 -06:00
Gregory Nutt
e74cabf923
Cosmetic changes from review of last PR.
2019-01-09 07:49:19 -06:00
Jussi Kivilinna
d4a38a8974
Merged in jussi_kivilinna/nuttx/sensirion_drivers (pull request #809 )
...
Drivers for Sensirion SCD30, SGP30 and SPS30 sensors
* drivers/sensors: add driver for Sensirion SCD30 CO2 sensor
* drivers/sensors: add driver for Sensirion SGP30 gas sensor
* drivers/sensors: add driver for Sensirion SPS30 particulate matter sensor
Approved-by: GregoryN <gnutt@nuttx.org>
2019-01-09 13:35:44 +00:00
Ouss4
d0b4a018bf
drivers/timers/mcp794xx.c: Rename the module to mcp794xx.
2019-01-08 13:04:50 -06:00
MYAPICI
3dd479d1b9
include/dsp.h: Fix missing semicolon error in dsp.h
2019-01-07 07:27:40 -06:00
Ouss4
e998acee67
drivers/timers/mcp7941x.c: Add support for the MCP741x external RTC.
2019-01-06 17:32:02 -06:00
Levin Li
c212163beb
drivers/usbdev/cdcacm.c: When implemented usb cdc on nrf52840, I found some issues with cdc driver.
...
1. lost data when receiving buffer is full;
2. low-water mask implement issue;
3. re-flush cdc buffer when enabling
4. serial dma is conflict with cdc , modify the serial.h
2019-01-02 07:49:21 -06:00
Alan Carvalho de Assis
37af1d4c76
drivers/power/mcp73871.c: Add support to Microchip MPC73871 Battery Charger.
2018-12-31 13:50:17 -06:00
Gregory Nutt
6f00e0848d
include/nuttx/fs/fs.h: Fix a few typos.
2018-12-31 12:28:17 -06:00
Gregory Nutt
bdd02a6aed
Some cosmetic updates, mostly to spacing and comments.
2018-12-30 11:58:19 -06:00
Alan Carvalho de Assis
1325c98f97
drivers/eeprom/i2c_xx24xx.c and include/nuttx/eeprom/i2c_xx24xx.h: Add support to Microchip AT24CM02
2018-12-30 11:20:03 -06:00