Commit Graph

47 Commits

Author SHA1 Message Date
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 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
edogaldo f660163a6f Fix SCB_AIRCR_PRIGROUP
As per Issue #479
2018-04-04 16:04:42 +02: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
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
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 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
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
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
stevstrong 073aa23ed2 Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' 2016-10-16 23:02:16 +02:00
Roger Clark 9147a461e7 Merge branch 'master' of https://github.com/bubulindo/Arduino_STM32 into bubulindo-master 2016-09-26 10:42:42 +10:00
Bubulindo 5c13d8b0d4 Addition of a better way to deal with the Onboard ADC.
This modification adds support for a STM32ADC library. There are a
couple of examples on how to use it. The library allows usage of the
ADC with DMA in circular mode or scan mode, it allows the ADC to be
used in scan mode. And also to use the EOC interrupt.
More functionality needs to be added and will be in time.

Eventually the util files will be moved into the adc files in the core.
2016-09-23 16:35:18 +01:00
edogaldo 7ba9065895 Fix HardwareSerial::flush() 2016-07-18 11:49:46 +02:00
edogaldo 51d2d9e0d9 F1 USART - buffered interrupt-based TX (static TX buffer)
usart.h: statically define TX buffer like RX buffer. TX buffer size
defined in USART_TX_BUF_SIZE
usart.h: add function usart_reset_tx() to reset TX buffer (same as for
RX bufferI)
usart.c: usart_init() changed to init TX buffer
usart.c: usart_disable() changed to reset TX buffer
usart.c: usart_tx() changed to use TX buffer and manage interrupt TXEIE
usart_f1.c: changed to instantiate TX buffers
usart_private.h: changed interrupt handler to manage TXEIE
2016-07-11 12:52:24 +02:00
Rick Kimball f9aa37ed01 fix compiler warnings related to __always_inline 2016-05-03 13:04:54 -04:00
Bubulindo 73f2301cad Timer as Encoder
Added support to use HardwareTimer as an encoder input
2015-09-11 15:24:37 +01:00
Roger Clark 88d2457f30 STM32F1 core: Implemented changes already made to the GD32F1 core to use F_CPU instead of hard coded values for 72000000 and (F_CPU -1) instead of 71999999 and to replace other hard coded values related to the clock freqency. Also updated the code so that the USB clock was disabled in setup_clock_prescalers to allow it to be changed in that function during initialisation, in case altermative prescaler values for USB are required, e.g. for operation at 48Mhz 2015-09-06 07:51:40 +10:00
victorpv 7564830669 Edits to move pinmap to flash
Initial comit, not tested, but copied from previous working folder.
2015-08-25 00:02:57 -05:00
Roger Clark d8996970ed Update timer.h
Changed TIMER_SMCR_TS and TIMER_SMCR_SMS as recommended by @Victor_PV
2015-08-23 14:50:33 +10:00
rogerclarkmelbourne ece9c3681d Added code to 'get' the gpio mode of a pin, and have used it in SPIClass::begin() to store and reinstate the pin mode of the SPI NSS pin. This is a work around for 'features' in the STM32 silicon, which seem to change the GPIO mode of the SPI NSS (hardware - 'Software Select' pin) 2015-06-10 10:25:22 +10:00
Roger Clark 61ef2bca74 Started work on new variants and fixed a few other minor issues 2015-03-04 08:27:47 +11:00
Roger Clark 5f83c13285 renamed top level folder STM32F1XX to STM32F1 to correspond to other top level folder names e.g. STM32F3 and STM32F4 2015-02-24 20:13:04 +11:00