Commit Graph

2722 Commits

Author SHA1 Message Date
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
Gregory Nutt
e1c902d468 Remove some incorrect comments 2015-08-06 14:06:43 -06:00
Gregory Nutt
f4d9c3e33d CAN extended IDs are 29, not 28 bits 2015-08-06 11:51:13 -06:00
Gregory Nutt
007e258c2b Update some function headers 2015-08-05 16:22:40 -06:00
Gregory Nutt
36d4559ee8 CAN: Define IOCTL commands that manage filters 2015-08-05 13:00:31 -06:00
Gregory Nutt
e3decca82c Cosmetic update to some comments 2015-08-05 08:07:58 -06:00
Gregory Nutt
9cbac41e78 Clean-up/standardize a few header files 2015-08-03 11:01:41 -06:00
Gregory Nutt
991adde6ae Add definition of SCHED_MAX_REPL 2015-08-03 10:46:36 -06:00
Gregory Nutt
679ae385aa Merged in rnouse/nuttx (pull request #9)
Custom IOCTL support and more shadow warnings fixup
2015-08-03 06:46:43 -06:00
Anton D. Kachalov
23252f671f Add Moxa IOCTLs to select port mode
Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>
2015-08-03 15:33:46 +03:00
Anton D. Kachalov
1bb74504a8 Add support for custom platform IOCTL on UART
Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>
2015-08-03 15:32:51 +03:00
Gregory Nutt
08d83cfae3 Merged in rnouse/nuttx (pull request #8)
UART 16550: putc logic fixup
2015-08-03 06:32:17 -06:00
Anton D. Kachalov
2fa6237b49 Revert THRNE-patch. The problem was in u16550_putc
Regarding to:
https://github.com/tanzilli/ariag25-linux-2.6.39/blob/ariag25/drivers/tty/serial/8250.c#L1584
https://github.com/tanzilli/ariag25-linux-2.6.39/blob/ariag25/drivers/tty/serial/8250.c#L1913

When UART_LSR_THRE bit is set, then we ready to transmit more.

Current u16550_putc loops while UART_LSR_THRE bit is set. This logic have to be inverted.

Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>
2015-08-03 13:19:55 +03:00
Gregory Nutt
ffec6124f2 Add a start time to sem_tickwait() to account for any elapsed time before the timer is actually started 2015-08-01 14:57:31 -06:00
Gregory Nutt
2c66e0eb2a sem_tickwait(): Add a new, non-standard function to perform timed semaphore waits. It is functionally equialent to the standard sem_timedwait(), but more efficient for use in higher performance device drivers. Requested by Max Neklyudov 2015-08-01 07:31:09 -06:00
Gregory Nutt
8935ff34d5 16550 UART Driver: Add a configuration option to indicate the the THR empty bit is inverted. This is the the case for the moxART SoC. Based comments from Anton D. Kachalov 2015-07-29 16:31:21 -06:00
Anton D. Kachalov
88861e562a Add support for a Faraday FTMAC100 Ethernet MAC Driver. From Anton D. Kachalov 2015-07-29 15:57:58 -06:00
Gregory Nutt
a6ccb7f308 Sporadic scheduler: Third design. Now it looks closer to what I want 2015-07-28 14:26:31 -06:00
Gregory Nutt
95ca3a1d1e Fixes several more sporadic scheduler bugs 2015-07-27 18:08:21 -06:00
Gregory Nutt
a7322f5a6d Sporadic scheduler: Fix how suspension time is calculated 2015-07-27 15:54:19 -06:00
Gregory Nutt
e33c727520 Sporadic scheduler: Move pending time into each timer instance 2015-07-27 14:48:21 -06:00
Gregory Nutt
e66e2f5c0f Use the last budgeted time from the last timer started 2015-07-27 13:13:30 -06:00
Gregory Nutt
8c754ccd4f Sporadic scheduler: misc bug fixes 2015-07-27 11:55:52 -06:00
Gregory Nutt
cc1c7731da Sporadic scheduler: Fix budget computations when replenishment intervals are nested 2015-07-27 09:35:52 -06:00
Gregory Nutt
484f148001 Sporadic scheduler: Add instrumentation hooks to support GPIO outputs 2015-07-27 08:37:25 -06:00
Gregory Nutt
99664b7811 Sporadic scheduler: Add logic to collection the partial timer expiration when a sporadic thread is suspended in tickless mode 2015-07-26 15:03:47 -06:00
Gregory Nutt
3e88b77540 Sporadic scheduler: Handle a case when the scheduler is resumed before it has even had a chance to run 2015-07-26 08:08:45 -06:00
Gregory Nutt
27e21710fd This is basically a complete redesign of the sporadic scheduling logic due to limitations in the initial design 2015-07-25 12:50:53 -06:00
Gregory Nutt
a1031417e8 Comment out part of sporadic scheduler logic: Part of replenishment logic is bogus 2015-07-24 18:18:58 -06:00
Gregory Nutt
4490744def Add logic to reset the replenish the sporadic scheduler when a task is resumed 2015-07-24 09:55:02 -06:00
Gregory Nutt
ea7dbc984b Add basic sporadic schedule state machine 2015-07-24 09:03:21 -06:00
Gregory Nutt
f6c102d4c0 A few cosmetic fixes from the last commit 2015-07-23 13:26:41 -06:00
Gregory Nutt
9095e8eab4 include/, sched/, and libc/: Add support for sporadic scheduling parameters in struct sched_param, posix_spawnattr_t, and pthread_attr_t. Update all user interfaces to pass sporadic scheduling parameters. Feature is dependent on EXPERIMENTAL and no changes have yet been made to core scheduling logic. 2015-07-23 13:16:32 -06:00
Gregory Nutt
2b3aae0ddc Add basic configuration options for SCHED_SPORADIC 2015-07-23 10:33:30 -06:00
Gregory Nutt
146bdc3c93 TCB: Increase the size of the scheduling policy field from 1 to 2 bits to allow additional, planned scheduling policies 2015-07-23 10:15:07 -06:00
Gregory Nutt
2a7416238a Syscall fixes: Add support for Cortex-M7; mount syscall has to be suppressed if there are no mountable file systems 2015-07-21 11:20:46 -06:00
Alan Carvalho de Assis
a01b2e5bbc drvers/sensor and include/nuttx/sensors: Add support to Bosch BMP180 barometer. From Alan Carvalho de Assis. 2015-07-20 07:18:27 -06:00
Gregory Nutt
5a7b2757aa Add definitions for SMSC LAN8742A PHY 2015-07-19 13:09:48 -06:00
Gregory Nutt
f41df38b0b More CAN driver fixes: remove and unused semaphore. Looks to me that waiter counts are not being initialized 2015-07-15 19:27:36 -06:00
Gregory Nutt
621fef2c31 Some trivial clean up associated with the last commit 2015-07-15 18:43:53 -06:00
Gregory Nutt
320c584888 CAN driver: Fix a problem where the rx_sem count can grow without bounds 2015-07-15 18:20:08 -06:00
Alan Carvalho de Assis
a3e24a0b6c Modify the SSD1306 LCD driver to support either the SPI or I2C interface. From Alan Carvalho de Assis, 2015-07-15 11:21:54 -06:00
Gregory Nutt
83f26091f4 Implement anti-aliasing in the NuttX graphics line drawing 2015-07-14 10:17:42 -06:00
Gregory Nutt
4bcd13eabd Add RGB blending logic needed to support anti-aliasing 2015-07-14 07:57:54 -06:00
Gregory Nutt
fcaac468b1 NETDB: Make sure that we have a valid DNS server address before attempting DNS queuries; Provide an optional default DNS server address in the configuration 2015-07-13 08:19:31 -06:00
Gregory Nutt
9a6cf5724e DNS: Finish off low-level DNS IPv6 request processing. Untested on initial commit 2015-07-12 16:23:08 -06:00
Gregory Nutt
835878b003 This completes all interface level support for IPv6 DNS. Still some missing logic at the lowest protocol levels 2015-07-12 13:45:52 -06:00
Gregory Nutt
3407ef5f33 netdb: Modifications to DNS client logic and to dns_get/setserver() interfaces to support DNS clients at IPv6 addresses (still no support for resolution to IPv6 addresses). 2015-07-12 11:56:53 -06:00
Gregory Nutt
5ace3311d9 Repartitioning of DNS client logic in preparation for IPv6 support
- Rename include/nuttx/net/dnsclient.h to dns.h
- Move internal DNS prototypes from dns.h to libc/netdb/lib_dns.h
- Global standard DNS definitions from libc/netdb/dns_soccket.c to dns.h
- Eliminate dns_gethostip().  This is now an internal part of gethostbyname()
- Eliminate interface dns_whois().  Not needed in this new context.
2015-07-12 09:19:40 -06:00
Gregory Nutt
e243b082ee DNS: Remove some unused, non-functional DNS functions; remove the annoying _sock at the end of some DNS functions names, it is no longer needed to distinguish the functions 2015-07-11 07:17:00 -06:00
Gregory Nutt
e69d14d89b Fix some warnings/errors detected by nuttx/tools/testbuilds.sh 2015-07-10 18:41:26 -06:00
Gregory Nutt
fb70a0a95b Fix a confitional compilation error introduced with the last commit 2015-07-10 15:52:55 -06:00
Gregory Nutt
ed004be6d0 Clean up some syscall logic that has changed due to revised netdb configuration 2015-07-10 15:41:20 -06:00
Gregory Nutt
7dec298ef3 gethostbyname() will not attempt a DNS lookup if so enabled 2015-07-10 13:30:09 -06:00
Gregory Nutt
4102470bdd Move the DNS server from apps/netutils/dnsclient to nuttx/libc/netdb. Move netdb functions from libc/net to libc/netdb. Fix up naming to reflect the repartitioning 2015-07-10 12:11:40 -06:00
Sebastien Lorquet
9c9b6162d8 PCA9555: Extend interface to include methods for reading more than one bit at a time. From Sébastien Lorquet. 2015-07-10 10:33:07 -06:00
Gregory Nutt
59cc4a7a7b Protected mode: Redesign how the user space heap is accessed from the kernel code. It used to call memory management functions in user space via function pointers in the userspace interface. That is inefficient because the first thing that those memory management functions do is to trap back into the kernel to get the current PID. Worse, that operation can be fatal is certain fragile situations such as when a task is exitting.
The solution is to remove all of the memory management function calls from the interface.  Instead, the interface exports the userspace heap structure and then kernel size implementations of those memory management functions will operate on the userspace heap structure.  This avoids the unnecessary system calls and, more importantly, failures do to freeing memory when a test exits.
2015-07-10 08:37:02 -06:00
Sebastien Lorquet
b947002d6a This commit adds:
-headers in nuttx/ioexpander to define the "generic" ioexpander framework
-files in drivers/ioexpander for the implementation of the NXP PCA9555 framework
-bindings in drivers/Kconfig and drivers/Makefile

From Sebastien Lorquet
2015-07-09 08:27:07 -06:00
Gregory Nutt
299782e8ec Add support for gethostbyaddr() 2015-07-08 14:33:23 -06:00
Gregory Nutt
1b1e34e1d5 libc: Add gethostbyname(). Untested on initial commit 2015-07-08 13:40:52 -06:00
Gregory Nutt
f94fe747ae Undo part of a previous change. Move get/sethostname back from net/netdb to libc/unistd 2015-07-08 11:11:52 -06:00
Gregory Nutt
6380832ab7 Move the header of set/sethostname from libc/unisted to net/netdb. This is OS internal stuff 2015-07-05 10:43:37 -06:00
Gregory Nutt
c19fd13291 gethostname() should not be the system call, uname() should and gethostname should get the host name from uname 2015-07-05 10:41:58 -06:00
Gregory Nutt
f31a96cfbf Add system calls for gethostname and sethostname 2015-07-05 08:42:32 -06:00
Gregory Nutt
e1c306f2dd Add support for sethostname 2015-07-05 08:42:32 -06:00
Gregory Nutt
6576672e09 uname: version string must hold 40 character value; strings returned by uname must always be NUL terminated 2015-07-05 06:46:00 -06:00
Gregory Nutt
049224f544 Add support for a BOARDIOC_RESET boardctl() command. Enable configuration options to support BOARDIOC_RESET for ARMv6-M and ARMv7-M 2015-07-04 10:39:24 -06:00
Gregory Nutt
b9b8b34bca sim configuration: Add support for board_app_initialize() which is needed when CONFIG_LIB_BOARDCTL=y 2015-07-04 08:16:45 -06:00
Stavros Polymenis
701509f9bd Add implementations of uname() and gethost(). From Stavros Polymenis. 2015-07-03 07:50:27 -06:00
Gregory Nutt
d6eacb3ab5 Power off support now depends on CONFIG_ARCH_HAVE_POWEROFF 2015-07-03 06:53:51 -06:00
Gregory Nutt
27ea02a85f Modify board_power_off() so that is is called only via boardctl() 2015-07-02 17:09:54 -06:00
Gregory Nutt
064b4923c6 Move prototype of board_power_off() to include/nuttx/board.h where it belongs 2015-07-02 16:25:31 -06:00
Gregory Nutt
09c7373f24 Fix misc. compilation error/warning detected by tools/testbuild.sh 2015-07-01 14:33:37 -06:00
Gregory Nutt
b59329a714 include/nuttx/net/netconfig.h: Fix some backward compilation that was emitting #error in the wrong condition when SLIP was enabled 2015-07-01 11:55:40 -06:00
Gregory Nutt
8ed9c24675 Fix a union file system bug 2015-06-24 09:07:13 -06:00
Max Neklyudov
01a35ff27f sam4cm: add CFB and MAC AES modes. From Max Neklyudov 2015-06-22 06:42:37 -06:00
Max Neklyudov
a6d8d2c0d1 Add relay IOCTL definitions. From Max Neklyudov. 2015-06-22 06:33:44 -06:00
Juha Niskanen
d16053c33c sched/pthread: Use -1 instead of 0 as PID for unclaimed mutexes 2015-06-16 08:27:38 -06:00
Gregory Nutt
b578c98fa9 Clean up and review of header files for conformance to standards 2015-06-12 19:26:01 -06:00
Gregory Nutt
c5b15d0b31 Clean up and review of header files for conformance to standards 2015-06-12 19:17:42 -06:00
Gregory Nutt
bf9e1943a4 Clean up and review of header files for conformance to standards 2015-06-12 18:07:47 -06:00
Gregory Nutt
718d4d23ad Add asctime(), asctime_r(), ctime(), and ctime_r(). 2015-06-12 11:52:49 -06:00
Gregory Nutt
b1f5c2a0b2 Fix a few errors/warnings in THTTPD when indexing is enabled. Still depends on non-existent lstat and ctime 2015-06-12 09:57:12 -06:00
Gregory Nutt
597493221e Union FS. Add logic to omit duplicates in file system 2 when doing directory listing 2015-06-06 09:49:13 -06:00
Gregory Nutt
1d370178fb Add support for a union file system that can be used to overlay and merge the content of two mounted file systems. 2015-06-05 13:18:06 -06:00
Gregory Nutt
bf4db207ad Lincoln60: Add a network enabled NXH configuration (still does not yet build) 2015-06-03 18:48:08 -06:00
Gregory Nutt
391367e8ca LPC17 Ethernet: Add support for the Micrel KSZ8041 PHY. 2015-06-03 17:34:36 -06:00
Gregory Nutt
d8db596b3b POSIX message queues: Move mq_setattr() and mq_getattr() from nuttx/libc/mqueue to nuttx/sched/mqueue. Also add sysyscall support for mq_setattr() and mq_getattr(). This is necessary in protected and kernel builds because in those cases the message queue structure is protect and cannot be accessed directly from user mode code. Noted by Jouko Holopainen. 2015-06-03 09:24:17 -06:00
Gregory Nutt
c704a5289c Comment out references to fstat(). It is not yet supported. 2015-06-02 11:43:44 -06:00
Gregory Nutt
6068820bf3 Add support uClibc++ excpetions. This involves additional handling for relative relation types, additional support for unwinding, as well as additional changes. The culmination of a big effort fromo Leo Aloe3132 2015-06-01 14:16:18 -06:00
Gregory Nutt
33085cb309 Networking: The network device list was protected by a re-entrant semaphore. With the recent change to support network device callback, the network stack needs to access the network device list too. Some drivers, however, run the network stack from the interrupt level -- this is bad but a fact in the current state. Of course,those drivers are unable to take the semaphore and will assert.
The solution here is to eliminate the device devices semaphore altogether.  This eliminates netdev_semtake() and netdev_semgive() and replaces them with net_lock() and net_unlock() which have larger scope as needed for this purpose.
2015-05-31 08:34:03 -06:00
Gregory Nutt
ab50e9d04d Networking: Get rid of g_ipv4_allzeroaddr and g_ipv4_alloneaddr. It is more efficient and more intuitive to use INADDR_ANY and INADDR_BROADCAST 2015-05-29 15:16:11 -06:00
Gregory Nutt
e81f279315 Networking: Modify event list handling: Now there are two event lists each device structure: (1) One is for ARP and ICMP data related evetns, the other is for device related events. Callback allocation/free routines no accept a device paramter as well as a list: If the device paramter is added, then the callback goes into both the connection-related liast AND the device event list. Thus each socket type can received both custom data-related events as well as common device related events. 2015-05-28 12:01:38 -06:00
Gregory Nutt
b94321cfb4 Extend device specific callbacks to ICMPv6 and ARP. Fix some IPv6 compilation errors that have crept in 2015-05-27 11:39:44 -06:00
Gregory Nutt
8ecb84ed89 Improve icmp handling if MULTINIC enabled. From Max Neklyudov 2015-05-27 09:26:00 -06:00
Gregory Nutt
b1fa91a681 MTD: Increase size of the geometry structure to support FLASH parts with 246KiB erase blocks 2015-05-26 06:46:09 -06:00
Gregory Nutt
4adda9d428 Fix numerous typos in configuration variable names. Tracked down by Alan Carvalho de Assis 2015-05-23 17:08:35 -06:00
Gregory Nutt
eb7e66c945 Update Documentation 2015-05-18 13:41:35 -06:00
Gregory Nutt
3adcae8ffb Update the type passed to watchdog timer handlers. Using uint32_t is a problem for 64-bit machines. 2015-05-18 08:53:42 -06:00
Gregory Nutt
87b065253d LPC17 USB host: Fix some OHCI done head handling when a tranfer is cancelled 2015-05-15 08:29:45 -06:00
Gregory Nutt
3c1af2feed Local sockets: Add poll support for Unix stream sockets. From Jussi Kivilinna. 2015-05-12 07:41:12 -06:00