- Dec 07, 2017
-
-
Masayuki Ishikawa authored
SMP: Introduce spin_lock_irqsave() and spin_unlock_irqrestore() These APIs are simplified version of enter_critical_section() and leave_critical_section() to protect data (e.g. registers) in SMP mode. By using these APIs inside drivers, performace will be improved. Signed-off-by:
Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> Approved-by:
Gregory Nutt <gnutt@nuttx.org>
-
Gregory Nutt authored
This adds basic architectural support for the LPC546xx family and includes support for the LPCXpresso-LPC54628 board. The basic NSH port is almost complete... still lacking GPIO support and LED support. There are still no significant drivers available. Squashed commit of the following: arch/arm/src/lpc54xx: Finish off some missing logic. Complete now execpt for GPIO and LED support. arch/arm/src/lpc54xx: Add lpc54_clrpend.c arch/arm/src/lpc54xx: Serial driver is complete and compiles. arch/arm/src/lpc54xx: Add beginning of a serial driver (still missing some logic) arch/arm/src/lpc54xx: Fleshes out low level USART intialization. arch/arm/src/lpc546xx/Kconfig: Add hooks to integrate with common seril upper half. arch/arm/src/lpc54xx: Beginning of USART console support. arch/arm/src/lpc54xx: Completes very basic clock configuration. arch/arm/src/lpc54xx: Add clocking logic (still not complete) arch/arm/src/lpc54xx: Beginning of PLL configuration logic. arch/arm/src/lpc54xx: Fix a few things from first compile attempt. Compilation cannot work until I at least finish the clock configuration logic. arch/arm/src/lpc54xx: Addes some SysTick logic. arch/arm/src/lpc54xx: Completes basic startup logic (sans clock configuration) and interrupt configuration. arch/arm/src/lpc54xx: Add generic ARMv7-M start-up logic (needs LPC54628 customizations); add emtpy file that will eventually hold the clock configuration logic. arch/arm/src/lpc54xx: Add (incomplete) SYSCON register definition header file. arch/arm/src/lpc54xx: Add FLEXCOMM header file. arch/arm/src/lpc54xx: Bring in tickless clock logic from LPC43; configs/lpcxpresso-lpc54628: mount procfs if enabled. arch/arm/src/lpc54xx: Add RIT clock definitions; add SysTick initialization (not finished) LPC54xx and LPCXpresso-LPC54628: add more boilerplate files and stubbed out files. arch/arm/src/lpc54xx: Add (incomplete) USART header file. Add another condition to a Kconfig; refresh a defconfig. arch/arm/src/lpc54xx/chip: Add LPC54628 memory map header files. configs/lpcxpresso-lpc54628: Add basic build files for the LPCXpresso-LPC54628 arch/: Basic build directory structure for the LPC54628
-
Gregory Nutt authored
-
Jussi Kivilinna authored
From: Jussi Kivilinna <jussi.kivilinna@haltian.com> Date: Thu, 7 Dec 2017 13:00:14 +0200 Subject: [PATCH] drivers/pipes: poll: fix off-by-one error in calculation of bytes in the buffer Buffer calculation in pipe poll setup is off-by-one when read indexis larger than write index. This causes poll() not getting POLLINwhen buffer has one byte as calculation gives zero bytes in buffer. Reproducible with: { char buf[8] = { 0, }; int fds[2]; struct pollfd in_pfd; pipe2(fds, 8); write(fds[1], buf, 7); read(fds[0], buf, 7); write(fds[1], buf, 1); in_pfd.fd = fds[0]; in_pfd.events = POLLIN; ret = poll(&in_pfd, 1, -1); // pipe bug => stuck waiting assert(ret == 1); }
-
- Dec 04, 2017
-
-
Gregory Nutt authored
-
Gregory Nutt authored
-
- Dec 03, 2017
-
-
Gregory Nutt authored
-
- Dec 02, 2017
-
-
Gregory Nutt authored
-
- Nov 30, 2017
-
-
Alan Carvalho de Assis authored
arch/arm/src/xmc4/Kconfig: Define user friend I2C alias to follow other arch names arch/arm/src/xmc4/Kconfig: Define user friend LIN alias to follow other arch names arch/arm/src/xmc4/Kconfig: Define user friend I2S alias to follow other arch names
-
Juha Niskanen authored
sched/task/task_exithook.c: Clear atexit() function pointer before calling it. On most archs, up_assert() calls exit() so without this change, if atexit() function triggers an assertion we are in endless loop.
-
- Nov 29, 2017
-
-
Gregory Nutt authored
-
Ekaterina Kovylova authored
-
Alan Carvalho de Assis authored
-
Gregory Nutt authored
Framebuffer Driver: Small modification convention for multi-planar displays (of which there are none).
-
Anthony Merlino authored
net/devif: Do not add link layer header size to d_len inside devif_forward(). Approved-by:
Gregory Nutt <gnutt@nuttx.org>
-
- Nov 28, 2017
-
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Alan Carvalho de Assis authored
-
Alan Carvalho de Assis authored
-
Alan Carvalho de Assis authored
-
Masayuki Ishikawa authored
configs/lc823450-xgevk: Add rndis configuration Signed-off-by:
Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> Approved-by:
Gregory Nutt <gnutt@nuttx.org>
-
- Nov 27, 2017
-
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Masayuki Ishikawa authored
lc823450 smp audio * arch/arm/src/lc823450: Remove a workaround in up_cpu_paused() Signed-off-by:
Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> * arch/arm/src/lc823450: Introduce g_gpio_lock to improve write performance in SMP mode. NOTE: This is a tentative solution and should be replaced with more generic one. Signed-off-by:
Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> * arch/arm/src/lc823450: Add a workaround in up_txready() to avoid data corruption. Signed-off-by:
Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> * configs/lc823450-xgevk: Enable CONFIG_SMP for audio Signed-off-by:
Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> * configs/lc823450-xgevk: Update README.txt regarding SMP audio Signed-off-by:
Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> Approved-by:
Gregory Nutt <gnutt@nuttx.org>
-
- Nov 26, 2017
-
-
Gregory Nutt authored
configs: Remove some old, redundant, obsolete boilerplate regarding toolchains that has been cloned into most of the board README files.
-
Gregory Nutt authored
-
Gregory Nutt authored
arch/arm/src/stm32: Fix compile error when trace is enabled. I2CEVENT_ERROR was used but never defined.
-
Gregory Nutt authored
configs/stm3240g-eval: Add support for pdcurses and the pdcurses demo programs in the 'fb' configuration.
-
Gregory Nutt authored
configs/: CONFIG_QENCODER was renamed to CONFIG_SENSORS_QENCODER: update occurrences in several Kconfig files
-
Alan Carvalho de Assis authored
-
Gregory Nutt authored
-
- Nov 25, 2017
-
-
Gregory Nutt authored
drivers/lcd: Make LCD driver configuration indepently selected from NX graphics configuration. This makes things awkward and loses some error checking but is a necessary step in order to make LCD drivers usable when the NX graphics system is disabled.
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Gregory Nutt authored
drivers/lcd: Add support for external LCD initialization required by some board logic. configs/zpa214xpa: Tried to get the LCD working again unsuccessfully. Too much bit rot I suppose.
-
Gregory Nutt authored
Revert "arch/arm/src/xmc4: Serial fix... Cannot use SR1 for RXD. It will not work on this hardware. This means that no more than on UART can be configured per USIC." This reverts commit 88982df0.
-
Gregory Nutt authored
Revert "arch/arm/src/xmc4/xmc4_config.h: Add a check to doubly enforce the one UART per USIC rule." This reverts commit 63026b78.
-