Commit Graph

27014 Commits

Author SHA1 Message Date
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
Beat Küng
dd1f679891 mtd: Add Fujistu MB85RS256B ramtron support
contributed by flatlevel from https://github.com/PX4/NuttX/pull/79
2016-08-23 18:27:04 +00:00
Entinger Alexander
b29287b022 drivers/sensors: Add driver for the MLX90393 3 axis magnetometer. 2016-08-23 10:48:08 -06:00
Entinger Alexander
338bf8c9e3 drivers/sensors: Add drvier for the LIS3MDL 3 axis magnetometer 2016-08-23 08:22:47 -06:00
Gregory Nutt
3b6befcd16 tools/mkfsdata.pl was still generating the old-style apps/include inclusion paths 2016-08-23 08:01:11 -06:00
Gregory Nutt
31b777a98d Merged in bkueng/nuttx/add_fcheck-new (pull request #122)
CXXFLAGS: add -fcheck-new whenever -fno-exceptions is used
2016-08-23 07:33:50 -06:00
Gregory Nutt
67851849da Upate ChangeLog 2016-08-22 10:31:52 -06:00
Beat Küng
c7da88e383 CXXFLAGS: add -fcheck-new whenever -fno-exceptions is used
This is to avoid GCC to optimize null-pointer checks away, in case the
default operator new is used together with -fno-exceptions.
2016-08-22 08:35:01 +02:00
Gregory Nutt
60b70f7dbb Make xorshift128 re-entrant so that we do do have to suffer the overhad of serialization controls. 2016-08-21 07:47:53 -06:00
Gregory Nutt
757023a909 XorShift128: Add some protection to handle the case where this logic could be called from the interrupt level. 2016-08-20 17:27:41 -06:00
Gregory Nutt
53b2de18eb Trivial typo fix 2016-08-20 13:23:41 -06:00
Gregory Nutt
300361539a sched/sched_cpuload_oneshot: Use the oneshot timer with optional entropy to measuer cPU load if so configured. 2016-08-20 12:47:07 -06:00
Gregory Nutt
6f833be9d5 Separate XorShift128 PRNG from /dev/urandom and make it generally available. 2016-08-20 11:36:02 -06:00
Gregory Nutt
a5440fff64 Make all Analog IOCTL command values unique 2016-08-20 09:09:17 -06:00
Gregory Nutt
f3c4bd936e Merged in mlyszczek/nuttx/fix_stm32butterfly2_config (pull request #121)
Add missing eth support in stm32butterfly2/nshnet config
2016-08-19 10:36:21 -06:00
Michał Łyszczek
72eb2ee270 Add missing eth support in stm32butterfly2/nshnet config 2016-08-19 18:05:07 +02:00
Gregory Nutt
ae37c9859f Cosmetic changes from review of PR 120 2016-08-19 06:32:28 -06:00
Gregory Nutt
0bf6224192 Merged in mlyszczek/nuttx/fix_stm32eth (pull request #120)
Fix compilation warnings for stm32 eth with certain configs
2016-08-19 06:27:11 -06:00
Michał Łyszczek
0f175039ad Fix compilation warnings for stm32 eth with certain configs 2016-08-19 09:18:18 +02:00
Gregory Nutt
0c17998cd2 Merged in mlyszczek/nuttx/fix_stm32butterfly2_config (pull request #119)
Fix wrong config for stm32butterfly2/nshusbhost
2016-08-18 12:25:33 -06:00
Michał Łyszczek
ee700512cd Fix wrong config for stm32butterfly2/nshusbhost 2016-08-18 20:10:18 +02:00
Michał Łyszczek
582f3670dc Merged nuttx/nuttx into master 2016-08-18 19:35:56 +02:00