Gregory Nutt
1500a50057
Add missing prototype for btn_lower_initialize()
2016-08-27 11:32:47 -06:00
Gregory Nutt
644335a39c
Fix C99 style comment
2016-08-26 08:28:54 -06:00
Gregory Nutt
440d535360
include/cxx: Update some C++ header files due to recent changes to C hader files
2016-08-25 15:06:46 -06:00
Gregory Nutt
55a325bcd4
system() is not available from within the OS
2016-08-25 12:36:38 -06:00
Gregory Nutt
e07a02bf29
Add system() to stdlib.h
2016-08-25 11:28:09 -06:00
Sebastien Lorquet
aed8a602b8
stdio: Add support for remove()
2016-08-25 08:40:34 -06:00
Sebastien Lorquet
51596dc457
Updata difftime. Add a version of difftime for the case where the platform does not support type double
2016-08-25 08:00:50 -06:00
Sebastien Lorquet
a626ba5b70
libc/time: This commit adds the difftime() function. Since the function returns a double, I have isolated it in a CONFIG_LIBC_DIFFTIME option (It also depends on the toolchain-dependent CONFIG_HAVE_DOUBLE so is not available on tiny platforms).
2016-08-24 15:43:57 -06:00
Sebastien Lorquet
c8c4575139
isatty() should be prototypes in unstid.h, not termios.h.
2016-08-24 10:25:09 -06:00
Sebastien Lorquet
7021b143ce
Add POSIX type sig_atomic_t
2016-08-24 10:16:41 -06:00
Alexander Entinger
221fcfd8f1
drivers/sensors: Add driver for the Bosch BMG160 3 axis gyroscop.
2016-08-24 09:41:04 -06:00
Alexander Entinger
0044910e33
drivers/sensors: Add driver for the LIS3DSH 3 axis accelerometer.
2016-08-24 08:28:45 -06:00
Gregory Nutt
595f00e271
Add include/sensors/ioctl.h; make sure that all IOCTL values are unique to avoid all misuse.
2016-08-23 13:08:12 -06:00
Entinger Alexander
b29287b022
drivers/sensors: Add driver for the MLX90393 3 axis magnetometer.
2016-08-23 10:48:08 -06:00
Entinger Alexander
338bf8c9e3
drivers/sensors: Add drvier for the LIS3MDL 3 axis magnetometer
2016-08-23 08:22:47 -06:00
Gregory Nutt
60b70f7dbb
Make xorshift128 re-entrant so that we do do have to suffer the overhad of serialization controls.
2016-08-21 07:47:53 -06:00
Gregory Nutt
300361539a
sched/sched_cpuload_oneshot: Use the oneshot timer with optional entropy to measuer cPU load if so configured.
2016-08-20 12:47:07 -06:00
Gregory Nutt
6f833be9d5
Separate XorShift128 PRNG from /dev/urandom and make it generally available.
2016-08-20 11:36:02 -06:00
Gregory Nutt
a5440fff64
Make all Analog IOCTL command values unique
2016-08-20 09:09:17 -06:00
Alan Carvalho de Assis
8b99dd4cdb
drivers/audio: Add Audio Tone Generator for NuttX
2016-08-16 13:20:05 -06:00
Gregory Nutt
f84780f36e
Changes from review of PR 114
2016-08-14 13:38:47 -06:00
Gregory Nutt
82b86cdcf3
oneshot interface: max_delay method should return time in a standard struct timespec form.
2016-08-12 11:33:10 -06:00
Gregory Nutt
89135c55e4
drivers/timer: Add an upper-half, oneshot timer character driver.
2016-08-12 10:40:07 -06:00
Gregory Nutt
1bb93021df
STM32: Add a experimental oneshot, lower-half driver for STM32
2016-08-11 14:07:43 -06:00
Gregory Nutt
9de2c28656
Add oneshot timer lower half interface
2016-08-11 13:34:49 -06:00
Gregory Nutt
6df28bc74e
Make bit-order SPI H/W feature configurable for better error detection
2016-08-08 11:54:13 -06:00
Gregory Nutt
c3cfd37791
Fix cloned variable error in all SPI drivers
2016-08-08 11:04:01 -06:00
Gregory Nutt
7d4cb73bd6
STM32 and EFM32 SPI drivers adopted an incompatible conventions somewhere along the line. The set the number of bits to negative when calling SPI_SETBITS which had the magical side-effect of setting LSB first order of bit transmission. This is not only a hokey way to pass control information but is supported by no other SPI drivers.
...
This change three things: (1) It adds HWFEAT_LSBFIRST as a new H/W feature. (2) It changes the implementations of SPI_SETBITS in the STM32 and EFM32 derivers so that negated bit numbers are simply errors and it adds the SPI_HWFEATURES method that can set the LSB bit order, and (3) It changes all calls with negative number of bits from all drivers: The number of bits is now always positive and SPI_HWFEATUREs is called with HWFEAT_LSBFIRST to set the bit order.
2016-08-08 08:28:13 -06:00
Gregory Nutt
469aff0584
Fix names of pre-processor variables used in header file idempotence
2016-08-06 19:21:42 -06:00
Gregory Nutt
4afe20c83f
Fix naming of some enumeration types
2016-08-06 11:08:53 -06:00
Alan Carvalho de Assis
bfac90f720
Add MFRC522 RFID ISO14443 and Mifare transceiver driver
2016-08-06 08:45:52 -06:00
Gregory Nutt
2f7cae6e4a
SPI transfer: minor fix to type and comments
2016-08-05 14:18:40 -06:00
Gregory Nutt
50e9a5fa33
Add more options to spi_transfer
2016-08-05 13:22:18 -06:00
Gregory Nutt
5407a673fc
Tiva TM4C-1294 Launchpad: tiva_appinit.c is a better home for board_pwm_setup() vs. tiva_bringup.c
2016-08-05 13:05:41 -06:00
Gregory Nutt
7048d08123
drivers/spi: Add an SPI character driver that will permit access to the SPI bus for testing purposes. This driver is a simple wrapper around spi_transfer().
2016-08-05 11:07:35 -06:00
Gregory Nutt
7da67bc80a
drivers/spi: Add a helper function that encapsulates and manages a sequency of SPI transfers.
2016-08-05 10:23:04 -06:00
Gregory Nutt
3d5df2e5af
Extend I/O Expander interrupt controls; Add test of level sensitve interrupt to Simulated I/O expander
2016-08-04 16:19:52 -06:00
Gregory Nutt
803b540e8a
Fix various issues with I/O expander and GPIO lower half drivers from testing with simulated I/O expander
2016-08-03 12:46:54 -06:00
Gregory Nutt
778a8131bf
SIM: Add a simulated I/O Expander driver
2016-08-03 09:44:48 -06:00
Gregory Nutt
c32d40fd7d
KXJT9 Accelerometer driver from the Motorola Moto Z MDK
2016-08-02 10:38:14 -06:00
Gregory Nutt
9685fd8c99
GPIO driver: Add an IOCTL to unregister a signal handler
2016-08-01 13:52:27 -06:00
Gregory Nutt
0f9fb09a53
GPIO driver: Add an IOCTL command to get the pin type
2016-08-01 12:09:00 -06:00
Gregory Nutt
d0f6a23a32
Ooops.. forgot to add files before last commit
2016-08-01 11:15:29 -06:00
Gregory Nutt
583dad647c
TCA64xx: Remove some unused kruft
2016-08-01 09:59:36 -06:00
Gregory Nutt
3e79ffc6dd
Some updates to the last commit
2016-08-01 08:49:15 -06:00
Gregory Nutt
6090f69bfd
Add a GPIO lower-half driver that can be used to register a GPIO character driver for accessing pins on an I/O expander.
2016-08-01 08:43:10 -06:00
Gregory Nutt
91b1006d42
I/O Expander Interface: Add argument to interrupt callback. Add a method to detach the interrupt.
2016-08-01 07:26:04 -06:00
Gregory Nutt
fb84e51d5b
Minor improvements/fixes to the TCA64xx driver.
2016-08-01 06:48:05 -06:00
Gregory Nutt
c0b83cb4b4
First (untested) cut at a TCA64XX I/O Expander driver leverages from Project Ara
2016-07-31 19:52:44 -06:00
Gregory Nutt
8fab9fb00f
Rethink last commit -- probably going down the wrong path
2016-07-31 18:33:04 -06:00
Gregory Nutt
8a67509b34
I/O Expander: Encode and extend I/O expander options to include interrupt configuration.
2016-07-31 18:19:59 -06:00
Gregory Nutt
99843fe5fe
I/O Expander: Update skelton file
2016-07-31 14:42:30 -06:00
Gregory Nutt
5f9ee79298
I/O Expander: Remove hard-coded PCA9555 fields from ioexpander.h definitons. Add support for an attach() method that may be used when any subset of pin interrupts occur.
...
PCA9555 Driver: Replace the signalling logic with a simple callback using the new definitons of ioexpander.h. This repartitioning of functionality is necessary because (1) the I/O expander driver is the lower-lower part of any driver that uses GPIOs (include the GPIO driver itself) and should not be interacting directly with the much higher level application layer. And (2) in order to be compatible with the GPIO driver (and any arbitrary upper half driver), the PCA9555 should not directly signal, but should call back into the upper half. The upper half driver that interacts directly with the application is the appropriate place to be generating signal.
2016-07-31 11:09:47 -06:00
Gregory Nutt
309480d0f9
Merge branch 'timekeeping' of bitbucket.org:nuttx/nuttx
2016-07-28 09:34:00 -06:00
Gregory Nutt
e0b4a10dfa
drivers/serial/pty.c, serial.c, usbdev/cdcacm.c, include/nuttx/fs/ioctl.h: Fix FIONWRITE and add FIONSPACE. All implementations of FIONWRITE were wrong. FIONWRITE should return the number of bytes waiting in the outgoing send queue, not the free space. Rather, FIONSPACE should return the free space in the send queue.
2016-07-25 14:06:32 -06:00
Gregory Nutt
eb94cc5419
Update some comments
2016-07-24 12:48:37 -06:00
Gregory Nutt
fe678cf351
Trivial change to a comment (only committed so that I can merge)
2016-07-24 07:39:46 -06:00
Wolfgang Reissnegger
81f7758848
USBMSC: Fix usbtrace() string.
2016-07-23 20:10:20 -07:00
Gregory Nutt
a932578e76
GPIO driver: Add support for receiving signals from interrupt pins.
2016-07-23 13:53:06 -06:00
Gregory Nutt
7370d3171a
Move include/nuttx/lib.h to include/nuttx/lib/lib.h
2016-07-21 14:05:44 -06:00
Gregory Nutt
a2a47eb334
Move include/nuttx/float.h to include/nuttx/lib/float.h
2016-07-21 14:03:35 -06:00
Gregory Nutt
779d3f98ed
Move include/nuttx/math32.h to include/nuttx/lib/math32.h
2016-07-21 14:00:15 -06:00
Gregory Nutt
23a876ab9c
Move include/nuttx/math.h to include/nuttx/lib/math.h
2016-07-21 13:58:09 -06:00
Gregory Nutt
a2035f7efd
Move include/nuttx/1wire.h to include/nuttx/drivers/1wire.h
2016-07-21 13:51:28 -06:00
Gregory Nutt
ea589e2d6c
Move include/nuttx/stdarg.h to include/nuttx/lib/stdarg.h
2016-07-21 13:48:20 -06:00
Gregory Nutt
72a45c82b7
Move include/nuttx/regex.h to include/nuttx/lib/regex.h
2016-07-21 13:42:18 -06:00
Gregory Nutt
10fff9011a
Move include/nuttx/configdata.h to include/nuttx/mtd/configdata.h
2016-07-21 13:34:54 -06:00
Gregory Nutt
cf1d0e3222
Grrr.. more errors in same conditional compilation
2016-07-20 15:34:53 -06:00
Gregory Nutt
3218862616
Fix some backward conditional compilation
2016-07-20 15:32:56 -06:00
Gregory Nutt
bfc664af49
Fix pipe2() and mkfifo2() syscall logic
2016-07-20 15:26:54 -06:00
Gregory Nutt
ee9c66186c
ramdisk.h moved from include/fs/nuttx/ to include/nuttx/drivers.
2016-07-20 14:02:18 -06:00
Gregory Nutt
46dbbe837e
rwbuffer.h moved from include/nuttx/ to include/nuttx/drivers.
2016-07-20 13:54:38 -06:00
Gregory Nutt
1b9b3a7b47
pwm.h moved from include/nuttx/ to include/nuttx/drivers.
2016-07-20 13:48:24 -06:00
Gregory Nutt
ddcaa3d425
can.h moved from include/nuttx/ to include/nuttx/drivers.
2016-07-20 13:38:36 -06:00
Gregory Nutt
4b4dbc79a2
Move driver related prototypes out of include/nuttx/fs/fs.h and into new include/drivers/drivers.h
2016-07-20 13:15:37 -06:00
Gregory Nutt
e73e82a923
Move prototypes of mkfifo2() from sys/stat.h and pipe2() from unistd.h. They are non-standard and should not be in such a public place. They are not in include/nuttx/fs/fs.h (which isn't a great place either).
2016-07-20 11:57:18 -06:00
Gregory Nutt
b28fa8a609
Move pipe() and mkpipe() to nuttx/libc. Change syscalls to pipe2() and mkfifo2()
2016-07-19 14:15:26 -06:00
Gregory Nutt
671d7fae31
Add mkfifo2() and pipe2() which are just like mkfifo() and pipe(), but allow control of the size of the underlying, in-memory circular buffer
2016-07-19 13:51:05 -06:00
Gregory Nutt
d36da2b560
Fix bad dev[u]random_register() function return value.
2016-07-18 12:25:05 -06:00
Gregory Nutt
1660329d06
Rename up_rnginitialize to devrandom_register
2016-07-18 10:55:37 -06:00
Gregory Nutt
fe315f867a
Costmetic
2016-07-17 17:01:35 -06:00
Gregory Nutt
006f4a5818
HOSTFS: Fix some errors in first cut at repartitioning
2016-07-17 16:31:14 -06:00
Gregory Nutt
2b28a1f3e5
SIM HOSTFS: First cut at changes to get it working on Cygwin.
2016-07-17 15:59:45 -06:00
Gregory Nutt
07e20479ad
/dev/random: Add configuration option to use the congruential PRNG.
2016-07-17 07:56:25 -06:00
David Alessio
6cefbc0c3f
This change provides an option to add /dev/urandom to all architectures. The pseudo-random algorithm I choose strikes an arguably-good balance between being "random" and small/fast enough for 8/16 bit MCUs. It’s the well-documented xorshift128 algorithm. It has an internal state of 128 bits that can be [re-]seeded with a write.
2016-07-17 06:42:26 -06:00
Gregory Nutt
ded91e451b
PTY: Add TERMIOS support.
2016-07-16 10:43:44 -06:00
Gregory Nutt
6a75f2df89
PTY: Add some encode to reduce the likely of misinterpreting the return value of the file open() method
2016-07-15 17:13:21 -06:00
Gregory Nutt
9ecd558002
Add the correct implementation of the file_poll() function
2016-07-15 11:34:08 -06:00
Gregory Nutt
6e6c04f778
Rename file_poll as fdesc_poll. The file_ namespace is used for other things.
2016-07-15 11:21:11 -06:00
Gregory Nutt
f7f7036db8
Update some comments
2016-07-15 11:15:33 -06:00
Gregory Nutt
95555a0199
PTY: Add ioctls to support locking and unlocking of the slave. LIBC: Add implementation of unlockpt()
2016-07-15 09:39:33 -06:00
Gregory Nutt
6139860c0b
PTY: Added PTY IOCTL command definitions. Add support for TIOCGPTN. LIB: Implement ptsname() and ptsname_r()
2016-07-15 08:33:47 -06:00
Gregory Nutt
e50646336b
Add PTY header files
2016-07-15 07:19:42 -06:00
Gregory Nutt
beaca7a17f
Merge remote-tracking branch 'origin/master' into timekeeping
2016-07-13 10:22:38 -06:00
Max Neklyudov
b18369d772
ADC: add macros to call ADC routines
2016-07-13 10:12:14 -06:00
Gregory Nutt
c8f053de92
Kinetis Ethernet: Add support for the KSZ8081 PHY
2016-07-12 09:59:08 -06:00
David Alessio
261358f1f5
This change should significantly improve the performance of single precision floating point math library functions. The vast majority of changes have to do with preventing the compiler from needlessly promoting floats to doubles, performing the calculation with doubles, only to demote the result to float. These changes only affect the math lib functions that return float.
2016-07-11 07:02:50 -06:00
Gregory Nutt
246773faa7
Rename CONFIG_SCHED_TIMEKEEPING to CONFIG_CLOCK_TIMEKEEPING. That is a better compartmentalized name.
2016-07-11 06:54:02 -06:00
Gregory Nutt
f47b69e1f0
Add support for adjtime system call
2016-07-10 16:55:32 -06:00
Gregory Nutt
c326b6320a
Add description of adjtime() from Linux man page
2016-07-10 16:47:06 -06:00
Max Neklyudov
8db29071da
timekeeping: initial implementation
2016-07-10 16:14:25 -06:00
Gregory Nutt
2279206f5f
Remove carriage returns from header file
2016-07-07 17:11:44 -06:00
Gregory Nutt
88a03ae3ec
Break out internal interface psock_ioctl()
2016-07-06 07:30:09 -06:00
Paul A. Patience
0690391d42
ioexpander/gpio: Add missing argument to gpin_read and gpout_read
2016-07-05 15:55:16 -04:00
Gregory Nutt
02b91d9880
Add a SYSLOG character device that can be used to re-direct output to the SYSLOG
2016-07-05 12:58:18 -06:00
Gregory Nutt
a39ce80add
SYSLOG logic should use existing file interfaces, not re-invent them.
2016-07-05 12:12:44 -06:00
Gregory Nutt
f1cf6731eb
Add raise to std:: namespace in csignal
2016-07-04 12:22:33 -06:00
Gregory Nutt
830af912a1
Add sig_raise()
2016-07-04 09:32:36 -06:00
Gregory Nutt
aa96a1d2ec
Move the TZ/Olson zoneinfo data set from apps/system/zoneinfo to libc/zoneinfo
2016-06-30 15:40:37 -06:00
Gregory Nutt
a897fd4ccf
Eliminate use of apps/system/usbmonitor. Use drivers/usbmonitor instead.
2016-06-30 13:09:22 -06:00
Gregory Nutt
2a19e16eb0
libc/hex2bin: Move the portable library portion of apps/system/hex2bin to nuttx/libc/hex2bin where it can be shared with the OS internals.
2016-06-27 11:22:38 -06:00
Gregory Nutt
b16fdaf155
Some small improvements to GPIO driver
2016-06-26 11:24:35 -06:00
Gregory Nutt
20708c7c5e
GPIO driver: Fix inconsistency in naming; beef up a debug assertion.
2016-06-24 11:32:24 -06:00
Gregory Nutt
ae19ca45e0
drivrs/ioexpander: Add support for a very simple GPIO drivers. It supports only pre-conrigured input and output pins and only basic input and output operations.
2016-06-24 09:43:49 -06:00
Sebastien Lorquet
82d746ec35
STM32L4 CAN: Implementation of loopback IOCTLs
2016-06-22 10:02:20 -06:00
Sebastien Lorquet
16fe8ba342
Add some CAN mode IOCTL calls. These will be useful for device autotest when the application boots. They are redundant with the CONFIG_CAN_LOOPBACK option, which can now just be interpreted as a default setting.
2016-06-22 06:33:04 -06:00
Gregory Nutt
82c890db23
syslog_dev_flush() needs to check if the inode is a mountpoint before calling the flush() method. Noted by David Sidrane.
2016-06-22 05:58:33 -06:00
Gregory Nutt
0150991503
Update some comments
2016-06-21 16:12:05 -06:00
Gregory Nutt
0e1e3bc404
Add a file that I forgot in the last commit; Also update some comments.
2016-06-21 13:33:17 -06:00
Gregory Nutt
e6a1d53869
Extend SYSLOG logic so that we can send SYSLOG output to a file. Not verified on initial commit.
2016-06-21 12:54:47 -06:00
Paul A. Patience
2f76f6e848
can: Add support for poll
2016-06-21 13:02:46 -04:00
Gregory Nutt
5118264e6c
Rename CONFIG_SYSLOG_CONSOLE to CONFIG_CONSOLE_SYSLOG
2016-06-21 09:35:51 -06:00
Gregory Nutt
62d8f839c7
SYSLOG: Now a two phase initialization. Some SYSLOG channels cannot be initialized until later in the bringup
2016-06-21 07:52:24 -06:00
Gregory Nutt
951c71041d
Merged in paulpatience/nuttx/assert (pull request #66 )
...
assert: Don't define static_assert in C++
2016-06-21 05:59:55 -06:00
Gregory Nutt
7f16548f57
Replaces last three commits. Does the same thing, but does it in a way that does not change the usage model.
2016-06-21 05:26:08 -06:00
Paul A. Patience
983ccf1b0a
assert: Don't define static_assert in C++
2016-06-21 07:17:29 -04:00
Gregory Nutt
b82743612f
Even the 'unconditional' _alert() macro should be disabled if all debug features are disabled.
2016-06-20 22:38:54 -06:00
Gregory Nutt
505ca542e8
Remove some last traces of lowvsyslog that were missed; Add a SYSLOG emergency channel for handling assertion output more cleanly
2016-06-20 16:11:50 -06:00
Gregory Nutt
d1a62f1d24
Add a comment
2016-06-20 14:26:13 -06:00
Gregory Nutt
7ee6668178
Merged in paulpatience/nuttx/assert (pull request #65 )
...
assert: Define static_assert
2016-06-20 14:20:04 -06:00
Gregory Nutt
2a751068e6
Without lowsyslog() *llerr() is not useful. Eliminate and replace with *err().
2016-06-20 12:44:38 -06:00
Gregory Nutt
43eb04bb8f
Without lowsyslog() *llinfo() is not useful. Eliminate and replace with *info().
2016-06-20 11:59:15 -06:00
Gregory Nutt
d40a473f72
Without lowsyslog() *llwarn() is not useful. Eliminate and replace with *warn().
2016-06-20 09:37:08 -06:00
Gregory Nutt
2b445ddccc
Remove lowsyslog(). The new syslog() includes all of the functionality of lowsyslog(). No longer any need for two interfaces.
2016-06-20 08:57:08 -06:00
Paul A. Patience
a96c7492ad
assert: Define static_assert
2016-06-20 10:29:41 -04:00
Gregory Nutt
f4c47636e7
SYSLOG: Debug output from the IDLE task should be forced like interrupt level output
2016-06-20 07:35:38 -06:00
Gregory Nutt
fa365e85f5
Update some cmoments
2016-06-20 06:11:22 -06:00
Gregory Nutt
7dd66a4620
Need to pass va_list as a reference to vsyslog. This is because va_list is a structure in some compilers and passing of structures in the NuttX sycalls does not work.
2016-06-19 14:50:00 -06:00
Gregory Nutt
5b2aa7bf99
Remove all traces of CONFIG_SYSLOG
2016-06-19 13:59:43 -06:00
Gregory Nutt
9434d3e945
There is now one-and-only-one copy of syslog_putc. It is in the SYSLOG channel logic and can redirect syslog output as needed. All former syslog_putc versions were renamed and the corresponding SYSLOG device initializaiton now calls syslog_channel()
2016-06-19 13:03:20 -06:00
Gregory Nutt
d82942cf3b
Merge remote-tracking branch 'origin/master' into syslog
2016-06-19 11:20:31 -06:00
Gregory Nutt
9f260ca193
Some renaming so that future features will fit in better; If the architecture provides its only system logging (via CONFIG_ARCH_SYSLOG), then syslog_initialize() is stubbed out
2016-06-19 11:16:12 -06:00
Gregory Nutt
19c6a82f8b
a few cosmetic changes
2016-06-19 09:52:34 -06:00
Gregory Nutt
f59196247c
Merge remote-tracking branch 'origin/master' into syslog
2016-06-19 09:47:13 -06:00
Gregory Nutt
0f18f3bd15
Move RAMLOG initialize from up_initialilize.c files to syslog_initialize(). up_initialize.c files now call syslog_initialize() unconditionally
2016-06-19 09:39:21 -06:00
Gregory Nutt
3bd953316f
Add a hook before the existing syslog_initialize() call; rename the old syslog_initialize() to syslog_dev_initialize().
2016-06-19 09:12:33 -06:00
Gregory Nutt
2ff6ff39c9
Merge remote-tracking branch 'origin/master' into syslog
2016-06-19 08:11:07 -06:00
Gregory Nutt
b66112347c
include/nuttx/syslog/syslog.h now needs to include stdarg.h
2016-06-19 08:08:43 -06:00
Gregory Nutt
668980b4fa
Merge remote-tracking branch 'origin/master' into syslog
2016-06-19 08:02:42 -06:00
Gregory Nutt
34f776dce9
Move the OS intensive part of vsyslog and vlowsyslog to drivers/syslog/vsyslog.c and vlowsyslog.c. Also move lib_syslogstrem to drivers/syslog/syslogstream.c
2016-06-19 07:56:24 -06:00
Gregory Nutt
39a3c9aaee
Merge remote-tracking branch 'origin/master' into syslog
2016-06-19 07:04:51 -06:00
Gregory Nutt
f5e5908a70
vsyslog is now a system call
2016-06-19 07:03:44 -06:00
Gregory Nutt
fedf00033c
Make default interupt buffer smaller
2016-06-19 07:03:10 -06:00
Gregory Nutt
ea9565e137
SYSLOG: Flesh out interrupt buffer logic
2016-06-18 14:54:25 -06:00
Gregory Nutt
c44a011394
Add some basic SYSLOG channel selection logic
2016-06-18 12:54:55 -06:00
Gregory Nutt
b39e53391d
Add underscore at beginning of alert() as well
2016-06-16 12:38:05 -06:00
Gregory Nutt
0c8c7fecf0
Add _ to the beginning of all debug macros to avoid name collisions
2016-06-16 12:33:32 -06:00
Gregory Nutt
6f08216621
Centralize definitions associated with CONFIG_DEBUG_SYSCALL
2016-06-16 08:12:38 -06:00
Gregory Nutt
7a9f1814a2
Centralize definitions associated with CONFIG_DEBUG_SDIO/MEMCARD
2016-06-16 07:50:54 -06:00
Gregory Nutt
b7f0fbc073
Centralize definitions associated with CONFIG_DEBUG_RTC
2016-06-16 07:39:23 -06:00
Gregory Nutt
37b9742189
Centralize definitions associated with CONFIG_DEBUG_TIMER
2016-06-16 07:16:25 -06:00
Gregory Nutt
6b517ed017
Centralize definitions associated with CONFIG_DEBUG_WATCHDOG
2016-06-16 06:28:04 -06:00
Gregory Nutt
03cbe671ad
Centralize definitions associated with CONFIG_DEBUG_PWM
2016-06-15 17:23:56 -06:00
Gregory Nutt
8ce929a915
Centralize definitions associated with CONFIG_DEBUG_I2S
2016-06-15 16:54:01 -06:00
Gregory Nutt
5c89b18af8
Centralize definitions associated with CONFIG_DEBUG_I2C
2016-06-15 16:30:12 -06:00
Gregory Nutt
63b1eb09e6
Centralize definitions associated with CONFIG_DEBUG_CAN
2016-06-15 15:45:27 -06:00
Gregory Nutt
2ddd57c674
Centralize definitions associated with CONFIG_DEBUG_LEDS
2016-06-15 14:12:19 -06:00
Gregory Nutt
24c51ec1ff
Centralize definitions associated with CONFIG_DEBUG_LCD
2016-06-15 11:40:33 -06:00
Gregory Nutt
ba03134bed
Centralize definitions associated with CONFIG_DEBUG_SPI
2016-06-15 10:41:13 -06:00
Gregory Nutt
a97d3ae707
Centralize definitions associated with CONFIG_DEBUG_GPIO
2016-06-15 09:20:23 -06:00
Gregory Nutt
c4e6f50eac
Centralize definitions associated with CONFIG_DEBUG_IRQ
2016-06-15 08:35:22 -06:00
Gregory Nutt
58a0fa8a1e
Trivial spacing changes from review of last PR
2016-06-14 16:41:10 -06:00
Gregory Nutt
0da02686e6
Merged in K-man23/nuttx/ncp5623c (pull request #57 )
...
Forgot to add the header file for the ncp5623c driver
2016-06-14 16:35:54 -06:00
Konstantin Berezenko
ec455a8f4c
Forgot to add the header file for the ncp5623c driver
2016-06-14 15:16:10 -07:00
Frank Benkert
573b1d415c
* SAMV7: SPI: SPI-Freq. 40MHz; VARSELECT; hw-features
...
This change adds the following improvements:
- Increase the allowed SPI-Frequency from 20 to 40 MHz.
- Correct and rename the "VARSELECT" option This option was included in the code as "CONFIG_SPI_VARSELECT" but nowhere defined in a Kconfig file. The patch renames it to "CONFIG_SAMV7_SPI_VARSELECT" and corrects the implementation according the datasheet of Atmel. In short, this option switches the processor from "fixed peripheral selection" (single device) to "variable peripheral selection" (multiple devices on the bus).
- Add a new Function to the interface to control the timing and delays of the chip according the ChipSelect lines. This function can control the delay between the assertion of the ChipSelect and the first bit, between the last bit and the de-assertion of the ChipSelect and between two ChipSelects. This is needed to tune the transfer according the specification of the connected devices.
- Add three "hw-features" for the SAMV7, which controls the behavior of the ChipSelect:
1. force CS inactive after transfer: this forces a (short) de-assertion of the CS after a transfer, even if more data is
available in time
2. force CS active after transfer: this forces the CS to stay active after a transfer, even if the chip runs out of data. Btw.: this is a prerequisit to make the LASTXFER bit working at all.
- escape LASTXFER: this suppresses the LASTXFER bit at the end of the next transfer. The "escape"-Flag is reset automatically.
2016-06-14 13:12:16 -06:00
Gregory Nutt
a98bc05f65
New debug macro: alert(). This is high priority, unconditional output and is used to simplify and stanardize crash error reporting.
2016-06-14 09:07:53 -06:00
Gregory Nutt
5073bf1de6
Update some comments
2016-06-13 07:02:45 -06:00
Gregory Nutt
f3ec664f63
Debug output level (error, warning, info) is now selectable on a per-subsystem, per-driver basis
2016-06-12 13:08:23 -06:00
Paul A. Patience
f995f3c7bf
assert: Simplify
2016-06-12 08:18:30 -04:00
Gregory Nutt
a1469a3e95
Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err()
2016-06-11 15:50:49 -06:00
Gregory Nutt
e99301d7c2
Rename *lldbg to *llerr
2016-06-11 14:55:27 -06:00
Gregory Nutt
86b79b33cf
Reserver the name 'err' for other purposes
2016-06-11 14:40:07 -06:00
Gregory Nutt
1cdc746726
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
2016-06-11 14:14:08 -06:00
Gregory Nutt
c211ce8be1
DEBUGASSERT() is not enabled with CONFIG_DEBUG_ASSERTIONS, not CONFIG_DEBUG
2016-06-11 12:49:21 -06:00
Gregory Nutt
a3bb764305
Add support for a warn() marco that will be between dbg() and info() in priority
2016-06-11 12:38:37 -06:00
Gregory Nutt
fc3540cffe
Replace all occurrences of vdbg with vinfo
2016-06-11 11:59:51 -06:00
Gregory Nutt
3a74a438d9
Rename CONFIG_DEBUG_VERBOSE to CONFIG_DEBUG_INFO
2016-06-11 11:50:18 -06:00
Gregory Nutt
9c4b604074
Button upper half driver: Add definitions needed for compilation with the poll() interface is not disabled.
2016-06-11 07:22:31 -06:00
Paul A. Patience
5cfffbfa62
crc64: fix error
2016-06-10 12:30:45 -04:00
Paul A. Patience
9587c551ad
libc/misc: add crc64
2016-06-10 11:03:50 -04:00
Gregory Nutt
03c44c3583
Merged in marten_svanfeldt/nuttx-public/for_upstream/is25 (pull request #44 )
...
Added driver of IS25xP SPI flash devices
2016-06-09 09:30:34 -06:00
Marten Svanfeldt
edeb2eed4e
Added driver of IS25xP SPI flash devices
...
Based on sst25xx driver
Signed-off-by: Marten Svanfeldt <marten@intuitiveaerial.com>
2016-06-09 05:13:06 +02:00
Gregory Nutt
d84dbbc455
Add a comment to assert.h
2016-06-08 09:59:11 -06:00
Paul A. Patience
79a157cc9d
assert: Check if NDEBUG is defined
2016-06-08 11:07:24 -04:00
Aleksandr Vyhovanec
c939bbe47a
include/signal.h: Change type of SIG_IGN and related defines to _sa_handler_t
2016-06-07 06:56:19 -06:00
Gregory Nutt
37dd4e52a1
boardctl.h needs to be include-able from C++ files
2016-06-05 12:14:34 -06:00
Gregory Nutt
a18dbfda6e
Remove drivers/mtd/flash_eraseall.c. It is not used in the OS and is just a dumb wrapper around the MDIOC_BULKERASE IOCTL call.
2016-06-02 10:44:13 -06:00
Gregory Nutt
50d640a102
Typo fix
2016-05-30 09:51:46 -06:00
Gregory Nutt
9b4cec9228
Replace confusing references to uIP with just 'the network'
2016-05-30 09:51:15 -06:00
Gregory Nutt
22044edd12
Merged in ziggurat29/nuttx/stm32l4_i2c_lcd_mjkdz_001 (pull request #35 )
...
correct bugs and add enhancements to pcf8574 lcd backpack driver
2016-05-29 14:02:39 -06:00
ziggurat29
4643fcdfd8
correct logic hazard in latch and load nybble; was transitioning control lines at the same time as enable, causing spurious behaviour on less-tolerant displays
...
improve timing parameters in init sequences for better display compatibility
correct (row,col) -> address calculation; affects 4-line displays
update comments in header and readme
2016-05-29 11:09:00 -05:00
Gregory Nutt
7d538d19bf
Costmetic changes to comments and style
2016-05-27 10:53:27 -06:00
Gregory Nutt
23f4f04448
Costmetic update to some comments
2016-05-27 07:50:06 -06:00
Pierre-noel Bouteville
55d704e3c2
ADC: In adc.h, exclude upper half fields if common upper half is not used (CONFIG_ADC not defined).
2016-05-27 07:16:30 -06:00
Pierre-noel Bouteville
41412d0ce9
* fix a bug in crc computation for ms583730
...
* implement POSIX read.
2016-05-27 07:05:20 -06:00
Gregory Nutt
b630d48175
Add bind method to the ADC lower-half interface
2016-05-26 11:32:26 -06:00
Gregory Nutt
001715d57b
FS: Add logic to detach a file structure from a file descriptor. This is for use only within the OS. It permits an open file or driver to be used across multiple threads.
2016-05-26 09:41:50 -06:00
Gregory Nutt
aa7a981674
Update some comments
2016-05-26 08:37:40 -06:00
Gregory Nutt
3603dc6218
1-wire: Initialization/uninitialization functions are not use MCU-independent up_ naming. Should use STM32-specific stm32_ naming. These are not globally accessible but only accessible from STM32 board logic.
2016-05-25 17:56:47 -06:00
Aleksandr Vyhovanec
9a2002a302
1-wire driver based on U[S]ART in single-wire, half-duplex mode.
2016-05-25 08:59:47 -06:00
Gregory Nutt
51504a032e
Oops... forgot to add PCF8574 LCD Backpack files before doing the commit.
2016-05-25 08:48:54 -06:00
Gregory Nutt
4b3e710af6
Add an argument to board_app_initialize()
2016-05-24 10:51:22 -06:00
Alexander Vasiljev
eb11e662db
Modifications to the crypto API needed for LPC43xx.
2016-05-23 08:05:02 -06:00
Gregory Nutt
8ace1e3be2
Remove all implementatinos of up_wdginitialize(). It is no longer used.
2016-05-18 19:48:42 -06:00
Gregory Nutt
32838fcc2c
enter/leave_critical_section: In SMP configuration, may attempt to access the task lists before they have been initialized
2016-05-18 09:17:01 -06:00
Gregory Nutt
a3f3cc12c0
Update some comments; Fix grammatic error in ChangeLog.
2016-05-13 17:36:08 -06:00
Gregory Nutt
faca2fb1e7
ARMv7-A/i.MX6: Add logic to handle allocation of CPU IDLE thread stacks more efficiently
2016-05-13 11:39:42 -06:00
Gregory Nutt
70782b0f14
ARMv7-A i.MX6: More SMP logic. Still untested.
2016-05-12 15:04:46 -06:00
Frank Benkert
9eeb8634fc
Improve the CAN error reporting by also report internal device driver errors.
2016-05-11 07:10:17 -06:00
Sebastien Lorquet
f4fa4799f7
Add a driver for SST26F spi/qspi flash devices (SPI mode only)
2016-05-10 11:09:15 -06:00
Gregory Nutt
b9c2b92b10
Add utilities to count the number of nodes in a queue
2016-04-23 13:25:46 -06:00
Gregory Nutt
0d57612d13
VNC: Need to handle connection closed events
2016-04-23 10:57:28 -06:00
Gregory Nutt
f3499b173a
VNC: Fix a memory clobblering bug
2016-04-23 10:21:49 -06:00
Gregory Nutt
8c1534e3ed
VNC: Finish initializing the VNC server once we have the NX handle
2016-04-22 13:39:35 -06:00
Gregory Nutt
47c2b3d4a7
VNC: Add default mouse/keyboard input handlers
2016-04-22 12:48:27 -06:00
Gregory Nutt
e2f17ce7e7
Trivial changes from review
2016-04-22 07:42:37 -06:00
David Sidrane
fd794111ad
Fixed const warning
2016-04-21 16:45:32 -10:00
Gregory Nutt
1e7b8b80ac
Add a mechanism to get remote keyboard and mouse inputs
2016-04-21 14:52:25 -06:00
Gregory Nutt
be1677ba25
VNC: Client may request pixel data in either big- or little- endian order
2016-04-21 12:18:35 -06:00
Gregory Nutt
eb8c7f1641
VNC: Correct pixel width in RRE encoding
2016-04-21 08:16:33 -06:00
Gregory Nutt
f8604d11a9
VNC: Add some very basic RRE encodings
2016-04-20 17:01:48 -06:00
Gregory Nutt
363169339b
VNC: Fix error in message header size calculation; Add logic to try copy with pixel format changes.
2016-04-20 13:10:09 -06:00
Gregory Nutt
e0509b4256
VNC: Minor naming changes to avoid collisions
2016-04-19 13:48:17 -06:00
Gregory Nutt
26266ed935
VNC: Fix a structure size macro in the RFB definitions
2016-04-19 10:18:56 -06:00
Gregory Nutt
170f906a8b
VNC: Add support for RGB8 conversions. These are what are used by RealVNC.
2016-04-19 10:10:59 -06:00
Gregory Nutt
fc809d5df0
VNC: Fix some big-endian access macros
2016-04-19 09:11:14 -06:00
Gregory Nutt
f35de73e69
RFB: Various fixes to header file
2016-04-17 16:49:47 -06:00
Gregory Nutt
e8f0965d35
Mostly cosmetic changes from review of last PR
2016-04-17 14:13:44 -06:00
Gregory Nutt
329acb075f
Merged in ziggurat29/nuttx/stm32l4_qspi_001 (pull request #1 )
...
add MTD support for Micron N25Qxxx family of QSPI flash
2016-04-17 14:00:19 -06:00
Gregory Nutt
6ce656f9f5
RFB: Fix size of length field in the Client/ServerCutText message
2016-04-17 13:37:52 -06:00
Gregory Nutt
52b308cbe1
NX: Add configurable callout to external logic to handle display update events
2016-04-17 11:57:43 -06:00
ziggurat29
1b9d837df3
add MTD support for Micron N25Qxxx family of QSPI flash
2016-04-17 12:20:07 -05:00
Gregory Nutt
aa64214877
FB: Add a display number to the framebuffer planeinfo structure
2016-04-17 10:08:27 -06:00
Gregory Nutt
c84b9d1110
RFB: Fix some errors in header file
2016-04-16 15:59:59 -06:00
Gregory Nutt
bba3b13470
RFB: Add macros to access big-endian values
2016-04-16 13:18:04 -06:00
Gregory Nutt
20e31640aa
Finishes remote frame buffer header file
2016-04-16 12:33:08 -06:00
Gregory Nutt
276388a65d
RFB: Initial, incomplete of VNC remote framebuffer definitions
2016-04-16 09:03:01 -06:00
Alan Carvalho de Assis
7f5339ee5a
drivers/sensors/h1750fvi.c: Add a character driver for Rohm Ambient Light Sensor BH1750FVI.
2016-04-15 08:16:16 -06:00
Gregory Nutt
aa34429222
ASCII: Improve some naming
2016-04-14 16:20:36 -06:00
Gregory Nutt
46846c0c24
Framebuffer driver: Add a display number to each interface in order to support multiple displays
2016-04-14 12:23:15 -06:00