Commit Graph

26828 Commits

Author SHA1 Message Date
Gregory Nutt
1ce4db8008 USB host composite: Save some information that will be needed to create a class-specific configuration. 2016-08-29 15:02:15 -06:00
Gregory Nutt
f4f807100b Update comment 2016-08-29 14:55:03 -06:00
Alpo Leinonen
7d5173ca09 USB host composite: Several syntactic errors fixed 2016-08-29 07:53:57 -06:00
Gregory Nutt
173b996983 Merge branch 'composite' 2016-08-28 14:52:29 -06:00
Gregory Nutt
43abb7cb3a Mark USB host compsite feature EXPERMENTAL; update ChangeLog 2016-08-28 14:51:55 -06:00
Gregory Nutt
fde3002326 Merge remote-tracking branch 'origin/master' into composite 2016-08-28 13:53:21 -06:00
Gregory Nutt
5da8a98782 Merge branch 'composite' of bitbucket.org:nuttx/nuttx into composite 2016-08-28 13:53:16 -06:00
Gregory Nutt
3bc14827f3 Fix a comment block 2016-08-28 13:52:36 -06:00
Alan Carvalho de Assis
5125feec1e configs/stm32f103-minimum: Add board config support to SPI LCD module JLX12864G-086 2016-08-28 13:52:26 -06:00
Gregory Nutt
3a1c0e07fa Fix a comment block 2016-08-28 13:43:19 -06:00
Alan Carvalho de Assis
786a18235c configs/stm32f103-minimum: Add board config support to SPI LCD module JLX12864G-086 2016-08-28 13:22:34 -06:00
Gregory Nutt
aefad739c5 Merged master into composite 2016-08-28 09:41:03 -06:00
Gregory Nutt
31c364457a CLASS_CONNECT needs to be called for each member of the composite. 2016-08-28 08:48:40 -06:00
Gregory Nutt
58b45d64d7 Fix composite connect method. 2016-08-28 08:33:38 -06:00
Gregory Nutt
1500a50057 Add missing prototype for btn_lower_initialize() 2016-08-27 11:32:47 -06:00
Gregory Nutt
5d4428be93 Add check of class ID in device scriptor header 2016-08-27 10:53:43 -06:00
Gregory Nutt
c973e0d3ba Add the logic necessary to abstract the register lookup information for each candiate class 2016-08-27 10:31:18 -06:00
Gregory Nutt
23504d313f Merge branch 'composite' of https://bitbucket.org/nuttx/nuttx into composite 2016-08-27 08:57:30 -06:00
Gregory Nutt
2460d41ae0 Add more logic to the USB host composite wrapper. 2016-08-26 17:03:16 -06:00
Gregory Nutt
269ea15c51 Merged in david_s5/nuttx-2/david_s5/stm32_otgfsdevc-edited-online-with-bitbu-1472231999710 (pull request #126)
stm32_otgfsdev.c edited online with Bitbucket
2016-08-26 12:49:43 -06:00
Gregory Nutt
0860621e60 Fill one more case of 'Missing logic' in the USB host composite wrapper. 2016-08-26 12:34:58 -06:00
Gregory Nutt
3c0b287fe9 Fill in a little of the 'Missing logic' in the USB host composite wrapper. 2016-08-26 12:24:35 -06:00
David Sidrane
f2809d52d3 stm32_otgfsdev.c edited online with Bitbucket
dup SOF removed as noted by Sébastien Lorquet
2016-08-26 17:20:38 +00:00
Gregory Nutt
ea8ce7acb6 Trivial rename 2016-08-26 11:05:50 -06:00
Gregory Nutt
a228b0cc36 Add a little more meat to the still very USB host composite skeleton. Not quite so boney now. 2016-08-26 10:33:41 -06:00
Gregory Nutt
fa4e9e3c1c Add a little more meat to the still very bony USB host composite skeleton. 2016-08-26 10:13:35 -06:00
Gregory Nutt
579e338cd3 Add a little more meat to the USB host composite skeleton. Still pretty bony. 2016-08-26 09:47:38 -06:00
Gregory Nutt
8a1d6c9ed8 Basic framework that might be used to add USB host support 2016-08-26 09:07:52 -06:00
Gregory Nutt
644335a39c Fix C99 style comment 2016-08-26 08:28:54 -06:00
Gregory Nutt
440d535360 include/cxx: Update some C++ header files due to recent changes to C hader files 2016-08-25 15:06:46 -06:00
Gregory Nutt
55a325bcd4 system() is not available from within the OS 2016-08-25 12:36:38 -06:00
Gregory Nutt
1c115adfb8 Merged in david_s5/nuttx/master_usb_fix (pull request #125)
BugFix:Lost first word from FIFO
2016-08-25 11:40:50 -06:00
Gregory Nutt
e07a02bf29 Add system() to stdlib.h 2016-08-25 11:28:09 -06:00
David Sidrane
87f4a8033a BugFix:Lost first word from FIFO
1) Do not overwrite Reserved Bits in GINTSTS (per ref manual)*
    2) Acknowledge all pending int on entry to ISR that are Only rc_w1*
    3) Do not disable RXFVL*
    4) Loop until RXFVL is cleared*
    5) Only clear the NAK on the endpoint on the OTGFS_GRXSTSD_PKTSTS_SETUPDONE to
       not loose the first WORD of FIFO all the data  (Bug Fix)

Changed marked *are just driver clean up and ensure ints are not lost.
The bug fix is #5

Test case open putty and observer the Set/Get LineCoding
Without this fix #5 the Get will not match the Set, and
infact the data might be skewed by 4 bytes, that are lost
from the FIFO if the OTGFS_DOEPCTL0_CNAK bit is set in the
OTGFS_GRXSTSD_PKTSTS_SETUPRECVD as opposed to the OTGFS_GRXSTSD_PKTSTS_SETUPDONE

Set Line Coding DATA1: 4B | 00 c2 01 00 00 00 08 | c8 1B
Get Line Coding DATA1: 4B | .. .. .. .. 00 00 08   c8 .. 00 00 07 | 7a 72
2016-08-25 06:51:52 -10:00
Sebastien Lorquet
aed8a602b8 stdio: Add support for remove() 2016-08-25 08:40:34 -06:00
Gregory Nutt
6a58f046e6 CONFIG_LIBC_DIFFTIME is no longer used, but was still in Kconfig file. Noted by Sebastien Lorquet 2016-08-25 08:09:23 -06:00
Sebastien Lorquet
51596dc457 Updata difftime. Add a version of difftime for the case where the platform does not support type double 2016-08-25 08:00:50 -06:00
Gregory Nutt
c51b642f81 Fix some driver return values. If sem_wait fails, the errcode is in errno, not the return value. 2016-08-25 07:15:59 -06:00
Sebastien Lorquet
a626ba5b70 libc/time: This commit adds the difftime() function. Since the function returns a double, I have isolated it in a CONFIG_LIBC_DIFFTIME option (It also depends on the toolchain-dependent CONFIG_HAVE_DOUBLE so is not available on tiny platforms). 2016-08-24 15:43:57 -06:00
Gregory Nutt
4f22af9547 Grrr.. fix another typo. 2016-08-24 13:20:46 -06:00
Gregory Nutt
4c045d3fcd Fix an error in the 'Prefferred' example 2016-08-24 13:17:57 -06:00
Gregory Nutt
909486da47 Update to NuttX C coding style document with additions discussing long comments on the right side of a statement or data definition. 2016-08-24 13:07:40 -06:00
Gregory Nutt
4ebace37a9 Fix typos in LPC43 serial driver. Found by Vytautas Lukenskas 2016-08-24 10:34:56 -06:00
Sebastien Lorquet
c8c4575139 isatty() should be prototypes in unstid.h, not termios.h. 2016-08-24 10:25:09 -06:00
Sebastien Lorquet
7021b143ce Add POSIX type sig_atomic_t 2016-08-24 10:16:41 -06:00
Aleksandr Vyhovanec
6bc952a2cc STM32: Add IAR-style STM32F1xx vectors. Tested on STM32F103RB and STM32F107RC. 2016-08-24 10:10:33 -06:00
Alexander Entinger
221fcfd8f1 drivers/sensors: Add driver for the Bosch BMG160 3 axis gyroscop. 2016-08-24 09:41:04 -06:00
Alexander Entinger
0044910e33 drivers/sensors: Add driver for the LIS3DSH 3 axis accelerometer. 2016-08-24 08:28:45 -06:00
Gregory Nutt
595f00e271 Add include/sensors/ioctl.h; make sure that all IOCTL values are unique to avoid all misuse. 2016-08-23 13:08:12 -06:00
Gregory Nutt
fab80037aa Merged in bkueng/nuttx-1/bkueng/mtd-add-fujistu-mb85rs256b-ramtron-suppo-1471976814505 (pull request #124)
mtd: Add Fujistu MB85RS256B ramtron support
2016-08-23 12:44:29 -06:00