Commit Graph

47 Commits

Author SHA1 Message Date
Roger Clark c12ad246a6 Merge pull request #342 from stevstrong/patch-3
Create hooks.c [F4]
2017-10-08 11:03:29 +11:00
Roger Clark 347a1e3b46 Merge pull request #352 from sweetlilmre/master
Removed deprecated functionality from Print class for BYTE "base"
2017-10-08 10:56:51 +11:00
stevstrong 308b5c410f Update boards.cpp
- remove repeated call to setup serial USB
2017-10-06 18:04:56 +02:00
Peter Edwards f65e6905e9 Removed non standard functionality from Print class for BYTE "base" as this is available via e.g. Serial.write and conflicts with the FatFS library and potentially anything else defining BYTE
Fixed sketches using this behaviour
2017-09-28 12:08:59 +02:00
stevstrong f84f73c4a1 Create hooks.c
similar to F1 - it was missing
2017-09-19 20:42:16 +02:00
Roger Clark b1e1782019 Fix for map() function - supplied by @Pito 2017-09-03 11:00:16 +10:00
Roger Clark 58e50e7fd9 Add partial support for a DFU bootloader for the F4 2017-09-03 10:51:08 +10:00
victorpv a9767e4c53 Adding new.cpp as in F1 core.
This is to avoid libstdc++ being pulled in when new() is used.
Already included in the F1 in 2016.
Discussed on this thread:
http://www.stm32duino.com/viewtopic.php?f=39&t=2460&p=33163
2017-08-18 17:33:00 -05:00
stevstrong 597f77ac1d replace all backslaches by slashes in include paths 2017-07-04 19:28:50 +02:00
stevstrong 1c1c90ebe3 Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master'
# Conflicts:
#	STM32F1/libraries/SPI/src/SPI.cpp
#	STM32F4/cores/maple/libmaple/HardwareSerial.cpp
#	STM32F4/cores/maple/libmaple/adc.h
#	STM32F4/cores/maple/libmaple/dmaF4.c
#	STM32F4/cores/maple/libmaple/dmaF4.h
#	STM32F4/cores/maple/libmaple/gpio.c
#	STM32F4/cores/maple/libmaple/gpio.h
#	STM32F4/cores/maple/libmaple/rcc.c
#	STM32F4/cores/maple/wirish_digital.cpp
#	STM32F4/cores/maple/wirish_time.h
#	STM32F4/libraries/SPI/src/SPI.cpp
#	STM32F4/platform.txt
#	STM32F4/system/libmaple/Arduino.h
#	STM32F4/variants/generic_f407v/generic_f407v.h
#	STM32F4/variants/generic_f407v/ld/common.inc
#	STM32F4/variants/generic_f407v/ld/jtag.ld
#	STM32F4/variants/generic_f407v/pin_map.c
#	STM32F4/variants/generic_f407v/variant.h
#	STM32F4/variants/generic_f407v/wirish/start.S
2017-07-03 20:09:45 +02:00
stevstrong d872cb1963 avoid multiple USB serial begin (taken from F1) 2017-06-20 18:50:23 +02:00
stevstrong b7fb21aa0c make USB serial Tx blocking (bugfix for lost TX characters) 2017-06-20 18:33:00 +02:00
stevstrong f58a96e0f6 implemented SDIO
+ small changes in DMA - reworked get and clear ISR bits
+ wirish_time compatible with "C"
2017-06-18 17:27:02 +02:00
stevstrong 6dde3d39b4 added serial bool operator for "if(!Serial)" 2017-06-02 20:26:55 +02:00
stevstrong 220aa0e20f Merge branch 'master' into generic_f4 2017-06-02 20:11:45 +02:00
stevstrong 1c097cc8c3 added pin modes: GPIO_AF_OUTPUT_PP_PU (for SDIO)
and GPIO_AF_INPUT_PU/PD
2017-06-02 19:32:34 +02:00
Roger Clark b19fc38e5e Applied change to fix issue in itoa.c and itoa.h with newer versions of GCC (using the changes from STM's fix, in Arduino_Core_STM32) 2017-05-26 17:00:47 +10:00
Roger Clark d3058d39f0 Fixed F4 ADC typo as noted by @stevstrong in reply to issue #265 2017-05-25 20:29:01 +10:00
stevstrong 70aa720e34 corrected RESERVED size in fsmc_nor_psram_reg_map 2017-05-22 17:53:17 +02:00
stevstrong 8574d238e8 added FSMC + SPI brought in line with F1 2017-05-22 17:36:50 +02:00
stevstrong f7a444b9ef implemented FSMC for driving an LCD on 16 bit parallel data bus 2017-05-21 11:01:22 +02:00
stevstrong 04cf037a1d digital IO write optimizations for 16bit parallel display types
- digitalWrite value increased to 16 bit width
- added IO device bit access functions
- removed PWM enable/disable from pinMode()
2017-05-19 17:24:26 +02:00
stevstrong b8afde026a increase digitalWrite() value parameter width to 16 bit
- this useful for the 16 bit parallel TFT lib
2017-05-14 16:31:11 +02:00
stevstrong 97329efca3 push the generic_f4 branch to master 2017-05-13 10:27:33 +02:00
stevstrong 220247c115 bugfix: other variants than generic did not work 2017-05-12 20:51:12 +02:00
stevstrong 679217dfaf F4 development
- added generic F4 variant
- removed F1 and F2 files/defines
- resolved include headers - now libraries are detected within sketches
- reworked + added new GPIO access functions
- moved and size-optimized PIN_MAP in flash
- SPI improvements: optimized block read + added DMA
2017-05-11 00:57:08 +02:00
Roger Clark dd453357b3 Added shiftIn to F1 and F4 2016-12-08 20:00:20 +11:00
Roger Clark 378cd2a6af Fixed #231 2016-11-30 17:27:21 +11:00
xymopen 1d321b6b70 merge minor API changes of IPAddress, Print, Stream and WString from official Arduion core source. LookaheadMode is still under evaluation. 2016-10-22 03:57:13 +08:00
Lee Jones afa2cf1b8a stm32f4: cores: Remove seemingly pointless file
dma.c was introduced in 2014 and is still entirely commented out.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
2016-10-01 03:38:45 +01:00
Martin Ayotte 78a1051406 fix LeafLab bug in disableBlockingTx() of F4 USBSerial 2016-06-30 14:02:30 -04:00
Dan Drown b952395216 fix for: PWM on STM32F4 doesn't work right away
Credit to hathach for finding and fixing this:
https://github.com/rogerclarkmelbourne/Arduino_STM32/issues/178

Fixes #178
2016-06-07 20:36:17 -05:00
Martin Ayotte c9ad62fa88 put back original bkp.* files (not symlink) 2015-12-10 12:39:51 -05:00
Martin Ayotte 50ebcc83f5 remove bad bkp.* symlink 2015-12-10 12:38:56 -05:00
Martin Ayotte e1b85b7774 fix LeafLab code for spi_config_gpios() which can't tolerate different GPIOs port for SPI pins 2015-12-09 15:30:58 -05:00
Martin Ayotte 01237a0934 add BKP and RCC changes needed for previous RTClock commit for F4 2015-12-09 15:26:27 -05:00
Martin Ayotte 4909e1f465 change IPAddress::toCharArray() into IPAddress::toString() 2015-09-04 09:54:41 -04:00
Martin Ayotte 82f15f091a convert USBSerial and HardwareSerial to derived from Stream instead of Print 2015-08-11 18:50:38 -04:00
jeremyvnc 416bda020b Added an include of stdlib.h
Needs include of stdlib.h for a compile to take place on the F4 variant.
2015-08-05 15:34:49 -04:00
Roger Clark b8d1cd472a Added missing definition for __always_inline (supplied by @martinayotte) 2015-07-22 14:04:04 +10:00
Martin Ayotte d5dbdb685c fix HardwareSerial::begin by doing gpio_set_af_mode AF8 when devices are UART4 or UART5 2015-07-05 10:15:33 -04:00
Martin Ayotte cfa28a9a75 add new arduino_uip + tweak variants for Netduino2Plus ENC28J60/SPI networking 2015-07-02 13:09:38 -04:00
Martin Ayotte 129a60ad55 update for Stream/Print support under F4 2015-06-14 10:37:05 -04:00
Martin Ayotte 18b5b6eca4 integrate a copy of SPI from STM32F1 into STM32F4 2015-06-13 18:14:51 -04:00
Martin Ayotte 44bfd8ae54 fix SetupClock168() for Netduino2Plus + add STM32Stamp/Netduino2Plus boards + add dfuse_addr in upload 2015-05-28 17:20:49 -04:00
rogerclarkmelbourne a0ca5b6938 Updated F4 to add STM pin numbers and change processor to cortex-m4 instead of cortex-m3 2015-05-06 15:08:34 +10:00
Bob Cousins a5414bb548 Initial support for STM32F4 series, based on AeroQuad codebase. Board variant for STM32F4 discovery (F407VG). Runs blinky! 2014-12-28 14:29:08 +00:00