aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update test-print.cpp to exercise new behavior.Marti Bolivar2011-06-081-34/+37
| | | | | | Changes make sure that base arithmetic applies correctly for various integral types, and that floating point numbers can be printed at various precisions.
* Update Print to match Arduino master.Marti Bolivar2011-06-082-60/+51
| | | | | | | | | Add base argument to integral Print methods, defaulting to DEC so as not to break backwards compatibility. Add precision argument to floating-point Print methods. These changes increase compatibility with the Arduino Print implementation.
* Revert "Add wiring_limits.h"Marti Bolivar2011-06-071-49/+0
| | | | | | This reverts commit f960c41b1a50deb3783fb7750a4af86e0cbb0636. Wait until the Wiring spec is complete to merge this into master.
* Add wiring_limits.hMarti Bolivar2011-06-071-0/+49
| | | | | | | | | | | | This file is analogous to the standard C header <limits.h>. It defines various constants within the Wiring language that we consider to be implementation-defined. The current version is a work in progress; more constants may be added as time goes on. The member constants defined in wiring_limits.h are currently limited to the core Wiring language. They do not include implementation-defined values which pertain to the standard Wiring libraries.
* Keep it 80-column clean.Marti Bolivar2011-06-0753-721/+825
| | | | | | | | | | | | | | | | | | | | | | | | | | | Go through overlong source code lines and convert as many of them as appropriate to be 80-column clean. This mostly affects license headers. Overlong lines are determined by running following from the libmaple base directory: $ ack-grep --nocolor --nogroup --cpp --cc --ignore-dir=usb -- '.{80}' Note that this excludes libmaple's usb subdirectory, which is still full of ST code that doesn't follow the libmaple source code guidelines. Contents of ~/.ackrc (these won't matter, but are included for completeness): --ignore-dir=docs --ignore-dir=build --type-set ld=.ld --type-set rst=.rst --type-set txt=.txt --type-set mk=.mk
* delay.h: Add missing include.Marti Bolivar2011-06-061-0/+2
|
* flash.h: Add missing include.Marti Bolivar2011-06-061-1/+2
|
* scb.h: Add missing include.Marti Bolivar2011-06-061-0/+2
|
* bitband.h: Add missing include.Marti Bolivar2011-06-061-0/+2
|
* i2c.h: Add missing includes.Marti Bolivar2011-06-061-0/+5
| | | | | The missing includes are a bug in general, and prevent usage of i2c.h from within Maple IDE in particular.
* Docs: add note on adding self to plugdev group.Marti Bolivar2011-06-061-3/+5
| | | | Thanks to forum user AndyH for the suggestion.
* Docs: Correct "Github" -> "GitHub"Marti Bolivar2011-06-033-6/+6
|
* Docs: Various tweaks and fixups.Marti Bolivar2011-06-033-14/+15
| | | | Thanks to forum user AndyH for the corrections.
* Adding $(SRCROOT)/ in front of build-targets.mk to allow building in any ↵Victor G Estevez2011-06-021-1/+1
| | | | directory
* Added libs in libraries/ to the include pathCamille Moncelier2011-06-021-0/+1
| | | | | | | | - This allows to including of libs headers eg: #include <Servo.h> which wasn't possible for some reason.
* Docs: Update release FIXMEs for 0.0.12.Marti Bolivar2011-06-012-9/+6
| | | | | This is a pretty brain-dead way to manage these pre-release preparations. Should figure out the done thing and use that instead.
* Docs: Tweak disabling JTAG debugging information.Marti Bolivar2011-05-282-10/+13
|
* Docs: Simplify and clarify usart.rst.Marti Bolivar2011-05-281-3/+9
| | | | | Make the language a little friendlier, say the words "serial port", and let them know that baud rate is a speed.
* Docs: Improve analogwrite.rst.Marti Bolivar2011-05-281-10/+15
| | | | | | Make the note warning against its usage more direct. Add a blurb introducing its purpose and links in See Also to related board-specific values.
* Docs: Improve i2c.rst.Marti Bolivar2011-05-271-12/+19
| | | | Slightly reorganize to keep it consistent with the rest of the docs.
* Docs: Improve external-interrupts.rst.Marti Bolivar2011-05-271-15/+24
| | | | | Make the language friendlier; point to GPIO port definition for an explanation of the EXTI line definition.
* Docs: Making boards pages point to "5V tolerant" definition.Marti Bolivar2011-05-273-6/+9
|
* Docs: Update gpio.rst.Marti Bolivar2011-05-271-41/+65
| | | | | Add a section about GPIO ports, since that existed nowhere. Made a ref for 5V tolerance. Other clarifications and improvements.
* Docs: Updating pinmode.rstMarti Bolivar2011-05-271-22/+25
| | | | Convert to board-specific values; make the language friendlier.
* Docs: Correct i2c.rst errors.Marti Bolivar2011-05-271-10/+11
| | | | | 10-bit addressing has now been implemented. Slave mode is unimplemented, however.
* usart.h: Allow the environment to determine USART_RX_BUF_SIZE.Marti Bolivar2011-05-271-0/+2
| | | | | | | Place the USART_RX_BUF_SIZE #define within an #ifndef to allow users to pick their own buffer size. See http://forums.leaflabs.com/topic.php?id=803
* Docs: Fix implication that Maple Rev 1 didn't have a battery charger.Marti Bolivar2011-05-271-1/+0
| | | | | It did, but there was no jumper to cut power from the charging circuit, resulting in weird blinky behavior that was fixed in Rev 3.
* Docs: Include D3 in low-noise analog pins on Mini.Marti Bolivar2011-05-271-11/+6
|
* Docs: Fix ADC voltage source error.Marti Bolivar2011-05-272-6/+7
| | | | Vdda, not Vcc.
* openocd: Add missing filePerry Hung2011-05-271-0/+16
| | | | | Forgot openocd support script in 0e5eb75c80bd8036bf85bfe0cce09d1fce56f50a.
* Fix millis() example.Marti Bolivar2011-05-261-1/+1
|
* openocd: Fix repeated JTAG flash failure, use alternate reset configPerry Hung2011-05-262-7/+13
| | | | | | | | | | | | | | | | | | 1) Reset, halt, and unprotect the the flash before writing to it. This fixes a bug in which every other flash attempt would fail. 2) Maple R5 and below have NRST and JTNRST erroneously tied together, resulting in a full TAP and system reset when a reset is asserted. This prevents the 'reset halt' command from working. This can be fixed hard-hack style by cutting the trace out of JTNRST. Users of the Leaf Maple JTAG adapter will also need to cut the trace between TRST and SRST. 3) Assuming you have a functioning 'reset halt' setup (see 2), the 'make debug' command now halts the chip and waits for a gdb connection before proceeding execution.
* openocd: Detect openocd versionPerry Hung2011-05-266-3/+3
| | | | | Small script to detect the openocd version and choose the appropriate debug/flash script for use with JTAG debugging.
* Remove notes/pin-mapping.txtMarti Bolivar2011-05-261-163/+0
| | | | Its content has been moved into the main docs tree.
* Docs: board-values.rst touchup.Marti Bolivar2011-05-261-3/+0
|
* Make docs say their version is 'custom-build'.Marti Bolivar2011-05-261-1/+2
| | | | | This should get changed on each release branch when the time comes. A FIXME comment has been added to that effect.
* Docs: Move toggleLED() and waitForButtonPress() examples.Marti Bolivar2011-05-263-32/+60
| | | | | These two examples from board-values.rst really belong in the documentation for the functions they reference.
* Docs: Add Maple Mini informationMarti Bolivar2011-05-268-42/+396
| | | | | Flesh out and uncomment maple-mini.rst. Add links to pieces of it in various appropriate places throughout the rest of the documentation.
* Docs: fix and standardize Maple and RET6 hardware pages.Marti Bolivar2011-05-262-266/+372
| | | | | | | | | | Pick a standard layout for the information and fix mistakes. Looks like some of these errors were copy-pasted in from the old HTML documentation, some crept in due to API changes, and some were just wrong. I've checked all the claims against the datasheets and source code, so we should be in good shape now.
* Docs: Fix several board-specific values.Marti Bolivar2011-05-266-9/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Ugh. Fix BOARD_NR_ADC_PINS and boardADCPins on Maple, Maple Mini, and Maple RET6 Edition: Maple and Maple RET6 Ed. don't have ADC on pin 3. Seems likely that the error was due to AIN being missing on the silkscreen. They also have ADC on pin 13. This is not really true due to the voltage drop across the built-in LED. Maple Mini really should not include BOARD_LED_PIN among its ADC pins, since it's not broken out to a header. Fix BOARD_NR_PWM_PINS and boardPWMPins on Maple and RET6 Ed: Both boards falsely include pin 25 as a PWM pin. Maple RET6 Edition also lacks some PWM pins. Fix BOARD_NR_SPI on Maple RET6 Edition: SPI3 uses PB4, which is unusable since it's tied to NRST. This means that SPI3 is not available on the RET6 edition. Decreasing BOARD_NR_SPI to 2 to accomodate this. Leave the BOARD_SPI3_*_PIN defines intact so as not to further clutter the rest of the library with RET6-specific wrinkles.
* Docs: lang/api/constants.rst touchupsMarti Bolivar2011-05-261-50/+44
| | | | Mostly, make it less pedantic. Also some stylistic and content fixes.
* Docs: troubleshooting.rst touchupsMarti Bolivar2011-05-261-28/+28
|
* Docs: libmaple overview.rst fixes.Marti Bolivar2011-05-261-30/+24
|
* Tweak some register map base pointers.Marti Bolivar2011-05-269-18/+18
| | | | | | | | | | | | Replace #define XXX_BASE ((xxx_reg_map*)0xDEADBEEF) with #define XXX_BASE ((struct xxx_reg_map*)0xDEADBEEF) for increased GDB-friendliness.
* Docs: maple-ret6.rst touchups.Marti Bolivar2011-05-261-2/+4
|
* Generifying maple-ide-install.rst.Marti Bolivar2011-05-231-19/+25
| | | | | | | In line with some changes made earlier today to the maple-ide repo, the master libmaple branch no longer points to a particular IDE release as "current", since there's no way it can know. From now on, only release branches will contain the blessed download links.
* RET6 Edition docs typo.Marti Bolivar2011-05-231-1/+1
|
* Servo docs fixups.Marti Bolivar2011-05-231-4/+7
|
* Getting rid of the last 0.0.10 TODO.Marti Bolivar2011-05-231-1/+0
| | | | We should be good to go.
* 0.0.10 docs RCMarti Bolivar2011-05-2312-140/+172
|