Gregory Nutt
efe2ff3933
libs/libc/stdio/Kconfig: Commit d0254b1c79
removed all usage of CONFIG_NOPRINTF_FIELDWIDTH but failed to remove the selection from the Kconfig file.
2018-10-06 10:33:29 -06:00
Gregory Nutt
0487fa90f8
libs/libc/stdio/lib_libvsprintf.c: Correct another discrepancy between NuttX printf() output and glibc printf() output.
2018-10-06 09:57:06 -06:00
Gregory Nutt
82d1c17cd8
arch/arm/src/stm32/stm32_allocateheap.c: Eliminate warning, 'CONFIG_STM32_HAVE_CCM is not defined.
2018-10-05 16:53:23 -06:00
Gregory Nutt
079fedaa3d
Update TODO list. Costmetic (only) changes to libs/libc/stdio/lib_libvsprintf.c
2018-10-05 16:09:53 -06:00
Gregory Nutt
055810d9a4
libs/libc/stdio/lib_libvsprintf.c: Correct handling of integer 'precision' in all justification types for values 9, 99, 999, 9999, 99999:
...
Right justification:
009 099 999 9999 99999 %5.3u
9 99 999 9999 99999 %5u
Right justification, zero padding
009 099 999 9999 99999 %05.3u
00009 00099 00999 09999 99999 %05u
Left justification
009 099 999 9999 99999 %-5.3u
9 99 999 9999 99999 %-5u
2018-10-05 13:54:36 -06:00
Gregory Nutt
c958dc0f22
libs/libc/stdio/lib_libvsprintf.c: Back out most of commit d0254b1c79
. While logic seemed correct, verify against glibc showed differs. The output now matches the output form glibc:
...
This code sequence:
printf("%3.3u %3.3u %3.3u %3.3u %3.3u\n",
9, 99, 999, 9999, 99999);
printf("%3u %3u %3u %3u %3u\n",
9, 99, 999, 9999, 99999);
printf("%3.3lu %3.3lu %3.3lu %3.3lu %3.3lu\n",
9L, 99L, 999L, 9999L, 99999L);
printf("%3u %3u %3u %3u %3u\n",
9L, 99L, 999L, 9999L, 99999L);
printf("%3.3llu %3.3llu %3.3llu %3.3llu %3.3llu\n",
9LL, 99LL, 999LL, 9999LL, 99999LL);
printf("%3llu %3llu %3llu %3llu %3llu\n",
9LL, 99LL, 999LL, 9999LL, 99999LL);
Generates:
009 099 999 9999 99999
9 99 999 9999 99999
009 099 999 9999 99999
9 99 999 9999 99999
009 099 999 9999 99999
9 99 999 9999 99999
For both NuttX and glibc.
2018-10-05 13:00:18 -06:00
Gregory Nutt
c9fef44b32
Update TODO list.
2018-10-05 11:15:57 -06:00
Gregory Nutt
d0254b1c79
Squashed commit of the following:
...
libs/libc/stdio/lib_libvsprintf.c: Resolves the integer field width problem if Issue 35 for the cases of long and long long integer types.
libs/libc/stdio/lib_libvsprintf.c: Resolves the integer field width problem if Issue 35 for the case of integer types.
libs/libc/stdio: Remove CONFIG_NOPRINTF_FIELDWIDTH. That option does, indeed, make the printf family of functions much smaller. But it also adds a lot of complexity and makes the functions non-standard. Removing this might break some of the tinier platforms but it is the best thing to do for long term maintanance for for OpenGroup.org compliance.
2018-10-05 09:33:48 -06:00
raiden00pl
342cbe58dd
Merged in raiden00/nuttx_pe (pull request #732 )
...
configs: add support for nucleo-f302r8 board
Approved-by: GregoryN <gnutt@nuttx.org>
2018-10-05 13:02:49 +00:00
raiden00pl
2fcf682316
Merged in raiden00/nuttx_pe (pull request #731 )
...
stm32_tim.c: don't use hardcoded UIF interrupt in some functions
Approved-by: GregoryN <gnutt@nuttx.org>
2018-10-04 16:16:54 +00:00
raiden00pl
ff0640096f
Merged in raiden00/nuttx_h7 (pull request #730 )
...
Master
* stm32h7/rcc: update rcc defs, add SPI clock configuration and some fixes in rcc
* stm32h7: initial defs for SPI
* stm32h7: initial defs for MDMA, DMA, BDMA and DMAMUX
Approved-by: GregoryN <gnutt@nuttx.org>
2018-10-04 16:16:14 +00:00
Gregory Nutt
8eac8ee52a
Trivial updates after review of last merge.
2018-10-03 11:22:22 -06:00
Mihai Serban
b01e6e5f2a
libs/libc/stdio/lib_sscanf.c: Fix conversion for format specifiers that appear right after a floating point format specifier
...
When performing a floating point conversion the parsing code could
consume more than required characters from the input buffer. This made
impossible to convert input of form "1.1K" using format "%f%c".
Fix the issue by advancing the input buffer with the actual characters
converted as a float point number.
Signed-off-by: Mihai Serban <mihai.serban@gmail.com>
2018-10-03 11:15:44 -06:00
Gregory Nutt
300b26d1d8
Documentation/NuttShell.html: Another trivial update.
2018-10-02 13:47:47 -06:00
Gregory Nutt
c1fdd2d6b1
Documentation/NuttShell.html: Trivial correction in comparison to Bash behavior.
2018-10-02 12:14:36 -06:00
Gregory Nutt
4eeba49507
Documentation/NuttShell.html: Add a little more information for the NSH set command.
2018-10-02 11:57:39 -06:00
Gregory Nutt
faefa6cd9f
libs/libc/netdb/lib_getaddrinfo.c: Fix a warning found in build testing.
2018-10-02 11:16:47 -06:00
Gregory Nutt
b9823ce1d7
EFM32, STM32 (FS/HS), STM32F7, and STM32L4 OTGFS/HS: Th epin_configure() function used the same eptype as the TxFIFO number for all endpoints. This should probably be the physical EP number, not the EP type. Suggested by Key Two.
2018-10-02 10:10:56 -06:00
Gregory Nutt
a90e031028
Documentation/NuttShell.html: Improve an explanation.
2018-10-02 06:52:47 -06:00
Gregory Nutt
c04b9ef7bd
Documentation/NuttShell.html: Add description of the PATH environment variable.
2018-10-01 15:09:16 -06:00
Gregory Nutt
1236d194ac
Documentation/NuttShell.html: Update document to describe the 'export' command, the CONFIG_NSH_VARS setting, and the effect of this setting on the behavior of the 'set' and 'unset' commands.
2018-10-01 14:30:44 -06:00
Gregory Nutt
af50ab0088
sched/environ/env_unsetenv.c: Fix a memory leak introduced by the previous commit.
2018-09-30 11:45:59 -06:00
Gregory Nutt
d3c2373940
sched/environ/env_unsetenv.c: Fix and error in unsetenv() when unsetting the last of the environment variables.
2018-09-30 11:40:10 -06:00
Gregory Nutt
4391b51cd3
fs/procfs/fs_procfsproc.c: Change output of the env file so that it looks more like output from the 'env' command. Documentation/NuttShell.html: Document the new NSH 'env' command.
2018-09-30 11:15:28 -06:00
Gregory Nutt
a037aeec5d
Trivial update to a comments and to SPIFFS comments and debug output.
2018-09-30 07:15:15 -06:00
Gregory Nutt
d23c5e0d61
fs/spiffs: Add a check for an error in a return value. Improve some working in the TODO list.
2018-09-29 17:19:04 -06:00
Gregory Nutt
cc539d7f95
fs/spiffs: Need to flush cache to FLASH when closing file. Also updates TODO list.
2018-09-29 15:04:11 -06:00
Alan Carvalho de Assis
c4a906aef4
drivers/leds/max7219.c: Support all digits presented in the MAX7219 datasheet.
2018-09-29 11:16:45 -06:00
Gregory Nutt
d8bfb4e3a2
fs/spiffs: Fix some disagreement between the NuttX wrapper and the core SPIFFS with regard to meaning of a return value. This was causing more writes than necessary and wasting FLASH space.
2018-09-29 11:01:46 -06:00
Gregory Nutt
5fad655982
configs/sim/spiffs/defconfig: Remove CONFIG_EXPERIMENTAL.
2018-09-28 20:05:42 -06:00
Gregory Nutt
6a12213fbb
fs/spiffs: I have been test with apps/examples/fstest which provides a good exercise but of the FS internals but not of the user interface. I build an SPIFFS aware NSH configuration and found and fixed a number of glaring usability errors: (1) Missing logic to stat the SPIFFS root directory, (2) Confusion in use to two similarly named struct field... caused files to be unexpectedly deleted. (3) Fixed a sempahore deadlock condition. And (5) Fix /procfs/mount. It was unaware of the SPIFFS file system type.
2018-09-28 17:35:25 -06:00
Gregory Nutt
e90723307e
fs/spiffs: Fix an error in who the deferred 'unlink' is handling in close(). Modify read() and write behavior() so that they do not return so many partial reads and writes.
2018-09-28 13:21:44 -06:00
Gregory Nutt
294456fa20
fs/spiffs: Add logic to dump the logical context of the FLASH.
2018-09-28 11:23:42 -06:00
Dave Marples
91eb792e56
Corrections for the i.MXRT Ethernet:
...
(1) Now the Ethernet is completely re-initialized when an error occurs by means of taking the interface down and back up but the PHY is _not_ renegotiated for that case because that is very time consuming and an error in the Ethernet is no reflection on the state of the PHY anyway.
(2) Explicitly sets the expected PHY address to zero (this could be moved into the config) rather than searching for it which takes ages, and it's zero anyway for this board (that's the broadcast address, and anything that cannot respond on that has multiple PHYs, so that would be a new board).
(3) Allows for the renegotiation of the PHY to be optional when a reset is needed. If a non-renegotiated reset doesn't result in good comms to the PHY then it'll automatically be escalated to a renegotiated one.
(4) Only performs a reset for errors that need it (the CRITICAL_ERROR define). The list of errors that need reset are somewhat arbitrarily chosen based on my prejudices and might need to be revisited, but certainly the jabber errors don't need reset, the partial packet is thrown away by the layer above anyway.
(5) Re-loads the multicast table on reset.
(6) Adds a bit more logging into the imxrt Ethernet module.
2018-09-28 07:25:48 -06:00
Gregory Nutt
2ca8c6682c
fs/spiffs: fs/spiffs: Fix several bugs: (1) Fix bad statfs return values. (2) Fix an error in spiffs_unlink(). Fix an in error detection logic when closing a file.
2018-09-27 19:29:00 -06:00
Gregory Nutt
2d2dd5e9e3
fs/spiffs: Fix bad check for return value. In NuttX all values greater than or equeal to 0 are successes.
2018-09-27 14:24:46 -06:00
Gregory Nutt
1273f727c0
File System IOCTLs: Three new IOCTLS were added for SPIFFS, two of which were duplicates.
2018-09-27 12:25:23 -06:00
Gregory Nutt
65ef3acf70
fs/spiffs: Still uses some internal error codes that should be replaced with errors from errno.h. For now, I just added a mapping function before any value is returned to the caller: And of these detailed internal errors are simply mapped to -EFTYPE. Most are related to improper internal data structures so -ETYPE is possibly appropriate. Aslo SPIFFs is no longer is EXPERIMENTAL. Many things work but I the code is very immature and many things will not work.
2018-09-27 11:33:09 -06:00
Gregory Nutt
554745946d
fs/spiffs: The MTD interfaces needs its own, dedicated page buffer for read-modify-write operations. It cannot share the normal 'working' page buffer because it is sometimes in-use when the MTD interface needs it. Also and more DEBUG output and controls for the MTD interface.
2018-09-27 09:35:58 -06:00
Masayuki Ishikawa
b154c81255
Merged in masayuki2009/nuttx.nuttx/lc823450_mpu_for_flat (pull request #728 )
...
arch/arm/src/lc823450: MPU support for FLAT build
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: GregoryN <gnutt@nuttx.org>
2018-09-27 11:34:22 +00:00
Gregory Nutt
7a2f70495a
fs/spiffs: Fix yet another interface with NuttX MTD. This time, the calculation of the number of whole blocks.
2018-09-26 20:00:25 -06:00
Gregory Nutt
5cc68ad3b8
fs/spiffs: Fix yet another interface with NuttX MTD. This time, the calculatio of the terminal block number.
2018-09-26 18:30:46 -06:00
Gregory Nutt
b4488a0549
fs/spiffs: Fix an error in write operation. examples/fstest now gets further before errors occur, but still does not work correctly.
2018-09-26 18:00:46 -06:00
Gregory Nutt
31e6fb561b
fs/spiffs: Costmetic name changes more more consistency.
2018-09-26 15:50:55 -06:00
Gregory Nutt
d59893a456
fs/spiffs: Fixes yet another SPIFFS/MTD interfacing bug.
2018-09-26 15:16:38 -06:00
Gregory Nutt
63ba200957
fs/spiffs: Correct error in MTD multi-block read/write logic.
2018-09-26 12:29:42 -06:00
Dave Marples
4eb118afd1
arch/arm/src/imxrt/imxrt_enet.c: Fix a race condition in setting up the Ethernet Tx transfer.
2018-09-26 10:59:47 -06:00
Gregory Nutt
6e4545a924
Upate TODO list to reflect consequences of commit 3b1cc69d68
2018-09-26 10:27:50 -06:00
Ivan Ucherdzhiev
910e7a3899
arch/arm/src/imxrt/imxrt_lpsrtc.c: SVNC LPCR register bits 0 & 1 are NOT reserved and are, in fact, needed to enabled the SRTC. Now the SRTC is working.
2018-09-26 10:13:20 -06:00
Gregory Nutt
6d2cce99e1
fs/spiffs: Fix more problems found in testing. It is getting closer but examples/fstest is still showing problem.
2018-09-26 10:05:43 -06:00