- Jan 30, 2018
-
-
Gregory Nutt authored
sched/: Fix several inappropriate accesses to get_errno() that were missed in previous changes (some going back to nuttx-.23). Add new nxsched_setscheduler() and nxsched_getaffinity() which are equivalent to their counterparts without the nx on front. These versions do not modify the errno value. Changed all calls within the OS to use these newer versions of the functions.
-
Gregory Nutt authored
sched/sched: Correct some build issues introduced by last set of changes. sched/sched: Add new internal OS function nxsched_setaffinity() that is identical to sched_isetaffinity() except that it does not modify the errno value. All usage of sched_setaffinity() within the OS is replaced with nxsched_setaffinity(). sched/sched: Internal functions sched_reprioritize() and sched_setpriority() no longer movidify the errno value. Also renamed to nxsched_reprioritize() and sched_setpriority(). sched/sched: Add new internal OS function nxsched_getscheduler() that is identical to sched_getscheduler() except that it does not modify the errno value. All usage of sched_getscheduler() within the OS is replaced with nxsched_getscheduler(). sched/sched: Add new internal OS function nxsched_setparam() that is identical to sched_setparam() except that it does not modify the errno value. All usage of sched_setparam() within the OS is replaced with nxsched_setparam(). sched/sched: Add new internal OS function nxsched_getparam() that is identical to sched_getparam() except that it does not modify the errno value (actually, the previous value erroneously neglected to set the errno value to begin with, but this fixes both issues). All usage of sched_getparam() within the OS is replaced with nxsched_getparam().
-
Gregory Nutt authored
-
- Jan 29, 2018
-
-
Matt Thompson authored
SAMDL: Added Timer Compare for Control registers header Approved-by: Gregory Nutt <gnutt@nuttx.org>
-
Gregory Nutt authored
tools/logparser.c: A few more minor enhancements. Also add #define _GNU_SOURCE to all C files that call asprintf()
-
Gregory Nutt authored
-
Gregory Nutt authored
tools/logparser: Add a tool which (when it matures) will help me to convert git logs to ChangeLog format.
-
Juha Niskanen authored
-
Bob Feretich authored
I have a SPI bus with both Mode 0 and Mode 3 devices on it. After performing SPI I/O to a Mode 0 device, switching to a Mode 3 device locked up the SPI interface. Only zeroes would be read. I traced the reason for the lock-up to arm/arm/src/stm32f7/stm32_spi.c function spi_setmode(). Changing the mode causes a spurious SPI clock transmission that confuses the stm32f7 SPI input hardware. This problem is solved by (1) changing the SPI mode with SPI (and perhaps DMA) disabled, and (2) flushing the receive FIFO if the mode change results in garbage in the FIFO.
-
Gregory Nutt authored
-
Matt Thompson authored
SAMDL: Added Analog Comparator headers and basic initialization Approved-by: Gregory Nutt <gnutt@nuttx.org>
-
Matt Thompson authored
-
Matt Thompson authored
-
- Jan 28, 2018
-
-
Mateusz Szafoni authored
Master Approved-by: Gregory Nutt <gnutt@nuttx.org>
-
Gregory Nutt authored
-
raiden00pl authored
stm32_hrtim: add HRTIM push-pull mode configuration stm32f334-disco: add buck-boost converter mode
-
- Jan 27, 2018
-
-
Gregory Nutt authored
-
Gregory Nutt authored
configs/flipnclick-sam3x: Fix an error in the control of one LED. LEDs should not be pulled up since they are active high.
-
Gregory Nutt authored
-
- Jan 26, 2018
-
-
Gregory Nutt authored
-
Gregory Nutt authored
-
Gregory Nutt authored
arch/arm/src/stm32: Remove bogus definitions of STM32_BKP_BASE from the F2, F3, and F4 memory maps. Unlike the F1, these parts do not have a separate BKP address region. The BKP registers are with the RTCC address regions.
-
Gregory Nutt authored
-
Frank Benkert authored
arch/arm/src/samv7/sam_lowputc.c: Fix undefined variable when using USART1 for other purposes than UART (e.g. SPI).
-
- Jan 25, 2018
-
-
Matt Thompson authored
-
Matt Thompson authored
SAMDL: Added DMAC header for SAMD, fixed up sam_dmac to compile with debugging enabled
-
Matt Thompson authored
-
Matt Thompson authored
-
Gregory Nutt authored
configs/flipnclick-sam3x: Update README and comments to discuss I2C access on all mikroBUS connectors.
-
Matt Thompson authored
-
Gregory Nutt authored
configs/flipnclick-pic32mz and flipnclick-sam3x: Update README and add pin definitions to support SPI on all mikroBUS connectors.
-
Gregory Nutt authored
configs/flipnclick-sam3x (also Arduio-Due): Remove disabling of environmont, mountpoints, and poll. Add NSH arch initialization so that procfs will be automounted. Increase task name size from 0 to 32. Update README.
-
Matt Thompson authored
SAMDL: Added SAMD DAC header file. Fixed SAMD EVSYS header. Added SAMD TC header file. Fixed some minor typos * SAMD External Interrupt Controller (EIC) support * removed comment * SAMDL: SPI must be disabled before changing the mode bits in CTRLA register * arch/arm/src/lc823450: Assign I2S IRQ handling to CPU0 Previous commit assumed that the caller is running on CPU0. However, the caller sometimes runs at CPU1. This patch will assign the caller to CPU0 explicitly. Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> * arch/arm/src/lc823450: Change irqwarn() to ASSERT() in up_ack_irq() Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> * configs/lc823450-xgevk: Update README.txt and defconfigs Update comments on SMP in README.txt Enable SYSTEM_TIME64 in defconfigs. Enable INSTRUMENTATION in rndis configuration. Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> * configst/stm3240g-eval: Remove only bogus logic to start the NX server. That was there only to support the knxwm configuration and was implemented priorit to boardctl(BOARCIOC_NX_START). * drivers/input/ft5x06.c: Remove cool logic to disable polling when there there is no client waiting for read data. That was a great idea to save CPU cycles when there is nothing reading from the touchscrren but, unfortunately, does not work with readers that open the driver in non-blocking mode. So I think we just have to eat the CPUs even when there is nothing waiting for touchscreen input. * configs/lpcxpresso-lpc54628/lvgl: Add LittlevGL graphics demo configuration. * configs/lpcxpresso-lpc54628: Update README * include/termios.h: Update comments; fix long lines. * sched/semaphore: Add ASSERT(false) in nxsem_post() if no waiting task is found. Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> * sched/sched/sched_sporadic.c: fix compiler error when priority inheritance is enabled. Noted by eunb.song@samsung.com * Change ASSERT(false) to DEBUGPANIC(). * Documentation: Fix copy/paste error in NX graphics document. Noted by Henjiu Kang. * sched/sched: Fix some priority inheritance related issues noted during review of logic. Also add some REVISIT comments for some issues noted in the design. * Update README and some comments * Issue #85: /dev/userleds is not working for nucleo-l432kc fixed * configs/nucleo-l432kc: Fix numerous cloning errors/typos. * Update TODO list * NUCLEO F432KC typo fixed, correct name is L432KC Just README.txt and comments affected, no changes in the code * Merged in raiden00/nuttx (pull request #579) Master * stm32_hritm: add interface to get timer clock frequency stm32_hrtim: fix timer freq calculation stm32_hrtim: add compar/capture registers significant bits checking stm32_hrtim: minor changes * stm32f334-disco: add buck converter and boost converter logic Approved-by: Gregory Nutt <gnutt@nuttx.org> * fs/userfs: use correct req type in userfs_truncate, remove use of undeclared buf * Merged in david_alessio/nuttx/refactor-pll-setup (pull request #581) Refactor pll setup * fix typo in #def * refactor PLL setup code... * refactored PLL/CLK config, easier, checks for correctness * call go_os_start if STACK_COLORIZED * smarter config of EXTCLK output freq * cosmetic Approved-by: Gregory Nutt <gnutt@nuttx.org> * The existence of the network driver ioctl() method should depend on CONFIG_NETDEV_IOCTL rather than CONFIG_NETDEV_PHY_IOCTL. The former enables the method, the later enables a subset of possible driver IOCTLs. This change should be basically a no-operation. The affected ioctl methods only support those subset of driver IOCTLs selected by CONFIG_NETDEV_PHY_IOCTL and the network logic will tolerate a nul ioctl method. * net/tcp: Write buffering logic should not wait for a free buffer if the socket was opened non-blocking. Also, rename the TCP write buffering macros from WRB_* to TCPWB_* to make room in the namespace for write buffering with other protocols. * net/udp: Remove some conditional logic that was true if there is only a single network device, but not true in the multi-device context. * This commit adds an as-of-yet untested implemented of UDP write buffering. Squashed commit of the following: net/udp: Address most of the issues with UDP write buffering. There is a remaining issue with handling one network going down in a multi-network environment. None of this has been test but it is certainly ready for test. Hence, the feature is marked EXPERIMENTAL. net/udp: Some baby steps toward a corrected write buffering design. net/udp: Remove pesky write buffer macros. Eliminate trailing space at the end of lines. net/udp: A little more UDP write buffering logic. Still at least on big gaping hole in the design. net/udp: Undefined CONFIG_NET_SENDTO_TIMEOUT. net/udp: Crude, naive port of the TCP write buffering logic into UDP. This commit is certainly non-functional and is simply a starting point for the implementatin of UDP write buffering. net/udp: Rename udp/udp_psock_sendto.c udp/udp_psock_sendto_unbuffered.c. * net/udp: In sendto(), return EHOSTUNREACH if if the network is down. * net/udp: Resolves final design issues with UDP write buffering. 100% code complete but also 100% untested. * net/udp and tcp: Yet another (cosmetic) change to UDP and TCP write buffer macro naming. * net/udp: UDP write buffering is basically functional but needs a lot more verification. * net/udp: Fix memory leak with UDP + write buffer is closed. Also update TODO and comments and refresh a configuration. * Update some comments. * drivers/mtd/at24xx.c: Correct page size for AT24C02 part. * arch/arm/src/stm32: Make STM32 usable with an external RTC. drivers/timers/ds3231.c: Correct some debug statments. * arch/arm/src/stm32/stm32_spi.c: Removed unnecessary (and incorrect) speed limitation * arch/arm/src/stm32/stm32f40xxx_i2c.c: Correct some recent changes to STM32F4 I2C that broke poll mode of operation. * configs/flipnclick-sam3x: Using JTAG (vs. Bossac) I was finally able to load code and verify the basic NSH configuration. Updated READMEs. Also switched to USART0 (vs UART0) for the serial console because I was not getting bi-directional communication on the VCOM. * SAMDL: Added SAMD DAC header file. Fixed SAMD EVSYS header. Added SAMD TC header file. Fixed some minor typos * fix typo * added missing EVCTRL register bits in TC Approved-by: Gregory Nutt <gnutt@nuttx.org>
-
Matt Thompson authored
-
Matt Thompson authored
-
Matt Thompson authored
SAMDL: Added SAMD DAC header file. Fixed SAMD EVSYS header. Added SAMD TC header file. Fixed some minor typos
-
Gregory Nutt authored
configs/flipnclick-sam3x: Using JTAG (vs. Bossac) I was finally able to load code and verify the basic NSH configuration. Updated READMEs. Also switched to USART0 (vs UART0) for the serial console because I was not getting bi-directional communication on the VCOM.
-
Alexander Oryshchenko authored
arch/arm/src/stm32/stm32f40xxx_i2c.c: Correct some recent changes to STM32F4 I2C that broke poll mode of operation.
-
Alexander Oryshchenko authored
-
Alexander Oryshchenko authored
arch/arm/src/stm32: Make STM32 usable with an external RTC. drivers/timers/ds3231.c: Correct some debug statments.
-