Commit Graph

37 Commits

Author SHA1 Message Date
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
stevstrong 073aa23ed2 Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' 2016-10-16 23:02:16 +02:00
Roger Clark 0e6b2000c8 Merge branch 'bubulindo-master' 2016-10-16 13:19:37 +11:00
jaretburkett f9301a6acf USB core and CDC fixes 2016-10-13 07:06:29 -05: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
stevstrong 43b3376881 Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master' 2016-09-23 17:07:49 +02:00
stevstrong 5cf0ba699c corrected ADC_CR2_TSVREFE definition 2016-07-25 23:53:09 +02:00
edogaldo d353dd3022 Slight changes 2016-07-19 12:56:11 +02: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
Roger Clark c0719c3a1d Added experimental support for generic GD32F103C inside the STM32 tree 2016-05-05 17:36:16 +10:00
Rick Kimball f9aa37ed01 fix compiler warnings related to __always_inline 2016-05-03 13:04:54 -04:00
Roger Clark 8c1e061efc Apply fix, provided by @Slammer, for issue with USB Serial on GCC 4.9 2016-04-19 19:42:07 +10:00
stevstrong 796dc93ab9 re-added previously deleted EXTSEL defines 2015-11-03 13:43:59 +01:00
stevstrong 42659ebbb0 added defines of external event selections for regular and injected groups 2015-10-30 14:12:38 +01: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
rogerclarkmelbourne 912098d5b8 Updated with commits that had been applied to Leaflabs:libmaple since the original copy of the repo was taken (by BobC) in Nov 2014 2015-05-31 18:06:19 +10:00
rogerclarkmelbourne fd224ab288 Added working version of RTClock, thanks to Ray and @ahull etc 2015-05-23 11:19:16 +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