Gregory Nutt
931a0dc8f4
STM32F7 and STML4: Ooops removed a little too much in the last commit.
2018-12-06 13:50:04 -06:00
Gregory Nutt
5832c150d7
arch/arc/src: Remove all driver-specific logic to set the interrupt priority. There is no good reason to change the interrupt priority unless you just want to debug a difficult problem. OR is you want to use high priority interrupts. In that case the specific interrupt priorities will need to be set by board-specific logic.
2018-12-06 13:34:41 -06:00
Mateusz Szafoni
ca4ef377fb
Merged in raiden00/nuttx_pe (pull request #776 )
...
arch/arm/include/stm32/chip.h: fix typo
Approved-by: GregoryN <gnutt@nuttx.org>
2018-12-06 17:52:11 +00:00
Gregory Nutt
16291c8965
arch/arm/src/tiva/Make.defs: Yet another problem found in build testing. The CC13xx changes really shook up the Tiva builds.
2018-12-06 08:59:41 -06:00
Gregory Nutt
5502ca9efb
arch/arm/src/tiva/lm: Fix an improperly named header file.
2018-12-06 08:52:17 -06:00
Gregory Nutt
619998e32d
arch/arm/include/tiva/tm4c_irq.h: Fix a typo introduced in recent changes. Found in build testing.
2018-12-06 08:42:24 -06:00
Gregory Nutt
44b57a2932
arch/arm/src/tiva/hardware: Correct an error in header guard definitions found in build testing.
2018-12-06 08:30:50 -06:00
Gregory Nutt
2c2db2d780
arch/arm/src/tiva/hardware: Correct some include paths found in build testing.
2018-12-06 08:22:51 -06:00
Gregory Nutt
d68bff3256
arch/arm/src/tiva: A few more changes to get past pin definition compile problems.
2018-12-06 08:09:15 -06:00
Dave Marples
df2241f816
This commit changes the lazy and non-lazy exception handler to remove a couple of cpsid instructions from them on ARMv7-m. If my understanding is correct then these interrupt manipulations aren't doing anything anyway because prioritization stops secondary interrupts arriving and, even if they did work, they would have introduced race conditions for the period of time between the interrupt arriving and further interrupts being disabled.
2018-12-06 07:20:21 -06:00
Gregory Nutt
0a8aa537a2
arch/arm/src/tiva/cc13xx/cc13xx_gpio.h: Add CC13xx GPIO encoding file.
2018-12-05 17:42:50 -06:00
Gregory Nutt
dcf4b4b689
STM32H7 and STM32L4: Applied David Sidrane's I2C to:
...
arch/arm/src/stm32h7/stm32_i2c.c
arch/arm/src/stm32l4/stm32l4_i2c.c
Those easy because F7 patch applied with no problem (after changing path and file names appropriately). The patch could not be appleed to the following. The logic is different. I don't know if a similar change is needed there or not.
arch/arm/src/stm32/stm32f30xxx_i2c.c
arch/arm/src/stm32/stm32f40xxx_i2c.c
arch/arm/src/stm32/stm32_i2c.c
arch/arm/src/stm32/stm32_i2c_alt.c
arch/arm/src/stm32f0/stm32f0_i2c.c
2018-12-05 15:38:42 -06:00
David Sidrane
f43451b7df
Merged in david_s5/nuttx/master_f7_i2c (pull request #774 )
...
stm32f7:i2c out of bounds access on priv->msgv
Error in if statment. It was checking for msgc > 0.
If message count is 1, only index 0 is valid on
priv->msgv. There for random values in memory were
used to set next_norestart.
Approved-by: GregoryN <gnutt@nuttx.org>
2018-12-05 21:24:59 +00:00
Gregory Nutt
d830b323dd
arch/arm/src/tiva: Starting to work through alternate function pin configuration and GPIO interrupts for C13xx. Works a lot differently than the LM and Tiva parts.
2018-12-05 15:17:22 -06:00
Gregory Nutt
051e37bce2
arch/arm/src/tiva/hardware: Add CC13xx IOC register definitions.
2018-12-05 13:02:29 -06:00
Gregory Nutt
cdb6e16ad3
arch/arm/src/tiva: Add cc13xx startup logic, rename up_lowsetup->tiva_lowsetup, fixes to cc13xx GPIO header files, break up tiva_timer.h to support future cc13xx timer register definitions, cc13xx has no sysctl block.
2018-12-05 10:08:34 -06:00
Mateusz Szafoni
428b625428
Merged in raiden00/nuttx_pe (pull request #773 )
...
arch/arm/include/stm32/chip.h: remove redundant STM32 family definitions. It is already done in arch/arm/src/stm32/Kconfig
Approved-by: GregoryN <gnutt@nuttx.org>
2018-12-05 11:46:36 +00:00
Gregory Nutt
7aaa5a800d
arch/arm/src/tiva: Remove option CONFIG_TIVA_BOARD_CLOCKCONFIG. It is not used and unnecessary. Fix some naming. up_clockconfig() is inappropriate. Change tiva_clockconfig() to tiva_clock_reconfigure() then we can change up_clockconfig() to tive_clock_configure().
2018-12-04 18:15:46 -06:00
Gregory Nutt
98b5ccdec0
configs/launchxl-cc1312r1/include/board.h: Set the CC13xx SYSCLCK freqency to a fixed 48MHz.
2018-12-04 17:21:59 -06:00
Gregory Nutt
9a68127e3e
arch/arm/src/tiva: Remove CONFIG_TIVA_BOARD_EARLYINIT. The option is no long meaningfule. Also set the CC13xx SYSCLCK freqency to a fixed 48MHz.
2018-12-04 17:20:25 -06:00
Alan Carvalho de Assis
c629d867e0
drivers/lcd/st7032.c: Improve ST7032 scroll-up to avoid line duplication
2018-12-04 16:20:29 -06:00
Gregory Nutt
3d23c68c05
arch/arm/src/tiva: Add GPIO header files. Reoganized tiva_gpio.c so that we can also handle the cc13xx GPIO which is very different.
2018-12-04 13:16:52 -06:00
Gregory Nutt
4d2c47a01d
arch/arm/src/tiva/hardware: Break up tiva_gpio.h and place in MCU-specific sub-directories. This necessary to later develop Simplelink-specific GPIO header files.
2018-12-04 10:21:19 -06:00
Gregory Nutt
b2013df856
/arch/arm/src/tiva/hardware: Add CC13x0 and CC13x2 UART header files.
2018-12-04 08:40:29 -06:00
Gregory Nutt
c9ca9ced72
arch/arm/src/tiva/hardware: Move UART header files into sub-directories to make space for the SimpleLink UART header files.
2018-12-04 07:44:24 -06:00
Gregory Nutt
7d8f6625e3
arch/arm/src/tiva: Use naming sysctrl vs syscontrol be better match TI documentation. Combine hardware/cc13x2_cc26x2_v* directories.
2018-12-04 07:32:53 -06:00
Juha Paalijärvi
1afe4676e2
arch/arm/src/stm32f0/stm32f0_clockconfig.c: Fixes the problem in GPIO port clocks. Only port A clock was enabled although the comment states otherwise.
2018-12-04 06:50:32 -06:00
David Sidrane
5433ec589b
fs/driver/fs_blockpartition.c: Fix void pointer warning.
...
libs/libc/unistd/lib_daemon.c: Fix compiler error is streams disabled.
sched/irq/irq_procfs.c: Fix warning
sched/task/task_vfork.c: Fix void * math warning
2018-12-03 17:54:21 -06:00
Dave Marples
d0cda60442
In the current implementation we only use very high priority interrupts (levels 0, 0x10 and 0x20 in CORTEX-M speak) but that means there are loads of lower priority ones that are effectively unused. I have *not* changed the semantics of these levels but have 'shifted' them to be based around the midpoint of the available interrupts (0x80) rather than at the top end....that allows for interrupts to be defined above (or, indeed, below) them as needed by the application. This should have no functional effect on existing code but adds in a clean capability to define higher priority interrupts.
2018-12-03 17:41:59 -06:00
Gregory Nutt
8aeeb1d8d3
arch/arm/src/stm32/stm32_adc.c: Eliminate a new warning found in build testing
2018-12-03 14:49:49 -06:00
Gregory Nutt
a641cb2ad8
configs/launchxl-cc1312r1/: Add a configuration for the LAUNCHXL-CC1312R1 board. This is a very stripped down configuration. It was needed to support verifiction of the CC13xx configuration logic and will be needed to support completion of the CC13xx port.
2018-12-03 13:25:31 -06:00
Gregory Nutt
4a501de6b1
tools/detab.c: Fix a strange (but functional) conditional test noted by Alan Carvalho de Assis.
2018-12-03 13:25:14 -06:00
Gregory Nutt
8983f1c82e
STM32F7, STM32H7, and STM32L4: Port Dave Marples STM32 fix to other STM32 spi drivers
2018-12-03 13:24:42 -06:00
Gregory Nutt
ee058683c6
arch/arm/src/tiva/hardware: Bring in memory map header files for the CC13x0 and CC13x2.
2018-12-03 09:10:05 -06:00
Gregory Nutt
fc744fb9b1
tools/: Add detab.c which will convert all tabs in a file to spaces. Add lowhex.c that will convert hexadecimal constants in a file to use lower case representation.
2018-12-03 08:45:05 -06:00
Gregory Nutt
ffc7dbf36b
arch/arm/include/tiva: Add support for cc13xx interrupts. arch/arm/src/armv7-m: Add FPB header file.
2018-12-03 07:26:02 -06:00
Dave Marples
ff508f9b12
arch/arm/src/stm32/stm32_spi.c: Correct some compile problems introduced with 8328539534
.
2018-12-03 07:15:40 -06:00
Mateusz Szafoni
db799e857c
Merged in raiden00/nuttx_pe (pull request #772 )
...
arch/arm/src/stm32/stm32_adc.c: refactor adc_reset. It should be easier to maintain this code if it's divided into smaller functions
Approved-by: GregoryN <gnutt@nuttx.org>
2018-12-02 18:34:02 +00:00
Lwazi Dube
b7fa409fc4
include/nuttx/wireless/bluetooth adn include/nuttx/wireless/bluetooth: Add SIOCBTCONNECT and SIOCBTDISCONNECT ioctl commands
2018-12-02 10:57:51 -06:00
Gregory Nutt
ab974488d5
arch/arm/src/tiva/hardware: Remove annoying warnings 'No flash dimensions defined for selected chip.'
2018-12-02 07:58:12 -06:00
Dave Marples
8328539534
drivers/spi/Kconfig and include/nuttx/spi/spi.h: Extend the HW features supported by SPI. It now supports a deffered DMA trigger hardware configuration. arch/arm/src/stm32/stm32_spi.c: Implements the new deferred DMA trigger feature.
2018-12-02 07:30:55 -06:00
Mateusz Szafoni
d2b98cc150
Merged in raiden00/nuttx_pe (pull request #771 )
...
Use STM32 DMA IP core version instead of chip family names and some minor improvements
arch/arm/src/stm32/chip/stm32_adc.h: raise error if two IP cores seleceted
libs/libdsp/Kconfig: cosmetic change
arch/arm/src/stm32/Kconfig: hide TIMER menu, HRTIM menu and USB Host debug menu if peripherals not enabled
configs/stm32f429i-disco/highpri/defconfig: fix configuration warning
Approved-by: GregoryN <gnutt@nuttx.org>
2018-12-02 11:49:25 +00:00
Mateusz Szafoni
7c77eb738e
Merged in raiden00/nuttx_pe (pull request #770 )
...
configs/nucleo-f207zg, configs/nucleo-f103rb: add ADC and PWM examples; arch/arm/src/stm32_adc.c: there is no DMA CFG bit for the basic IPv1 ADC
Approved-by: GregoryN <gnutt@nuttx.org>
2018-12-02 01:24:36 +00:00
Gregory Nutt
e0608386f3
tools/convert-comments.c: Add a tool to convert C++-style comments to C89 C-style comments.
2018-12-01 19:15:54 -06:00
Gregory Nutt
cacbe062ad
Fix a new warning found in build tesing.
2018-12-01 17:27:32 -06:00
Gregory Nutt
f179e36934
Fix an error found in build testing.
2018-12-01 12:30:59 -06:00
Gregory Nutt
f0e6e06a37
Squashed commit of the following:
...
arch/arm/src/tiva/hardwar: Move LM3S and LM4F include files to hardware/lm/ sub-directory. Move all TM4C header files files to hardware/tm4c/ sub-directory.
arch/arm: Add basic configuration/build support for CC13xx parts. Conditioned on EXPERIMENTAL.
2018-12-01 12:22:05 -06:00
Gregory Nutt
e7e54ccbf7
Re-arranging some Tiva directories to simply forthcoming SimpleLink port
...
Squashed commit of the following:
arch/arm/src/tiva/Make.defs: Trivial change to conditional VPATH.
arch/arm/src/tiva: Move LM3S and LM4F source files to lm/ sub-directory. Move all TM4C source files to tm4c sub-directory.
arch/arm/src/tiva and configs/: Change include patch from chip/ to hardware/ in all Tiva files includes.
arch/tmp/src: Rename chip/ subdirectory to hardware/. This is a better name since it does not conflict with other directory names and, well, we are going to be change a lot of the Tiva directory structure in the next few commits.
2018-12-01 09:29:47 -06:00
Gregory Nutt
1e299dd5fe
Update README.
2018-12-01 06:40:50 -06:00
Gregory Nutt
3be195079e
configs/nucleo-f207zg/adc/defconfig: Remove empty defconfig file from last PR.
2018-12-01 06:24:37 -06:00