Commit Graph

3198 Commits

Author SHA1 Message Date
Gregory Nutt
2aca4d4ebd 6loWPAN: Add a little more send logic. 2017-03-30 15:38:56 -06:00
Juha Niskanen
9e2b3da3e8 drivers/sensors: Add driver for ST HTS221 humidity sensor 2017-03-30 12:17:23 -06:00
Jussi Kivilinna
dffb8a67e3 Add entropy pool and strong random number generator
Entropy pool gathers environmental noise from device drivers, user-space, etc., and returns good random numbers, suitable for cryptographic use. Based on entropy pool design from *BSDs and uses BLAKE2Xs algorithm for CSPRNG output.

Patch also adds /dev/urandom support for using entropy pool RNG and new 'getrandom' system call for getting randomness without file-descriptor usage (thus avoiding file-descriptor exhaustion attacks). The 'getrandom' interface is similar as 'getentropy' and 'getrandom' available on OpenBSD and Linux respectively.
2017-03-30 07:38:37 -06:00
Gregory Nutt
b231379b3c Merge remote-tracking branch 'origin/master' into ieee802154 2017-03-29 14:29:38 -06:00
Gregory Nutt
a6148cdb7c 6loWPAN: Adding more socket send-related logic. 2017-03-29 14:28:51 -06:00
Gregory Nutt
3a4e8a5946 Merge remote-tracking branch 'origin/master' into ieee802154 2017-03-29 10:57:04 -06:00
Anthony Merlino
8df78cc74b wireless/ieee802154: Adds MAC character driver structure. Nonfunctional 2017-03-29 12:51:01 -04:00
Anthony Merlino
8f67ec30a7 wireless/ieee802154: Removes ieee802154.h and makes other minor changes 2017-03-29 12:39:52 -04:00
Gregory Nutt
5fb222180c 6loWPAN: IEEE802.15.4 MAC driver will need a special form of the network device structure to manage fragmentation of the large packet into frames. 2017-03-29 10:17:34 -06:00
Anthony Merlino
3809f2cc97 wireless/ieee802154: Removes unnecessary define 2017-03-28 17:20:24 -04:00
Gregory Nutt
0fec3f9541 Merge remote-tracking branch 'origin/master' into ieee802154 2017-03-28 15:02:54 -06:00
Gregory Nutt
64933246c3 6loWPAN: Tie 6loWPAN send into common socket send logic. 2017-03-28 14:08:54 -06:00
Gregory Nutt
d9e32ee337 6loWPAN: More configurtion settings. 2017-03-28 11:16:28 -06:00
Gregory Nutt
f32fe172d4 6loWPAN: Add HC06 initialization 2017-03-28 10:47:25 -06:00
Jussi Kivilinna
1879f5127b Fix PTHREAD_MUTEX_INITIALIZER which was not updated with last mutex changes. 2017-03-28 09:07:32 -06:00
Gregory Nutt
913daa908a 6loWPAN: Add some more configuration settings that will be needed. 2017-03-28 09:00:25 -06:00
Sebastien Lorquet
45a0af8c03 STM32 L4: More SPI clean-up. Lower case replacements. 2017-03-28 08:52:49 -06:00
Martin Lederhilger
91f96b6ecb drivers/analog: Add driver for the LTC1767L ADC. 2017-03-28 06:34:37 -06:00
Gregory Nutt
b0204909b2 Merge remote-tracking branch 'origin/master' into ieee802154 2017-03-27 18:16:19 -06:00
Gregory Nutt
65e95b95f2 Add a little more 6loWPAN logic 2017-03-27 18:15:20 -06:00
Gregory Nutt
dab2fb2eb3 Add a comment 2017-03-27 16:19:46 -06:00
Gregory Nutt
a522fc4f34 6loWPAN: Rename net/6lowpan to net/sixlowpan; Add Contike sixlowpan.h to include/nuttx/net 2017-03-27 14:53:52 -06:00
Gregory Nutt
3fbf59e2bc MRF24J40: Take advantage of new OS features for interrupt parameter passing. 2017-03-27 10:48:58 -06:00
Gregory Nutt
b315f0d851 AT86RF23x: Clean-up, standardize lower half interface. Take advantage of new OS features for interrupt parameter passing. 2017-03-27 10:28:03 -06:00
Alan Carvalho de Assis
dbc074edab Include wcstold in C++ cwchar header file 2017-03-27 09:49:44 -06:00
Matias vo1d
5c56d8a411 Fix strange invisible characters in this declaration. 2017-03-27 09:47:02 -06:00
Gregory Nutt
4800d3f545 Add syscall support for pthread_mutex_consistent() 2017-03-27 09:36:03 -06:00
Gregory Nutt
16c3ea1f53 Merge remote-tracking branch 'origin/master' into ieee802154 2017-03-27 09:21:48 -06:00
Gregory Nutt
b07d3fc305 Rename CONFIG_MUTEX_TYPES to CONFIG_PTHREAD_MUTEX_TYPES 2017-03-27 09:08:14 -06:00
Gregory Nutt
51b7668859 Merge remote-tracking branch 'origin/master' into ieee802154 2017-03-27 09:01:15 -06:00
Gregory Nutt
f2f798cb29 pthread mutexes: Finish logic to support configuration mutex robustness. 2017-03-27 08:50:45 -06:00
Gregory Nutt
666208cf23 pthread mutexes: Add option to support both unsafe and robust mutexes via pthread_mutexattr_get/setrobust(). 2017-03-26 18:37:24 -06:00
Gregory Nutt
8b3c554e45 pthreads: Add a configuration option to disable robust mutexes and revert to the traditional unsafe mutexes. 2017-03-26 17:37:28 -06:00
Gregory Nutt
a3304d206e Merge remote-tracking branch 'origin/master' into ieee802154 2017-03-26 15:47:16 -06:00
Gregory Nutt
34c5e1c18f Minor cleanup from recent changes. 2017-03-26 14:04:07 -06:00
Gregory Nutt
6e623ce06f pthreads: Partial implementation of final part of robust mutexes: Keep list of all mutexes held by a thread in a list in the TCB. 2017-03-26 12:46:57 -06:00
Gregory Nutt
363403fb1f pthreads: Add more robustness characteristics: pthread_mutex_lock() and trylock() will now return EOWNERDEAD if the mutex is locked by a thread that no longer exists. Add pthread_mutex_consistent() to recover from this situation. 2017-03-26 10:35:23 -06:00
Gregory Nutt
bacc4e9b93 Update errno values. Add new values; remove obsolete values 2017-03-26 09:22:00 -06:00
raiden00pl
be8207d493 drivers/analog: Add basic COMP driver 2017-03-25 16:50:11 +01:00
Gregory Nutt
fca35f7e52 ieee80154: A few changes (some just guesses) to get a clean compilation. 2017-03-24 14:15:13 -06:00
Gregory Nutt
b3f259e488 Merge remote-tracking branch 'origin/master' into ieee802154 2017-03-24 10:18:00 -06:00
Gregory Nutt
3a07455493 Trivial changes from review of last PR 2017-03-24 10:16:18 -06:00
Jussi Kivilinna
d0c54039dc Add ffsl(), ffsll(), fls(), flsl(), flsll() and use GCC's __builtin_ctz/__builtin_clz for faster implementation of these 2017-03-24 09:41:31 -06:00
Anthony Merlino
10d7baca10 wireless/ieee802154: Adds IOCTL definitions for accessing PHY layer 2017-03-24 11:09:45 -04:00
Anthony Merlino
7a95cc62b4 wireless/ieee802154: Moves and renames MAC preprocessor definitions 2017-03-24 11:08:31 -04:00
Anthony Merlino
f5926bd330 wireless/ieee802154: Adds ieee802154_addr_mode_e enumeration 2017-03-24 11:06:18 -04:00
Anthony Merlino
2150619d37 fs/ioctl.h: Renames RAD802154 to PHY802154 2017-03-23 14:04:06 -04:00
Anthony Merlino
0658f26a18 wireless/ieee802154: Moves common types to ieee802154.h
Since the MAC layer or the PHY radio layer can be accessed independently, common types that are used in both layers should go in a common ieee802154.h file
2017-03-23 14:00:45 -04:00
Anthony Merlino
23b472f907 wireless/ieee802154: Removes unused ieee802154.h header 2017-03-23 10:30:01 -04:00
Gregory Nutt
56559c3330 Merge remote-tracking branch 'origin/master' into ieee802154 2017-03-23 07:54:46 -06:00
Gregory Nutt
9e4052e506 Clicker2-STM32: Add some mostly bogus MAC initializatinon logic. 2017-03-23 07:20:10 -06:00
Gregory Nutt
40a8ef3c00 Clicker2-STM32: Add logic to register the MRF24J40 radio character device. 2017-03-23 06:58:54 -06:00
Gregory Nutt
3fb0a00c35 Small changes from review of last PR. Plus spacing and typo fix. 2017-03-22 17:32:52 -06:00
Gregory Nutt
22651dcae2 Clicker2-STM32: Add framework for MRF24J40 support. Untested and still some missing logic. 2017-03-22 15:20:05 -06:00
Gregory Nutt
0be851d339 Merge remote-tracking branch 'origin/master' into ieee802154 2017-03-22 14:26:20 -06:00
Brian Webb
0a95536b85 Adds driver support for the XBox One controller. Currently only the latest version (XBox One X) controller works. The older XBox One controllers do not enumerate correctly. 2017-03-17 20:48:21 -07:00
Gregory Nutt
b03d46d36d Fix merge conflict 2017-03-16 07:06:35 -06:00
Anthony Merlino
c1dfbe5dcf Merged in merlin17/nuttx/ieee802154 (pull request #273)
fs/ioctl.h: Changes _MAC854 to _MAC802154 and creates _RADIO802154

Approved-by: Gregory Nutt
2017-03-16 00:53:13 +00:00
Gregory Nutt
938f7341f2 Merge remote-tracking branch 'origin/master' into ieee802154 2017-03-15 16:58:42 -06:00
Gregory Nutt
f9c22461c4 include/nuttx/fs/ioctl.h: Fix IOCTL numbering 2017-03-15 16:38:09 -06:00
Anthony Merlino
a492a05e34 fs/ioctl.h: Changes _MAC854 to _MAC802154 and creates _RADIO802154 2017-03-15 18:14:56 -04:00
Gregory Nutt
89a907a582 Bring closer to NuttX coding standard. 2017-03-15 16:11:36 -06:00
Gregory Nutt
fbd7e2ae34 Bring closer to NuttX coding standard. 2017-03-15 16:08:56 -06:00
Gregory Nutt
15b2046748 Merge remote-tracking branch 'origin/master' into ieee802154 2017-03-15 14:32:05 -06:00
Gregory Nutt
57a1360c84 Add option to enable wireless debug output. 2017-03-15 14:31:01 -06:00
Gregory Nutt
fbc6415ca7 Merge remote-tracking branch 'origin/master' into ieee802154 2017-03-15 13:11:13 -06:00
Gregory Nutt
4a93b0dc0c Update comments. 2017-03-14 08:44:56 -06:00
Gregory Nutt
5f5b20ab74 Cosmetic update to some spacing and comments. 2017-03-13 13:15:49 -06:00
Gregory Nutt
8514df95f0 Merge remote-tracking branch 'origin/master' into ieee802154 2017-03-13 10:37:03 -06:00
Gregory Nutt
888cff30dc Fix some errors in the previous commit 2017-03-13 10:14:38 -06:00
Gregory Nutt
b808084e57 Move wireless IOCTLs from include/nuttx/net/ioctl to include/nuttx/wireless/wireless.h. Add some linux compatible structures to use with the IOCTL commands. 2017-03-13 09:51:31 -06:00
Sebastien Lorquet
b5824d0993 Merge branch 'master' into ieee 2017-03-13 16:51:05 +01:00
Gregory Nutt
b9bb9ea853 Fix a typo in the last commit. 2017-03-12 12:59:59 -06:00
Gregory Nutt
430b52c977 Networking: Add registration support for integrated ieee80211 wireless drivers. Rename CONFIG_IEEE802154 to CONFIG_WIRELESS_IEEE8021514 following the convention of including the location of the configuration variable as a part of its name. 2017-03-12 12:50:41 -06:00
Simon Piriou
e10ce5ce51 Photon: add basic support for wlan chip 2017-03-12 16:57:59 +01:00
Leif Jakob
5534e0c493 multiple fixes in nrf24l01 driver
- signal POLLIN if there is already data in the FIFO
- send ETIMEDOUT to userspace after 2 seconds if TX IRQ was not received
- handle FIFO overflow
- handle invalid pipes/empty FIFO
- multiple cosmetics (missing static, duplicate define, missing \n)
2017-03-10 23:21:49 +01:00
David Sidrane
60d8606b19 Priority Inversion fixes:Initalization 2017-03-10 06:38:17 -10:00
Gregory Nutt
360539afac Priority inheritance: When CONFIG_SEM_PREALLOCHOLDERS==0, there is only a single, hard-allocated holder structure. This is problem because in sem_wait() the holder is released, but needs to remain in the holder container until sem_restorebaseprio() is called. The call to sem_restorebaseprio() must be one of the last things the sem_wait() does because it can cause the task to be suspended. If in sem_wait(), a new task gets the semaphore count then it will fail to allocate the holder and will not participate in priority inheritance. This fix is to add two hard-allocated holders in the sem_t structure: One of the old holder and one for the new holder. 2017-03-10 09:30:15 -06:00
Sebastien Lorquet
7e19f4014e Merge branch 'master' into ieee
Conflicts (fixed):
	drivers/wireless/ieee802154/mrf24j40.c
	include/nuttx/fs/ioctl.h
2017-03-09 14:28:52 +01:00
ahb
e1da80af5b fix as5048b by adding missing frequency parameter 2017-03-09 12:01:01 +01:00
Alan Carvalho de Assis
d43380d543 Add wcstoull function 2017-03-08 13:28:50 -06:00
Alan Carvalho de Assis
d9bfcfc330 Add mbsnrtowcs wcsnrtombs just returning sucess 2017-03-08 13:24:03 -06:00
Alan Carvalho de Assis
2d1ace3ee5 Add wcstof function 2017-03-08 12:47:23 -06:00
Alan Carvalho de Assis
6e0afb2905 C library: Ad wcstol() and wcstold(). 2017-03-08 12:42:20 -06:00
Alan Carvalho de Assis
3ccef07863 C library: Add wcstoll function 2017-03-08 12:26:35 -06:00
Alan Carvalho de Assis
fda095ccda Add mbtowc and wctomb to C++ std namespace 2017-03-08 12:16:56 -06:00
Gregory Nutt
05a288f2e1 C library: Add strerror_r 2017-03-08 12:14:07 -06:00
Gregory Nutt
e2a554d0f5 Update ChangeLog in prep for 7.20 release. 2017-03-08 10:09:48 -06:00
Gregory Nutt
06ce1a2291 Add missing endif 2017-03-03 14:39:35 -06:00
Gregory Nutt
47ebe1e320 Update some comments 2017-03-03 12:48:58 -06:00
Gregory Nutt
fc5fca5145 Add MAX value definitions to go along with irq_t and irq_mapped_t 2017-03-03 11:48:20 -06:00
Gregory Nutt
e1218c4b4b Smaller vector tables: Add irq_mapped_t. 2017-03-03 10:20:40 -06:00
Gregory Nutt
c2b620b4f8 Implements support for smaller interrupt tables as described at http://www.nuttx.org/doku.php?id=wiki:howtos:smallvectors . This is largely the work of Mark Schulte. However, I have made several changes to match with the Wiki document. If you like the change, thanks go to Marc. For any errors you can blame me. 2017-03-03 09:20:25 -06:00
Gregory Nutt
4c82827ab1 board_button_irq: Button IRQ logic no longer returns the xcpt_t oldhandler. There value is useless and dangerous after the recent changes to interrupt argument passing. 2017-03-02 14:37:22 -06:00
Gregory Nutt
f5f9d82d5a arch_phy_irq: Now returns int instead of xcpt_t oldhandler. The oldhandler is useless after the changes to the interrupt argument. Also access an argument for the PHY interrupt. phy_notify.c driver changed to exploit new interrupt argument passing. 2017-03-02 08:43:33 -06:00
Gregory Nutt
91920f6fc3 cc3200-launchpad: Remove unused prototypes for obsolete names of button interface function. 2017-03-02 08:43:31 -06:00
Mark Schulte
28226198a7 memlcd: Mark Schulte <mark@mjs.pw> 2017-03-01 08:52:58 -06:00
Gregory Nutt
ac6e552ff7 Fixes for coding standard: '*' needs to 'snuggle' with following variable name 2017-02-28 18:37:44 -06:00
Gregory Nutt
02b1e1ec1a Fixes for coding standard: '*' needs to 'snuggle' with following variable name 2017-02-28 18:22:57 -06:00
Gregory Nutt
67de2e5f66 Add argument to STM32 EXTI interrupt handlers. 2017-02-27 14:21:30 -06:00
Gregory Nutt
6002393b2d Fix some interrupt argument issues associated with NRF21L01 2017-02-27 12:06:15 -06:00
Gregory Nutt
a773f9412a STMPE811 driver needs argument in interrupt handler 2017-02-27 11:41:48 -06:00
Gregory Nutt
cb927e3226 Merge remote-tracking branch 'origin/master' into irqattach 2017-02-27 11:18:58 -06:00
Gregory Nutt
7b89a7789f Correct error in syscall.h 2017-02-27 11:18:31 -06:00
Gregory Nutt
b4ff7391f8 Convert more drivers to use use irq_attach with argument. 2017-02-27 10:44:13 -06:00
Gregory Nutt
4cd31be19d Convert some serial drivers to use use irq_attach. 2017-02-27 08:55:21 -06:00
Mark Schulte
b3222bbc8a irq_dispatch: Add argument pointer to irq_dispatch
Provide a user defined callback context for irq's, such that when
registering a callback users can provide a pointer that will get
passed back when the isr is called.
2017-02-27 06:27:56 -06:00
Gregory Nutt
2238912507 Fix some backward conditional compilation 2017-02-25 18:32:58 -06:00
Gregory Nutt
3112292ab0 Fix copy copy/paste errors in some comments. 2017-02-25 16:13:29 -06:00
Gregory Nutt
f15f17a63d Wireless and TSC: Add infrastructure to assure that all IOCTL commands are uniquely numbered. 2017-02-25 15:48:25 -06:00
Gregory Nutt
eb984e08d9 CAN: Add infrastructure to assure that all CAN IOCTL commands are uniquely numbered. 2017-02-25 15:28:27 -06:00
Gregory Nutt
b0efacebe1 include/nuttx/analog: Add an ioctl.h header file to coordinate analogic driver IOCTL commands. 2017-02-25 15:13:30 -06:00
Gregory Nutt
48bc77ee6b Update some comments. 2017-02-25 12:40:30 -06:00
Gregory Nutt
d77d322a61 QEncoder: Add mechanism to assure that architecture-specific IOCTL commands do not overlap. 2017-02-25 11:15:59 -06:00
Gregory Nutt
12a4a58aa6 Update some wdog-related comments 2017-02-24 10:58:37 -06:00
Gregory Nutt
8c7ec7419a Eliminate a warning 2017-02-22 14:04:06 -06:00
Gregory Nutt
4539988d00 Removed CONFIG_LIBC_ARCH_BZERO. bzero() is a deprecated interface. There are no architecture-specific replacements and, if there were, they should replace memset(), not bzero(). 2017-02-22 10:41:49 -06:00
Gregory Nutt
fb0e4d66c0 Fix ordering of parameters in call to memmove() in strings.h. Noted by David Sidrane. 2017-02-22 10:34:10 -06:00
Gregory Nutt
cb7c5f9921 Implement strings.h macros as inline functions when possible for better C++ compatibility. 2017-02-22 10:20:58 -06:00
Gregory Nutt
22a8c2178d cstring: undefine macros defined in new strings.h. 2017-02-22 06:59:39 -06:00
Gregory Nutt
c776407f64 This should resolve issue #30: Audio Tone Generator and PWM Multiple Output Channel options. I don't actually have a setup to verify it, however. 2017-02-20 17:26:56 -06:00
Gregory Nutt
426d18a8ea Update some comments 2017-02-20 14:31:43 -06:00
Gregory Nutt
59a189be74 Update some comments. 2017-02-20 12:46:22 -06:00
Gregory Nutt
6e32d74b33 Cosmetic changes from review of the last PR 2017-02-19 11:49:42 -06:00
raiden00
82cb38c824 drivers/sensors: Add driver for the ST L3GD20 3 axis gyro 2017-02-19 17:43:44 +01:00
Gregory Nutt
e29b50e00a Fix recurring naming problem: KXTJ9 vs KXJT9. 2017-02-18 08:08:41 -06:00
Gregory Nutt
acf020c649 Add setbuf and setvbuf to cstdio. 2017-02-17 10:06:30 -06:00
Gregory Nutt
7a4d498b42 wctype.h needs extern C 2017-02-17 09:48:55 -06:00
Gregory Nutt
673b2ed2bf Update cwchar. Add cwctype. 2017-02-17 09:45:54 -06:00
Gregory Nutt
74160ccc4e Add syscall support for fstatfs. 2017-02-17 08:46:07 -06:00
Gregory Nutt
4f5879f998 C library: Add ffs(). Add strings.h. Move strcasecmp, strncasecmp, bzero, bcmp, and bcopy to where they belong in strings.h.h, not string.h. bzero, bcmp, and bcopy are legacy functions; the contemporary counterparts should be used instead. 2017-02-16 16:10:09 -06:00
Gregory Nutt
6d1f3da289 C library: Add support for rindex(). 2017-02-16 15:22:30 -06:00
Gregory Nutt
2cfbf9c8d8 C library: Add strtoimax and strtoumax. 2017-02-16 15:12:37 -06:00
Gregory Nutt
a49b349614 C library: Add swab() 2017-02-16 14:42:27 -06:00
Gregory Nutt
fed9d5a0f8 cunistd: Fix stray single back quote the crept in in last commit. 2017-02-16 11:22:02 -06:00
Gregory Nutt
e7404280e8 fstat(): Add syscall support 2017-02-14 10:44:01 -06:00
Gregory Nutt
b4695c5ee9 hostfs: Add support for fstat(). 2017-02-14 09:54:08 -06:00
Gregory Nutt
6bcace62a8 Update some C++ header files 2017-02-14 07:48:54 -06:00
Gregory Nutt
10378bb10b fstat: Add fstat() support to nfs. 2017-02-13 10:07:43 -06:00
Gregory Nutt
7d91fabf01 fstat: Add skeleton implmentations of fstat() in all file systems. 2017-02-12 13:42:27 -06:00
Gregory Nutt
c5a8e96dbc Add basic fstat() support. Now all that is needed is to modify ALL of the file systems. 2017-02-12 12:48:24 -06:00
Gregory Nutt
9a3af1a3e0 Update TODO list 2017-02-12 12:10:46 -06:00
Gregory Nutt
de1b68dc4e libc/Kconfig: Break big Kconfig up into separate Kconfig files in each libc subdirectory. 2017-02-10 09:32:55 -06:00
Gregory Nutt
c19aa094e1 C Library: Add setbuf() which is a trivial wrapper around setvbuf(). 2017-02-09 15:04:53 -06:00
Alan Carvalho de Assis
248d5d3185 MMC/SD SDIO: Some drivers need to start DMA before sending CMD24 and some AFTER 2017-02-09 11:13:05 -06:00
Gregory Nutt
1d290c2b37 setvbuf: Add support for disabling I/O buffering. Initially cut; untested. 2017-02-09 09:24:44 -06:00
Gregory Nutt
9f859774a1 setvbuf: Add support for configuration of line buffering. 2017-02-08 11:28:24 -06:00
Gregory Nutt
51a14c9b2f C Library: Add a very limited, first step implementation of setvbuf(). This is a collaborative effort. Alan Carvalho de Assis did the initial prototype. 2017-02-08 10:33:18 -06:00
Gregory Nutt
2d2fe301cb Update some comments; link counter can be uint8_t; Add a debug assertion. 2017-02-07 15:50:54 -06:00
Gregory Nutt
b758176963 stat(): Add logic to avoid infinite recursive in circular paths containing soft links. 2017-02-07 12:32:45 -06:00
Gregory Nutt
62a1f6f110 up_timer_initialize() is named incorrectly. The prefix should be the architecture name, not up_ since it is private to the architecture. up_timerisr() is similarly misnamed and should also be private since it is used only with the xyz_timerisr.c files. Also updat TODO list. 2017-02-07 10:35:04 -06:00
Gregory Nutt
36704b7d9c FS: Argument is now a structure describing the search. 2017-02-04 11:21:44 -06:00
Gregory Nutt
982cfea490 Remove some unnecessary (and inappropriate) soft link logic 2017-02-03 15:50:41 -06:00
Gregory Nutt
4417e74977 Soft links: Add an (untested) implementation of readlink() 2017-02-03 13:57:12 -06:00
Gregory Nutt
60ba5a5261 Soft links: Fix logic and remove kludge of last commit. Rename inode_dereference() as inode_linktarget() and make global. 2017-02-03 13:22:33 -06:00
Gregory Nutt
7c59e05305 FS: Separate inode_search() and inode_free() from fs_inode.c and put in separate files. Flesh out symbolic link logic in stat() and readdir(). There are still some issues with stat(). 2017-02-03 11:23:57 -06:00
Gregory Nutt
b39d962021 Soft links: Update Documentation, rename file, add system calls 2017-02-02 17:11:08 -06:00
Gregory Nutt
35d738d85f Soft links: Fix compile problems on first build with soft links enabled. 2017-02-02 15:24:39 -06:00
Gregory Nutt
bdc002fadc Finish implementation of soft links. 2017-02-02 13:01:21 -06:00
Gregory Nutt
92305e400a Soft links: Initial, incompete implementation 2017-02-02 10:39:41 -06:00
Gregory Nutt
2a4791f4ee Removed dmasupported() method from the SDIO interface. That is now a bit in the cpapability set. 2017-01-31 09:51:15 -06:00
Gregory Nutt
9ac00a355f Add capabilities() method to SDIO interface. Remove CONFIG_SDIO_WIDTH_D1_ONLY. That should not be a global propertie, but rather a capability/limitation of single slot when there may be multiple slots. 2017-01-31 09:16:01 -06:00
Gregory Nutt
e30b2617e3 Shared Libs: Implement module based shared libraries for the PROTECTED mode build 2017-01-29 13:03:53 -06:00
Gregory Nutt
2c45f482b1 Module names are not needed in libc/modlib when the module library is used only for shared library support. 2017-01-29 12:23:24 -06:00
Gregory Nutt
86bdd0a4c7 Modules: Move last of many C files from sched/module to libc/modlib 2017-01-29 11:54:54 -06:00
Gregory Nutt
6da66fb5c8 Modules: Move next five of many C files from sched/module to libc/modlib 2017-01-29 11:17:29 -06:00
Gregory Nutt
5e94dd22bb Modules: Move first five of many C files from sched/module to libc/modlib 2017-01-29 10:05:15 -06:00
Gregory Nutt
2717e781f0 libc/modlib: Add build a configuration logic for a shared module library. 2017-01-29 08:55:27 -06:00
Gregory Nutt
b79ca9dcdd Modules: Move sched/module/module.h to include/nuttx/lib/modlib.h 2017-01-29 08:24:42 -06:00
Gregory Nutt
34e539926a Syscalls: Remove modsym() syscall. There is no reason why appication code could ever use symbolic information from a symbol within a kernel module. The modsym() interface is only meaningful within the kernel. 2017-01-28 11:03:06 -06:00
Aleksandr Vyhovanec
c98db4ecd5 Fix return falue if x is NaN 2017-01-25 14:04:49 +03:00
Gregory Nutt
a06d26e044 Shared libraries: Add a non-standard dllfnc.h function to set the symbol table. 2017-01-23 08:20:24 -06:00
Gregory Nutt
c4acabaa74 In dlopen(), use the basename of the file as the module name 2017-01-22 16:01:03 -06:00
Gregory Nutt
4574a1ca42 Modules: Extend the module interface so that we can access symbols exported by the module. 2017-01-22 14:26:22 -06:00
Gregory Nutt
d90e66a024 Kernel Modules: Module initializer may now return a symbol table (not yet used for anything) 2017-01-22 11:37:49 -06:00
Gregory Nutt
2a284a95b1 C library: Add framework that may (or may not) eventually support shared libraries. 2017-01-22 09:14:18 -06:00
Gregory Nutt
7578382890 Add dllfcn.h header file (no implementation of shared objects yet in place). 2017-01-21 13:07:40 -06:00
Gregory Nutt
3c4684ef5f Eliminate CONFIG_ARCH_OPTIMIZED_FUNCTIONS. Move options to select architectur-specific C library options from libc/Kconfig to libc/machine/Kconfig and rename. 2017-01-20 09:30:07 -06:00
Gregory Nutt
c07192df7e Update some comments 2017-01-17 15:30:41 -06:00
Aleksandr Vyhovanec
bf528f2071 packed_struct replaced by begin_packed_struct and end_packed_struct 2017-01-09 14:17:49 +03:00
Gregory Nutt
7035d232f8 NX server: Correct message queue names. Should not be at /dev, but rather relative to /var/mqueue. 2017-01-08 09:14:11 -06:00
Gregory Nutt
d7173f2eb5 Font cache: Enforce mutually exclusive access to the font cache 2017-01-06 09:50:30 -06:00
Gregory Nutt
0b52e6f571 Font cache: Replace fixed-size array with variable size link list. 2017-01-06 09:07:25 -06:00
Gregory Nutt
dc05af6436 Graphics: Initial separation of font cache from graphics/nxterm. Now in libnx/nxfronts 2017-01-05 18:36:29 -06:00
Gregory Nutt
d91cf5736e With last changes the Tom Thumb 3x5 font is now 4x6 2017-01-04 10:31:53 -06:00
Alan Carvalho de Assis
6c826bb209 Add support for Tom Thumb small mono-space font 2017-01-03 11:11:47 -06:00
Gregory Nutt
cfb876263a SMP: There were certain conditions that we must avoid by preventing releasing the pending tasks while withn a critical section. But this logic was incomplete; there was no logic to prevent other CPUs from adding new, running tasks while on CPU is in a critical section.
This commit corrects this.  This is matching logic in sched_addreadytorun to avoid starting new tasks within the critical section (unless the CPU is the holder of the lock).  The holder of the IRQ lock must be permitted to do whatever it needs to do.
2016-12-27 08:49:07 -06:00
Lorenz Meier
b0fcf3abd7 termios.h: Fix CRTSCTS define to include input and output flow 2016-12-26 07:41:44 -06:00
Gregory Nutt
9e8b1f32d2 sched note: record ID enumeration now results on constant values; ID values do not change with configuration. This makes writing post-processing software much easier 2016-12-24 15:44:21 -06:00
Gregory Nutt
81697f2285 Xtensa ESP32: Fix APP CPU startup... Can't use semaphores on the IDLE thread. 2016-12-20 11:26:37 -06:00
Gregory Nutt
f063e4c5ac Remove Calypso architecture support and support for Calypso SERCOMM driver. 2016-12-13 18:35:52 -06:00
Gregory Nutt
c83da3c48f Remove minnsh configurations and support logic: up_getc() and lowinstream.
This was an interesting exercise to see just how small you could get NuttX, but otherwise it was not useful:  (1) the NSH code violated the OS interface layer by callup up_getc and up_putc directly, and (2) while waiting for character input, NSH would call up_getc() which would hog all of the CPU.  NOt a reasonably solution other than as a proof of concept.
2016-12-13 18:01:23 -06:00
Gregory Nutt
d648f9c8b4 Add task_testcancel() 2016-12-10 16:34:14 -06:00
Gregory Nutt
f132960789 Add task_setcanceltype() 2016-12-10 16:06:14 -06:00
Gregory Nutt
5fb207eb36 Add task_setcancelstate() 2016-12-10 15:16:46 -06:00
Gregory Nutt
b52e4e5ecd Move cancellation point definitions to their own header file. 2016-12-10 09:08:26 -06:00
Gregory Nutt
bc3ca25cc7 Cancellation points: Close up some logic to eliminte some race conditions. 2016-12-10 08:36:58 -06:00
Pierre-Noel Bouteville
e9d3c3362a Correct some default font IDs 2016-12-10 07:46:54 -06:00
Gregory Nutt
e62b3bccd3 pthread_setcanceltype() and pthread_testcancel() do not have to be system calls if cancellation points are not enabled. 2016-12-10 07:40:48 -06:00
Gregory Nutt
18ce5496e4 Fix upper- vs. lower-case typo. 2016-12-10 07:15:33 -06:00