Gregory Nutt
19d31412f7
Update/correct some comments
2014-11-29 07:08:30 -06:00
Gregory Nutt
2b8fe6709b
Add an analog joystick driver. Initial checkin is only a little more of a clone of the discrete joystick driver and is as-of-yet untested
2014-11-28 19:59:27 -06:00
Gregory Nutt
36ac0d2cf4
Add an interface definition header file for an analog joystick device
2014-11-28 19:27:42 -06:00
Gregory Nutt
544322edb9
DJoystick: Add a new ioctl to get the support joystick discrete signals
2014-11-28 15:39:57 -06:00
Gregory Nutt
421c81b315
STM3210E-EVAL: Add a DJoystick driver
2014-11-28 13:31:09 -06:00
Gregory Nutt
bd93ba55c5
Cosmetic change to comment
2014-11-28 09:06:05 -06:00
Gregory Nutt
5ddfdb2d8d
cctype: Undefined macros defined ctype.h so that builtin C++ implementations will be used
2014-11-28 09:02:52 -06:00
Gregory Nutt
e42f7b552f
This commit is a set of patches 02/11 through 03/11 correcting issues with the CC3000 networking (01/11 was committed separated). Among these 10 patches:
...
03/11: CC3000 driver was getting stuck at recv() when remote host closed connection and application tried to read data from remotely shutdown socket. This patch adds proper handling for remotely closed socket event.
07/11: Socket state initialization was done in 'register', while it should be initialized in 'open' and deinitialized in 'close'. Old way caused problems when device is closed, power-cycled and then reopened as old socket state was left enabled.
08/11: Select thread was getting stuck after 'close, power-cycle, reopen', since selectsem was not properly setup and cleaned up.
09/11 'maxFD' was not properly reset in select worker and not checked for before calling cc3000_select().
10/11: After wlan_stop()/cc3000_close(), irqsem was left with count '-1'. Therefore on next wlan_start()/cc3000_open(), initial value for irqsem was wrong. Additional repeated wlan_start()/wlan_stop() decreased irqsem value further. Obviously this causes driver not to function correctly and freeze.
Patch moves initialization and destruction of waitsem, irqsem and readysem to cc3000_open/cc3000_close.
All are: Signed-off-by: Jussi Kivilinna <jussi.kivilinna@haltian.com>
2014-11-28 08:52:52 -06:00
Gregory Nutt
2d9bd07525
Some additional, minor improvements to djoystick interrupt controls
2014-11-27 20:20:10 -06:00
Gregory Nutt
0ec5043a4e
Add an interface definition and upper half driver for a discrete joystick device
2014-11-27 17:42:16 -06:00
Gregory Nutt
a7b6369825
Two new fonts from Pierre-noel Bouteville
2014-11-26 14:15:34 -06:00
Gregory Nutt
40b27115cc
Add support for generic EEPROM access via a character driver. Add also the EEPROM driver itself. From Sebastien Lorquet
2014-11-26 13:55:34 -06:00
Gregory Nutt
e0fc5a86c8
Fixes for more complaints from cppcheck
2014-11-25 08:09:57 -06:00
Gregory Nutt
e611859aed
Fix typo in confiditional compilation. From Alan Carvalho de Assis
2014-11-23 16:51:02 -06:00
Gregory Nutt
c64cb19861
Move IP header flags from tcp.h to ip.h and rename IP_FLAGS vs TCPFLAGS. The problem fixed here is that there IP flags were not available when TCP was disabled. The IP flags are used in ICMP and IGFMP
2014-11-17 17:16:46 -06:00
Gregory Nutt
38754a3466
Completes basic changes to support per-device/per-link TCP receive window size
2014-11-16 11:15:21 -06:00
Gregory Nutt
2340d46d20
Rename NET_LL_MTU to NET_DEV_MTU; rename d_llmtu to d_mtu
2014-11-16 10:42:19 -06:00
Gregory Nutt
c00a37a3db
Fixes for Ethernet, SLIP, and Ethernet+SLIP builds
2014-11-16 09:55:58 -06:00
Gregory Nutt
859748a94e
Completes conversion of CONFIG_NET_BUFIZE to CONFIG_NET_ETH/SLIP_MTU
2014-11-16 09:22:38 -06:00
Gregory Nutt
ca7486d7f3
Add link MTU size to network device structure.
2014-11-16 08:49:14 -06:00
Gregory Nutt
51adb90e9a
Network: Update SLIP configuration; Fix compile issues when building SLIP only
2014-11-15 14:36:49 -06:00
Gregory Nutt
2e55db369d
Network: All logic will now handle varialbe length link layer protocol headers within incoming packets. This permits use of multiple network interfaces with differing data links. For example, ETHERNET + SLIP
2014-11-15 13:13:23 -06:00
Gregory Nutt
a831ab21bc
Merge remote-tracking branch 'origin/master' into llhdrlen
2014-11-15 10:04:49 -06:00
Gregory Nutt
ebb6fd1e9c
Resove merge conflicts
2014-11-15 10:04:33 -06:00
Gregory Nutt
25a9005ce7
Remove use of NET_LL_HDRLEN from Ethernet drivers. Use ETH_HDRLEN instead
2014-11-15 09:05:34 -06:00
Gregory Nutt
2b758537ea
Network: Misc fixes for clean complete with both Ethernet and SLIP enabled
2014-11-15 08:55:50 -06:00
Gregory Nutt
388ef8db1a
Netwoek: Ada a parameter to netdev_register() to indicate the link protocol supported by the driver. Use this value to replace some logic commited yesterday
2014-11-15 08:22:51 -06:00
Gregory Nutt
64d18bfe12
NET: Fix some some more ARP/Ethernet releated configuration
2014-11-14 21:22:45 -06:00
Gregory Nutt
3576e249b5
Add driver for ST7565 that works with NHD‐C12864KGZ display. From Pierre-noel Bouteville.
2014-11-13 16:03:52 -06:00
Gregory Nutt
bb65701ccd
Oops.. part of the last change will still in the editor
2014-11-12 18:33:07 -06:00
Gregory Nutt
a61802640f
Defines inline functions as not instrumented - this is relevant for anyone using instrumentation. From Lorenz Meier.
2014-11-12 07:32:36 -06:00
Gregory Nutt
c23b7ec93d
From Lorenz Meier: The implementation of access() as vararg macro has the issue that any function call with the same name (even in a C++ class) will match with it and result in a compile error. I have replaced it with a small function, and tried to have decent documentation as well. This resolves the compile issue, and shouldn’t have negative side effects for users of the function.
2014-11-11 11:52:24 -06:00
Gregory Nutt
6e387ee135
Add ANSI/VT100 color codes
2014-11-10 15:10:57 -06:00
Gregory Nutt
fecad1027c
Update csdtio too
2014-11-06 07:11:23 -06:00
Gregory Nutt
ee22104762
Can't use formal parameter name 'template' in stdlib.h. Causes C++ compilation errors. Noted by Lorenz Meier
2014-11-06 07:00:23 -06:00
Gregory Nutt
787cd466d2
Add tmpnam() and tempnam()
2014-11-05 10:43:17 -06:00
Gregory Nutt
d13731711f
Add mktemp() and mkstemp()
2014-11-05 09:39:18 -06:00
Gregory Nutt
ef82c280fd
MM: Minimum memory allocation must to up to 32 if sizeof pointer is 8-bytes
2014-11-02 12:11:20 -06:00
Gregory Nutt
6bbfb2b7ca
Add isatty() function. From Alan Carvalho de Assis
2014-10-27 12:29:15 -06:00
Gregory Nutt
04471aa5cb
Add include/wchar.h
2014-10-27 08:28:38 -06:00
Gregory Nutt
03663a7ac4
Cosmetic changes
2014-10-27 07:57:12 -06:00
Gregory Nutt
a7a5c8cff3
Fixes to tickless operation code. From Brandon Warhurst
2014-10-23 06:41:31 -06:00
Gregory Nutt
bfc12bf3a7
ARMv7: Add support to use ITM for SYSLOG debug output
2014-10-22 09:03:00 -06:00
Gregory Nutt
f8c4c75c17
include: adds interface description for ili9341
...
This adds the description of the generic interface to communicate with
the ili9341 lcd single chip driver used by any displays.
The interface have to be implemented by the platform specific subdriver.
The following functions must be exported:
-select
Select the spi device before starting an operations.
-deselect
Deselect the spi device after operations finished and if the device was
selected before.
-sendcmd
Send any command to the ili9341 display driver.
-sendparam
Send any parameter corresponding to the ili9341 display driver.
-recvparam
Receive any parameter from the ili9341 display driver. This is only possible
for the read commands supported by the ili9341.
-sendgram
Send pixel data to the gram of the display. This i similar to the function
sendparam, but pixel data operations needs another handling of how to send the
data to the display.
-recvgram
Receive pixel data to the gram of the display. This i similar to the function
recvparam, but pixel data operations needs another handling of how to receive
the data from the display.
-backlight
Change the backlight level of the display.
Signed-off-by: Marco Krahl <ocram.lhark@gmail.com>
2014-10-20 15:15:22 -06:00
Gregory Nutt
179fabb019
Add description of work queues to the porting guide. Update comments
2014-10-14 10:21:18 -06:00
Gregory Nutt
f6d11bc2fd
Back out an incorrect change
2014-10-12 11:01:57 -06:00
Gregory Nutt
872e9fce26
Cosmetic update to comments
2014-10-12 10:53:29 -06:00
Gregory Nutt
c9d7472d68
Change naming of HP work queue configuration varaibles to be symmetric with LP work queue naming
2014-10-11 17:03:44 -06:00
Gregory Nutt
b78fe7c270
Rename CONFIG_SCHED_USRWORK to CONFIG_LIB_USRWORK
2014-10-11 15:59:40 -06:00
Gregory Nutt
9292e3d9de
Decouple the user-space work queue from the kernel space work queues
2014-10-11 15:50:22 -06:00
Gregory Nutt
bb1d91bd83
Make building of low-priority work queue independent of also building the high-priority work queue
2014-10-11 14:43:24 -06:00
Gregory Nutt
0566eb45f7
Fix a couple of C++ related problems in include/cxx
2014-10-11 08:40:19 -06:00
Gregory Nutt
ae3cc327c7
AIO now also supports socket transfers
2014-10-11 08:15:23 -06:00
Gregory Nutt
4a4b3ac537
Add support for multiple low-priority worker threads
2014-10-10 16:24:50 -06:00
Gregory Nutt
cf59a195ba
User-mode work queue logic should not disable interrupts
2014-10-10 14:52:04 -06:00
Gregory Nutt
16a3e83258
Add support for delays of different durations in work queue processing
2014-10-10 13:21:37 -06:00
Gregory Nutt
b2cebaa9d4
Modularize starting of worker threads to better isolate individual initialization characteristics
2014-10-10 09:38:28 -06:00
Gregory Nutt
1afc9773ac
Decoupling work queue data structures. This is part of the preparation to support multiple low-priority worker threads
2014-10-10 08:35:58 -06:00
Gregory Nutt
6220256a09
Repartition work queue code. Move kernel-specific parts from libc/wqueue to sched/wqueue
2014-10-10 06:22:51 -06:00
Gregory Nutt
a4d157bb2d
Trivial AIO-related changes
2014-10-09 08:34:49 -06:00
Gregory Nutt
02444cfb2c
Update comments and function headers
2014-10-09 07:38:38 -06:00
Gregory Nutt
d2c8e13ed5
Backing out some logic: Remove syslog functions from syscalls
2014-10-09 06:58:23 -06:00
Gregory Nutt
4efb064169
Remove non-standard, conditional syslog_enable(), instead only the required, standard setlogmask()
2014-10-09 06:09:03 -06:00
Gregory Nutt
bbc658930a
Passing va_list in syscall does not work. Temporarily moved syslog and lowsyslog into kernel code and access via a system call. Need to revisit. Will probably need to move all of syslog back from fs/syslog to libc/syslog
2014-10-08 20:12:52 -06:00
Gregory Nutt
323084f32f
Add syslog system calls
2014-10-08 19:37:10 -06:00
Gregory Nutt
ec57ab6391
Implement setlogmask(); move some syslog logic from libc/syslog to fs/syslog
2014-10-08 19:08:26 -06:00
Gregory Nutt
a8399d5c6b
Move syslog logic from libc/misc and libc/stdio to libc/syslog
2014-10-08 17:16:41 -06:00
Gregory Nutt
f40857c04f
All NSH-related files under nuttx/configs changed to use the corrected syslog interfaces
2014-10-08 14:28:55 -06:00
Gregory Nutt
7b310711a1
Update everything under nuttx/arch to use the corrected syslog interfaces
2014-10-08 12:48:47 -06:00
Gregory Nutt
0cd7683711
Update everything under apps/ to use the corrected syslog interfaces
2014-10-08 11:34:22 -06:00
Gregory Nutt
8db42f5b54
Update ChangeLog
2014-10-08 10:48:47 -06:00
Gregory Nutt
f8ed7323c0
make standard syslog and vsyslog POSIX compliant (also modify non-standard syslog functions for compatibility). This will break a lot of things until ALL usage of syslog is updated to use the modified interfaces
2014-10-08 09:44:15 -06:00
Gregory Nutt
047deada84
Remove non-portable references to syslog from apps/examples
2014-10-08 08:33:00 -06:00
Gregory Nutt
7f36c4e97b
Update some Kconfig comments; Add a upper limit on the lower priority worker thread for priority inheritance
2014-10-07 17:11:26 -06:00
Gregory Nutt
f956bd9915
Chane a type from int to int16_t for a little better packing in a structure
2014-10-07 08:36:53 -06:00
Gregory Nutt
4c7b988525
Update some comments
2014-10-07 08:34:10 -06:00
Gregory Nutt
d7843c8e24
Add support for priority inheritance on the low priority worker queue
2014-10-07 07:41:52 -06:00
Gregory Nutt
002e686991
Add ECANCELED
2014-10-06 15:05:35 -06:00
Gregory Nutt
1273be4cfc
Fix a place in the memory manager where it explicitly assumes that the size of a point is 4 bytes. That is OK if the actually size is smaller but makes the heap unstable when used withthe x86_64 host simulation
2014-10-06 12:49:35 -06:00
Gregory Nutt
37cf4135c4
fs_initialize() is no longer weak
2014-10-06 11:45:35 -06:00
Gregory Nutt
d914f3ceec
Major structure of file system functions to better support asynchronous I/O. Respository should not be trusted until I have a chance to verify everything
2014-10-06 10:53:25 -06:00
Gregory Nutt
52ce95b8b8
Add a AIO control container to increase the payload with OS internal stuff.
2014-10-06 08:10:02 -06:00
Gregory Nutt
87eb1d47ed
Fix some recently introduced typos, build problems, and warnings
2014-10-05 16:58:52 -06:00
Gregory Nutt
5201acb71c
Add system calls for AIO kernel functions
2014-10-05 15:59:02 -06:00
Gregory Nutt
652d3ed29d
Rename CONFIG_LIBC_AIO to CONFIG_FS_AIO since it is now an OS property
2014-10-05 15:44:43 -06:00
Gregory Nutt
f73a18ae39
Move all file operations from libc/aio to fs/aio. These will need to be kernel routines in order to handler issues with using file descriptors on worker thread
2014-10-05 15:33:31 -06:00
Gregory Nutt
9a1b011178
Initiail implementation of lio_listio() and rethinking of signal logic
2014-10-05 11:43:42 -06:00
Gregory Nutt
eeaae40d0c
Initial implementation of aio_fsync()
2014-10-05 08:53:13 -06:00
Gregory Nutt
a4861c7cb7
Iniial implementatin of aio_cancel()
2014-10-05 08:22:39 -06:00
Gregory Nutt
c274acc48f
Move AIO signal logic to a common location in aio_signal.c. Also fix several typos
2014-10-05 06:53:56 -06:00
Gregory Nutt
31cdcde73a
Add definitions for SIGPOLL
2014-10-05 06:02:37 -06:00
Gregory Nutt
e8cef249cc
Initial implementation of aio_write()
2014-10-04 17:30:24 -06:00
Gregory Nutt
fa28c51c75
Fleshes out aio_read implementation
2014-10-04 14:44:57 -06:00
Gregory Nutt
9e8a4dd229
Add skeleton file for eventual implementation of aio_read()
2014-10-04 14:22:00 -06:00
Gregory Nutt
920680041a
Add aio.h header file
2014-10-04 09:59:44 -06:00
Gregory Nutt
032fbb7ace
Add pread(0 and pwrite() system calls
2014-10-04 07:31:45 -06:00
Gregory Nutt
948be542a1
Add pread() and pwrite()
2014-10-04 07:31:13 -06:00
Gregory Nutt
4764c95670
Implement creat() as a macro
2014-10-04 06:44:57 -06:00
Gregory Nutt
73afa66228
Cosmetic update to comments/README
2014-10-01 15:02:49 -06:00
Gregory Nutt
71b574f26c
Repartition some message queue logic: sched/mqueue should have all mqueue knowledge; fs/mqueue should deal only with inodes
2014-09-30 08:03:39 -06:00