Gregory Nutt
670d6a1e8d
MTD FLASH drivers: The byte write method of several drivers had a cloned error: It was not locking the bus while performing byte write operations.
2017-06-06 16:10:41 -06:00
Juha Niskanen
e577072790
power: battery_charger: add ioctl for charging input current
2017-06-06 06:56:50 -06:00
Juha Niskanen
06edfae133
mtd/config: Add some error checks for I/O errors
2017-06-01 06:22:27 -06:00
Juha Niskanen
32610b53f4
drivers/{sensors,usbmisc}: Fix uninitialized I2C frequency
2017-06-01 06:19:54 -06:00
Jussi Kivilinna
1cc842794d
drivers/rwbuffer.c: Fix compiler warnings
2017-05-31 09:28:20 -06:00
Jussi Kivilinna
7af5cbb833
drivers/mtd/w25.c: Enable short delay after sector/chip erase
2017-05-31 09:17:58 -06:00
Jussi Kivilinna
8b006e705e
drivers/mtd/w25.c: erase sector only if it is not in erased state
2017-05-31 09:09:24 -06:00
Jussi Kivilinna
c7fcdf968d
mtd/smart: Fix use of uninitialized variable
2017-05-31 09:07:25 -06:00
Juha Niskanen
80cc19d6b0
drivers/input: add Cypress MBR3108 CapSense touch button driver
2017-05-31 06:31:53 -06:00
Gregory Nutt
ae17e6bcf0
Cosmetic
2017-05-30 12:04:48 -06:00
Alan Carvalho
2b3eb7344c
Merged in acassis/nuttx_acassis/pcd8544 (pull request #381 )
...
Pcd8544
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-05-26 14:44:23 +00:00
Alan Carvalho de Assis
96e1a80f99
Replace the structure initializer with C89 style
2017-05-26 11:36:36 -03:00
Alan Carvalho de Assis
8df5c29857
Add driver for Nokia 5110 (Philips PCD8544)
2017-05-26 10:53:13 -03:00
Jussi Kivilinna
7ae8173449
button_upper: fix interrupt enabling for poll-events
2017-05-24 08:06:13 -06:00
Alan Carvalho de Assis
bab5de15f6
Remove warning from MCP2515 compilation
2017-05-23 19:41:58 -03:00
Alan Carvalho de Assis
fb7866bdc8
Use the right variable name at mcp2515_txready()
2017-05-23 19:30:12 -03:00
Gregory Nutt
38ae28e978
MCP2515: Changes from review of last PR
2017-05-23 12:22:49 -06:00
Alan Carvalho de Assis
eb7373cedf
Add Microchip MCP2515 CAN Bus controller driver
2017-05-23 14:28:52 -03:00
Masayuki Ishikawa
810f9b516c
drivers/bch: Fix 'Missing Unlock' in bchdev_driver.c
...
Jira: PDFW15IS-265
Coverity-ID: 10597
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2017-05-22 14:29:41 +09:00
Nobutaka Toyoshima
a862b653bd
Replace sprintf() with snprintf() in pipe.c
...
Jira: PDFW15IS-265
Coverity-ID: 10696
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2017-05-22 09:22:23 +09:00
Taras Drozdovsky
4ab2a3661e
STM32F4: add cs43l22 audio driver and i2s driver
2017-05-21 14:14:09 -06:00
Gregory Nutt
679a08e371
Merge remote-tracking branch 'spiriou/wapi_scan'
2017-05-21 09:25:02 -06:00
Simon Piriou
a332c4b9ce
bcmf: fix issue in AP scan event processing
2017-05-21 16:04:24 +02:00
Simon Piriou
6b15c26e56
bcmf: add SIOCGIWSCAN ioctl support
2017-05-20 22:13:15 +02:00
Gregory Nutt
bc32eaa228
Merge remote-tracking branch 'origin/master' into ieee802154
2017-05-19 07:17:37 -06:00
Gregory Nutt
5ce2ece134
syslog: Add header file inclusion to eliminate a warning; mm/iob: private function needs static storage class.
2017-05-16 12:26:23 -06:00
Jussi Kivilinna
a6e556d31c
I had to make following change to fix interrupt context syslog (INTBUFFER untested)
2017-05-16 10:56:49 -06:00
Gregory Nutt
9fb2fed90e
Merge remote-tracking branch 'origin/master' into ieee802154
2017-05-16 08:05:38 -06:00
EunBong Song
5ef00f0b91
drivers/bch: BCH character driver bch_ioctl() always returns -ENOTTY for DIOC_GETPRIV command. It should returns OK if DIOC_GETPRIV command succeeds.
2017-05-16 08:01:05 -06:00
Anthony Merlino
06634afbe0
wireless/ieee802154: Restructuring of MAC notifications. Simplifes some interfaces
2017-05-15 21:44:57 -04:00
Juha Niskanen
34e68a569b
drivers: rename newly introduced up_i2creset to I2C_RESET
2017-05-15 07:22:17 -06:00
Juha Niskanen
b9a769d65d
drivers: fix some bad NULL checks
2017-05-15 07:20:32 -06:00
Gregory Nutt
fa649df52e
Photon: Small update from Simon Piriou.
2017-05-14 08:39:53 -06:00
Gregory Nutt
06db5614e7
Fix a warning about can.o appearing twice in the same rule.
2017-05-13 18:05:40 -06:00
Gregory Nutt
a52967a772
Syslog interrrupt buffer: eliminate a warning about an uninitialized variable; simply some related logic.
2017-05-13 17:40:46 -06:00
Gregory Nutt
14ae6df182
locale.h: Add a bogus definition of locale_t
2017-05-12 10:13:18 -06:00
Gregory Nutt
7698790be1
Changes from review of last PR
2017-05-12 09:04:52 -06:00
Gregory Nutt
f981191ac9
Merge branch 'can_bus' of bitbucket.org:nuttx/nuttx into can_bus
2017-05-12 08:59:57 -06:00
Gregory Nutt
fc7c3f5328
syslog: I think this might speed upt the CR-LF scan in syslog_dev_write().
2017-05-12 08:50:56 -06:00
Alan Carvalho de Assis
853d332b6c
Move CAN subsystem to its own directory and put device drivers there
...
Signed-off-by: Alan Carvalho de Assis <acassis@gmail.com>
2017-05-12 11:48:47 -03:00
Gregory Nutt
c84a3e3519
Bitbucket Issue 47: Some of last syslog changes needed to be condition on #ifdef CONFIG_SYSLOG_BUFFER in order to be built without syslog buffering enabled.
2017-05-12 07:58:11 -06:00
Gregory Nutt
1c9859520f
syslog: There is yet another place where the output can get split. That is in syslog_dev_write(): It will break up the stream to insert a CR before the LF. This can that can be avoid be generating the CR-LF sequence in the buffer and then detecting and ignoring valid CR-LF sequences, rather than expecting syslog_dev_write() to insert the CR in this case.
...
I don't like the idea that syslog_dev_write() still scans the entire output buffer to expand CR-LF sequence. This seems really wasteful, especially in this case where we can be sure that the is no CR or LF without a matching LF or CR. Bu, I think, the existing behavior in syslog_dev_write() must be retained because it is needed in other contexts.
2017-05-12 07:31:50 -06:00
Gregory Nutt
0fc068cc9c
syslog: Avoid flushing syslog_stream buffer, if possible, until lib_vsprintf() completely parses the format. This assures that the flush will flush the entire output, even data that may potentially follow the linefeed. And, in that case, it cannot be interleaved with other devug output. Suggested by Jussi Kivilinna.
2017-05-12 06:58:33 -06:00
Gregory Nutt
0de294a586
Fix lots of occurrences of 'the the', 'the there', 'the these', 'the then', 'the they.
2017-05-11 13:35:56 -06:00
Juha Niskanen
0f7210b0ae
mtd: fix some unallocated and NULL pointer issues. rwb->wrflush and rwb->wrmaxblocks in rwbuffer could get unallocated values from ftl_initialize() in some configurations. Also fixes related assert:
...
up_assert: Assertion failed at file:rwbuffer.c line: 643
that can happen with the following configuration:
CONFIG_FTL_WRITEBUFFER=y
CONFIG_DRVR_WRITEBUFFER=y
# CONFIG_FS_WRITABLE is not set
These problems are caused by CONFIG variable differences between the buffer layers. TODO: This is not a perfect solution. readahead support has similar issues.
2017-05-11 07:22:21 -06:00
Juha Niskanen
58a0b09b82
mtd/config: fix byte read interface test
2017-05-11 07:19:24 -06:00
Juha Niskanen
797e3c3ca4
mtd: build RAMTRON and AT45DB drivers only if selected
2017-05-11 07:17:29 -06:00
Gregory Nutt
b5c1dd09f5
Syslog: Need inclusion of errno.h for fix building with CONFIG_SYSLOG_TIMESTMAP=y
2017-05-11 07:15:57 -06:00
Jussi Kivilinna
ba933efd9e
When syslog message has addition characters after last new-line. With buffering those now get lost as vsyslog does not flush output after lib_sprintf. Additional trailing characters could be ANSI escape sequence to reset state that message setups. For example, macro here uses colors and resets state after actual message (including '\n'):
...
With flushing added to vsyslog, then there is problem that next syslog line might come from other task before reset sequence, causing wrong line getting color. This could be avoided by not flushing on '\n' but only if IOB is full and/or at end of vsyslog. Would this make sense?
2017-05-11 07:11:35 -06:00
Gregory Nutt
d3b9f5b37f
Syslog buffering: Use IOBs to buffer data, not an on-stack buffer
2017-05-10 17:36:08 -06:00