Commit Graph

957 Commits

Author SHA1 Message Date
lacklustrlabs 908a57a28e Suppressing 'warning: missing initializer for member ... [-Wmissing-field-initializers]' 2017-11-15 22:56:00 +01:00
Roger Clark a7503e1d30
Merge pull request #371 from LightningStalker/master
Update BlinkNcount.ino to use LED_BUILTIN rather than a pin number (which is specific to one board).
Note. LED_BUILTIN needs to be defined for some variants where its missing
2017-11-14 09:18:41 +11:00
Roger Clark 3ff1b8000c
Merge pull request #377 from albertoa/patch-1
Solve race condition, on Linux, where the Arduino IDE has the serial port (monitor) open when upload is selected
2017-11-14 09:15:11 +11:00
Roger Clark 98b3d247cd
Merge pull request #376 from stevstrong/patch-4
Update boards.txt to fix issue with duplicate lines in Maple mini for clock speed selection
2017-11-14 09:13:34 +11:00
Roger Clark bb75679b54
Merge pull request #375 from stevstrong/patch-3
Update timer.h to fix issue with false interrupt when first enabling it
2017-11-14 09:12:11 +11:00
Alberto Alonso 9b03f0841d
Solve race condition with arduino IDE monitoring serial port
I encountered a race condition upon which, even though the udev rules were working and uploads succeed, the serial monitor can not re-establish communications.

If the serial monitor is left open when doing an upload the error shown is:

[...]
Copying data from PC to DFU device
Starting download: [##################################################] finished!
state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present
Done!
Resetting USB to switch back to runtime mode
Waiting for /dev/ttyACM0 serial...Done
processing.app.SerialException: Error opening serial port '/dev/ttyACM0'. Try consulting the documentation at http://playground.arduino.cc/Linux/All#Permission
	at processing.app.Serial.<init>(Serial.java:145)
	at processing.app.Serial.<init>(Serial.java:82)
	at processing.app.SerialMonitor$4.<init>(SerialMonitor.java:101)
	at processing.app.SerialMonitor.open(SerialMonitor.java:101)
	at processing.app.AbstractMonitor.resume(AbstractMonitor.java:104)
	at processing.app.Editor.resumeOrCloseSerialMonitor(Editor.java:2218)
	at processing.app.Editor.access$2200(Editor.java:79)
	at processing.app.Editor$DefaultExportHandler.run(Editor.java:2196)
	at java.lang.Thread.run(Thread.java:748)
Error opening serial port '/dev/ttyACM0'. Try consulting the documentation at http://playground.arduino.cc/Linux/All#Permission

I traced it to the device being opened prior to the permissions/ownership changes.

When testing via -c the upload script waits for the character device creation, but at that point the udev rules have not changed the permissions. By testing the readability of the device via the -r test, we wait until the new permissions have been applied.

I imagine this is specific to the Linux kernel and the speed of the machine being used. In my case:
arduino-1.8.5
Linux 4.4.0-98-generic #121-Ubuntu SMP
but the change should work on any system with proper udev rules / permissions.
2017-11-13 12:15:07 -06:00
stevstrong 85f159b3a5
Update boards.txt
remove duplicated lines
2017-11-13 13:06:52 +01:00
stevstrong dfb5bd4c30
Update timer.h
- clear the IRQ flag before enabling the IRQ
2017-11-13 13:02:27 +01:00
Roger Clark c66ca2ae9c Fixed #273 2017-11-13 12:55:05 +11:00
Roger Clark c5caa5d288 Fixed missing definition of digitalPinToInterrupt, by adding macro which simply uses the pin number - as it doesnt need to be mapped 2017-11-13 12:03:19 +11:00
Roger Clark 9b4122ecaf Fixed exmple for HardTimerAsEncoder being in wrong location 2017-11-13 11:56:13 +11:00
LightningStalker fd00f02072 Update BlinkNcount.ino to use LED_BUILTIN 2017-11-10 04:10:31 -05:00
aka. N[]NE in gaming communities de56edb5b0
Merge pull request #1 from rogerclarkmelbourne/master
Changed serial upload speed to 115200 as this speed is compatible wit…
2017-11-10 03:36:08 -05:00
Roger Clark c5ed88921e Changed serial upload speed to 115200 as this speed is compatible with most USB to Serial adaptors 2017-11-08 15:29:25 +11:00
aka. N[]NE in gaming communities 15d12bee18
Update BlinkNcount.c
Changed pin to PC13
2017-11-06 19:00:41 -05:00
aka. N[]NE in gaming communities 15ce8137b9
Update BlinkNcount.ino
Uses `#define` for LED pin instead of 5 literals
2017-11-06 08:55:32 -05:00
Roger Clark 2c33a02371 Correct argument type bug in utoa (itoa.c itoa.h) See PR #271 2017-11-02 17:50:34 +11:00
Roger Clark 7ee4350e99
Merge pull request #369 from stevstrong/patch-2
Update tone.cpp to fix issue if no duration was passed etc
2017-11-02 17:14:41 +11:00
stevstrong e14c83fe8d
Update tone.cpp
- make tone() blocking for the input duration time
2017-11-01 15:24:04 +01:00
Roger Clark 44d5894c3d Merge branch 'master' of https://github.com/rogerclarkmelbourne/Arduino_STM32 2017-10-31 20:06:29 +11:00
Roger Clark 4a3e23949b Added DMA enable and disable functions to hardware timers, thanks to @stevstrong 2017-10-31 20:05:31 +11:00
Roger Clark a03c84a635
Merge pull request #362 from csnol/master
Add TimeZone(UnixTime, HourOffset, MinuteOffset)
2017-10-31 19:53:33 +11:00
csnol 588f9db697 update 2017-10-19 18:31:23 +08:00
csnol 4870e27855 Update 2017-10-19 17:26:42 +08:00
csnol c741afa74a Update TimeZone function
Add  TimeZone(UnixTime, HourOffset, MinuteOffset)
2017-10-19 17:23:48 +08:00
Roger Clark cd7b7d76e4 Merge pull request #360 from Squonk42/master
Added missing SDIO pins for F103V and F103Z
2017-10-19 09:11:53 +11:00
Michel Stempin 80ae49dd50 Added missing SDIO pins for F103V and F103Z 2017-10-18 22:04:54 +02:00
csnol 9f5cdd2d24 updated 2017-10-18 21:45:19 +08:00
csnol a89d0b935b Half-hour TimeZone supported 2017-10-18 21:42:31 +08:00
Roger Clark 05f008acbe Merge pull request #334 from csnol/master
Update F103 RTClock library for RTC sketch.
2017-10-10 13:38:08 +11:00
Roger Clark 3c2fce63ee Update ILI9341 STM lib with version from SteveStrong, and also added ReadPixelsRGB24 to steve's version 2017-10-08 14:26:59 +11:00
Roger Clark 84d9c2bd20 Fixed issue in OLED_I2C lib caused by change to HardWire as default I2C 2017-10-08 14:03:20 +11:00
Roger Clark de236867c0 Merge pull request #333 from stevstrong/patch-2
Update RTClock.cpp [F4]
2017-10-08 11:07:50 +11:00
Roger Clark b4aa24ef82 Merge pull request #339 from victorpv/patch-3
F1 SDIO first version
2017-10-08 11:06:04 +11:00
Roger Clark c12ad246a6 Merge pull request #342 from stevstrong/patch-3
Create hooks.c [F4]
2017-10-08 11:03:29 +11:00
Roger Clark 6ce1fd2e93 Merge pull request #346 from stevstrong/patch-4
Update graphicstest.ino [Adafruit_ILI9341_STM]
2017-10-08 11:03:08 +11:00
Roger Clark 0ca038df51 Merge pull request #347 from stevstrong/patch-5
Update onoffbutton.ino [Adafruit_ILI9341_STM]
2017-10-08 11:02:44 +11:00
Roger Clark d9d6e9e462 Merge pull request #348 from stevstrong/patch-6
Update onoffbutton_breakout.ino [Adafruit_ILI9341_STM]
2017-10-08 11:02:31 +11:00
Roger Clark dcfa250bfb Merge pull request #349 from stevstrong/patch-7
Update spitftbitmap.ino [Adafruit_ILI9341_STM]
2017-10-08 11:02:15 +11:00
Roger Clark f7759f82c8 Merge pull request #350 from stevstrong/patch-8
Update touchpaint.ino [Adafruit_ILI9341_STM]
2017-10-08 11:02:02 +11:00
Roger Clark fec8ecc2f4 Merge branch 'greiman-SPI_const_qualifier' 2017-10-08 11:00:48 +11:00
Roger Clark 9e539cea4f Merge branch 'SPI_const_qualifier' of https://github.com/greiman/Arduino_STM32 into greiman-SPI_const_qualifier 2017-10-08 10:58:11 +11:00
Roger Clark 347a1e3b46 Merge pull request #352 from sweetlilmre/master
Removed deprecated functionality from Print class for BYTE "base"
2017-10-08 10:56:51 +11:00
Roger Clark 14a5582800 Merge pull request #353 from victorpv/patch-2
Update to util_adc.c file to pass pointer correctly.
2017-10-08 10:54:40 +11:00
Roger Clark fd7bd9595a Merge pull request #354 from stevstrong/patch-9
Update boards.cpp [F4] - remove repeated call to setup serial USB
2017-10-08 10:54:23 +11:00
stevstrong 308b5c410f Update boards.cpp
- remove repeated call to setup serial USB
2017-10-06 18:04:56 +02:00
stevstrong ac7ccee71f Update touchpaint.ino
changed to correct header file
2017-10-04 11:11:05 +02:00
victorpv 31fa24bdd1 Update to util_adc.c file to pass pointer correctly.
This was wrong and causing warnings during compilation.
2017-10-04 00:29:13 -05:00
Peter Edwards f65e6905e9 Removed non standard functionality from Print class for BYTE "base" as this is available via e.g. Serial.write and conflicts with the FatFS library and potentially anything else defining BYTE
Fixed sketches using this behaviour
2017-09-28 12:08:59 +02:00
Bill Greiman 7fda02a821 SPI add const qualifier
Add const qualifier to SPI member function arguments for write and
transmit buffers.
2017-09-22 10:40:05 -07:00