Commit Graph

1188 Commits

Author SHA1 Message Date
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
lacklustrlabs daf62cafca Removed a redundant buffer constraint 2018-01-21 17:13:17 +01:00
lacklustrlabs 4e820c3649 Full method signatures in header file.
<pet peeve>
I don't understand why anyone wants to remove useful API information from the header file.
CPP files describes implementation details, header files describes the API.
</pet peeve>
2018-01-21 17:13:17 +01:00
lacklustrlabs b9dbeb69d9 Fixed minor example issues 2018-01-21 17:13:17 +01:00
lacklustrlabs 01c23b6a58 Changed type of transmitting to bool (from uint8_t) 2018-01-21 17:13:17 +01:00
lacklustrlabs 4ad4de080f Saved some 50K flash memory by modifying the singleton implementation 2018-01-21 17:13:17 +01:00
lacklustrlabs b46b7461f4 Merged with Wire implementation from stm32duino/Arduino_Core_STM32 2018-01-21 17:13:17 +01:00
lacklustrlabs 78f8a90a2d Fixed a master/slave mode mixup.
Turns out that (sr2&I2C_SR2_MSL)!=I2C_SR2_MSL indicates slave mode after master has requested, and received, data.

"MSL - Cleared by hardware after detecting a Stop condition on the bus or a loss of arbitration
(ARLO=1), or by hardware when PE=0." -RM0008
2018-01-21 17:13:17 +01:00
lacklustrlabs 987102c8d2 Temporarily removed not yet functioning examples 2018-01-21 17:13:17 +01:00
lacklustrlabs c65ec99a8d Updated library.properties 2018-01-21 17:13:17 +01:00
lacklustrlabs 6fe4a55922 Added SoftWire.h 2018-01-21 17:13:17 +01:00
lacklustrlabs 56e95f2773 Steals any reference to Wire.h and redirects it to Wire_slave.h.
This way we don't need to alter third party libraries.
Note that Wire_slave.h must be included **before** the real Wire.h for this to work.
2018-01-21 17:13:17 +01:00
lacklustrlabs c4fdf5aa63 keywords.txt Copied from ArduinoCore-sam (Due) 2018-01-21 17:13:17 +01:00
lacklustrlabs 3425506d19 spellcheccck 2018-01-21 17:13:17 +01:00
lacklustrlabs 730711b80a Made sure Wire_slave.h is included first 2018-01-21 17:13:17 +01:00
lacklustrlabs 4157ef37a1 Removed some accidental adds 2018-01-21 17:13:17 +01:00
lacklustrlabs 0f78c266ed Added Wire_slave.h (no actual i2c slave implementation yet) 2018-01-21 17:13:17 +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 184802c3ad
Merge pull request #411 from victorpv/patch-2
Adding PB2 as in the Generic R and Z versions.
2018-01-21 14:44:40 +11:00
Roger Clark e01a70b040
Merge pull request #424 from BlackBrix-Editor/16MHz-crystal-option
Added support inside the Core, for boards which have a 16Mhz crystal using '#define XTAL16M'. Note, no variants or boards.txt changes have been added to use this feature,
2018-01-21 14:43:40 +11:00
Roger Clark 62c395f776
Merge pull request #425 from BlackBrix-Editor/changed-RAM-length-in-stm32f103vc.ld
Corrected RAM-length = 48kByte in linker file for STM32F103VC
2018-01-21 14:40:17 +11:00
Roger Clark 229fced0e0
Merge pull request #427 from stevstrong/patch-10
Added error LED pin for generic F103C into boards.txt
2018-01-21 14:38:42 +11:00
Roger Clark 98f1efdda3
Merge pull request #407 from tfry-git/work/constexpr2
Fix compilation problem in STM32ADC.h when using in -std=gnu++11
2018-01-21 14:37:40 +11:00
stevstrong 514cf856aa
Update boards.txt
added error LED pin for generic F103C
2018-01-18 11:39:03 +01:00
BlackBrix-Editor d54de1cbb0
corrected RAM-length = 48kByte for STM32F103VC 2018-01-09 12:21:48 +01:00
BlackBrix-Editor 8540c6b08b
option XTAL16M for boards with 16MHz-crystal
tested on STM32F103VE only but surely can be used on other STM32F103xC, STM32F103xD, STM32F103xE with the same clock PLL structure
2018-01-09 11:23:16 +01:00
Frederic.Pillon ac9237248f Replace {build.path}/{archive_file} by {archive_file_path}
See https://github.com/arduino/Arduino/issues/6757#issuecomment-331861565
From @facchinm:
  Replacing {build.path}/{archive_file} with archive_file_path
  should remove the arduino_build_xxxxxx/.. part and make the path
  a bit shorter.

Issue also raised here using BP:
http://stm32duino.com/viewtopic.php?f=3&t=3070

Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
2018-01-09 09:18:36 +01:00
Roger Clark 98fdd47203
Merge pull request #421 from stevstrong/patch-10
Fix bug in OLED_I2C library
2018-01-03 08:25:32 +11:00
stevstrong 63f784ff6f
Update HW_STM32.h
remove static directive
2018-01-02 16:19:31 +01:00
Roger Clark d5c6f63165
Merge pull request #419 from stevstrong/patch-10
Update wirish_debug.cpp - to ONLY reserve SWD pa13 & pa14 SWD, rather than all JTAG debug pins, which also include PB3 and PB4
2017-12-29 21:53:29 +11:00
stevstrong 066dacf797
Update wirish_debug.cpp
reserve SWD lines only for debug
2017-12-29 08:58:57 +01:00
victorpv 09812b4863
Add comment to PB2 pin about boot1 function. 2017-12-17 15:20:07 -06:00
victorpv e64dbc2d47
Add PB2 to enums as in the R and Z Generic boards
Can be used for output
2017-12-16 17:28:00 -06:00
victorpv 951d0acf17
Adding PB2 as in the Generic R and Z versions. 2017-12-16 17:25:57 -06:00
Thomas Friedrichsmeier 63f4162c6c Fix compilation with -std=gnu++11
See https://github.com/rogerclarkmelbourne/Arduino_STM32/issues/402
2017-12-12 10:58:22 +01: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
Roger Clark dbbb6b0c25 Merge branch 'patch-7' of https://github.com/stevstrong/Arduino_STM32 into stevstrong-patch-7 2017-12-10 20:52:20 +11:00
Roger Clark 8d00dcaabd Merge branch 'stevstrong-patch-9' 2017-12-10 20:51:13 +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
Roger Clark f66b9f10f3 Hopefully fixed problem with tone() blocking when it should be non-blocking 2017-12-10 17:07:57 +11:00
Roger Clark c5133eba8f Merge branch 'aster94-master' 2017-12-10 13:21:39 +11:00
stevstrong 000b6ffcd9
Update BluePill-RTClock-test.ino
- small alignment fix.
2017-12-10 02:17:58 +01:00
stevstrong f21895e48d
Update BluePill-RTClock-test.ino
- corrected typo in comments
- reworked serial date input
2017-12-10 02:07:29 +01:00
stevstrong 75f21e3194
Update BluePill-RTClock-test.ino
corrected text alignment (again)
2017-12-09 21:05:47 +01:00
stevstrong f8b7a7ab14
Update BluePill-RTClock-test.ino
make compiler happy
2017-12-09 21:04:07 +01:00
stevstrong e70309ae78
Update BluePill-RTClock-test.ino
- tabs replaced by spaces for a better visual text alignment
2017-12-09 20:56:48 +01:00
stevstrong f245065179
Update BluePill-RTClock-test.ino
- use build time for RTC
- reworked serial monitor output to use sprintf
- some fixes + cosmetics
2017-12-09 20:51:09 +01:00
aster94 e2a62de034
Update i2c_scanner_wire.ino 2017-12-08 10:39:53 +01:00