Commit Graph

30089 Commits

Author SHA1 Message Date
Gregory Nutt
6e0ec04084 Update README 2017-06-10 17:54:16 -06:00
Gregory Nutt
2b8abbb3c6 configs: Add readme for B-L465E-IOT01A Development kit. This port is currently under consideration (but may not actually happen) 2017-06-10 08:58:47 -06:00
Alan Carvalho de Assis
fa2c7a694f stm32f103-minimum: Fix a small BUG when reading from output pin. We need a different read_ops to read from output pin. This patch fixes the issue:
nsh> gpio -o 0 /dev/gpout1
Driver: /dev/gpout1
  Output pin:    Value=1
  Writing:       Value=0
  Verify:        Value=1

Now:

nsh> gpio -o 0 /dev/gpout1
Driver: /dev/gpout1
  Output pin:    Value=1
  Writing:       Value=0
  Verify:        Value=0
2017-06-09 15:09:03 -06:00
Jim Paris
db80696d21 vfs/poll: fix timeout calculation 2017-06-09 11:37:30 -06:00
Gregory Nutt
39d222ebcb Update Coding Standard Document. 2017-06-09 11:34:01 -06:00
Gregory Nutt
d1f69822d8 Update Coding Standard Document. 2017-06-09 11:02:08 -06:00
Jim Paris
4504ca7c82 Whoops -- that #include <cxxabi.h> wasn't supposed to sneak in there. If present, it may already define a __cxxabiv1::__guard that we could use, but that file comes from libstdc++, and I don't think the NuttX buildroot-based toolchain would have that, which is why we need libxx in the first place. 2017-06-09 07:40:31 -06:00
Jim Paris
18289e17ce Fix C++ __guard implementation for ARM. The standard C++ ABI that most platforms follow defines __guard to be 64 bits. The existing implementation of libxx_cxa_guard.cxx follows this. However, the 32-bit ARM C++ ABI defines it as 32 bits instead, and changes the meaning slightly so only the lowest bit is used. This matters because GCC creates guard symbols without regards to what libxx_cxa_guard.cxx says. So on ARM, gcc allocates 4 bytes, but __cxa_guard_release writes 8 bytes, zeroing out another unlucky variable nearby. Fix it by special-casing 32-bit ARM in libxx_cxa_guard. 2017-06-09 07:16:00 -06:00
Gregory Nutt
bf6709b887 configs/: Back out many of the changes in two recent commits: Too many changes from SPIDEV_WIRELESS to SPIDEV_CONTACTLESS. Specifically NRF24L01 should still be SPIDEV_WIRELESS. 2017-06-08 15:34:13 -06:00
Gregory Nutt
44b532e648 configs/: a few more places where SPIDEV_WIRELELSS should be SPIDEV_CONTACTLESS. 2017-06-08 14:42:31 -06:00
Gregory Nutt
1e5125c5d5 STM32L4: Remove some C++ style comments. 2017-06-08 13:43:47 -06:00
Gregory Nutt
30cbb3059f Cosmetic: Removing trailing whitespace at the end of lines. 2017-06-08 13:12:08 -06:00
Alan Carvalho de Assis
04eefd7c8b stm32f103-minimum: dd GPIO device driver example for STM32F103-Minimum. This chang adds the initialization needed by stm32f103-minimum board to support the NuttX GPIO Subsystem. 2017-06-08 11:23:46 -06:00
Nicolas Estibals
fb8cfe857e configs/stm32f103-minumum SPI: SPIDEV_WIRELESS used when this has changed to SPIDEV_CONTACTLESS 2017-06-08 11:15:08 -06:00
Gregory Nutt
8b907c4c1f STM32L4: Fix a typo 2017-06-08 11:07:20 -06:00
Gregory Nutt
d99ceec58c STM32L4: Add STM32L475 pinmap. Initial cut is just the the L476 pinmap with unsupported devices removed. 2017-06-08 10:55:27 -06:00
Gregory Nutt
596fe68854 STM32L4: Add STM32L475 OTGFS header file. Not fully reviewed. 2017-06-08 10:34:26 -06:00
Gregory Nutt
95fcdff1fd STM32L4: Add STM32L475 RCC definitions/logic. 2017-06-08 10:04:28 -06:00
Gregory Nutt
1a405d2881 STM32L4: Add L475 syscfg register definitions. 2017-06-08 09:07:04 -06:00
Gregory Nutt
66e2247f30 STM32L4: Ad support for the STM32L475 family. Incomplete -- still needs pinmap, rcc, otgfs, syscfg 2017-06-08 08:52:09 -06:00
David Sidrane
090fde15e4 Merged in david_s5/nuttx/upstream_kinetis_warn (pull request #386)
Kinetis:Fixed waning for kinetis_mpudisable

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-07 01:21:11 +00:00
David Sidrane
4854eb1fd7 Kinetis:Fixed waning for kinetis_mpudisable
Missing header file added
2017-06-06 15:18:01 -10:00
David Sidrane
1ac07fd9a5 Merged in david_s5/nuttx/upstream_kinetis_usb (pull request #385)
Upstream kinetis usb

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-06-07 00:51:00 +00:00
David Sidrane
36da2b91c5 Kinetis:USB-FS driver
Removed the notion of attached. The khci_usbattach is call early in
   the init either in board_initalize or in board_app_initalize. In
   either case it is always done prior to the the class register.
   Therefore the khci_usbattach call only set a flag, and that
   flag is only tested in the class register. The class register will
   enable the soft connect pull up.
2017-06-06 14:39:00 -10:00
David Sidrane
182259921f teensy-3.x:Refreshed config and made board self powered 2017-06-06 14:38:59 -10:00
David Sidrane
04a46d8d35 teensy-3.x:Refreshed config 2017-06-06 14:38:59 -10:00
David Sidrane
ad0cbd3f83 teensy-3.x:Removed call to khci_usbattach
The call is not need by the driver if CONFIG_USBDEV_BUSPOWERED=y
  The class register will enable the soft connect pull up. The
  khci_usbattach call only set a flag, and that  flag is only tested
  in the class register. On a USB powered device if we are running we
  are attached.
2017-06-06 14:38:59 -10:00
David Sidrane
cb62675b5e Kinetis:sim ensure isolation of clock dividers for 0 value case
This fixes a bug were a SoC does not have a clockdivN register
   and passes a 0 for the init value. This prevents overflow of
   the 0 decremented to -1 (0xffffffff) spilling over to other
   clockdivN feilds.
2017-06-06 14:38:59 -10:00
David Sidrane
7581cad592 teensy-3.x:Refreshed config 2017-06-06 14:38:59 -10:00
David Sidrane
5b07459af1 Freedom-k66f:Refreshed config 2017-06-06 14:38:59 -10:00
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