Commit Graph

2254 Commits

Author SHA1 Message Date
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