Commit Graph

29692 Commits

Author SHA1 Message Date
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
Juha Niskanen
ac29d94d9c Merged in juniskane/nuttx_stm32l4/stm32l4_serial_pr (pull request #365)
STM32L4: port stm32l4_serial_get_uart function from STM32F7

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-05-12 13:43:36 +00:00
Gregory Nutt
3587a010c3 Merge branch 'ieee802154' 2017-05-12 07:36:08 -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
Juha Niskanen
46851b33b2 STM32L4: port stm32l4_serial_get_uart function from STM32F7 2017-05-12 15:54:48 +03:00
Gregory Nutt
2c807e4750 Makefile edited online with Bitbucket 2017-05-12 02:48:30 +00: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
Gregory Nutt
ba12817f9c Upate some comments 2017-05-11 13:15:31 -06:00
Gregory Nutt
41680d376d Replace 'the the' with 'the' 2017-05-11 13:15:13 -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
3091050963 STM32L4: Review of last PR + Move separate stm32l4_flash.h; move hardware-specific definitions to chip/stm32l4_flash.h 2017-05-11 06:58:39 -06:00
Juha Niskanen
1f6970ea2f Merged in juniskane/nuttx_stm32l4/stm32l4_flash_pr (pull request #364)
STM32L4: add internal flash write support

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-05-11 12:48:59 +00:00
Juha Niskanen
c74a51f789 STM32L4: add internal flash write support 2017-05-11 14:35:27 +03:00
Gregory Nutt
573d3ff87e Merge branch 'syslog' 2017-05-10 17:42:22 -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
Gregory Nutt
d8a83f16be Syslog buffering: Various corrections from early debug 2017-05-10 16:13:21 -06:00
Gregory Nutt
00075acada Merge branch 'syslog' of https://bitbucket.org/nuttx/nuttx into syslog 2017-05-10 15:04:57 -06:00
Gregory Nutt
20727d17c3 SYSLOG: Add option to buffer SYSLOG output to avoid interleaving. 2017-05-10 14:42:43 -06:00
Floxx
277f4b83b0 Merged in floxx/nuttx (pull request #363)
Moved LIS3DSH from the I2C-dependent block to the SPI-block to make Make.defs consistent with the driver (SPI only) and drivers/sensors/Kconfig.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-05-10 18:57:02 +00:00
Floxx
c2096f17d6 Moved LIS3DSH from the I2C-dependent block to the SPI-block to make Make.defs consistent with the driver (SPI only) and drivers/sensors/Kconfig. 2017-05-10 20:18:48 +02:00
Juha Niskanen
4f18b40429 mtd/config: erase block between block read and write 2017-05-10 08:25:39 -06:00
Stefan Kolb
591f35be87 I discovered a problem in the file drivers/serial/serial.c concerning the function uart_close(…). In the case that a serial device is opened with the flag O_NONBLOCK the function uart_close(…) blocks until all data in the buffer is transmitted. The function close(…) called on an handle opened with O_NONBLOCK should not block. The problem occurred with a CDC/ACM device. 2017-05-10 07:59:58 -06:00
Gregory Nutt
5b2ad3719c Merged ieee802154 into master 2017-05-09 18:38:47 -06:00
Anthony Merlino
51f455af74 Merged in merlin17/nuttx/ieee802154 (pull request #362)
wireless/ieee802154: Brings closer to Nuttx coding style

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-05-10 00:37:30 +00:00
Anthony Merlino
07c47b0dde wireless/ieee802154: Starts implementing START.request primitive 2017-05-09 17:22:30 -04:00
Anthony Merlino
806dcd9a47 wireless/ieee802154: Brings closer to Nuttx coding style 2017-05-09 17:20:57 -04:00
Anthony Merlino
1186cd4e56 wireless/ieee802154: Fixes missing handle of read/write being able to be interrupted 2017-05-09 17:20:57 -04:00
Gregory Nutt
de6bffe713 Update some README files 2017-05-09 11:32:44 -06:00
Juha Niskanen
e04ea9e3e3 Merged in juniskane/nuttx_stm32l4/stm32l4_dbgmcu_pr (pull request #361)
STM32L4: add dbgmcu header files

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-05-09 17:06:32 +00:00
Gregory Nutt
3d73a04259 Merged l432kc into master 2017-05-09 11:03:42 -06:00
Gregory Nutt
2043e1a114 IOBs: Move from driver/iob to a better location in mm/iob 2017-05-09 07:35:30 -06:00
Juha Niskanen
ce1ad33289 STM32L4: add dbgmcu header files 2017-05-09 14:13:51 +03:00
Sebastien Lorquet
d591d3ac4e Restore settings for UARTs 4 and 5 2017-05-09 11:38:14 +02:00
Sebastien Lorquet
5204f19e4f fix typo found by Juha during review 2017-05-09 11:32:16 +02:00
Sebastien Lorquet
ce4c18afe4 More unbuilt stm32 -> stm32l4 changes 2017-05-09 11:15:08 +02:00
Sebastien Lorquet
8c0a70e25c Typo 2017-05-09 11:09:02 +02:00
Sebastien Lorquet
565c952077 Update defconfig, fix nucleo-32 uart pinout 2017-05-09 11:00:56 +02:00
Sebastien Lorquet
c1cf1269c7 Adapt stm32l43x pin definitions 2017-05-09 10:58:04 +02:00
Sebastien Lorquet
14831a18c6 cleanup all external peripherals 2017-05-09 10:01:26 +02:00
Sebastien Lorquet
b2bb795520 Final fixes to get the nucleo-l432kc config build. execution not tested yet 2017-05-09 09:00:37 +02:00
Sebastien Lorquet
ff4f5fdba2 Merge branch 'master' into l432kc 2017-05-09 08:42:13 +02:00
David Sidrane
407fed41ef Merged in david_s5/nuttx-17/david_s5/removed-stray-paren-1494284129185 (pull request #359)
removed stray paren.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-05-09 05:18:08 +00:00
David Sidrane
014b69e120 removed stray paren. 2017-05-08 22:56:05 +00:00
Gregory Nutt
3ab89d20b3 Merge branch 'ieee802154' 2017-05-08 14:35:26 -06:00