Commit Graph

74 Commits

Author SHA1 Message Date
stevstrong 2ae184754b
Update dma.h
small correction
2018-07-02 10:32:21 +02:00
stevstrong 8050dbfa58
F1: added function dma_get_count 2018-07-02 10:30:17 +02:00
Roger Clark 9d46a1c27d Alternative fix for issue #532 2018-06-23 17:00:17 +10:00
Roger Clark 141bcd2ad1 Attempt to add availableForWrite() to USB Serial 2018-05-27 16:26:19 +10:00
stevstrong cd4085b239
Merge branch 'master' into patch-12 2018-04-13 18:29:38 +02:00
stevstrong 50ed00effc
Update timer.h
fix compile error
2018-04-13 18:26:45 +02:00
Roger Clark 479cfc1fb4 Removed unused ErrorStatus enum from usb_type.h as its redundant and the definition of SUCCESS clashed with other definitions 2018-04-13 16:47:15 +10:00
Roger Clark 7ef6e71a78 Add flash wait state optimisation from @tomtor 2018-04-13 14:52:55 +10:00
Roger Clark 314ce02bd0 Merge branch 'sdio-updates' of https://github.com/victorpv/Arduino_STM32 into victorpv-sdio-updates 2018-04-13 13:48:10 +10:00
victorpv 0197d63dc0 Multiple updates to SDIO library
Changes __io for __IO
Increase the time for some delays
Adds compatibility with SdSdioEX class while using DMA
Implement a retry mechanism (needs further testing)
Implement command ACMD42 to disconnect the sd internal pullup in D3 in
4bit mode
2018-04-12 22:30:37 -05:00
Roger Clark c9a694b779 Revert #491 2018-04-12 17:59:03 +10:00
stevstrong 407df21dfb
Update timer.h
fix for dfb5bd4c30,
see issue #412 [https://github.com/rogerclarkmelbourne/Arduino_STM32/issues/412]
2018-04-12 08:29:49 +02:00
Roger Clark 0e17c642a0
Merge pull request #480 from edogaldo/Fix-SCB_AIRCR_PRIGROUP
Fix SCB_AIRCR_PRIGROUP
2018-04-08 13:35:13 +10:00
victorpv ef2f5b53d7
Need to define STM32_HAVE_FSMC as 0
Forgot to include that.
2018-04-05 22:04:28 -05:00
victorpv 21bdc4ad13
Update to fix FSMC inclusion in Rx devices
The FSMC is only available in high density and XL density devices with more than 4 ports.
Basically excluded in the RC/D/E/F/G models, since they dont have enough pins.
Page 11 in the Datasheet references this. The table shows what is present, and shows the FSMC is NOT present in Rx MCUs:
http://www.st.com/content/ccc/resource/technical/document/datasheet/59/f6/fa/84/20/4e/4c/59/CD00191185.pdf/files/CD00191185.pdf/jcr:content/translations/en.CD00191185.pdf

Recent changes to other files highlight this issue during compilation time. The issue was already there, but GPIO E and GPIO F were declared and defined, while they don't actually exist in Rx MCUs, so FSMC was being included for those MCU even though they don't actually have an FSMC device, or at least no external ports to use it. 
With the recent changes GPIO E and F and correctly excluded from the build, but since FSMC was still included and needs GPIO E and F, it was failing to compile. I.e.:
C:/Users/Victor/Documents/Arduino/Hardware/Arduino_STM32/STM32F1/cores/maple/libmaple/fsmc_f1.c:51:19: error: 'GPIOE' undeclared (first use in this function)

Since the FSMC is not available (I suspect the silicon is there, but there is no IO pins to use it), the correct solution is to include FSMC only when using an MCU with more than 4 GPIO ports, which is what matches the datasheet.
2018-04-05 21:54:05 -05:00
edogaldo f660163a6f Fix SCB_AIRCR_PRIGROUP
As per Issue #479
2018-04-04 16:04:42 +02:00
Roger Clark 17248cd803 Merge branch 'master' of https://github.com/MackPI/Arduino_STM32 into MackPI-master 2018-04-01 16:29:21 +10:00
Roger Clark 9fcd06e879 Merge branch 'stevstrong-patch-7' 2018-04-01 15:48:28 +10:00
Roger Clark a05944eda8 Merge branch 'patch-7' of https://github.com/stevstrong/Arduino_STM32 2018-04-01 15:30:59 +10:00
Roger Clark d94f864979 Merge branch 'SDIO_patch' of https://github.com/victorpv/Arduino_STM32 into victorpv-SDIO_patch 2018-04-01 15:26:04 +10:00
Roger Clark 845508ee19 Merge branch 'aster94-master' 2018-04-01 15:03:36 +10:00
victorpv c693d0038e Some more SDIO corrections and improvements 2018-03-28 22:19:47 -05:00
MackPi 33736462f6 Added Variant STM32F103VB
Added Board Varient STM32F103B.
Replaced #ifdef STM32_HIGH_DENSITY
with #if STM32_NR_PORTS > 4
Where it makes sense for High Pin count medium density parts like the
STM32F103VB.
2018-02-15 22:36:42 -08:00
Roger Clark f928acf193 Add InputCapture and OnePulse functionality from @stevestrong 2018-02-13 18:34:15 +11:00
Roger Clark c063a916fd Revert "Added Timer 'Input Capture' support and example"
This reverts commit 36bd1be387.
2018-02-11 21:35:31 +11:00
stevstrong 66092e6e39
Update timer.h
corrected mask for OCxM bits in CCMR1/2 registers (see RM0008 rev.16 p. 413)
2018-02-10 18:45:03 +01:00
Roger Clark 36bd1be387 Added Timer 'Input Capture' support and example 2018-02-10 14:47:33 +11:00
Vincenzo Gibiino 632af3ec9f stm32duino now uses __IO 2018-01-24 20:33:11 +01:00
lacklustrlabs 388995efbb Adhere to the format of #323 2018-01-23 13:07:42 +01:00
lacklustrlabs 2b6e139884 According to STM32F103 RM0008: TIMx_CCMR1::CC2S=01 -> channel is configured as input, IC2 is mapped on TI2. 2018-01-23 13:07:42 +01:00
Roger Clark 9cd2f3a743 Manually committed changes from https://github.com/rogerclarkmelbourne/Arduino_STM32/pull/401, as that PR included changes to permissions on unrelated files in the tools 2018-01-21 15:34:24 +11:00
Roger Clark 1cc4f79191 Moved atomic.h for better AVR compatibility 2017-12-11 09:05:38 +11:00
Roger Clark 3f7db854e4 Moved atomic.h for better AVR compatibity 2017-12-11 09:03:19 +11:00
stevstrong 87d1b1fdb7
Create new file "atomic.h"
as discussed here: https://github.com/rogerclarkmelbourne/Arduino_STM32/issues/403, taken from http://www.stm32duino.com/viewtopic.php?f=3&t=258&start=10
2017-12-10 09:35:48 +01:00
lacklustrlabs 8d9e2f24b6 Suppressing 'warning: unused parameter ... [-Wunused-parameter]' 2017-11-15 23:19:31 +01:00
stevstrong dfb5bd4c30
Update timer.h
- clear the IRQ flag before enabling the IRQ
2017-11-13 13:02:27 +01:00
victorpv 7e1cc92d23 SDIO 2017-09-11 21:28:07 -05:00
Roger Clark 0a9d06b5e5 Fix typo in dma.h (thanks to @stevestrong) 2017-08-03 09:28:14 +10:00
Roger Clark d4103b8cd1 Merge pull request #294 from tomtor/fix-doc
Fix documentation for usart_putc()
2017-07-03 15:36:23 +10:00
Roger Clark e4f598683c Merge pull request #262 from victorpv/timer_dma
Timer dma from @victorpv
2017-07-03 15:30:14 +10:00
Roger Clark 8477fba5d5 Merge branch 'master' into stevstrong-F1_SPI_development 2017-06-06 20:54:17 +10:00
Tom Vijlbrief 84dd916230 Fix documentation for usart_putc() 2017-05-25 20:53:24 +02:00
Roger Clark ccddc1f354 Merge branch 'master' of https://github.com/rogerclarkmelbourne/Arduino_STM32 2017-05-25 20:07:48 +10:00
Roger Clark c6fe342d0f Add prototype for systick_attach_callback (thanks to @ag123) 2017-05-25 17:59:48 +10:00
edogaldo 3d5c54e344 Make HardwareSerial.flush() compatible with Arduino 1.0 api 2017-05-16 00:00:59 +02:00
stevstrong 83e5f48322 remove "deprecated" flag from dma_setup_transfer
remove deprecated flag
2017-04-13 22:34:37 +02:00
victorpv e7abad654e Timer DMA functions.
Adding 2 functions to enable and disable Timer peripheral DMA requests
on update event.
2017-03-26 14:33:48 -05:00
Roger Clark 8345e6f075 Copied individual files from @stevestong master 2016-11-10 20:06:23 +11:00
stevstrong 4bc4b1d6bd remove unused functions + adapt passed parameter
- remove unused functions form usb_reg_map
- change passed buffer type to uint8 *
2016-10-31 22:12:04 +01:00
stevstrong 0ec7e72b01 improved USB serial Rx and implemented buffered Tx 2016-10-21 22:31:27 +02:00