Commit Graph

569 Commits

Author SHA1 Message Date
Bob Cousins adf9d109dc Update all linker files to ensure first word in data RAM is 0 2015-01-04 20:23:37 +00:00
Bob Cousins a929cdc23a Ensure that first word of RAM is set to 0. 2015-01-03 15:29:04 +00:00
Bob Cousins 00386de792 Move libmaple from variants/xxx to cores/maple 2015-01-03 15:28:31 +00:00
Roger Clark 068c44f36b Merge pull request #17 from taoyuan/master
Moved dfu_util location on OSX to match install location of files if Homebrew is used to install. The wiki has been updated to include instructions to use Homebrew to install DFU-Utils
2015-01-01 08:46:53 +11:00
Roger Clark 33acfacb46 Merge pull request #18 from bobc/master
Set file permissions on linux/maple_upload to 755
2014-12-31 08:25:11 +11:00
Bob Cousins 9e46a4ecc4 Set file permissions on linux/maple_upload to 755 2014-12-30 12:45:25 +00:00
Tao Yuan 25383c7185 fixed dfu_util location on osx 2014-12-30 18:08:02 +08:00
Roger Clark b1964dde17 Added examples provided by Ray aka MrBrunette 2014-12-30 14:04:35 +11:00
Roger Clark a6bf8a4bd7 Changed examples that use SerialUSB to use Serial, also fixed bug associated with use of the reserved word 'index' as a variable name 2014-12-30 11:36:32 +11:00
Roger Clark d172043e49 Fixed issue cause by comments in platform.txt on Linux 2014-12-30 10:18:15 +11:00
Roger Clark 850413e13d Added files and made changes to support linux upload 2014-12-30 08:26:50 +11:00
Roger Clark 9ead72e0af Added extern C wrapper around yield() 2014-12-30 07:47:10 +11:00
Roger Clark 90e6ae40e9 Revert "Move libmaple/* from variants to cores"
This reverts commit a3065b0c00

which resulted in Maple and maple mini boards not running / starting code after upload
2014-12-30 07:10:04 +11:00
Roger Clark d188c06504 Added missing (dummy) functions attach and detach interrupt to SPIClass (taken from SAM version), and added hooks.c for yield function. Note. use of yield() at the moment isn't possible, because the linker seems unable to find the function even though hooks.c is being compiled 2014-12-29 16:51:35 +11:00
Bob Cousins 907db363d1 Fix for issue #13 2014-12-28 18:23:44 +00:00
Bob Cousins 7094e831d0 Fix for issue #13 2014-12-28 18:23:02 +00:00
Bob Cousins a5414bb548 Initial support for STM32F4 series, based on AeroQuad codebase. Board variant for STM32F4 discovery (F407VG). Runs blinky! 2014-12-28 14:29:08 +00:00
Bob Cousins db7e9ee191 Merge remote-tracking branch 'upstream/master' 2014-12-28 10:26:58 +00:00
Bob Cousins fd450f27eb Add linker flags to resolve weak symbols correctly 2014-12-27 10:28:32 +00:00
Roger Clark 37d6f13990 Added upload via STLink - currently not used 2014-12-27 12:51:14 +11:00
Roger Clark b6146f25bf Changed definition of word type to match Due 2014-12-26 09:11:48 +11:00
Roger Clark a276f6184c Merge branch 'master' of https://github.com/bobc/Arduino_STM32 2014-12-26 08:02:51 +11:00
Roger Clark 5431969b3d Added missing typedef for the word data type to wirish.h 2014-12-26 07:55:24 +11:00
Bob Cousins a3065b0c00 Move libmaple/* from variants to cores 2014-12-25 13:07:45 +00:00
Bob Cousins 1eb90acf81 Enable faster builds; remove -MD flag from boards flags and add -MMD to platform flags 2014-12-25 11:42:18 +00:00
Roger Clark 33707ecb0a Added SPI_CLOCK_DIV1 to give 18Mhz SPI (as requested by Alexey - @HiddenPilot on the Arduino forum) 2014-12-25 14:45:00 +11:00
Roger Clark 488a344693 Added comments to support the theory that setDataMode numbers appear to be the same on the AVR as they are on the STM32, so I'll assume this is OK until someone tests it (somehow) and lets me know its not working ;-) 2014-12-24 19:58:47 +11:00
Roger Clark f70c503d2f Merge branch 'master' of https://github.com/IanHarvey/Arduino_STM32 2014-12-24 19:30:22 +11:00
Roger Clark 37659f115f minor change so the SPI rates below 1.25 mhz are not available as this may cause an ASSERT in the leaflabs code 2014-12-24 17:58:38 +11:00
Roger Clark 2f94a04c0c implemented setClockDivider and setBitOder, also started work on setDataMode - however this probably doesn't work correctly at the moment unless using mode0, because I have not worked out the mapping between the AVR mode numbersd and what the STM32 requires 2014-12-24 17:53:56 +11:00
Ian Harvey 9de8d1d058 microduino: Add OS X version of maple_upload script
Currently this is a wrapper around dfu-util; tested with
dfu-util-0.7.mpkg, e.g.
https://code.google.com/p/companion9x/downloads/detail?name=dfu-util-0.7.mpkg
2014-12-23 15:46:14 +00:00
Ian Harvey 5546e20d0c microduino: assign correct port values to GPIO pins 2014-12-23 15:13:11 +00:00
Ian Harvey c5c58e253d Add microduino variant as copy of maple_mini 2014-12-23 10:21:28 +00:00
rogerclarkmelbourne e5c795f0f7 removed the #if false in the Maple variant usb_cdcam.c which I wrongly thought needed to be removed from build as it was clashing with other code, but this was a mistake, and this file is needed for the Maple build 2014-12-23 18:10:03 +11:00
Roger Clark c2d5ac0a1f Added missing operator bool to USBSerial. Note. Its odd that I'd not spotted this was missing as I added it to HardwareSerial ages ago 2014-12-21 18:08:16 +11:00
Roger Clark 98c772079e Added new menu items by Alexey (@HiddenPilot) 2014-12-19 08:31:49 +11:00
Roger Clark a327d7bd38 Removed redundant / junk files 2014-12-05 21:17:45 +11:00
Roger Clark 53f84108d6 Added empty / placeholder files, required my some libraries, specificially Adafruit_ST7735. This is a work in progress and doesn't allow this library to work, as SPI needs to be updated and also the library needs code changed to its header file 2014-12-05 20:58:27 +11:00
Roger Clark 0004e11a25 Fixed issue for Maple-mini to RAM - thanks to bug report and fix from @HiddenPilot on the Arduino forum 2014-12-05 20:10:08 +11:00
Roger Clark 31349f5aec Fixed issue caused by renaming SerialUSB to Serial for non Maple boards - i.e double definition of Serial 2014-12-05 09:29:11 +11:00
Roger Clark 98a44d8744 forgot to save all files before I commited the last change 2014-12-04 21:43:54 +11:00
Roger Clark cd3a72a54d Changed Serial.read() to non blocking and retuns -1 if no char available (Like the 1.0.x API) 2014-12-04 21:31:05 +11:00
Roger Clark 4fdce817a4 Finished Serial.peek() and Serial.flush(). Also changed SerialUSB tgo Serial for Maple and Maple Mini builds for increased compatibility with the Arduino 1.0.x API 2014-12-04 21:11:38 +11:00
Roger Clark e0179c57fa Partially complete work to bring SerialUSB to Arduino 1.0 API. Still need to write code for SerialUSB.flash and SerialUSB.peek 2014-12-04 08:08:49 +11:00
Roger Clark 79668ed667 Put fix for D: drive (etc) use into maple_upload.bat, that had previously only been added to serial_upload.bat 2014-12-04 07:07:23 +11:00
Roger Clark 794a79a151 Added defined for __STM32F1XX__ to board.txt in preparation for changes to OneWire library. Also added analogWrite function to replicate what the Arduino API does, and fix the issue with needing to call pinMode with type PWM. Fade example now works, as long as a PWM compatible pin is used e.g. PA0 2014-12-03 21:32:00 +11:00
Roger Clark a83c251cea Merge branch 'master' of https://github.com/rogerclarkmelbourne/Arduino_STM32 2014-12-03 08:28:03 +11:00
Roger Clark 21732162c1 Modified serial_upload.bat so that it would work for windows system using D: etc for the Arduino folder 2014-12-03 08:27:52 +11:00
Roger Clark 52b61f3185 Update README.md 2014-12-02 13:43:00 +11:00
Roger Clark 43be9d0710 Added support for serial functions in 1.0 and 1.5, specificaally Serial.peek and also Serial.find. Updated HardwareSerial class so it inhetits from Stream instead of Print, to confirm with Arduino 1.0 structure 2014-11-25 21:11:04 +11:00