Roger Clark
0f3c6e5854
Merge pull request #278 from syfre/master
...
Enhancements and fixes to use ADC in continuous mode triggered by an internal timer
2017-07-16 08:45:38 +10:00
Roger Clark
54dd788f2b
Fix warning caused by commit #f7a576f2e0efcee958bdfd737d9af7a2f6c76051
2017-07-06 10:57:20 +10:00
Roger Clark
f7a576f2e0
Fixed issue with PB10 being set to OUTPUT for use as a USB Disconnect control on boards which do not have the additional USB disconnect hardware e.g. the Blue Pill. Note. Some variants seem to have the disconnect control on another pin, so I did not change those in case they were actually used
2017-06-25 13:08:30 +10:00
Roger Clark
8477fba5d5
Merge branch 'master' into stevstrong-F1_SPI_development
2017-06-06 20:54:17 +10:00
syfre
30d1bf4900
Fix, add ADC_CR2_EXTTRIG to adc_set_extsel() to enable the external trigger mode
2017-05-06 23:02:54 +02:00
Oleksandr Masliuchenko
0590f27afa
Compiler warning fixed
2017-04-22 16:27:30 +03:00
stevstrong
83e5f48322
remove "deprecated" flag from dma_setup_transfer
...
remove deprecated flag
2017-04-13 22:34:37 +02:00
stevstrong
e7456e1916
further optimizations
...
- extend read function to 16bit
- add repeated write the same byte/word a specified number of time
- revert increment option to dmaSend
2016-12-10 22:36:21 +01:00
stevstrong
b2e349ca36
Revert "Revert "improve SPI low level functions""
...
This reverts commit 3469ef291b
.
2016-11-11 22:12:13 +01:00
stevstrong
3469ef291b
Revert "improve SPI low level functions"
...
This reverts commit 5db2523284
.
2016-11-11 22:04:16 +01:00
Roger Clark
8345e6f075
Copied individual files from @stevestong master
2016-11-10 20:06:23 +11:00
stevstrong
5db2523284
improve SPI low level functions
...
- optimize code and run-time
2016-10-31 22:29:40 +01: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
stevstrong
d0c5a952b0
Revert "solve sync problems"
...
This reverts commit fca26524a9
.
2016-10-16 22:57:44 +02:00
stevstrong
fca26524a9
solve sync problems
2016-10-16 22:55:40 +02:00
stevstrong
a40898dbfe
try to sync
2016-10-16 22:42:37 +02:00
stevstrong
19e89fd269
revert to Jaret's version
2016-10-16 20:14:11 +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
stevstrong
6d4965b5c8
improve USB serial Rx speed + make USB serial Tx blocking to avoid overflow
2016-10-12 19:18:38 +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
0b34af3b6a
Minor bug fixes now that I have a ZET6
...
While using a different board, I realized that I did not configure the
ADC on all variants and there is a minor bug on the irq_num for
advanced 103 devices.
2016-09-25 13:14:12 +01: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
efbbe6a4be
Merge remote-tracking branch 'refs/remotes/rogerclarkmelbourne/master'
2016-07-25 23:22:02 +02:00
edogaldo
d353dd3022
Slight changes
2016-07-19 12:56:11 +02:00
edogaldo
3a5f8cfc1b
Wait for TX completed in usart_disable()
2016-07-14 19:14:56 +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
Roger Clark
246a172250
Merge branch 'master' of https://github.com/geekylou/Arduino_STM32 into geekylou-master
2016-03-01 16:21:28 +11:00
Louise Newberry
20331cea64
Make sure both USB_ISTR_SUSP & USB_ISTR_WKUP are both cleared when USB susppends or resumes. This is required as when we see a suspend event it looks like we immediately afterwords trigger a resume from the bit being set previously.
2016-02-13 11:35:44 +00:00
stevstrong
4932a309f2
reworked update SPI settings
...
remove entirely the disturbing glitches on SCK line
2015-12-06 16:15:00 +01:00
stevstrong
b920cdc6a2
serial config when parity is enabled
...
When parity enabled the word length must be increased (CR1 bit 12 set).
Word length of 9 bit with parity is not supported.
2015-11-19 21:11:45 +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
Fergus
572b311c3a
Fixed formatting to match existing style + Hardwire comments
2015-08-01 19:09:43 +01:00
Fergus
3b8b7a79f4
Bugfix for HardWire/I2C + configured/compiled dfu-util to work on Linux again
...
- Fixed 0 byte payload bug, stopping HardWire from sending only addresses to scan for devices
- Fixed I2C bug accessing wrong status register for error flags
- Improved Hardwire endTransmission() return flags to correspond with the actual I2C failure status
- Removed dos endings from dfu-util autogen script breaking compilation
2015-08-01 18:58:14 +01:00
Roger Clark
6d18be66ad
Move Timer ISR handlers from timer_f1.c to timer.c to resolve linker issue in which some ISR's were not being linked even though they were being used
2015-07-05 22:38:47 +10:00
Roger Clark
657d6dae02
Alternative / better fix provided by @pico based on work by @victor_pv. Commented out AF REMAP of NSS in spi_f1.c
2015-06-10 10:33:13 +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
f337329c89
Undid changes to isrs.s from last merge (its not practical to undo the remove, its easier just to replace the file in question with the older / working version
2015-06-02 08:05:32 +10:00
rogerclarkmelbourne
97604fe455
Replaced isrs.s with new version from victor_pv with improved system for weak refs to isr handlers
2015-06-01 19:19:37 +10:00
victorpv
164c8065c8
Weakrefs used instead of weaks in isrs.S
2015-05-31 09:10:31 -05:00
rogerclarkmelbourne
39787f73e7
Changed isrs.s with update from Rick Kimball to fix issue with hardware timers when not using the --whole-archive flag in the build flags. also changed platform.txt to remove --whole-archive
2015-05-26 14:50:37 +10:00
Roger Clark
6fec429e99
Made new generic STM32F103C board variant based on Maple mini. This is a work in process. It seems to work, but needs more tidying up ;-)
2015-04-14 20:18:37 +10:00
Roger Clark
f21592574f
Added serial config parameter support to HardwareSerial :: begin(), so that word length (of 8 or 9 bits), parity (None, Even or Odd) and 1 or 2 stop bits can now be set. Note the STM32 doesnt support all the word lengths supprted by AVR or SAM e.g. the hardware doesnt support 5,6 or 7 bit word lengths.
2015-03-04 22:59:11 +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