Commit Graph

29809 Commits

Author SHA1 Message Date
David Sidrane
60c552ae0f Kinetis:usbdev clean up ensuring proper use of HW.
Remove magic numbers from code, documented the use of
  undocumented bits.

  Remove comments and code that were not appropriate for this
  hardware.

  Removed ifdef that's that were always compiled and removed code
  blocks that were never compiled.

  Ensure proper access order to hardware.
  Per the reference manual: disable endpoints prior to configuring buffer
  descriptor, then enable endpoints
  Reorganize interrupt processing order to offload data after processing
  errors.

  Reorganize initialization so that there is a clear initialization phase,
  reset phase for both the hardware and software structures.

  By breaking the initialization into smaller pieces, the reset interrupt
  only resets the resources within the controller that should be reset.

  Rework suspend and resume logic so they perform properly

  Made attach and detach functions optional. As they do not make sense for
  a bus powered device.

  Ensured the calls to up_usbinitalize up_usbuninitalize do not violate the
  USB spec.
2017-06-06 14:38:59 -10:00
David Sidrane
3f4d096707 Kinetis:teensy-3.x Define USBOTG-FS Read from FLASH access in board config
Allow the board config to define the USBOTG-FS to have Read access to
   FLASH.
2017-06-06 14:38:59 -10:00
David Sidrane
c1a3208f83 Kinetis:Disable MPU when not in protected mode.
The hardware reset state of the the MPU precludes any bus
   masters other then DMA access to memory. Unfortunately
   USB and SDHC have there own DMA and will not have access to
   memory in the default reset state.

   This change disabled the MPU if present on system startup.
2017-06-06 14:38:58 -10:00
Gregory Nutt
670d6a1e8d MTD FLASH drivers: The byte write method of several drivers had a cloned error: It was not locking the bus while performing byte write operations. 2017-06-06 16:10:41 -06:00
Gregory Nutt
93625e80a7 Typos in documents + more acronyms. 2017-06-06 15:04:55 -06:00
Gregory Nutt
942d6d1c14 Add a few things to the acronym list. 2017-06-06 08:25:34 -06:00
Juha Niskanen
e577072790 power: battery_charger: add ioctl for charging input current 2017-06-06 06:56:50 -06:00
Juha Niskanen
9120a78ee3 Documentation: add hexdump args, fix ln cmd, STM32L status, typos 2017-06-06 06:41:17 -06:00
Gregory Nutt
ac93d4bda9 Update Documentation in preparation for 7.21 release. 2017-06-05 15:12:37 -06:00
Gregory Nutt
a46a748bfa Update ReleaseNotes in preparation for NuttX-7.21 release. 2017-06-05 13:22:11 -06:00
Gregory Nutt
5aa23da717 Update ChangeLog in preparation for NuttX-7.21 release. 2017-06-04 14:23:36 -06:00
Daniel Agar
0557b0746b Merged in dagar/nuttx/extra_semi (pull request #384)
libfflush remove extra semicolon

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-04 17:04:49 +00:00
Daniel Agar
30ab574060
libfflush remove extra semicolon 2017-06-04 12:20:48 -04:00
Gregory Nutt
4526cd665e Correct typo in header file iempotence. Noted as part of Issue #53 by Goran Mekić 2017-06-03 06:43:14 -06:00
Gregory Nutt
b27ccd1bc6 Makefiles: Remove some unnecessary dependencies 2017-06-02 17:09:08 -06:00
Gregory Nutt
6c3a3c305f Comment out most of 430060e92e. Clean-up some dependencies in top-level Makefile 2017-06-02 16:46:16 -06:00
Gregory Nutt
c584d27c3c Revert "Build system: Hook tools/initconfig into top-level Makefiles."
This reverts commit 430060e92e.

That commit has some unexpected side-effects
2017-06-02 16:14:27 -06:00
Gregory Nutt
2c903d5c7a Fix spelling in printf output 2017-06-02 16:12:21 -06:00
Gregory Nutt
d1eaac7ed7 Build system: Suppress output of some command lines. 2017-06-02 13:16:29 -06:00
Gregory Nutt
430060e92e Build system: Hook tools/initconfig into top-level Makefiles. 2017-06-02 13:06:09 -06:00
Gregory Nutt
efbd035b56 Cosmetic changes to comments 2017-06-02 11:24:19 -06:00
Gregory Nutt
624bd0b9e9 tools/: Add initialconfig.c so that perhaps in the future we will be able to use this to generate a new configuration from scratch (rather than having to derive new configurations from existing configurations) 2017-06-02 10:17:30 -06:00
Gregory Nutt
ff2b54a5e0 nucleo-f4x1re User LEDS: Issue #51 reports compilation problems with stm32_userled.c. Reported by Gappi92. 2017-06-01 06:44:24 -06:00
Gregory Nutt
4d46979a6f Tiva SSI: Resolves issue 52 'Copy-Paste error in tiva_ssibus_initialize()' submitted by Aleksandr Kazantsev. 2017-06-01 06:38:47 -06:00
Gregory Nutt
0fe9c2f3f9 pthread mutex: Remove bogus DEBUGASSERT. Problem noted by Jussi Kivilinna 2017-06-01 06:28:23 -06:00
Juha Niskanen
06edfae133 mtd/config: Add some error checks for I/O errors 2017-06-01 06:22:27 -06:00
Juha Niskanen
32610b53f4 drivers/{sensors,usbmisc}: Fix uninitialized I2C frequency 2017-06-01 06:19:54 -06:00
Juha Niskanen
ad6515563b STM32L4 RTC: store RTC MAGIC to backup reg, not to address zero 2017-06-01 06:15:28 -06:00
Gregory Nutt
f5e6afe9cd Makefile.*: Create a Make.defs file if one does not exist 2017-05-31 15:39:18 -06:00
Gregory Nutt
bb02c0c92d Makefiles.*: It should be possible to run 'make menuconfig' with no .config and no Make.defs file. This change removes the dependency on Make.defs, but does not solve the problem of the missing .config file. Without a .config file, it is not currently possible for the Makefile.* to correctly setup up the symbolic links to directories. 2017-05-31 15:17:28 -06:00
Gregory Nutt
e4b145b9a9 Upate TODO list 2017-05-31 11:17:11 -06:00
Gregory Nutt
90dda9357e pthread robust mutexes: Fix memmory trashing problem: the main task may also use mutexes; need to check thread type before accessing pthread-specific mutex data structures. Problem noted by Jussi Kivilinna. 2017-05-31 10:55:37 -06:00
Jussi Kivilinna
705185be1e libc/string/lib_vikmemcpy.c: fix 'casting pointer to integer of different size' compiler warnings 2017-05-31 09:33:44 -06:00
Jussi Kivilinna
1cc842794d drivers/rwbuffer.c: Fix compiler warnings 2017-05-31 09:28:20 -06:00
Jussi Kivilinna
05e5841000 include/nuttx/spi/spi/h: Use of argument to SPI_SEND should be within parentheses. 2017-05-31 09:20:14 -06:00
Jussi Kivilinna
7af5cbb833 drivers/mtd/w25.c: Enable short delay after sector/chip erase 2017-05-31 09:17:58 -06:00
Jussi Kivilinna
369b72f65a stm32f7: Add SPI DMA support 2017-05-31 09:13:20 -06:00
Jussi Kivilinna
8b006e705e drivers/mtd/w25.c: erase sector only if it is not in erased state 2017-05-31 09:09:24 -06:00
Jussi Kivilinna
c7fcdf968d mtd/smart: Fix use of uninitialized variable 2017-05-31 09:07:25 -06:00
Juha Niskanen
14c233a2f5 STM32L4: gpio: put back EXTI line source selection 2017-05-31 06:34:14 -06:00
Juha Niskanen
80cc19d6b0 drivers/input: add Cypress MBR3108 CapSense touch button driver 2017-05-31 06:31:53 -06:00
Harri Luhtala
b8b9309d2b vfs: fdopen: add missing file stream flags clearing. Clear file stream structure regardless of config options. Structure clearing is needed as previous use of stream list entry might leave fs_flags set. 2017-05-31 06:20:18 -06:00
Gregory Nutt
830ad9370a Update README file 2017-05-31 06:19:05 -06:00
Gregory Nutt
ae17e6bcf0 Cosmetic 2017-05-30 12:04:48 -06:00
Gregory Nutt
dc3a7e54a9 Cosmetic 2017-05-30 11:36:54 -06:00
Gregory Nutt
d9bd5ca05f Update README and some C comments 2017-05-30 09:19:04 -06:00
Gregory Nutt
a8708424c2 pthread_trylock: Fixes a problem in pthread_trylock() noted by initialkjc@yahoo.com. When CONFIG_PTHREAD_MUTEX_UNSAFE=y, the special return value EAGAIN was not being detected due to differences in reporting of returned values. 2017-05-29 07:05:06 -06:00
Gregory Nutt
f86287fd43 PIC32MXMMB: Fix a few copy-paste errors. 2017-05-27 09:23:23 -06:00
Gregory Nutt
7f9700804f Add file needed with previouis commit. 2017-05-27 09:17:46 -06:00
Gregory Nutt
90680e28d4 PIC32MX7MMB: Repartition files to match newer configurations. Add support for PROCFS file system. Default is now Pinguino toolchain. Verifty networking. 2017-05-27 09:11:50 -06:00