Commit Graph

28603 Commits

Author SHA1 Message Date
David Sidrane
cdfc158f90 up_initialize.c edited online with Bitbucket 2017-03-11 15:40:48 +00:00
David Sidrane
c9ecb3c378 As discovered by dcabecinhas. This fix assume the 8 byte alignment options for size stack size or this will overwrite the first word after TOS
See https://github.com/PX4/Firmware/issues/6613#issuecomment-285869778
2017-03-11 15:35:03 +00:00
Gregory Nutt
399f306744 A few cosmetic changes 2017-03-11 08:58:42 -06:00
Simon Piriou
642aed99cc Merged in spiriou/nuttx/dev_usb2 (pull request #263)
photon: add usb otg hs support and usbnsh app

Approved-by: Gregory Nutt
2017-03-11 13:27:17 +00:00
Simon Piriou
f542e16847 photon: add usb otg hs support and usbnsh app 2017-03-11 14:19:22 +01:00
Simon Piriou
5060ba4a85 Merged nuttx/nuttx into master 2017-03-11 14:16:04 +01:00
Simon Piriou
e8d6083ab3 Merged in spiriou/nuttx/dev_wdt2 (pull request #262)
photon: add iwdg timer support

Approved-by: Gregory Nutt
2017-03-11 13:11:03 +00:00
Simon Piriou
a1c0117103 photon: add iwdg timer support 2017-03-11 13:51:09 +01:00
Simon Piriou
358c22c122 Merged nuttx/nuttx into master 2017-03-11 12:24:47 +01:00
Gregory Nutt
aadf6c6e16 STM32 F33: Fix another error in ADC base address usage. 2017-03-10 17:49:32 -06:00
Gregory Nutt
852b189910 STM32 F33 ADC: Correct bad definitions of base addresses; Fix naming collision by changing colliding STM32_ADC12_BASE to STM32_ADC12_CMN_BASE 2017-03-10 17:46:19 -06:00
Gregory Nutt
04b2964eac drivers/wireless/nrf24l01.c: Review last PR. Also got enthused and did major re-work to file to bring it closer to the NuttX coding style. Fixed a few compile time warnings. 2017-03-10 17:29:58 -06:00
Gregory Nutt
34ebdfe51c Update README 2017-03-10 17:20:15 -06:00
Leif Jakob
e79cad2afc Merged in leif_jakob/nuttx/nrf24l01_fix (pull request #261)
multiple fixes in nrf24l01 driver

Approved-by: Gregory Nutt
2017-03-10 22:40:41 +00:00
Leif Jakob
5534e0c493 multiple fixes in nrf24l01 driver
- signal POLLIN if there is already data in the FIFO
- send ETIMEDOUT to userspace after 2 seconds if TX IRQ was not received
- handle FIFO overflow
- handle invalid pipes/empty FIFO
- multiple cosmetics (missing static, duplicate define, missing \n)
2017-03-10 23:21:49 +01:00
Leif Jakob
ae87df8ec6 Merged nuttx/nuttx into master 2017-03-10 23:14:40 +01:00
Gregory Nutt
9d2c22fa33 Merge branch 'master' of bitbucket.org:nuttx/nuttx 2017-03-10 13:29:04 -06:00
Gregory Nutt
ca116647a8 tools/testbuild.sh: Add debug option (-d) 2017-03-10 13:13:30 -06:00
Gregory Nutt
644b2fabbc Costmetic changes from review of last PR 2017-03-10 13:11:53 -06:00
Simon Piriou
f353d75bf4 Merged nuttx/nuttx into master 2017-03-10 20:08:16 +01:00
Simon Piriou
03f2c05fb6 Merged in spiriou/nuttx/dev (pull request #260)
configs: add Particle Photon board support

Approved-by: Gregory Nutt
2017-03-10 19:01:39 +00:00
Simon Piriou
0198540532 configs: add Particle Photon board support 2017-03-10 19:39:21 +01:00
Gregory Nutt
662f520c37 Merge branch 'master' of bitbucket.org:nuttx/nuttx 2017-03-10 10:52:48 -06:00
David Sidrane
11eabc5afa Merged in david_s5/nuttx/upstream_prio_fix (pull request #259)
Priority Inversion fixes

Approved-by: Gregory Nutt
2017-03-10 16:47:14 +00:00
David Sidrane
60d8606b19 Priority Inversion fixes:Initalization 2017-03-10 06:38:17 -10:00
David Sidrane
6cc8f9100b Priority Inversion fixes:typo 2017-03-10 06:37:46 -10:00
Gregory Nutt
24816cb08b All STM32 host drivers. In IN endpoint retry, delay for a clock tick to give some breathing space for the CPU. EXPERIMENTAL change. 2017-03-10 10:25:43 -06:00
David Sidrane
5ec25a87c9 Merged in david_s5/nuttx/upstream_i2c_fc2 (pull request #258)
STM32, STM32 F7, and STM32 L4: Clone Freddie Chopin's I2C change to similar STM32 I2C drivers.

Approved-by: Gregory Nutt
2017-03-10 16:02:11 +00:00
David Sidrane
2baffab16e WS 2017-03-10 15:42:59 +00:00
Gregory Nutt
360539afac Priority inheritance: When CONFIG_SEM_PREALLOCHOLDERS==0, there is only a single, hard-allocated holder structure. This is problem because in sem_wait() the holder is released, but needs to remain in the holder container until sem_restorebaseprio() is called. The call to sem_restorebaseprio() must be one of the last things the sem_wait() does because it can cause the task to be suspended. If in sem_wait(), a new task gets the semaphore count then it will fail to allocate the holder and will not participate in priority inheritance. This fix is to add two hard-allocated holders in the sem_t structure: One of the old holder and one for the new holder. 2017-03-10 09:30:15 -06:00
Gregory Nutt
769427ed5a pthreads: Fix pthread_mutexattr_init(). It was not initializing the protocol field when priority inheritance is enabled. 2017-03-10 09:24:41 -06:00
David Sidrane
acaebb361b STM32, STM32 F7, and STM32 L4: Clone Freddie Chopin's I2C change to similar STM32 I2C drivers.
Save elapsed time before handling I2C in stm32_i2c_sem_waitstop()
   This patch follows the same logic as in previous fix to
   stm32_i2c_sem_waitdone().
   It is possible that a context switch occurs after I2C registers are read
   but before elapsed time is saved in stm32_i2c_sem_waitstop(). It is then
   possible that the registers were read only once with "elapsed time"
   equal 0. When scheduler resumes this thread it is quite possible that
   now "elapsed time" will be well above timeout threshold. In that case
   the function returns and reports a timeout, even though the registers
   were not read "recently".
   Fix this by inverting the order of operations in the loop - save elapsed
   time before reading registers. This way a context switch anywhere in the
   loop will not cause an erroneous "timeout" error.
2017-03-10 05:07:39 -10:00
Gregory Nutt
a93e46d00c Cosmetic 2017-03-10 08:54:50 -06:00
Freddie Chopin
3cd66af889 ave elapsed time before handling I2C in stm32_i2c_sem_waitstop()
This patch follows the same logic as in previous fix to
stm32_i2c_sem_waitdone().

It is possible that a context switch occurs after I2C registers are read
but before elapsed time is saved in stm32_i2c_sem_waitstop(). It is then
possible that the registers were read only once with "elapsed time"
equal 0. When scheduler resumes this thread it is quite possible that
now "elapsed time" will be well above timeout threshold. In that case
the function returns and reports a timeout, even though the registers
were not read "recently".

Fix this by inverting the order of operations in the loop - save elapsed
time before reading registers. This way a context switch anywhere in the
loop will not cause an erroneous "timeout" error.
2017-03-10 07:35:10 -06:00
Gregory Nutt
d391f9d7d3 Update a README 2017-03-09 17:11:54 -06:00
Gregory Nutt
c428661e18 apps/examples/usbterm is gone because it can be configured to perform an illegal call into the OS. Remove all traces of CONFIG_EXAMPLES_USBTERM* and all of the illegal device support. 2017-03-09 15:39:28 -06:00
Gregory Nutt
9cd3f7f80a STM32, STM32 F7, STM32 L4: OTG host drivers: Do not do data toggle if interrupt transfer is NAKed. Sugested by webbbn@gmail.com 2017-03-09 15:07:31 -06:00
Gregory Nutt
110ae16af2 Remove all references to arch_usbhost_initialize(). That was incorrectly called from apps/examples/hidkbd. That is violation of the OS interfacing rules and will no longer be supported. USB host should be initialized as part of the board bring-up logic was with any other devices and should not involve illegal calls from applications into the OS. 2017-03-09 14:46:31 -06:00
Simon Piriou
6768831851 Merged in spiriou/nuttx (pull request #257)
STM32F2: add USB OTG HS support for stm32f20xxx cores

Approved-by: Gregory Nutt
2017-03-09 20:06:12 +00:00
Gregory Nutt
04297d1b0f Update some comments 2017-03-09 13:57:37 -06:00
Gregory Nutt
a3b4475474 STM32, STM32 F7, and STM32 L4: Back out part of 3331e9c49a. Returning immediately int he case of a NAK makes the Mass Storage Class driver unreliable. The retry/timeout logic is necessary. This implementation tries to implement a compromise: If a NAK is received after some data is received, then the partial data received is returned as with 3331e9c49a. If if a NAK is received with no data, then no longer returns the NAK error immediately but retries until data is received or a timeout occurs. Initial testing indicates that this fixes the issues the MSC. However, I hae concerns that if multiple sectors are read in one transfer, there could be NAKs between sectors as well and, in that case, then change will still cause failures. 2017-03-09 13:49:25 -06:00
Simon Piriou
31aef4a9c0 STM32F2: add USB OTG HS support for stm32f20xxx cores 2017-03-09 20:30:32 +01:00
Gregory Nutt
d49ea44df2 Olimex STM32 P407: USB host support for USB FLASH sticks is now supported in the base nsh configuration. 2017-03-09 13:00:00 -06:00
Gregory Nutt
a786e07033 Olimex-STM32-P407: Update USB host support. 2017-03-09 12:42:04 -06:00
Gregory Nutt
49974e21ef Fix some old pashello configurations broken in last refresh 2017-03-09 10:55:41 -06:00
Gregory Nutt
7463768775 Refresh all eZ80 and z8 configurations 2017-03-09 10:52:03 -06:00
Gregory Nutt
197ba3b527 EZ80F910200KITG: Missing support logic in configs/Kconfig 2017-03-09 10:50:46 -06:00
Gregory Nutt
b6fd8bc0f5 Refresh all ZNeo configurations 2017-03-09 10:42:29 -06:00
Gregory Nutt
b379764eb3 Refresh all x86 and Xtensa configurations 2017-03-09 10:38:36 -06:00
Gregory Nutt
8b1491948c Refresh all sim configurations 2017-03-09 10:36:54 -06:00