Commit Graph

29904 Commits

Author SHA1 Message Date
Gregory Nutt
b8e968f191 clicker2-stm32: Add a configuratino that will, eventually, be used for 6loWPAN testing. 2017-06-15 14:26:10 -06:00
Gregory Nutt
150907a9b4 Rename configs/mrf24j40-radio to mrf24j40-mac 2017-06-15 12:30:58 -06:00
Anthony Merlino
22f42d00ce Merged in merlin17/nuttx/ieee802154 (pull request #398)
wireless/ieee802154: Fixes issue with wrong information being sent in a rejected association response frame

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-15 17:22:12 +00:00
Anthony Merlino
ca30b6c02a wireless/ieee802154: Fixes issue with wrong information being sent in a rejected association response frame 2017-06-15 13:01:28 -04:00
Gregory Nutt
77757410c8 Remove dangling white space at the end of lines. 2017-06-15 10:46:48 -06:00
Gregory Nutt
535ea4e0f5 Merge remote-tracking branch 'origin/master' into ieee802154 2017-06-15 10:34:38 -06:00
Gregory Nutt
4a88d6a50a Merge branch 'ieee802154' of bitbucket.org:nuttx/nuttx into ieee802154 2017-06-15 10:32:55 -06:00
Anthony Merlino
63dc6dbdcc Merged in merlin17/nuttx/ieee802154 (pull request #397)
wireless/ieee802154: Lots of fixes, cleanup, new functionality.  Functional

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-15 16:29:20 +00:00
Gregory Nutt
1bb5a74035 configs/.gitignore: Make sure that any .gdbinit, .project, or .cproject files are ignore so that they are less likely to be included in a patch or PR. 2017-06-15 10:12:02 -06:00
Anthony Merlino
e30501ebd4 wireless/ieee802154: Lots of fixes, cleanup, new functionality. Functional 2017-06-15 12:11:52 -04:00
Gregory Nutt
d5acc050cc Upate the top-level README.txt file 2017-06-15 10:03:56 -06:00
Gregory Nutt
8a4bac43a1 tool/configure will now copy Eclipse project files if they are present in the board directory file 2017-06-15 09:59:32 -06:00
Gregory Nutt
fe5b3a58e4 Update tools/configure.c to same functionality as configure.sh. Add an array of optional file names. Currently, .gdbinit is the only optional file but other things like IDE-specific project files might need to be copied as well. 2017-06-15 08:24:28 -06:00
Gregory Nutt
d958cec7a4 Cosmetic changes from review of last PR 2017-06-15 06:58:55 -06:00
Hidetaka
2a723bdeb7 Merged in TJ-Hidetaka-Takano/nuttx-pr/feature/improve-configure (pull request #396)
Improve configure.sh behavior (proposal).

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-15 12:57:45 +00:00
Hidetaka Takano
d155939258 Improve configure.sh behavior (proposal).
- enable to call from top directory.
 - enable to designate direct path for config.
 - install .gdbinit if the target has.
2017-06-15 21:12:56 +09:00
Hidetaka
0f1d388248 Merged in TJ-Hidetaka-Takano/nuttx-pr/feature/fix-kconfig (pull request #394)
Fixed typo "CORTEXR5F" in arch/arm/Kconfig

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-15 12:12:31 +00:00
Hidetaka
9dfa8f7df9 Merged in TJ-Hidetaka-Takano/nuttx-pr/feature/fix-armv7m-toolchain-def (pull request #395)
Fixed ARMv7-M Toolchain definition for Cortex-M4.

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-15 12:12:01 +00:00
Hidetaka Takano
5591fc6b16 Fixed ARMv7-M Toolchain setting.
- Cortex-M4 only have Single Precision FPU.
2017-06-15 20:52:37 +09:00
Hidetaka Takano
d665392873 Fixed typo "CORTEXR5F" in arch/arm/Kconfig 2017-06-15 20:44:06 +09:00
Gregory Nutt
d8da813562 stm32f103-minimum: Fix compiler error in MCP2415 logic. 2017-06-14 14:54:07 -06:00
Leif Jakob
06246cc283 Merged in leif_jakob/nuttx/stm32f1_rtc_fix (pull request #393)
multiple fixes for stm32f1xx RTC clock

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-14 21:07:55 +00:00
Leif Jakob
4a79547fb8 multiple fixes for stm32f1xx RTC clock
- compile issues because of missing RTC_MAGIC #defines
- missing functionality based on RTC_MAGIC in RTC based on stm32_rtcounter.c
- IRQ setup from up_rtc_initialize was later reset in up_irqinitialize
- write access to backup registers without enabling access to backup domain
- possible races in set/cancel alarm
tested with STM32F103C8 only
device now wakes up from forced STANDBY mode by alarm
2017-06-14 22:36:40 +02:00
Leif Jakob
a3d2a61aa7 Merged nuttx/nuttx into master 2017-06-14 22:28:06 +02:00
Gregory Nutt
2245dddaf9 Break up some long lines 2017-06-14 13:42:56 -06:00
Gregory Nutt
04ae3d51c2 drivers/mp2515.c: Remove an incorrect warning. 2017-06-14 10:13:38 -06:00
Gregory Nutt
78281ef8e0 configs/stm32f103-minimum/mcp2515/defconfig: Enable CONFIG_CAN_TXREADY=y to eliminate a warning. 2017-06-14 10:10:57 -06:00
Gregory Nutt
a86f46bc54 MCP1515: Eliminate some warnings 2017-06-14 09:38:58 -06:00
Gregory Nutt
46f86982ee Update TODO list 2017-06-14 08:39:26 -06:00
Gregory Nutt
23a6ff5846 pthreads: Move pthread_barrier_init, pthread_barrier_destroy, and pthread_barrier_wait from sched/pthreads to libc/pthreads. This just coordinate other OS interface calls but are not a fundamental OS interfaces and, hence, do not belong within the OS. 2017-06-14 07:59:54 -06:00
Gregory Nutt
ae168bffa0 pthreads: Move pthread_cond_init and pthread_cond_destory from sched/pthreads to libc/pthreads. This just coordinate other OS interface calls but are not a fundamental OS interfaces and, hence, do not belong within the OS. 2017-06-14 07:48:45 -06:00
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
Anthony Merlino
908d438047 WIP: wireless/ieee802154: More work on association/beacon-enabled networks 2017-06-14 02:49:32 -04: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