Gregory Nutt
2bcb8b7b07
If whence is SEEK_END, the file offset shall be set to the size of the file plus offset. Noted by eunb.song@samsung.com
2017-03-13 07:31:47 -06:00
Gregory Nutt
b9bb9ea853
Fix a typo in the last commit.
2017-03-12 12:59:59 -06:00
Gregory Nutt
430b52c977
Networking: Add registration support for integrated ieee80211 wireless drivers. Rename CONFIG_IEEE802154 to CONFIG_WIRELESS_IEEE8021514 following the convention of including the location of the configuration variable as a part of its name.
2017-03-12 12:50:41 -06:00
Gregory Nutt
939ea7461b
Trivial update to TODO
2017-03-12 12:37:13 -06:00
Gregory Nutt
4d33f26717
Update some comments
2017-03-12 12:33:44 -06:00
Simon Piriou
99e5d4a838
Merged in spiriou/nuttx/dev_wlan (pull request #266 )
...
Photon: add basic support for wlan chip
Approved-by: Gregory Nutt
2017-03-12 16:22:50 +00:00
Simon Piriou
e10ce5ce51
Photon: add basic support for wlan chip
2017-03-12 16:57:59 +01:00
Gregory Nutt
d9cdb6c383
STM32; OTG host implementations of stm32_in_transfer() must obey the polling interval for the case of isochronous and itnerrupt endpoints.
2017-03-12 08:39:30 -06:00
Gregory Nutt
98a98a0c8b
Minor change for consistency with a previous commit.
2017-03-12 07:20:10 -06:00
Simon Piriou
75c77a7e3b
Merged nuttx/nuttx into master
2017-03-12 11:15:26 +01:00
Gregory Nutt
9b11187b2a
STM32 OTG HS: A little research reveals that only the F2 RCC initialization set the OTGHSULPIEN bit and Photon is the only F2 board configuration that uses OTG . Therefore, we can simplify the conditional logic of the last PR. Negative logic was used (#ifndef BOARD_DISABLE_USBOTG_HSULPI) to prevent bad settings in other configurations. But give these facts, the preferred positive logic now makes more sense (#ifdef BOARD_ENABLE_USBOTG_HSULPI).
2017-03-11 18:00:38 -06:00
Simon Piriou
dad34d02e2
Merged nuttx/nuttx into master
2017-03-12 00:03:06 +01:00
Gregory Nutt
e0f7b9582a
STM32: Review of last STM32 F2 PR. Progate changes to STM32 F4 and F7 OTGHS. Rename some configs/photon/src files. Naming can be either photon_ or stm32_ but must be consistent.
2017-03-11 16:31:11 -06:00
Simon Piriou
11876dc090
Merged in spiriou/nuttx/usb_fix (pull request #265 )
...
stm32f20xxx: add BOARD_DISABLE_USBOTG_HSULPI flag
Approved-by: Gregory Nutt
2017-03-11 22:04:51 +00:00
David Sidrane
92b856f657
Merged in david_s5/nuttx-13/david_s5/as-discovered-by-dcabecinhas-this-fix-as-1489246417893 (pull request #264 )
...
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
Approved-by: Gregory Nutt
2017-03-11 22:03:40 +00:00
Simon Piriou
ef0fe50ae6
photon: add LEDs and BUTTONS support
2017-03-11 18:26:46 +01:00
Simon Piriou
70d8f0189d
stm32f20xxx: add BOARD_DISABLE_USBOTG_HSULPI flag
2017-03-11 18:15:18 +01:00
Simon Piriou
1654f85037
Merged nuttx/nuttx into master
2017-03-11 18:10:28 +01:00
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
6367d64a2f
Merged nuttx/nuttx into master
2017-03-11 14:28:46 +01: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