Commit Graph

11643 Commits

Author SHA1 Message Date
Gregory Nutt
4b9abfa3c2 Every file that uses serial IOCTLs (TIOC*) must explicity include nuttx/fs/ioctl.h. This was included previously via sneak path in the now deleted arch/serial.h. 2019-01-27 13:41:44 -06:00
Gregory Nutt
2992660420 arch/arm/src/imxrt: Fix another newly introduced compilarsion error due to missing inclusion of nuttx/fs/ioctl.h. I think this is a side-effect of removing arch/serial.h which probably provided a sneak inclusion path for nuttx/fs/ioctl.h. We will just have to fix them one at a time as they pop-up in build testing. 2019-01-27 13:25:58 -06:00
Gregory Nutt
5b400cdf20 arch/arm/src: Fix newly introduced compilarsion errors in two more serial drivers: lpc17xx and lc8223450. Not sure why this are not occuring, but including nuttx/fs/ioctl.h. 2019-01-27 13:21:44 -06:00
Gregory Nutt
e4336bd1be arch/arm/src/am335x/am335x_serial.c: Eliminate an error 'TIOCSBRK undeclared. 2019-01-27 12:49:42 -06:00
raiden00pl
5911478777 Merged in raiden00/nuttx_pe (pull request #823)
Improvements in STM32 ADC, PWM and TIM

arch/arm/src/stm32/chip/stm32_adc_v2.h: missing T1TRGO2 for JEXTSEL

arch/arm/src/stm32/stm32_adc: configure injected channels external trigger when ADC enabled

arch/arm/src/stm32/stm32_adc: update injected conversion queue of context after configuration

arch/arm/src/stm32/stm32_adc: fix sample time configuration for channels. The array index for channels was missing

arch/arm/src/stm32/stm32_adc: support for offset configuration

arch/arm/src/stm32/stm32_pwm: fix TRGO/TRGO2 configuration

arch/arm/src/stm32/stm32_pwm: support for advanced timers channel 5 and 6

Approved-by: GregoryN <gnutt@nuttx.org>
2019-01-27 16:17:39 +00:00
Xiang Xiao
d105dc9b5e drivers/net/phy_notify.c and all network drivers that support PHY notifications: Support the signal notification through SIGEV_THREAD 2019-01-27 08:57:23 -06:00
Xiang Xiao
818d8dda1e Remove empty seria.h and all references 2019-01-26 15:08:14 -06:00
Alan Carvalho de Assis
db0b9b7c34 arch/arm/src/samd2l2 serial: Fix SAMD2L2 serial driver it needs sam_usart_enable() to work 2019-01-26 12:51:51 -06:00
Xiang Xiao
38ffb98f1b Kconfig files, binfmt/libelf, libs/libc/machin, libs/libxx: Correct libcxx exception handling by introducing the generic config(CXX_EXCEPTION and CXX_LIBSUPCXX) 2019-01-26 11:23:31 -06:00
Xiang Xiao
763ba51b78 arch/xxx/src/xxx/up_assert.c: Dump CPU0 IDLE stack only when PID equals 0. IDLE threads of other CPUs do not need this special check 2019-01-26 10:59:23 -06:00
Xiang Xiao
bda6d7f065 arch/arm/include/syscall.h: Add missing inclusion of arch/armv7-r/syscall.h for CortexR. 2019-01-26 07:43:31 -06:00
Xiang Xiao
9f408e9937 arch/arm/src/include/xxx/syscall.h: Align semi-hosting call style with other syscalls 2019-01-26 07:40:47 -06:00
ligd
5a6108c172 arch/xxx/src/common/up_initialize.c: Move up_pminitialize() after timer_initialize() 2019-01-26 07:32:14 -06:00
Xiang Xiao
81bef6cccf arch/Kconfig and arm/src/armv7-m/Kconfig: ARCH_HIPRI_INTERRUPT shouldn't select ARMV7M_USEBASEPRI. First because that is a violation of the layered nature of the Kconfig architecture, but also because then Kconfig will generated errors when high priority interrupts are used with other architectures. 2019-01-26 07:21:18 -06:00
Xiang Xiao
2e70eef767 arch/arm/include/armv-7m/irq.h and armv6-m/irq.h: Remove redundant conditioning on CONFIG_BUILD_PROTECTED 2019-01-26 07:04:15 -06:00
Xiang Xiao
9343451bea arch/xxx/include/: watchdog.h and arm-elf.h because they are empty. The arm-elf header file was never used; the empty watchdog.h header file was used in only one place. 2019-01-26 07:01:45 -06:00
Gregory Nutt
d35c7d95f1 arch/arm/src/tiva/cc13xx/cc13x2_v1_trim.c and cc13x2_cc26x2_v1_rom.c: Review and modified for coding style. Now pass tools/nxstyle wihout complaint. 2019-01-25 14:07:54 -06:00
Pavel Pisa
f9ac7a22ca arch/arm/src/lpc17xx/lpc17_can.c: The name can_txready clashes with Nuttx CAN core global function. LPC178x has only single LPC17_SYSCON_PCLKSEL with only single divisor. 2019-01-25 08:24:09 -06:00
Gregory Nutt
df64811269 up_initialize(): As noted by Roland Takacs in Bitbucket issue 141, there is a compilation error for STM32 if CONFIG_NET and CONFIG_NETDEV_LATEINIT are selected. That was due in part to commit 19e16cb which extended up_netinitialize() with a !defined(CONFIG_NETDEV_LATEINIT) guard but did not add the guard to concrete implementations. I say "in part" because I don't think that the original intent of commit 19e16cb was to enable an alternative initialization of MCU internal Ethernet support but rather to enable support of external Ethernet devices that may have dependencies on, for example, SPI. However, this is still a proper fix to avoid the compilation error that can occur with this combination of configuration options. 2019-01-25 07:21:03 -06:00
Juha Niskanen (Haltian)
079e9161f1 arch/arm/src/stm32l4/stm32l4_lse.c: Ports Jussi Kivilinna's recent STM32F7 LSE change to STM32L4. 2019-01-24 06:58:45 -06:00
Gregory Nutt
d0b2cf34f9 arch/arm/src/tiva/hardware: Add CC13x0 DDI0 OSC header file. arch/arm/src/tiva/cc13xx: Fix miscellaneous compilation issues. 2019-01-23 13:30:18 -06:00
raiden00pl
f841175540 Merged in raiden00/nuttx_pe (pull request #822)
Improvements for STM32 PWM

arch/arm/src/stm32/stm32_pwm: fix polarity and IDLE state configuration for advanced timer PWM

include/dsp.h: raise error if math.h not present

Approved-by: GregoryN <gnutt@nuttx.org>
2019-01-23 17:52:27 +00:00
Gregory Nutt
f546801fb3 Squashed commit of the following:
arch/arm/src/tiva/hardware:  Add CC13xx SMPH and AUX SMPH header files.  Still need DDI0 OSC header file for CC13x0 compilation.

    arch/arm/src/tiva/cc13xx:  A few changes toward getting the launchxl-cc1310/nsh configuration to build
2019-01-23 11:48:50 -06:00
Gregory Nutt
6d2b832ccc arch/arm/src/tiva/cc13xx: Fixes to get a clean build of the configs/launchxl-cc1312r1 configuration. Still untested. 2019-01-23 09:04:19 -06:00
Alan Carvalho de Assis
795e880ff6 arch/arm/src/samd2l2/sam_serial.c: Add missing RS-485 DIR pin write to sam_serial.c 2019-01-22 17:37:26 -06:00
Gregory Nutt
f41b9fead9 arch/arm/src/tiva/cc13xx: The trim files from the TI DriverLib now compile successfully. This merge also brings in the ROM files from the TI DriverLib which do NOT year compile correctly. This is still a work in progress. There merge also adds unverified support for the LaunchXL-CC1310.
Squashed commit of the following:

    confgs/launchxl-cc1310:  Add board support for the LaunchXL-CC1310.  This is a work in progress and does not yet build error free.

     arch/arm/src/tiva/cc13xx: cc13x0_trim.c now compiles; Make xxx_rom.h header files conform a little more closely to the NuttX coding style.

    arch/arm/src/tiva/cc13xx:  CC13x2 (V1 and V2) rom.c files now build with no errors or warnings. Still have to work through the CC13x0 version.

    arch/arm/src/tiva/hardware:  Add CC13x0/CC13x2_CC26x2 AON BATMON register definition header file.

    arch/arm/src/tiva/cc13xx: A little more progress converting TI DriverLib ROM code to NuttX coding style.  Lots of possibilities for breakage here!

    arch/arm/src/tiva/cc13xx:  Remove functions from cc13x._rom.c that are defined from ROM access in cc13x._rom.h; Add prototypes in cc13x._rom.h for functions in cc13x._rom.c that are not defined in cc13x._rom.h.

    arch/arm/src/tiva/cc13xx:  Remove some dangling whitespace at the end of lines.

    arch/arm/src/tiva/cc13xx:  Second (and final) round of name changes to get ROM function-like defines consistent with NuttX coding standard

    arch/arm/src/tiva/cc13xx:  Fix a few errors in last big name conversion.

    arch/arm/src/tiva/cc13xx:  First round of name changes to get ROM function-like defines consistent with NuttX coding standard

    arch/arm/src/tiva/cc13xx:  Remove ROM_ prefix from function-like defines.
2019-01-22 15:21:58 -06:00
Gregory Nutt
a8da0e977a Addition of trivial comment 2019-01-22 13:04:02 -06:00
Jussi Kivilinna
434cad4d17 arch/arm/src/stm32f7/stm32_lse.c: Add configuration of LSE oscillator drive capability 2019-01-22 06:37:02 -06:00
Gregory Nutt
1b53b9eec1 Clarification of new TODO list issue. 2019-01-21 09:29:08 -06:00
Gregory Nutt
aa99e2d6da Squashed commit of the following:
arch/arm/src/tiva/hardware:  Completes the CC13x2 AUX SYSIF header file.

    arch/arm/src/tiva/hardware:  Progress on the CC13x2 AUX SYSIF header file.  Almost complete.

    arch/arm/src/tiva/hardware:  Port needs aux_sysif.h header file.

    arch/arm/src/tiva/cc13xx/cc13x0_rom.h:  Fix a typo

    arch/arm/src/tiva/cc13xx:  More changes to TI DriverLib ROM header files for NuttX coding standard.

    arch/arm/src/tiva/cc13xx:  Convert some (but not all) TI DriverLib ROM function names to NuttX coding standard.  More to be done.

    arm/src/tiva/cc13xx:  ROM header files: missed a couple of conversions of sructure field names to lower case (vs CamelCase).

    arm/src/tiva/cc13xx:  ROM header files: type'ed names must be lower case per coding standard (not upper case); structure field names must be lower case per coding standard (not CamelCase).

     arch/arm/src/tiva/cc13xx:  Trim logic needs to include matching ROM DriverLib interface header file.

    arch/arm/src/tiva/cc13xx:  Add ROM DriverLib header files.  Do not yet fully conform to the NuttX coding style.
2019-01-20 17:59:22 -06:00
Alan Carvalho de Assis
a34c9733bc arch/arm/src/samd2l2: Add RS485 support to SAMD2L2 serial 2019-01-20 12:43:42 -06:00
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