Commit Graph

29872 Commits

Author SHA1 Message Date
Gregory Nutt
557fd6504f pthreads: Move pthread_once from sched/pthreads to libc/pthreads. pthread_once just coordinates other OS interface calls but is not a fundamental OS interface and, hence, does not belong within the OS. 2017-06-14 07:31:10 -06:00
Gregory Nutt
8ae5450268 pthreads: Move pthread_yield from sched/pthreads to libc/pthreads. it is a simple wrapper for sched_yield and does not belong within the OS. 2017-06-14 07:31:10 -06:00
David Sidrane
9edf43abc1 Merged in david_s5/nuttx/upstream_kinetis (pull request #392)
Upstream kinetis

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-14 04:22:44 +00:00
David Sidrane
611612c6f2 freedom-k66f:Use SPI driver.
Initalize SPI1 on connector J6. No real use, as of yet.
2017-06-13 17:46:57 -10:00
David Sidrane
fbea5abef0 freedom-k66f:Refreshed config 2017-06-13 17:46:57 -10:00
David Sidrane
b2d929e40a Kinetis:SPI driver 2017-06-13 17:46:57 -10:00
David Sidrane
de3695d32b kinetis:lpserial fixed header inclusion 2017-06-13 17:46:56 -10:00
Gregory Nutt
466fccc494 NSH Documentation: A justification for 3 ENTERs when using USB serial console. 2017-06-13 17:40:05 -06:00
David Sidrane
72ff151343 Merged in david_s5/nuttx/master_ci (pull request #391)
testbuild:Added -x to fail build on errors for CI

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-13 18:53:53 +00:00
David Sidrane
48fb789cf3 testbuild:Added -x to fail build on errors for CI
On CI we want to know ASAP of a failure. This adds the
   -x (exit on build failures) option to faclitate that
   behavior.

   Use ${MAKE} ${MAKE_FLAGS} for make invocation.
   When -x is provided change MAKE_FLAGS to
   --silent --no-print-directory and set -e

   Ignore exit status when using grep for checking
   for CONFIG_NXWM=y
2017-06-13 08:35:21 -10:00
Jussi Kivilinna
7b8df1b930 mtd/w25: wait for BUSY flag to clear in w25_readid and w25_unprotect. W25Q128 datasheet says that all instructions expect 'Read Status Register' and 'Erase/Program Suspend' are ignored when BUSY flag in status register is '1'. Therefore wait for busy flag to clear in w25_readid() and w25_unprotect(). 2017-06-13 07:35:49 -06:00
Jussi Kivilinna
2596b14c90 mtd/w25: add missing locking and fix SPI_SELECT usage for w25_unprotect 2017-06-13 07:33:34 -06:00
Gregory Nutt
e379491d13 STM32/STM32L4: Review of last commit -- Eliminate possible underflow 2017-06-13 07:05:46 -06:00
JM
7903a8a46c stm32/stm32l4 PWM: While attempting to output a 70 MHz square wave from the timer output of a STM32 clocked at 140 MHz (which works fine in baremetal C), I stumbled on what I believe to be an error in arch/arm/src/stm32/stm32_pwm.c. Line 1304 we are told that
reload = timclk / info->frequency;

which I belive to be incorrect, it should be

reload = timclk / info->frequency - 1;

since starting to count from 0, if I want to output half of the TIM clock, I must count to 1 and not to 2.

Surely enough, the original code did output 140/3=47 MHz, while this correction does allow the output up to 70 MHz.

I am not sure this affects most users generating slow PWM (e.g. PX4) but for frequencies
close to the PCLK, indeed the difference becomes significant.
2017-06-13 06:01:13 -06:00
Mateusz Szafoni
af27e8e0a9 Merged in raiden00/nuttx (pull request #390)
stm32_hrtim: GPIOs configuration + EEV and FAULT strucutres

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-12 16:56:02 +00:00
raiden00pl
f6ba4642a3 stm32_hrtim: GPIOs configuration + EEV and FAULT strucutres 2017-06-12 18:45:58 +02:00
Gregory Nutt
0a85a41678 MTD FLASH driver: Clone Sebastien Lorquet's m25px change to at25, is25xp, ramtron, and sst25xx. 2017-06-12 09:51:42 -06:00
Sebastien Lorquet
2851959dee MTD M2PX: If we READ while a write/erase is pending, the command is ignored and the write/erase continues. If we dont catch this situation we will return garbage to the user because the flash will not execute the command. So READ MUST wait for write completion, and before that, the bus must be locked since it's a precondition to calling waitwritecomplete(). 2017-06-12 09:34:09 -06:00
Gregory Nutt
d35a060a41 Revert "MTD: Fix problems in SPI locking in mp25x.c driver. Same problem probably in exists in several other drivers that derive from this this driver as well."
This reverts commit 85645284b3.
2017-06-12 07:23:06 -06:00
Gregory Nutt
ee7217be63 gethostbyname_r: Fix check for space in buffer. 2017-06-12 06:47:43 -06:00
Sebastien Lorquet
85645284b3 MTD: Fix problems in SPI locking in mp25x.c driver. Same problem probably in exists in several other drivers that derive from this this driver as well. 2017-06-12 06:38:27 -06:00
Gregory Nutt
f5f1c73b54 Based on the last PR, review all serial driver vector attachment. Found one additional error and updated all relevant drivers to current interrupt parameter passing. 2017-06-12 06:22:35 -06:00
Masayuki Ishikawa
0f19a18d75 Merged in masayuki2009/nuttx.nuttx/test_with_qemu (pull request #389)
i.MX6: Fix a wrong parameter passed when calling irq_attach() in imx_serial.c

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-12 12:02:41 +00:00
Masayuki Ishikawa
93a2d52b56 i.MX6: Fix a wrong parameter passed when calling irq_attach() in imx_serial.c 2017-06-12 13:34:53 +09:00
Gregory Nutt
e6a8476382 Add some REVISIT comments. 2017-06-11 18:56:38 -06:00
Mateusz Szafoni
a5d9587806 Merged in raiden00/nuttx (pull request #388)
stm32_hrtim: add character driver

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-11 19:49:32 +00:00
raiden00pl
fe7148dff0 nucleo-f334r8: cosmetics 2017-06-11 21:14:48 +02:00
raiden00pl
43e0c28acb nucleo-f334r8: add HRTIM initialization 2017-06-11 20:52:43 +02:00
raiden00pl
de8cd6c870 stm32_hrtim: add character driver 2017-06-11 20:51:23 +02:00
Gregory Nutt
fe813545e8 STM32F33: Forgot to add new files that were a part of the last patch before committing. 2017-06-11 11:00:29 -06:00
Mateusz Szafoni
437ad3ccb2 STM32F33: Fix hrtim definitions, Add beginning of HRTIM driver 2017-06-11 10:49:20 -06:00
Gregory Nutt
40f60d6da5 Update to coding standard document and to a README file. 2017-06-11 10:01:14 -06:00
Alan Carvalho de Assis
b7ca90a721 stm32f103-minimum: Use separated read_ops for GPIO interrupt pins 2017-06-11 07:20:18 -06:00
Gregory Nutt
6e0ec04084 Update README 2017-06-10 17:54:16 -06:00
Gregory Nutt
2b8abbb3c6 configs: Add readme for B-L465E-IOT01A Development kit. This port is currently under consideration (but may not actually happen) 2017-06-10 08:58:47 -06:00
Alan Carvalho de Assis
fa2c7a694f stm32f103-minimum: Fix a small BUG when reading from output pin. We need a different read_ops to read from output pin. This patch fixes the issue:
nsh> gpio -o 0 /dev/gpout1
Driver: /dev/gpout1
  Output pin:    Value=1
  Writing:       Value=0
  Verify:        Value=1

Now:

nsh> gpio -o 0 /dev/gpout1
Driver: /dev/gpout1
  Output pin:    Value=1
  Writing:       Value=0
  Verify:        Value=0
2017-06-09 15:09:03 -06:00
Jim Paris
db80696d21 vfs/poll: fix timeout calculation 2017-06-09 11:37:30 -06:00
Gregory Nutt
39d222ebcb Update Coding Standard Document. 2017-06-09 11:34:01 -06:00
Gregory Nutt
d1f69822d8 Update Coding Standard Document. 2017-06-09 11:02:08 -06:00
Jim Paris
4504ca7c82 Whoops -- that #include <cxxabi.h> wasn't supposed to sneak in there. If present, it may already define a __cxxabiv1::__guard that we could use, but that file comes from libstdc++, and I don't think the NuttX buildroot-based toolchain would have that, which is why we need libxx in the first place. 2017-06-09 07:40:31 -06:00
Jim Paris
18289e17ce Fix C++ __guard implementation for ARM. The standard C++ ABI that most platforms follow defines __guard to be 64 bits. The existing implementation of libxx_cxa_guard.cxx follows this. However, the 32-bit ARM C++ ABI defines it as 32 bits instead, and changes the meaning slightly so only the lowest bit is used. This matters because GCC creates guard symbols without regards to what libxx_cxa_guard.cxx says. So on ARM, gcc allocates 4 bytes, but __cxa_guard_release writes 8 bytes, zeroing out another unlucky variable nearby. Fix it by special-casing 32-bit ARM in libxx_cxa_guard. 2017-06-09 07:16:00 -06:00
Gregory Nutt
bf6709b887 configs/: Back out many of the changes in two recent commits: Too many changes from SPIDEV_WIRELESS to SPIDEV_CONTACTLESS. Specifically NRF24L01 should still be SPIDEV_WIRELESS. 2017-06-08 15:34:13 -06:00
Gregory Nutt
44b532e648 configs/: a few more places where SPIDEV_WIRELELSS should be SPIDEV_CONTACTLESS. 2017-06-08 14:42:31 -06:00
Gregory Nutt
1e5125c5d5 STM32L4: Remove some C++ style comments. 2017-06-08 13:43:47 -06:00
Gregory Nutt
30cbb3059f Cosmetic: Removing trailing whitespace at the end of lines. 2017-06-08 13:12:08 -06:00
Alan Carvalho de Assis
04eefd7c8b stm32f103-minimum: dd GPIO device driver example for STM32F103-Minimum. This chang adds the initialization needed by stm32f103-minimum board to support the NuttX GPIO Subsystem. 2017-06-08 11:23:46 -06:00
Nicolas Estibals
fb8cfe857e configs/stm32f103-minumum SPI: SPIDEV_WIRELESS used when this has changed to SPIDEV_CONTACTLESS 2017-06-08 11:15:08 -06:00
Gregory Nutt
8b907c4c1f STM32L4: Fix a typo 2017-06-08 11:07:20 -06:00
Gregory Nutt
d99ceec58c STM32L4: Add STM32L475 pinmap. Initial cut is just the the L476 pinmap with unsupported devices removed. 2017-06-08 10:55:27 -06:00
Gregory Nutt
596fe68854 STM32L4: Add STM32L475 OTGFS header file. Not fully reviewed. 2017-06-08 10:34:26 -06:00