Commit Graph

14530 Commits

Author SHA1 Message Date
Gregory Nutt
c8efd2b1e3 arch/arm/src/stm32/chip: Don't try including stm32l_gpio.h from within chip/*.h header files. Not only is bad style for a layered inclusion system, but it doesn't always work. 2019-01-19 13:22:04 -06:00
Daniel Agar
cc8449e903 Merged in dagar/nuttx/pr-kinetic_minor_fix (pull request #820)
arch/arm/include/kinetis/kinetis_sim.h remove undef extra character

Approved-by: GregoryN <gnutt@nuttx.org>
2019-01-19 15:39:46 +00:00
Gregory Nutt
da582e4ef6 arch/arm/src/tiva: Remove TIVA_CCFG_BASE_DEFAULT which appears to be an odd mechanism to overrid the ROM DriverLib with an in-FLASH DriverLib. 2019-01-17 17:47:37 -06:00
Gregory Nutt
9a25e86416 arch/arm/src/tiva/hardware: Add CC13x0 AUX WUC register definition header file. 2019-01-17 07:20:35 -06:00
David Sidrane
64921a9c57 arch/arm/src/imxrt/imxrt_usdhc.c: Eliminate a warning 2019-01-16 18:15:01 -06:00
David Sidrane
2f1678b7be arch/arm/src/imxrt/imxrt_periphclks.h: Ensure C++ compatibility. 2019-01-16 18:12:56 -06:00
David Sidrane
8b9014bc1d arch/arm/src/imxrt/chip/imxrt_adc.h: Fix a typo 2019-01-16 18:11:25 -06:00
David Sidrane
026feadbe3 arch/arm/src/imxrt/imxrt_lpi2c.c: I2C Reset rework 2019-01-16 18:10:13 -06:00
David Sidrane
dbd9172e57 arch/arm/src/imxrt/Make.defs: Include up_systemreset and up_stackcheck.c 2019-01-16 18:08:24 -06:00
David Sidrane
fe4ee29833 arch/arm/src/imxrt/imxrt_lpspi.c: Removed unused clock, that borked he build 2019-01-16 18:06:28 -06:00
Gregory Nutt
fee4432584 arch/arm/src/imxrt/imxrt_usdhc.c: Remove daisy selection hack 2019-01-16 18:04:51 -06:00
David Sidrane
d6fa328d27 arch/arm/src/imxrt: ADD GPIO Support Input daisy selection 2019-01-16 18:03:10 -06:00
David Sidrane
042f057463 arch/arm/src/imxrt/imxrt_usdhc.c and related board.h files: Use single define for USB pin definitions. 2019-01-16 17:49:12 -06:00
David Sidrane
b8bc611676 arch/arm/src/imxrt/imxrt_usdhc.c: Eliminate warnings. 2019-01-16 17:46:08 -06:00
David Sidrane
c38a5af732 arch/arm/src/imxrt/imxrt_serial.c: Support independent input and output flow control. 2019-01-16 17:44:39 -06:00
David Sidrane
c44c30784c arch/arm/src/imxrt/imxrt_serial.c: Fix TTYS0 defined definitions of higher numbered ports 2019-01-16 17:33:23 -06:00
David Sidrane
178ed12903 arch/arm/src/imxrt/chip/imxrt_flexpwm.h: Correct duplicated definitions 2019-01-16 17:30:32 -06:00
Petro Karashchenko
0f324d3bce arch/arm/src/am335x/am335x_timerisr.c: Switch to DMTimer2 for system tick generation. U-Boot does not enable DMTimer1ms clocks hence it is not possible to use it until implementation in am335x_clockconfig.c is ready 2019-01-16 15:09:40 -06:00
Gregory Nutt
8f800ddc4c arch/arm/src/tiva/hardware: Add CC13x0 AON WUC register definition header file. 2019-01-16 12:58:36 -06:00
Gregory Nutt
4fe9ebd5e3 arch/arm/src/tiva: Add CC13x0 AON SYSCTL header file. 2019-01-16 10:01:15 -06:00
Gregory Nutt
14b4b6abf1 arch/arm/src/tiva: Fix several compile problems with trim logic. Still many missing TI driverlib functions. 2019-01-16 09:04:49 -06:00
Gregory Nutt
d3c3904f2b Fix a trivial typo in some comments. 2019-01-15 17:15:28 -06:00
Gregory Nutt
da50ab18c9 arch/arm/src/tiva/hardware: Add (and integrate) CC13xx ADI4 AUX register definition header file. 2019-01-15 17:14:25 -06:00
Alexander Vasiliev
bac062f9c6 arch/arm/src/samd2l2/sam_i2c_master.c: Adds calculation of a timeout and disables interrupts in case of error. 2019-01-15 09:02:58 -06:00
Petro Karashchenko
937c30e57a arch/arm/src/am335x/chip/am335x_uart.h: Cosmetic changes for am335x_uart.h 2019-01-15 06:15:22 -06:00
Petro Karashchenko
dc92cd42e6 arch/arm/src/am335x: Add minimal wdog logic needed to disable the watchdog timer. Otherwise, the board is rebooted after certain time expires while NuttX is running. 2019-01-15 06:12:57 -06:00
Gregory Nutt
ac0a6ebdd9 arch/arm/src/tiva/hardware: Fix some naming used in comments. 2019-01-13 10:43:20 -06:00
Gregory Nutt
68584aa6eb arch/arm/src/tiva/hardware: Add ADI 3 REFSYS header file. 2019-01-13 10:10:00 -06:00
Gregory Nutt
7ed340c9a1 arch/arm/src/tiva: Fix some errors in macro names. 2019-01-12 16:30:21 -06:00
Gregory Nutt
7369105daf arch/arm/src/tiva/hardware: Add ADI 2 REFSYS header file. 2019-01-12 11:32:35 -06:00
Gregory Nutt
c3df1b23d3 arch/arm/src/tiva: Fix a few of the many CC13xx compile problems. There are many more. 2019-01-12 09:20:45 -06:00
Gregory Nutt
5299e87b2c Squashed commit of the following:
arch/arm/src/tiva/cc13xx:  Trim code now kind of looks like NuttX code.  But does not yet compile.

    arch/arm/src/tiva/cc13xx:  The first few, feeble steps toward getting the overall trim files compatible with the requirements of the NuttX coding standard.

    arch/arm/src/tiva/cc13xx:  Replace last of TI hardware access macros with NuttX hardware access macros.

    arch/arm/src/tiva/cc13xx: Change TI HWREGB to NuttX getreg8 or putreg8 in trim logic.

    arch/arm/src/tiva/cc13xx: Change TI HWREGBITW to NuttX getreg32/putreg32 sequence in trim logic.

    arch/arm/src/tiva/hardware/cc13x2_cc26x2/cc13x2_cc26x2_ddi0_osc.h:  Completes the DDIO OSC header file.

    cc13x2_cc26x2/cc13x2_cc26x2_ddi0_osc.h:  Updated, but still not finished.

    arch/arm/src/tiva/hardware/cc13x2_cc26x2/cc13x2_cc26x2_ddi0_osc.h:  Add DDI0 OSC header file.  Still a work in progress. Does not yet conform to the NuttX coding standard.

    Change _M and _S to _MASK and _SHIFT.

    Some minor improvements.

    Clean up typos in some comments.

    Run all new files against tools/indent.sh

    arch/arm/src/tiva/cc13xx:  Bring in trim files from SDK.  Convert to C-style comments, lowercase hex contants.  Remove Windows-style line endings.
2019-01-12 08:43:45 -06:00
raiden00pl
f8c18e09e9 Merged in raiden00/nuttx_lora (pull request #811)
stm32f0l0: fix GPIO EXTI lines assignment for STM32 M0

Approved-by: GregoryN <gnutt@nuttx.org>
2019-01-12 07:59:31 +00:00
Petro Karashchenko
95f6c13c61 With these changes, I am able to access NSH on Beaglebone Black.
I still observe data abort crash if I compile the code with optimization enabled.

The next steps are to investigate the optimization issue and add Watchdog module. Currently, NSH does not run for a long time ;)

  arch/arm/src/am335x/am335x_irq.c:  Correct interrupt processing routine
  configs/beaglebone-black/nsh/defconfig:  Enable debug compilation options. Otherwise data abort crash is observed
  arch/arm/src/am335x/am335x_lowputc.c and arch/arm/src/am335x/chip/am335x_uart.h:  UART-related cosmetic changes
  arch/arm/src/am335x/am335x_timerisr.c:  Make sure that Timer 1 interrupts are disabled before any access to peripheral registers
2019-01-09 16:21:20 -06:00
raiden00pl
9194c68f23 Merged in raiden00/nuttx_lora (pull request #810)
stm32f0l0: SPI and GPIO EXTI support

arch/arm/src/stm32f0l0: add support for GPIO EXTI

configs/nucleo-l073rz: support for nrf24l01

configs/b-l072z-lrwan1/include/board.h: add note about onboard Murata CMWX1ZZABZ-09 module and definitions for available peripherals

Approved-by: GregoryN <gnutt@nuttx.org>
2019-01-09 20:38:00 +00:00
Jussi Kivilinna
d7f1dc56cf STM32F7 and L4 I2cC: Use clock_t for ticks instead of uint32_t to hold system time. 2019-01-09 07:28:34 -06:00
Gregory Nutt
a7f75b4ee8 Revert "arch/: Fix an error found in build testing. The protoype of mpu_log2regionfloor() changed; an additional parameter was added. However, none of the calls to mpu_log2regionfloor() were updated to pass the new, additional parameter."
Commit 8b63d02309 was reverted.  This related commit must now also be reverted to avoid compilation errors.

This reverts commit e8270defc9.
2019-01-08 15:21:29 -06:00
Gregory Nutt
c59ccd4083 arch/arm/include/amm335x: Trivial, cosmetic changes after review 2019-01-08 08:15:04 -06:00
Petro Karashchenko
0f38c331e7 arch/arm/include/amm335x: Add header files needed for build. 2019-01-08 08:06:26 -06:00
Gregory Nutt
b4f488e8bf Revert "arch/arm/armv7-m: MPU: mpu_log2regionceil needs take into account the offset too"
Masayuki Ishikawa reports that this commit breaks ALL PROTECTED mode builds.

It violates the basic requirements of the use of the MPU in protected mode.  Those basic requirements are:

1. The MPU region must be aligned to the base address of the memory region being mapped (it may NEVER extend before the memory region).  That is, the following MUST always be zero:

   (base & ((1 << l2size) - 1))

2. The MPU region must never extend beyond the end of the memory region.  That is, the following must be true:

   size >= (1 << l2size)

This reverts commit 8b63d02309.
2019-01-08 07:46:19 -06:00
lihaichen
8e7f8bbde3 Merged in lihaichen/nuttx/stm32_tim (pull request #806)
fix stm32 tim bug

Approved-by: GregoryN <gnutt@nuttx.org>
2019-01-07 13:53:02 +00:00
Petro Karashchenko
a0ba6a12a4 arch/arm/src/am335x/chip/am3358_memorymap.h: Code cleanup for beaglebone black port
arch/arm/src/am335x/am335x_irq.c: Uncomment code for interrupt enable/disable
2019-01-06 14:24:39 -06:00
Petro Karashchenko
1727e47d2e Initial changes for BeagleBone Black board support (TI AM335x family based on Cortex-A8)
Squashed commit of the following:

Author: Gregory Nutt <gnutt@nuttx.org>
    Many small changes related to coding style.

Author: Petro Karashchenko <petro.karashchenko@gmail.com>
    configs/beaglebone-black:  Adds initial support for the BeagleBone Black board.
    arch/arm/src/am335x:  Adds initial support for the TI AM355x family.
2019-01-06 09:05:38 -06:00
Petro Karashchenko
5e48ca91fc arch/arm/src/armv7-a/mmu.h: Fix some typos; Use TLBIMVA vs TLBIMVAAIS to invalidate the Cortex-A8 cache. 2019-01-06 07:49:21 -06:00
Petro Karashchenko
dff605a5b8 arch/arm/src/armv7-a/arm_mmu.c: Fix end address calculation for mmu_invalidate_region() API 2019-01-06 07:38:04 -06:00
Ken Pettit
a97c4d8644 drivers/net/telnet.c: Add NAWS and poll interface to telnet for screen size negotation used with termcurses.
arch/arm/src/samv7/sam_serial.c: Fix case where TTYS0 is not defined.
2019-01-05 12:14:05 -06:00
Masayuki Ishikawa
f1c806526f Merged in masayuki2009/nuttx.nuttx/lc823450_spif_boot (pull request #801)
lc823450 spif boot

* arch/arm/src/lc823450: Add support for SPI flash boot

    Also, remove unnecessary code for the SPI flash boot

    Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

* configs/lc823450-xgevk: Add linker script for SPI flash boot

    Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

Approved-by: GregoryN <gnutt@nuttx.org>
2019-01-04 12:03:55 +00:00
Daniel Agar
2697b087c6 Merged in dagar/nuttx/pr-stm32_dma_v1_duplicate (pull request #800)
stm32_dma_v1.h remove duplicate DAC DMA defines for CONFIG_STM32_STM32F30XX

Approved-by: GregoryN <gnutt@nuttx.org>
2019-01-03 18:26:21 +00:00
Daniel Agar
3b55f35bb3 Merged in dagar/nuttx/pr-stm32f7_SPI_DMA_per_bus (pull request #798)
stm32f7 enable separate DMA per SPI configuration

Approved-by: GregoryN <gnutt@nuttx.org>
2019-01-02 18:50:40 +00:00
Gregory Nutt
a0a537a9f0 arch/arm/src/bcm2708 and arch/arm/include/bcm2708: Remove all support for the BCM2708/2835. This was added only for support of the Pi Zero board which was previously removed. The support was minimal and unverified. The removed files can still be found in the Obsoleted directory. 2019-01-02 12:15:07 -06:00