Commit Graph

2722 Commits

Author SHA1 Message Date
Gregory Nutt
d69dc04d96 TLS: Fix an error in a macro 2016-03-10 18:10:44 -06:00
Gregory Nutt
30b6ee96c9 Add basic definitions for TLS support 2016-03-10 11:56:33 -06:00
Gregory Nutt
6a056479d2 Add a some missing FAR in shared header files 2016-03-09 18:12:41 -06:00
Gregory Nutt
c7e7bda830 MTD struct mtd_geometry_s: Increase the size of blocksize again. Yes, there are devices with block size greater than 64KB. 2016-03-09 07:42:34 -06:00
Stefan Kolb
fde277a388 Missing parentheses in MSEC2TICK macro can lead to incorrect conversions 2016-03-09 07:24:16 -06:00
Gregory Nutt
9b5e88af71 Update some comments 2016-03-06 13:50:26 -06:00
Gregory Nutt
5d63cd85c7 sched/semaphore: Add an internal interface to reset a semaphore count. 2016-03-05 07:33:24 -06:00
Gregory Nutt
300edb9b0f Update ChangeLog 2016-02-27 10:37:42 -06:00
Gregory Nutt
3c5cd96646 Remove definitions for unsupported protocol families and address families 2016-02-27 07:59:26 -06:00
Gregory Nutt
fdddebbffd net/: Finish IEEE802154->6LOWPAN renaming; remove PF_IEEE804154; Move 6LoWPAN menu to inside Internet Protocol Menu 2016-02-27 07:26:20 -06:00
Sebastien Lorquet
dc7adfa817 drivers/wireless/ieee802154/Kconfig
drivers/wireless/ieee802154/Make.defs
    Changes to the build infrastructure to include the mrf24j40 driver

include/nuttx/spi/spi.h
    Define a IEEE SPI device

include/nuttx/wireless/ieee802154/ieee802154_radio.h
    This file defines the API of a IEEE 802.15.4 radio device, to be used by the future common MAC 802.15.4 layer

drivers/wireless/ieee802154/mrf24j40.c
drivers/wireless/ieee802154/mrf24j40.h
    The main MRF24J40 IEEE 802.15.4 radio driver

include/nuttx/wireless/ieee802154/mrf24j40.h
    This file allows instanciation of the MRF24j40 driver from board configurations
2016-02-26 18:39:27 -06:00
Gregory Nutt
d84fa1689a Add include/nuttx/wireless/ieee802154 directory (with dummy header file) 2016-02-26 17:32:37 -06:00
Gregory Nutt
cfe018e991 Rename CONFIG_WIRELESS to CONFIG_DRIVERS_WIRELESS 2016-02-26 16:50:26 -06:00
Gregory Nutt
309beae2cd Move drivers/ieee802154 to drivers/wireless/ieee802154; rename include/nuttx/net ieee802154 to 6lowpan.h 2016-02-26 15:03:16 -06:00
Gregory Nutt
2f28ca86c2 Clean up some naming; rename net/ieee802154 to net/6lowpan 2016-02-26 10:08:36 -06:00
Gregory Nutt
9ff645a298 drivers/ieee802154: Add a skeleton IEEE802154 driver 2016-02-25 15:11:30 -06:00
Gregory Nutt
e4e6181098 net/: IEEE 802.15-4 basic build build structure. 2016-02-25 10:43:51 -06:00
Gregory Nutt
1ed1765e1a sys/socket.h: Add IEEE802.15-4 protocol family 2016-02-25 08:19:10 -06:00
Alan Carvalho de Assis
ea15ead6cc RGB LED driver 2016-02-22 08:43:32 -06:00
Gregory Nutt
143d287f11 Fix some missing header file inclusions and a misplaced semi-colon from recent commits 2016-02-21 11:27:55 -06:00
Gregory Nutt
f3356fee5b SMP: Add macros to CPU set manipulation to sched.h 2016-02-20 18:45:07 -06:00
Gregory Nutt
0eadf1dcad Costmetic change + update submodules 2016-02-20 14:57:05 -06:00
Gregory Nutt
5a590e99b9 Add SYSCALLS for pthread_setaffinity() and pthread_getaffinity() 2016-02-19 18:13:06 -06:00
Gregory Nutt
a633353ec3 Add a CPU affinity set to the TCB if SMP is enable and use this CPU set as a mask for determining which CPUs the thread may run on. Add an affinity field to the attrributes to permit controlling which CPUs a pthread may run on. Implements pthread_att_setaffinity_np() and pthread_attr_getaffinity_np(). 2016-02-19 17:33:35 -06:00
Gregory Nutt
2075eb7932 Fix a typo introduced in the last commit and a file that was missed in the last commit 2016-02-19 16:03:01 -06:00
Gregory Nutt
72d3920295 Rename cpuset_t to cpu_set_t which is the type used in some non-standard Linux/GNU interfaces. Move definitions of cpu_set_t to include/sys/types.h. Add prototypes for sched_setaffinity(), sched_getaffinity(), pthread_attr_setaffinity_np(), pthread_attr_getaffinity_np(), pthread_setaffinity_np(), and pthread_getaffinity_np(). No implementation is yet in place. 2016-02-19 15:57:07 -06:00
Gregory Nutt
050b3ee06a profcs task status will now show CPU is SMP is enabled 2016-02-19 15:34:36 -06:00
Gregory Nutt
1780000777 SMP: Setting bit for wrong CPU. Assertion has cause false alarm crashes.. 2016-02-18 12:31:21 -06:00
Gregory Nutt
52fbbaf778 1. SMP: Fix an assertion. SMP-specific change accidentally made in non-SMP code
2. Move list of signal actions from the task TCB to the task group.  Signal handlers are a property of the entire task group and not of individual threads in the group.  I know, I preferred it the other way too but this is more compliant with POSIX.
2016-02-18 08:34:54 -06:00
Gregory Nutt
95735519dd SMP: Cosmetic renaming to clarify functionality of SMP interfaces. Update comments. 2016-02-17 13:36:25 -06:00
Gregory Nutt
b50325bb38 SMP: Add funtions to perform atomic bit set/clear operations; fix two errors in SMP macros 2016-02-17 13:20:01 -06:00
Gregory Nutt
6aeb4a52e8 Performance improvement: Idle loop should not take MM semaphore if there is not garbage to be collected. This can cause loss of performance and thrashing in tasking 2016-02-16 19:33:22 -06:00
Gregory Nutt
384e51cb05 Add some additional schedule instrumentation 2016-02-16 15:21:45 -06:00
Gregory Nutt
55d33fd912 Update some comments 2016-02-16 07:50:18 -06:00
Gregory Nutt
8ea1bc3188 SMP: Fix backward spinlock test 2016-02-15 11:06:54 -06:00
Gregory Nutt
9cb2a6b1f9 Rename irqsave() and irqrestore() to up_irq_save() and up_irq_restore() 2016-02-14 16:19:15 -06:00
Gregory Nutt
88c17bb4f2 nuttx/graphics and include: Replace irqsave() with enter_critical_section(); replace irqrestore() with leave_critical_section() 2016-02-14 15:09:28 -06:00
Gregory Nutt
97cbd7112f SMP: Implement enter/leave_critical_section 2016-02-13 10:23:16 -06:00
Gregory Nutt
8ac699b63d SMP: Need to perform all IDLE task memory allocations on initializatin thread prior to starting the other CPUs 2016-02-13 09:04:54 -06:00
Gregory Nutt
64b3ce8775 SMP: Add up_cpustart and up_cpurestart protoypes; fix some problems in sched_addreadytorun; first cut at SMP version of up_mergepending. 2016-02-12 16:13:14 -06:00
Gregory Nutt
85f663a8ee SMP: Add non-reentrant spinlocks, fix pre-emption controls with SMP, and most of the basic scheduler support for SMP (still missing a few things) 2016-02-12 14:55:31 -06:00
Gregory Nutt
c315479a04 SMP: Move IDLE thread init logic from sim to OS; need to assign unique IDs to each IDLE task 2016-02-11 14:11:26 -06:00
Gregory Nutt
49227fa554 Scheduler: Replace the boolean 'prioritized' with a uint8_t bit set so that additional attributes of a list can be specified without adding more boolean values. 2016-02-11 08:06:33 -06:00
Gregory Nutt
baac92cda2 Correct some columnar alignment 2016-02-10 16:55:37 -06:00
Gregory Nutt
292d2fe648 Correct naming of a TCB flag; update some comments 2016-02-10 16:53:34 -06:00
Gregory Nutt
96223cedf1 SMP: A little more 2016-02-10 15:43:05 -06:00
Gregory Nutt
8a1789ba11 Update ChangeLog 2016-02-10 14:58:55 -06:00
Gregory Nutt
3147dfc7d5 SMP: Add some tentative initialization logic 2016-02-10 13:49:27 -06:00
Gregory Nutt
47a5663f8c SMP: A few preliminary data structure definitions 2016-02-10 11:45:26 -06:00
Gregory Nutt
f5a3b1e89d Add EXPERIMENTAL configuration option to investigate some SMP issues 2016-02-10 10:27:48 -06:00
Gregory Nutt
2c0ad2564f Add CONFIG_SPINLOCK. Also need spinunlock() and spinlock_initialize() 2016-02-09 15:31:14 -06:00
Gregory Nutt
b022f1e9d8 Add basic support for spinlocks (not currently used by anything) 2016-02-09 13:48:59 -06:00
Gregory Nutt
0af9a197ac ARP: Add IOCTL commands to manage the ARP table 2016-02-08 11:17:22 -06:00
Gregory Nutt
12f95c6f6b Add procfs/kmm to show the state of the kernel heap 2016-02-06 11:35:30 -06:00
Gregory Nutt
50cf53914c Update submodule; Improve some comments 2016-02-05 10:23:39 -06:00
Gregory Nutt
0984104a9a init.h: Trivial clean-up 2016-02-05 09:25:12 -06:00
Gregory Nutt
2dc258986d Add a state variable that provides the current level of OS initialization. This is needed by some logic that may attempt to run early in the start-up sequence, but cannot run if a sufficient level of initializaitn has not not yet occurred 2016-02-05 08:34:03 -06:00
Gregory Nutt
dea24c503a Networking: Remove the HSEC argument from devif_timer. 2016-02-03 12:12:41 -06:00
Gregory Nutt
8fa9b99e7c I2C driver should support the RESET method as well 2016-02-03 07:32:25 -06:00
Gregory Nutt
03d868be3c I2C: Fix a naming error 2016-02-02 14:23:33 -06:00
Gregory Nutt
9ce58ad5b7 I2C: up_i2creset should not be a global function; Now it is an I2C interface method 2016-02-02 11:21:48 -06:00
Gregory Nutt
4a34a199dd I2C: Add an I2C character driver 2016-02-02 08:30:54 -06:00
Gregory Nutt
4304405bba I2C Slave: I don't think that the setfrequency method makes sense in a slave interface. 2016-02-02 06:07:51 -06:00
Gregory Nutt
456b5f06dc Clean up some comments 2016-02-01 19:52:16 -06:00
Gregory Nutt
69ce24c70c I2C: Remove the setfrequency method from the interface 2016-02-01 16:31:13 -06:00
Gregory Nutt
6ad641888b Add I2C frequency to the i2c_msg_s structure 2016-02-01 14:17:20 -06:00
Gregory Nutt
f9053182d3 I2C: Remove setaddress method 2016-02-01 12:14:31 -06:00
Gregory Nutt
ecdc428086 Remove the read and write methods from the I2C interface 2016-02-01 09:22:22 -06:00
Gregory Nutt
8c9bddf998 I2C: Eliminate the I2C_WRITE and I2C_READ macros 2016-02-01 08:57:22 -06:00
Gregory Nutt
10000841a8 The I2C_TRANSFER method is no longer optional 2016-01-31 14:16:05 -06:00
Gregory Nutt
9370b94241 compiler.h: Missing IOBJ/IPTR definitions for the ZDS-II toolchain 2016-01-31 12:44:44 -06:00
Gregory Nutt
af335827d0 Update ChangeLog 2016-01-30 11:27:49 -06:00
Gregory Nutt
cccfb11e38 Forgot to add a file in the last commit 2016-01-30 08:49:20 -06:00
Gregory Nutt
3a781a2d3f Remove I2C slave methods from I2C master interface; rename i2c_dev_s to i2c_master_s. 2016-01-30 08:36:47 -06:00
Gregory Nutt
ceb415204e Move include/nuttx/i2c.h to include/nuttx/i2c/i2c_master.h 2016-01-30 08:00:16 -06:00
Vladimir Komendantskiy
19feab1bd6 drivers/modem/u-blox.c and include/nuttx/drivers/u-blox.h: Add an upper half driver for the U-Blox Modem. From Vladimir Komendantskiy 2016-01-30 07:37:43 -06:00
Entinger Alexander
dc8c14aa53 Driver for the 24-Bit Differential Input ADC ADS1242 that communicates via SPI with a MCU. Reading the ADC conversion result as well as configuring the ADC, setting the input channel, etc. is implemented via ioctl calls. However, it does not yet implement the standard ADC interface. 2016-01-29 07:41:23 -06:00
Gregory Nutt
fd896330d8 Remove the final vestiges of up_spiinitialize() 2016-01-27 09:27:56 -06:00
Gregory Nutt
11dab241de SPI slave: Prototype for MCU-specific slave initialization function removed from spi_slave.h 2016-01-26 13:04:12 -06:00
Gregory Nutt
b6b3c2be3e Add I2C_TRANSFER based wrappers for I2C_TRANSFER as well 2016-01-26 10:57:51 -06:00
Gregory Nutt
d4a53ee131 I2C: Eliminate the I2C_WRITEREAD method 2016-01-26 10:26:16 -06:00
Gregory Nutt
67f38169b2 drivers/i2c: Move wrapper that implements I2C_WRITEREAD using I2C_transfer from pc9555.c to a new, comon i2c directory 2016-01-26 09:58:18 -06:00
Gregory Nutt
eac271413f Add more 32-bit math operations; Update ChangeLog 2016-01-25 11:19:25 -06:00
Gregory Nutt
047ed9e543 Add some utilities to support 64-bit math operations on platforms that do not support long long types. Not yet used anywhere 2016-01-25 09:56:00 -06:00
Gregory Nutt
564a1ce606 Cosmetic clean-up of comments 2016-01-24 08:21:55 -06:00
Gregory Nutt
a4a496ad6f spi.h needs to include errno.h now 2016-01-23 19:13:31 -06:00
Gregory Nutt
7edf921c5e Remove CONFIG_SPI_OWNBUS: Now it is not just a good idea, it is the law 2016-01-23 18:54:36 -06:00
Gregory Nutt
accd99db25 Add an optional hwfeatures method to the SPI interface 2016-01-23 15:12:45 -06:00
Gregory Nutt
84d4cb007b clock_systimer: 64-bit timer accesses are not atomic. Noted by Freddie Chopin. 2016-01-22 12:24:36 -06:00
Gregory Nutt
2dcebe1e3d Purely cosmetic changes from review of last commit 2016-01-22 07:11:29 -06:00
Stefan Kolb
2b05f3e830 I/O Expander: Fix some bad macros, make naming consisted 2016-01-22 07:08:59 -06:00
Gregory Nutt
032ad1b70b Remove clock_systimer32 and clock_systimer64. There is now only clock_systimer 2016-01-21 16:49:24 -06:00
Gregory Nutt
7db9a952bc Fix an error in conditional compilation introduced in the last set of changes 2016-01-21 13:42:34 -06:00
Gregory Nutt
f348e68069 Update to use 64-bit timer when available 2016-01-21 11:54:26 -06:00
Gregory Nutt
3a59eb4340 Fix romdisk_register prototype. Most ROMFS images actually lie in RAM. If moved to FLASH with const storage class, then changes are required to avoid warnings 2016-01-20 13:04:07 -06:00
Gregory Nutt
f849116a0b Add implementatino of Tiny Encryption Algorithm 2016-01-19 16:37:45 -06:00
Gregory Nutt
e73ccd6638 Update some comments 2016-01-18 16:27:46 -06:00
Frank Benkert
da33ec6b2e CAN: Add more extensive error reporting information 2016-01-18 12:22:27 -06:00
Gregory Nutt
9844036a74 Merged in paulpatience/nuttx/lsm9ds1 (pull request #48)
Add LSM9DS1 accelerometer, gyroscope and magnetometer
2016-01-17 15:06:37 -06:00
Paul A. Patience
57b8a9526d Add LSM9DS1 accelerometer, gyroscope and magnetometer 2016-01-17 16:01:14 -05:00
Gregory Nutt
63301fe213 Cosmetic changes from review of last pull request 2016-01-17 14:52:11 -06:00
Janne Rosberg
fb1bf10a3d add pn532 support
Signed-off-by: Janne Rosberg <janne.rosberg@offcode.fi>
2016-01-17 22:17:49 +02:00
Alexander Entinger
75d6c4cee3 drivers/sensors/mcp9844: Driver for the MCP9844 I2C digital temperature sensor with a selectable resolution 2016-01-15 07:25:58 -06:00
Gregory Nutt
0889963b50 resolv.conf: Fix some basic compilation issues. Logic still not complete. 2016-01-14 08:32:20 -06:00
Gregory Nutt
8e9f884eb7 Step 1 in /etc/resolv.conf support 2016-01-13 15:06:44 -06:00
Gregory Nutt
fbb4dcc0af Some networking logic was used helpers from apps/netutils. Not good. Quick fix is to duplicate logic 2016-01-09 15:57:44 -06:00
Gregory Nutt
1ac6ecac87 Changes to last pull request needed for conformance with coding standard 2016-01-09 07:27:22 -06:00
Dimitry Kloper
d219f3a36e Introduce arch-specific debug macro hooks
Make it possible for arch code to provide hook macros for NuttX dbg
that will lead to arch-specific syslog() and lowsyslog() variants.
2016-01-09 14:28:12 +02:00
Gregory Nutt
b28bf55fb0 Cosmetic spacing change 2016-01-05 14:52:20 -06:00
Gregory Nutt
670ac9fb2f Fix an ommission in compiler.h 2016-01-05 14:46:49 -06:00
Dimitry Kloper
06438b0dcc Fix 64-bit clock-related constant value evaluation for AVR compiler
This may be specific for Atmel AVR8 toolchain compiler.
The problem is that despite of being 8-bit architecture
avr-gcc supports uint64_t, but the following code

uint64_t value = 10000 * 1000;

produces a wrong negative value in the final code (tested
both with and without optimization).

The work-around is simple:

uint64_t value = 10000 * 1000L;

The code is a reduced part from sched/signal/sig_timedwait.c where
waitticks64 is calculated using NSEC_PER_TICK. This one is defined
as USEC_PER_TICK * NSEC_PER_USEC which leads to the example above.
2016-01-05 12:02:02 -06:00
Dimitry Kloper
06d83c6261 Introduce support for Atmel toolchain in-flash strings
Atmel toolchain AVR compiler provides a transparent in-flash object support using __flash and __memx symbols. The former indicates to compiler that this is a flash-based object.  The later used with pointer indicates that the referenced object may reside either in flash or in RAM. The compiler automatically makes 32-bit pointer with flag indicating whether referenced object is in flash or RAM and generates code to access either in run-time. Thus, any function that accepts __memx object can transparently work with RAM and flash objects.

For platforms with a Harvard architecture and a very small RAM like AVR this allows to move all constant strings used in trace messages to flash in the instruction address space, releasing resources for other things.

This change introduces IOBJ and IPTR type qualifiers.  The 'I' indicates that the object may like in instruction space on a Harvard architecture machine.

For platforms that do not have __flash and __memx or similar symbols IOBJ and IPTR are empty, making the types equivalent to, for example, 'const char' and 'const char*'.  For Atmel compiler these will become 'const __flash char' and 'const __memx char*'.  All printf() functions and syslog() functions are changed so that the qualifier is used with the format parameter.

From: Dimitry Kloper <dikloper@cisco.com>
2016-01-05 10:29:29 -06:00
Dimitry Kloper
b48ca00cd5 The delay parameter has 'int' type while explicit int32_t is used in sigtimedwait() (sig_timedwait.c) This can lead to wrong argument for systems that have default int size different than int32 (namely AVR). 2016-01-05 07:58:04 -06:00
Gregory Nutt
b1938c065d sys/time.h: Fix timersub macro; time_t is unsigned 2015-12-31 09:05:35 -06:00
Gregory Nutt
c1fff4706c signals: Adds a very limited, minimal implementation for SIGEV_THREAD 2015-12-30 15:01:14 -06:00
Gregory Nutt
849df03d22 Update dates on files modified for SIGEV_THREAD support 2015-12-30 13:28:39 -06:00
Gregory Nutt
9835eeb181 signals: Basic framework to support SIGEV_THREAD 2015-12-30 13:20:31 -06:00
Gregory Nutt
e76e8f41c6 pthread: Correct default schedule policy 2015-12-30 12:18:24 -06:00
Manuel Stühn
4350b0ba0c Move macros timeradd() and friends from time.h to sys/time.h. 2015-12-24 07:09:39 -06:00
Gregory Nutt
7110634a38 Trivial typo fix in a comment 2015-12-23 16:09:49 -06:00
Gregory Nutt
5d84cd5d11 Improve a few comments 2015-12-23 15:17:16 -06:00
Manuel Stühn
3002023798 time.h: Add timeradd(), timersub(), timerclear(), timerisset(), and timercmp() as macros. These are non-POSIX interfaces, but included in most BSD deriviatives, included Linux. From Manuel Stühn 2015-12-23 15:13:01 -06:00
Gregory Nutt
b90da3f27b waitpid: CRITICAL BUGFIX. Add a reference counting mechansim to prevent wait from using stale memory that was freed by the exiting task 2015-12-22 11:48:17 -06:00
Gregory Nutt
8ab93fdf98 Change name of drivers/discrete back to drivers/ioexpander 2015-12-15 08:40:34 -06:00
Gregory Nutt
78f2ce05f8 drivers: Move discrete user LED drivrs from drivers/discrete to drivers/leds 2015-12-15 08:23:53 -06:00
Gregory Nutt
d62a626703 Adds a driver for the PCA9635PW I2C LED driver IC which can be used to control the intensity of up to 16 LEDs. From Alexander Entinger 2015-12-15 08:05:10 -06:00
Gregory Nutt
e8d0f85c8b Modules: Add mod_setsymtab to set global symtol table once. Now we can remove symbol table parameters from the insmod call. This will make implementing an NSH insmod command much easier 2015-12-13 08:10:01 -06:00
Gregory Nutt
795ddd7e80 OS modules: Add basic procfs support. A module registry that will eventually be used to support lsmod 2015-12-12 17:42:25 -06:00
Gregory Nutt
a908a61c5a Various module-related cosmetic changes 2015-12-12 12:55:50 -06:00
Gregory Nutt
303123deb9 Add syscall support for insmod and rmmod 2015-12-12 11:11:09 -06:00
Gregory Nutt
040835de00 Add an implementation of rmmod 2015-12-12 10:51:54 -06:00
Gregory Nutt
49554fe4fc Move module support from binfmt/ to sched/ so that it can be configured and built independently from binfmt features 2015-12-12 07:09:17 -06:00
Gregory Nutt
44e45f0f91 insmod is code complete and ready for test 2015-12-11 10:55:21 -06:00
Gregory Nutt
05cb7a9043 Call initializer entry point on start-up; do not create a task 2015-12-11 07:27:45 -06:00
Gregory Nutt
251e8395c7 Mostly cosmetic renaming to straighten out namespace 2015-12-10 16:56:10 -06:00
Gregory Nutt
8bcf35ff39 binfmt/libmodule: Add support for kernel modules. Initial commit is just the ELF module support with name changes 2015-12-10 09:53:31 -06:00
Gregory Nutt
8fdb173090 drivers/net/telnet.c: Now works like the loop device. A new interface called telnet_initialize() registers a telnet session "factory" device at /dev/telnet. Via ioctl, the factory device can create instances of the telnet character devices at /dev/telnetN to support Telnet sessions. 2015-12-07 13:48:06 -06:00
Gregory Nutt
057b6aef2c drivers/net: Move the Telnet driver from apps/netutils/netnetd to drivers/net 2015-12-07 09:26:57 -06:00
Gregory Nutt
7be7579f59 Back out 522f95abe87d71c7025f2f358a8f350134e284b2: What was I thinking? 2015-12-02 10:47:32 -06:00
Gregory Nutt
acd3b47def Fix problem in last change to the procfs: Forgot to save the reallocated table pointer!
Also added warnings:  There are some concurrency issues in the current implementation if you try to modify the procfs data structures will the procfs is mounted and possibly busy.
2015-12-02 05:20:02 -06:00
Gregory Nutt
7483ed38ce Fix some procfs registration typos 2015-12-01 16:31:40 -06:00
Gregory Nutt
ad64c033e7 s/procfs: The procfs file system can now be configured so that it supports a runtime registration of procfs entries with CONFIG_FS_PROCFS_REGISTER=y 2015-12-01 14:56:20 -06:00
Ken Pettit
5821af1bbe drivers/mtd: Add support for /dev/smart loop device. From Ken Petit 2015-11-28 09:00:26 -06:00
Gregory Nutt
eb8668b0f7 net/: Add procfs support for network device status 2015-11-27 16:39:14 -06:00
Gregory Nutt
5d1557b28d Fix an error in a network device statistics macro 2015-11-26 14:44:07 -06:00
Gregory Nutt
f41ad9caa1 netdev.h: Fix a typo in a type name 2015-11-26 13:41:57 -06:00
Gregory Nutt
8075a67803 include/nuttx/net/netdef.h: Add a missing macro 2015-11-26 12:51:45 -06:00
Gregory Nutt
2a93c66948 include/nuttx/net/netdev.h and several Ethernet drivers in arch/: Most network drivers to not support statistics. Those that do only support them when DEBUG is enabled. Each driver collects an architecture specific set of statistics and there is no mechanism in place to view those statistics. Thus, the driver feature was mostly useless. This change standardizes the driver statistics and puts the definition in the common network device structure defined in netdev.h where they can be accessed by network applications. All Ethernet drivers that collect statistics have been adapted to use these common statistics. 2015-11-26 12:08:09 -06:00
Gregory Nutt
603f3afd6d Some minor clean-up from last changes 2015-11-25 17:52:47 -06:00
Gregory Nutt
ed35eb0f8d drivers/loop: Add a loop character device that can be used to setup and teardown loop devices 2015-11-25 17:13:56 -06:00
Ken Pettit
d4a58af380 drivers/mtd/mtd/mtd_procfs/c and include/nuttx/mtd/mtd.h: Add an interface to un-regiser an MTD procfs entry.
drivers/mtd/filemtd.c:  New new MTD conversion layer that will convert a regular file (or driver file) to an MTD device.  This is useful for testing on the simulation using the hostfs.

From Ken Petit
2015-11-25 14:46:28 -06:00
Gregory Nutt
e5f27f5865 Fix some conditional compilation. CONFIG_LIBC_LOCALTIME should be checked in most of the same places wehre CONFIG_TIME_EXTENDED is checked 2015-11-25 12:51:45 -06:00
Ken Pettit
c0b9dcf8a9 fs/hostfs: Add a special file system for use with simulator that supports access to the host file system from the simulation. From Ken Petit 2015-11-25 08:26:26 -06:00
Gregory Nutt
cd7c6705a8 mm.h: Use UINT32_MAX vs. SIZE_MAX in definition of MMSIZE_MAX 2015-11-25 08:11:32 -06:00
Gregory Nutt
6230e6e199 size_t should be 64-bits on a 64-bit machine. mmsize_t should be 32-bits (unless CONFIG_MM_SMALL is selected). This commit backs out the last change to stddef.h 2015-11-23 12:03:36 -06:00
Gregory Nutt
25ab59bf80 stddef.h: Use a round-about cast in the definition of offsetof() to avoid warnings on machines with 64 bit addresses and when size_t is less than 64-bits. 2015-11-23 07:11:05 -06:00
Ken Pettit
375419eaf2 mksmartfs: Remove fs/smartfs/fs_mksmartfs.c and related headers. This has been moved to apps/fsutils/mksmartfs. From Ken Petit 2015-11-23 07:05:09 -06:00
Gregory Nutt
54549ef082 Revert "Add option to specify logical sector size during low level format plus adds some run-time geometry tests. fs/smartfs: Remove the 'mksmartfs()' code from the kernel 'fs'"
This reverts commit 96faf0fa3251ca10a17daddc728d931be5a206e0.
2015-11-22 10:15:06 -06:00
Gregory Nutt
64e8f12e2b Add option to specify logical sector size during low level format plus adds some run-time geometry tests. fs/smartfs: Remove the 'mksmartfs()' code from the kernel 'fs'
directory and build.
2015-11-22 10:07:35 -06:00
Gregory Nutt
006528b144 Add support for freopen() 2015-11-22 08:39:17 -06:00
Gregory Nutt
38c9d42e21 drivers/timers/pcf85263.c: Add a driver for the NXP PCF85263 I2C RTC 2015-11-20 17:36:10 -06:00
Gregory Nutt
db2fe45666 Update some comments 2015-11-20 09:55:18 -06:00
Gregory Nutt
4b29bcee7f Rename up_rtcinitialize to up_rtc_initialize so that it looks like other RTC interfaces 2015-11-20 08:27:52 -06:00
Gregory Nutt
b60c2519d7 arch.h: Update some comments and conditional compilation 2015-11-20 07:13:16 -06:00
Gregory Nutt
c34b5108a7 RTC: Fix system time initialization when using an exernal RTC. Fix some bugs in the DS1307/DS3231 RTC driver 2015-11-19 14:54:30 -06:00
Gregory Nutt
678eb7b78b Merged in paulpatience/nuttx/stdio (pull request #37)
stdio: Define BUFSIZ
2015-11-18 14:46:03 -06:00
Paul A. Patience
c0a1d8e960 stdio: Define BUFSIZ 2015-11-18 15:09:43 -05:00
Gregory Nutt
f699072507 Merged in paulpatience/nuttx/stdlib (pull request #36)
stdlib: Fix forgotten FARs
2015-11-18 14:01:17 -06:00
Paul A. Patience
bfc95c641f stdlib: Fix forgotten FARs 2015-11-18 14:22:43 -05:00
Paul A. Patience
706218d18f atoi(): Cast return value to int 2015-11-18 14:12:29 -05:00
Gregory Nutt
622ea95ab1 drivers/timers/ds3213.c: Extend to include support for the DS1307 RTC 2015-11-18 08:43:19 -06:00
Gregory Nutt
4579f0c1fc Add a command to boardctl() to obtain a baord unique ID 2015-11-18 07:31:53 -06:00
Gregory Nutt
25c4ff8285 Update some comments 2015-11-17 16:29:34 -06:00
Gregory Nutt
c0a701b779 Merged in wail007/nuttx (pull request #33)
Added a lower-half timer driver for stm32 which is compatible with the upper-half driver located at /drivers/timers/timer.c
2015-11-17 16:23:03 -06:00
Wail Khemir
09b9d6ba1f Added a lower-half timer driver for stm32 which is compatible with the upper-half driver located at /drivers/timers/timer.c 2015-11-17 16:39:21 -05:00
Gregory Nutt
45530a77d4 Add support for DS3231 I2C RTC. Untested on initial commit. 2015-11-17 14:07:55 -06:00
Gregory Nutt
e61d51dab3 If multiple AT24xx devices are supported and resources are allocated, then it may also be necessary to free those resource 2015-11-17 08:39:06 -06:00
Gregory Nutt
f5722bc6dd Merged in slorquet/nuttx/pca9555 (pull request #32)
Pca9555 interrupt support.
2015-11-17 07:45:33 -06:00
Gregory Nutt
724901ceb9 Add support for multiple AT24xx EEPROM devices 2015-11-17 07:40:17 -06:00
Sebastien Lorquet
c7999141e7 Merge branch 'master' into pca9555 2015-11-17 14:12:03 +01:00
Sebastien Lorquet
826aadbce8 Include support for PCA9555 interrupt driven IO changes detection.
Currently using a signal, and a single notified task.
signal handling support moved to generic IO expander header (not pca specific)
2015-11-17 14:09:43 +01:00
Gregory Nutt
580529ba23 crypto/aes.c: Make refernce to key const 2015-11-16 14:30:43 -06:00
Gregory Nutt
c955cdccd9 Move rivers/wireless/cc3000/security.c to crypto/aes.c; move include/nuttx/wireless/cc3000/security.h to include/nuttx/crypto/aes.h 2015-11-16 13:31:02 -06:00
Gregory Nutt
815ec07b55 CAN: A minor improvement to can_txready design 2015-11-15 06:36:30 -06:00
Gregory Nutt
d6eb48d1ab Update comments 2015-11-14 14:00:39 -06:00
Gregory Nutt
81ab270a96 CAN driver: Removing call to can_xmit() from can_txready() in a previous commit was a mistake. This commit restores the call to can_xmit(), but does the call in a safer environment on the work thread. 2015-11-14 10:33:02 -06:00
Sebastien Lorquet
8242600e5e WIP for pca9555 irq 2015-11-13 16:28:46 +01:00
Gregory Nutt
fdb17620a0 Need a prototype for progmem_initialize in include/nuttx/mtd/mtd.h 2015-11-12 16:03:24 -06:00
Max Neklyudov
d54a39832a Implement high level DMA infrastructure for serial devices 2015-11-12 14:16:19 -06:00
Gregory Nutt
ef59f83a38 drivers/mtd/mtd_progmem.c: Add an upper-half driver that can be used with any FLASH library that provides the itnerfaces defined in include/nuttx/progmem.h 2015-11-12 13:40:18 -06:00
Gregory Nutt
5eaf368d16 progmem.h: Cosmetic updates to comments 2015-11-12 12:30:15 -06:00
Gregory Nutt
7fe6200b0f progmem.h: Clean-up a few comments 2015-11-11 14:30:06 -06:00
Gregory Nutt
e62673241d Eliminate some useless comments 2015-11-11 11:02:52 -06:00
Gregory Nutt
965addb397 s25fl1: When unprotecting, handle case where protection bits are inverted. Add option to s25flinitilize() to unprotected on power up 2015-11-10 11:33:35 -06:00
Gregory Nutt
95562f8a86 CAN driver: More improved comments 2015-11-08 07:43:57 -06:00
Gregory Nutt
91429433f6 Correct naming of Spansion part. S25FL1, not ST25FL1 2015-11-07 11:51:09 -06:00
Paul A. Patience
4c70fc181a ADC: Fix forgotten FARs 2015-11-05 10:27:47 -05:00
Gregory Nutt
c6fc285277 CAN: Add a new CAN upper-half interface, can_txready(), that can be used to break deadlock conditions in certain CAN hardware that supports queuing of TX messages 2015-11-03 10:52:58 -06:00
Gregory Nutt
51d29d3c97 Merged in paulpatience/nuttx/pwm (pull request #29)
PWM: Add support for multiple output channels per timer
2015-11-01 16:40:06 -06:00
Paul A. Patience
e8c2466c1c PWM: Add support for multiple output channels per timer 2015-11-01 17:15:12 -05:00
Gregory Nutt
fc91ded815 Add support for a general user LED lower-half driver 2015-11-01 14:57:22 -06:00
Gregory Nutt
0dea00177e Add a generic user LED upper half discrete driver 2015-11-01 14:41:40 -06:00
Gregory Nutt
cbb78071b3 Rename ioexpander/ directories to discrete/ 2015-11-01 13:14:48 -06:00
Gregory Nutt
56ad07f02b Add standard naming for board user LED functions 2015-11-01 12:48:13 -06:00
Gregory Nutt
2318038bbc Rename board_led_off to board_autoled_off 2015-11-01 09:10:40 -06:00
Gregory Nutt
8093def2c8 Rename board_led_on to board_autoled_on 2015-11-01 09:07:46 -06:00
Gregory Nutt
148d5fcffd Rename board_led_initialize to board_autoled_initiaize 2015-11-01 09:04:02 -06:00
Gregory Nutt
68c4dedb78 Named semaphores: Bad cast in sem_close(). Fixed by reordering fields of struct nsem_inode_s so that the cast will work 2015-10-23 07:13:47 +08:00
Gregory Nutt
d8731d0ef1 Add files missed in previous commit 2015-10-18 08:00:06 +08:00
Gregory Nutt
f5f69ef85d Add a file missed in the last commit 2015-10-13 07:36:46 -06:00
Alan Carvalho de Assis
8f0c912fff Add Zero Cross device driver support 2015-10-13 07:27:16 -06:00
Gregory Nutt
613798027e Add a button upper/lower half driver 2015-10-12 14:29:43 -06:00
Gregory Nutt
1e6ffe7677 TMPFS update 2015-10-08 14:21:12 -06:00
Gregory Nutt
863ded3584 Standardize the width of all comment boxes in C header files 2015-10-03 07:45:15 -06:00
Gregory Nutt
0f90500f72 Standardize the width of all comment boxes in header files 2015-10-02 17:48:24 -06:00
Gregory Nutt
cb9e27c3b0 Standardize naming used for public data and function groupings 2015-10-02 16:30:35 -06:00
Gregory Nutt
38e6142ae8 Make coding style more conformant, take description from OpenGroup.org, rename formal parameters to match names used on OpenGroup.org 2015-10-02 12:58:40 -06:00
Gregory Nutt
2ba224eca2 Add support for bsearch() in C library 2015-10-02 12:33:58 -06:00
Alan Carvalho de Assis
c52e3e017b Battery Charger: Add BQ24250 driver 2015-09-20 09:47:00 -06:00
Alan Carvalho de Assis
d4fc91d6f6 Add Battery Fault and Battery Disconnected status 2015-09-20 09:32:06 -06:00
Alan Carvalho de Assis
895ad29b0d Fix IOCTL definition to avoid duplication and mess 2015-09-19 13:58:49 -06:00
Alan Carvalho de Assis
3cd7558a5e Add basic infrastructure for Battery Charger 2015-09-19 13:06:43 -06:00
Alan Carvalho de Assis
9f465fc502 Rename battery.[ch] to battery_gauge.[ch] 2015-09-19 11:00:14 -06:00
Alan Carvalho de Assis
c4cf5be231 Add support to Maxim MAX31855 Thermocouple-to-Digital 2015-09-13 15:56:48 -06:00
Pierre-noel Bouteville
8651e0f2ca CC3300: Add const to pointers in arguments to wlan_connect; remove an unused function prototype 2015-09-09 16:34:37 -06:00
Gregory Nutt
8a87e3ca6e Add an empty function that can serve as a placeholder for the network shutdown() function 2015-09-09 07:03:05 -06:00
Sebastien Lorquet
77e4e7b231 Change all references from avsprintf to vasprintf. From Sebastien Lorquet 2015-09-07 13:22:13 -06:00
Paul A. Patience
c080146748 SSD1351 driver: add 8-bit parallel interface 2015-09-06 13:28:28 -04:00
Gregory Nutt
7d33e858dd QSPI interface + ST25FL1 driver: Add methods to allocate properly aligned memory 2015-09-06 09:37:34 -06:00
Gregory Nutt
9c66bde5b0 Fix typo in pre-processor command noted by Pierre-noel Bouteville. Also move # of pre-processior command to column 1 2015-09-05 09:10:48 -06:00
Paul A. Patience
3b89eabd50 Correct #if to #ifdef when the macro can be undefined. Fix bug in AT24XX driver: it should compare AT24XX_ADDRSIZE to 2. 2015-09-01 13:52:29 -04:00
Gregory Nutt
2d84270552 ST25FL1: Correct some compile problems when file system debug is enabled 2015-08-31 09:25:14 -06:00
Gregory Nutt
d6b0a8fe72 ST25FL1 driver is code complete 2015-08-29 15:58:54 -06:00
Gregory Nutt
bfc3c98e12 Move MTD ioctls commands from include/nuttx/fs/fs.h to include/nuttx/mtd/mtd.h. Add commands to protect and unprotect memory 2015-08-29 10:54:38 -06:00
Gregory Nutt
883c6a7cea Merge remote-tracking branch 'origin/master' into st25fl1 2015-08-29 08:02:57 -06:00
Gregory Nutt
8c001f6807 Merged in paulpatience/nuttx (pull request #21)
Add SSD1351 OLED controller support
2015-08-28 17:01:24 -06:00
Paul A. Patience
01b68e90d0 Add SSD1351 OLED controller support 2015-08-28 18:37:01 -04:00
Gregory Nutt
e392471dc2 QSPI interface: Add support for dual and quad read transfers; Add support for dummy read cycles. 2015-08-28 12:00:06 -06:00
Gregory Nutt
70bdf682af QSPI: Add support for data vs command transfer 2015-08-28 10:15:08 -06:00
Gregory Nutt
361e35a7be QSPI: Make changes to interface to better work with the SAMV71 2015-08-27 14:16:51 -06:00
Gregory Nutt
e6be3cea9f Merge remote-tracking branch 'origin/master' into st25fl1 2015-08-26 10:44:35 -06:00
Gregory Nutt
7a168a791f Networking: Fix loopback device MTU 2015-08-26 10:33:44 -06:00
Gregory Nutt
6dadfcbf6b Add QSPI interface definition 2015-08-25 15:26:16 -06:00
Gregory Nutt
933d74e5c1 Networking: With these changes, I can ping the local loopback device from the simulator 2015-08-24 13:49:12 -06:00
Gregory Nutt
0b012c7978 Fix some initial loop back device compilation errors; mark configuration as EXPERIMENTAL 2015-08-24 11:29:54 -06:00
Gregory Nutt
07bdff9ef7 Networking: Add NetDB support for the local loopback device 2015-08-24 10:08:26 -06:00
Gregory Nutt
e21501c699 Merge remote-tracking branch 'origin/master' into localhost 2015-08-24 08:29:36 -06:00
Gregory Nutt
569ff602ea Networking: Remove bogus references to PPP as a link layer protocol 2015-08-24 08:29:07 -06:00
Gregory Nutt
ea2fafb024 Add definitions to support a local loopback link layer 2015-08-24 08:25:08 -06:00
Gregory Nutt
6fc449f689 Moving canned_symtab from nuttx/libc to apps/system 2015-08-23 11:33:29 -06:00
Alan Carvalho de Assis
9b036311c0 Missing comma in spi.h header file 2015-08-23 11:06:32 -06:00
Gregory Nutt
f12692b78f Extend canned symbol table logic to work in protected build mode 2015-08-23 10:44:04 -06:00
Pavel Pisa
81a257eeb0 Optional canned symtab inclusion to the build. When option CONFIG_LIBC_SYMTAB is selected and symbol table file libc/symtab/canned_symtab.inc is prepared then application can use system provided complete symbol table. The option has substantial effect on system image size. Mainly code/text. If loading of applications at runtime is not planned do not select this. From Pavel Pisa. 2015-08-23 08:38:58 -06:00
Max Neklyudov
622c5c9aa6 Another TUN driver fix from Max Neklyudov 2015-08-21 07:40:13 -06:00
Gregory Nutt
02306044b2 boardctl.h: Extended boardctl() commands with BOARDIOC_CAN_INITIALIZE 2015-08-18 13:23:34 -06:00
Gregory Nutt
28853e5932 CAN: Define IOCTL commands to get and set the bit timing values 2015-08-18 11:21:01 -06:00
Gregory Nutt
505d5f8103 CAN: Add error bit values 2015-08-18 08:48:39 -06:00
Gregory Nutt
a987379e64 Add an error bit to the CAN message report 2015-08-18 07:27:00 -06:00
Gregory Nutt
95634a3b34 CAN IOCTLs: Should support standard CAN filtering in extended ID mode 2015-08-17 10:53:49 -06:00
Max Neklyudov
425146255a Network drivers: Fix bug in tun interface driver. From Max Neklyudov 2015-08-17 09:04:58 -06:00
Gregory Nutt
51f386d08a Fix more common typos 2015-08-16 11:07:23 -06:00
Gregory Nutt
1c41236fa1 Merged in paulpatience/nuttx (pull request #18)
Added support for other MS58XX altimeters.
2015-08-14 18:09:14 -06:00
Paul A. Patience
3303ef8c85 Added support for other MS58XX altimeters. 2015-08-14 20:04:16 -04:00
Gregory Nutt
8f7453b5ec Addings to stdlib.h must be added to cstdlib too 2015-08-14 12:04:57 -06:00
Gregory Nutt
768d892188 Add si_errno to siginfo_t 2015-08-14 10:10:32 -06:00
Gregory Nutt
6df94096ca Add ldiv() and lldiv() too 2015-08-14 08:45:59 -06:00
Stavros Polymenis
301f215638 Add support for div() to the C library. From OrbitalFox 2015-08-14 08:35:01 -06:00
Paul A. Patience
c4b888b41d Added MS5805 altimeter. 2015-08-11 22:50:11 -04:00
Gregory Nutt
8aeea88f43 Merged in paulpatience/nuttx (pull request #16)
Added MB7040 sonar.
2015-08-11 12:26:57 -06:00
Paul A. Patience
a634ad5528 Added MB7040 sonar. 2015-08-11 13:26:56 -04:00
Gregory Nutt
7791b2a62e Refresh submodules + Update comments in SPI slave header file 2015-08-11 08:34:16 -06:00
Gregory Nutt
e0238df359 SPI Slave: Summarize DMA issues in SPI slave header file 2015-08-11 08:34:15 -06:00
Paul A. Patience
65792c5dbc Added forward declarations of structures to fix header inclusion
order bugs.
Removed an unused variable.
Added debug asserts to check for invalid I2C addresses.
2015-08-10 16:18:37 -04:00
Paul A. Patience
c0964a17b4 Fixed a forgotten FAR, a typo, and an incorrect bit-field definition. 2015-08-10 14:45:40 -04:00
Gregory Nutt
9f1d7cddd8 Merged in paulpatience/nuttx (pull request #14)
Converted the AS5048B to use the quadrature encoder interface, changed copyright notice to my boss's preference, and updated ChangeLog to use my full name
2015-08-10 12:22:30 -06:00
Paul A. Patience
877d5f3b09 Changed copyright notices to my boss's preference. 2015-08-10 14:15:07 -04:00
Paul A. Patience
1d0e25af30 Convert the AS5048B to use the quadrature encoder interface. 2015-08-10 13:41:39 -04:00
Gregory Nutt
c74dc5f83f Changes from review epoll() implementation for consistency with NuttX naming and coding style 2015-08-10 10:38:41 -06:00
Gregory Nutt
2c79094af9 Merged in rnouse/nuttx (pull request #13)
Add simple `epoll' wrapper around `poll'
2015-08-10 10:13:56 -06:00
Gregory Nutt
d61e49b7cd Fix typo, include comments in the SPI slave interface header file 2015-08-10 10:05:56 -06:00
Anton D. Kachalov
8d26ad86b1 Merge branch 'master' of https://bitbucket.org/patacongo/nuttx 2015-08-10 18:16:09 +03:00
Anton D. Kachalov
fd07043180 Add simple epoll' wrapper around poll'
Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>
2015-08-10 18:15:24 +03:00
Gregory Nutt
21d4f00e65 Add the prototype for up_spi_slave_initialize() to the SPI slave interface header file 2015-08-09 17:42:47 -06:00
Gregory Nutt
17fab9dbd5 Updated comments in header file 2015-08-09 17:22:27 -06:00
Gregory Nutt
1df8ff1de8 SPI Slave Interface: Clean up/simplify some naming 2015-08-09 16:22:19 -06:00
Gregory Nutt
f570a9b770 Add output queuing to SPI slave interface 2015-08-09 15:42:57 -06:00
Gregory Nutt
5848101c1f Fix/improve some issues in the SPI slave interface header file 2015-08-09 12:06:46 -06:00
Gregory Nutt
7317f3bd88 Refresh modules; trival change to comments in header file 2015-08-09 09:49:49 -06:00
Gregory Nutt
0db86bc509 SPI Slave: Another big simplication to the interfqace design 2015-08-08 16:16:53 -06:00
Gregory Nutt
f604c813ff SPI Slave: Add an unbind() method to the slave interface 2015-08-08 12:18:05 -06:00
Gregory Nutt
0ce50caa06 Forgot to add the main SPI slave interface header file in the last commit 2015-08-08 10:46:13 -06:00
Gregory Nutt
b6d6776d02 Add a preliminary definition for an SPI slave interface 2015-08-08 10:45:15 -06:00
Gregory Nutt
e9bbc57831 Merged in paulpatience/nuttx (pull request #12)
Added AS5048B magnetic rotary encoder.
2015-08-07 15:33:48 -06:00
Paul A. Patience
b7e0fc34c5 Added AS5048B magnetic rotary encoder. 2015-08-07 17:22:01 -04:00
Gregory Nutt
f7b64b1bfc can.h: Mostly cosmetic cleanup 2015-08-07 09:02:12 -06:00
Gregory Nutt
2591b2b198 CAN: Extend new filter IOCTLs to support message prioritization and additional filter modes 2015-08-07 08:24:12 -06:00
Gregory Nutt
41a09a6d64 Merged in paulpatience/nuttx (pull request #11)
Added LM92 temperature sensor.
2015-08-06 16:26:26 -06:00
Paul A. Patience
282c4f5347 Added LM92 temperature sensor. 2015-08-06 17:35:34 -04:00
Gregory Nutt
0dd273935a Standardize naming of all SLIP configuration options 2015-08-06 15:08:15 -06:00
Gregory Nutt
86769101a1 SLIP: Review code, update comments, add missing configuration items 2015-08-06 14:32:12 -06:00