Gregory Nutt
341497484e
include/sys/syscall.h: Fix some kruft that snuck into the file with the last changes.
2018-06-16 13:07:12 -06:00
Gregory Nutt
8fca244f36
syscall: clock_systimer() is no longer a system call. It has been replaced with the equivalent, standard interface clock() as the system call.
...
sched/clock: Move the implementation of clock() from libs/libc/time to sched/clock. This is necessary because it calls the (now) internal OS function clock_systimer. clock() is now accessed only via a system call in certain configuratins.
libs/libc/wqueue: Replace calls to clock_systimer() with calls to the equivalent clock().
2018-06-16 12:50:28 -06:00
Gregory Nutt
8fdbb1e0a4
Elimate use of the non-standard type systime_t and replace it the equivalent, standard type clock_t
...
Squashed commit of the following:
sched: Rename all use of system_t to clock_t.
syscall: Rename all use of system_t to clock_t.
net: Rename all use of system_t to clock_t.
libs: Rename all use of system_t to clock_t.
fs: Rename all use of system_t to clock_t.
drivers: Rename all use of system_t to clock_t.
arch: Rename all use of system_t to clock_t.
include: Remove definition of systime_t; rename all use of system_t to clock_t.
2018-06-16 12:16:13 -06:00
Juha Niskanen
5b899b76c4
drivers/sensors: Add support for Telair T6713 carbon dioxide sensor
2018-06-15 06:52:16 -06:00
Gregory Nutt
c213bac2c4
include/netdb.h: remove use of 'restrict'. Causes compile errors with some toolchains. Add formal parameter names to prototypes so that they are more self-documenting.
2018-06-12 21:11:48 -06:00
Masayuki Ishikawa
9f682056f9
Merged in masayuki2009/nuttx.nuttx/termios_branch (pull request #655 )
...
libs/libc/termios: Add lib_cfmakeraw.c
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: GregoryN <gnutt@nuttx.org>
2018-06-12 14:05:39 +00:00
Juha Niskanen
1f4a1eab6d
libs/libc/netdb: Add getaddrinfo() and friends.
2018-06-08 07:07:21 -06:00
Gregory Nutt
a94e3284b3
syslog: Enable is partial, crippled version of syslog_flush(); arch/: Call syslog_flush() from assertion handling logic.
2018-06-07 16:29:16 -06:00
Gregory Nutt
a581d7c2e3
arch/: Relasted to last big change to force interrupts to be disabled. In the SMP case, we still must call leave_critical_section() at least once in order to compensate for the fact that the irqcount was incremented in up_schedsigaction().
2018-06-06 17:04:12 -06:00
Masayuki Ishikawa
fb07bd7e27
Adds loopback test for digital MIC on lc823450 via i2schar driver.
...
Squashed commit of:
configs/lc823450-xgevk: Enable DMDIN0 (Digital MIC)
I2S: Add ioctl interface to i2s_ops_s and i2schar driver
arch/arm/src/lc823450: Add DGMIC in lc823450_i2s.c
configs/lc823450-xgevk: Add i2schar driver to lc823450_wm8776.c
configs/lc824350-xgevk: Enable AUDIO_I2SCHAR in audio/defconfig
configs/lc823450-xgevk: Update README.txt
2018-06-05 10:34:22 -06:00
Mateusz Szafoni
b5ec5349b0
Merged in raiden00/nuttx (pull request #648 )
...
libdsp: initial commit
* libdsp: initial commit
* libdsp: cosmetics
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-05-30 12:36:06 +00:00
Gregory Nutt
f3392e0a6c
drivers/serial: Add a timeout to uart_tcdrain(). Even if tcflush() is used to discard buffered data, the close() can still hang if (a) hardware flow control is enabled, (b) CTS == 1, and (c) there is data stuck in the hardware Tx FIFO. tcflush() does not currently clear the MCU serial drivers' hardware Tx FIFOs. This is a workaround for that.
2018-05-27 11:39:34 -06:00
Gregory Nutt
9da3d4a2a9
drivers/lcd and configs/olimex-lpc1766stk: Remove support for the Nokia6100 LCD. That LCD uses a 9-bit SPI interface (the 9th bit being the command/data bit that is normally a discrete). That communication was never successfully integrated. I now believe that it would would require some special support from the low-level, MCU SPI driver to manage that 9th bit. The deleted code is still available in the Obsoleted repository in the nuttx/drivers/lcd, nuttx/configs/olimex-lpc1766stk, and Patches directories.
2018-05-19 16:46:21 -06:00
Gregory Nutt
2366c13f87
include/nuttx/fb.h: Fix a type _BEND -> _BLEND
2018-05-18 13:36:58 -06:00
Gregory Nutt
c84342d357
include/nuttx/video/fb.h: No, I was right the first time. sys/types.h is needed in some inclusion contexts.
2018-05-18 08:21:08 -06:00
Gregory Nutt
d813c867aa
include/nuttx/fb: Last change was wrong. It was not a missing header. It was just a dumb typo.
2018-05-18 08:03:48 -06:00
Gregory Nutt
eaa1570fba
include/video/fb.h: Use of size_t requires inclusion of sys/types.h
2018-05-18 07:50:10 -06:00
Gregory Nutt
8b0b7636a8
include/nuttx/video/fb.h: Make type used for overlay number consistent; Use standardized types (size_t and fb_coord_t) whenever possible.
2018-05-18 07:24:36 -06:00
Gregory Nutt
af8b1abf73
Merged fboverlay into master
2018-05-17 16:11:09 -06:00
Gregory Nutt
8befa072a5
include/sys/resource.h: Trivial typo fix.
2018-05-13 12:12:49 -06:00
Gregory Nutt
3208e4835e
include/sys: Add resource.h
2018-05-13 10:59:49 -06:00
Gregory Nutt
4a9a421c34
Back out part of f4bcaa4fc2dc2f06d5632d3b74f43c25a6e7e845.If CONFIG_ARCH_IDLE_CUSTOM is defined, then it should not use the version of lc823450_idle.c in arch/arm/src/lc823450. That part was correct before the PR. If CONFIG_ARCH_IDLE_CUSTOM, then the build should use a custom IDLE loop in the board src/ directory.
2018-05-11 06:26:01 -06:00
Gregory Nutt
024364eeef
Clean up some spacing in the last commit... Seemed like a good idea at the time, but it is better to be consisten than better.
2018-05-10 15:59:40 -06:00
Michael Jung
29af41a85f
libc/unistd: Initial, minimal implementation of sysconf(). Only sufficient to support the functionality of less standard getdtabilesize().
2018-05-10 14:08:34 -06:00
Michał Łyszczek
16ce1552bc
/include/nuttx/mtd/configdata.h: Fix copy-paste comment in configdata.h
2018-05-08 09:09:47 -06:00
Anthony Merlino
b1275abd4b
Merged in antmerlino/nuttx/ina3221 (pull request #636 )
...
drivers/sensors: Adds support for INA3221 power sensor. This has a 3 channel bus/shunt voltage pairs.
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-05-02 22:29:59 +00:00
Gregory Nutt
cd12ea7788
Costmetic changes from review of last PR.
2018-05-02 16:29:22 -06:00
Anthony Merlino
385d4a9108
Merged in antmerlino/nuttx/rgb_multichan (pull request #635 )
...
drivers/rgbled: Adds support for multichannel PWM (multiple PWM channels on a single timer)
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2018-05-02 22:21:49 +00:00
Michael Jung
121211f096
progmem interface: Discern r/w and erase page sizes. Introduce new up_progmem_erasesize architecture API to be able to communicate the read/write page size independently from erase page size. Implement up_progmem_erasesize for all architectures that already support progmem, assuming that for those architectures the sizes of both read/write and erase pages are identical.
2018-05-01 06:23:52 -06:00
Gregory Nutt
fd844f8eac
include/nuttx/wireless/bluetooth: Move Bluetooth header files from include/nuttx/wireless to include/nuttx/wireless/bluetooth for symmetry with other wireless technologies.
2018-04-29 12:43:09 -06:00
Gregory Nutt
f5d0fc7447
fs/vfs and net/udp: Repartition logic of commit 0c963449d6
, moving into net/udp. Add support to handle connected UDP sockets. The correct 'optimal blksize' to return is the MSS. The MTU is always too big.
2018-04-27 08:36:25 -06:00
Gregory Nutt
47bf3376d1
Costmetic changes to README and to comments.
2018-04-26 22:00:11 -06:00
hhuysqt
144e335b85
drivers/wiresless/ieee80211: Correct some initialization problems with BCM43362 chip. Adds BCM43428 support. arch/arm/src: Add support for SDIO card to SDIO driver.
...
Squashed commit of the following:
Author: Gregory Nutt <gnutt@nuttx.org>
include/nuttx/wireless/ieee80211: Cosmetic, coding standard changes from review of last merge.
drivers/wireless/ieee80211: Cosmetic, coding standard changes from review of last merge.
configs/photon: Cosmetic, coding standard changes from review of last merge.
arch/arm/src/stm32: SDIO changes from last review: Fix a few long lines and other coding standard issues; Make additions for SDIO card support dependent on a configuration option.
Author: hhuysqt <hyq9606@126.com>
Return IEEE 802.11 MAC address just as ethernet does
Modifyed bcmf_board_setup_oob_irq declaration
Modified OOB ISR function types
Add some logic according to WICED SDK
Bug fixed: data_offset counts in 4-bytes
Add BCM43438 logic for future developement
Add tips on using telnet
Use SDIO in-band interrupt instead of OOB interrupt, because Photon seems to unconnect the OOB interrupt line...
add SDIO in-band interrupt logic
2018-04-26 08:10:23 -06:00
Pelle Windestam
0c963449d6
fs/vfs: Added support for checking if a descriptor is a socket in fstat().
2018-04-26 06:49:13 -06:00
Gregory Nutt
10d99cc6e6
include/nuttx/wireless: Add a setbaud() method to the HCI UART lower half interface that can be used to change the default BAUD selection. arch/arm/src/stm32: Implement the setbaud() method for the STM32 HCI UART.
2018-04-25 13:09:08 -06:00
Gregory Nutt
091e3f732e
net/udp: Fix several issues using connected UDP sockets: sendto() should not accept and address. Normally send() should be used instead. recvfrom() is no longer necessary. recvfrom() and poll() should not reset to accept any addresses but should, instead, only accept inputs and events from the connected remore peer. On of these issues was noted by 李桂丁 <liguiding@pinecone.net>. Changes were made as summarized here: http://www.masterraghu.com/subjects/np/introduction/unix_network_programming_v1.3/ch08lev1sec11.html
2018-04-25 08:43:38 -06:00
Gregory Nutt
f188b35707
Update some comments.
2018-04-22 07:36:39 -06:00
Gregory Nutt
555c6112bc
include/nuttx/wireless: Clean-up/improvement of some IOCTL definitions.
2018-04-21 09:44:35 -06:00
Gregory Nutt
5a8a9e3aec
wireless/bluetooth: Adds implementation of GATT write IOCTL commands.
2018-04-21 08:55:58 -06:00
Gregory Nutt
87dd2dc16a
wireless/bluetooth: Adds implementation of GATT read IOCTL commands.
2018-04-21 08:38:08 -06:00
Gregory Nutt
8aa5b6c6ac
include/nuttx/wireless: Add support for the rest of the IOCTL options needed to support apps/wireless/bluetooth/btsak. This is only the IOCTL command definitions. The IOCTL command implementation is still missing.
2018-04-20 09:14:59 -06:00
Gregory Nutt
71b8d408e2
wireless/bluetooth: Add IOCTL commands to support MTU exchange.
2018-04-19 15:51:40 -06:00
Gregory Nutt
2ebe8e99cc
wireless/bluetooth: Add support for IOCTL commands to perform GATT discovery and obtain the results.
2018-04-19 11:26:36 -06:00
Gregory Nutt
f27124dfc4
include/nuttx/wireless: Remove bogus name from structure. This was left over from a previous change and had me confused for awhile.
2018-04-19 09:14:48 -06:00
Gregory Nutt
44a5a7e170
wireless/bluetooth: Remove Rx kernel thread. The operation of dispatching messages can be performed just as well on the high and low priority work queue. The network driver operates the low priority work queue so that also integrates better with network frame reception.
2018-04-19 08:52:09 -06:00
Gregory Nutt
d93b22d042
net/sixlowpan: Fix a nasty, byte-ordering/endian-ness problem. The root cause has been found and corrected. And a half dozen or so bandaid fixes were reverted.
2018-04-17 15:34:12 -06:00
Gregory Nutt
5d2c226675
wireless/bluetooth and drivers/wireless/bluetooth: Simply the driver registration/initialization interface.
2018-04-14 11:33:29 -06:00
Gregory Nutt
fa287e8863
Various fixes/changes from intial testing of the HCI UART on the STM32F4-Discovery board. Re-organized how the Blutetooth network driver is initialized. Added lots of new debug output. Add a new STM32 F4 Discovery configuration for testing the HCI UART. Various fixes to get through initialization (still does not).
2018-04-14 09:23:08 -06:00
Gregory Nutt
d25549ac54
This commit adds a Bluetooth HCI UART lower half driver for the STM32
...
Squashed commit of the following:
arch/arm/src/stm32: Add Kconfig options needed by the HCI UART. Various fixes to finally get a clean error free compile with no unexpected warnings.
arch/arm/src/stm32: In HCI UART, use spin_lock_irqsave() instead of enter_critical_section() whenever possible.
arch/arm/src/stm32: In HCI UART, fix up naming of configurations so that they are unique. Still needs Kconfig settings. Modify logic so that there can be multiple HCI UARTs, some supporting DMA and some not.
arch/arm/src/stm32: Integrate watermarks and software Rx flow control into the HCI UART driver.
arch/arm/src/stm32: Eliminate some HCI UART UART configuration options. Per the HCI UART spec, the link will b 8 data bits, no parity, 1 stop bit... Always.
arch/arm/src/stm32: Trivial cleanup
arch/arm/src/stm32: Fixes most initial compilation issues STM32 HCI UART driver. Still need to set up USART configuration parmeters for HCI UART
arch/arm/src/stm32: Completes first cut at STM32 HCI UART driver.
arch/arm/src/stm32: Completes most of read logic for HCI UART. Still needs to be able to block if no read data is available. Still missing write and flush logic.
drivers/wireless: Remove txenable from HCI UART methods. arch/arm/src/stm32: Reorganize some structures in HCI UART.
arch/arm/src/stm32: Still messaging the HCI uart driver.
arch/arm/src/stm32: Some trivial renaming.
arch/arm/src/stm32: A little more HCI-UART logic.
arch/arm/src/stm32: Initial setup to support HCI-UART. Little more than the serial driver with some name changes and a few things removed.
2018-04-13 10:36:23 -06:00
Gregory Nutt
b42d31401c
include/nuttx/wireless.h: Fix some coding standard violations. configs/indium-f7: Fix some compile errors found in build testing.
2018-04-12 08:11:55 -06:00