aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/boards.h
Commit message (Collapse)AuthorAgeFilesLines
* [WIP] GPIO refactor: seems ok, ready for reviewMarti Bolivar2011-03-111-388/+13
|
* Brought examples/ up to date; PIN_MAP bugfix for D24.Marti Bolivar2011-03-041-1/+1
|
* Cleaned out libmaple.h; this had wide-ranging implications.Marti Bolivar2011-02-271-5/+13
| | | | | | | | | | | | | | | | | | | Many of the #defines in libmaple.h were board-specific, not MCU-specific. Most of these were only used by code under libmaple/usb/. These were moved into usb_config.h, and are clearly marked as being terrible hacks. I'm going to treat the USB stack as a black box that we'll deal with later. Further, instead of having a variety of #defines like "How many USARTS do I have?", we decide that based on the density of the chip. This is determined by testing for STM32_MEDIUM_DENSITY or STM32_HIGH_DENSITY defines. libmaple currently doesn't support low-density chips, so that suffices. The Makefile will set these automatically based on the MCU. Other offending #defines are ERROR_LED_PORT and ERROR_LED_PIN; these were made optional, but they're set in the Makefile as a hack to keep things working.
* libmaple: Refactor ADC routinesPerry Hung2011-02-271-156/+151
| | | | | | ADC routines rewritten, support for ADC2, 3, added. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* Made Native prototype B definitions in libmaple.h and boards.h; addedMarti Bolivar2011-02-101-116/+214
| | | | notes/native-pin-definitions.txt (copied from ST datasheet).
* Ported libmaple to the new mini prototypeMarti Bolivar2011-01-271-62/+62
|
* Servo library tested and debugged.Marti Bolivar2010-12-081-51/+50
| | | | | Some additional HardwareTimer methods introduced to make this convenient; ancillary libmaple/timers.h changes resulted.
* maple mini prototype seems to be workingMarti Bolivar2010-11-301-8/+22
|
* maple mini runs blinky now.Marti Bolivar2010-10-221-0/+79
| | | | still need usb descriptors to improve, and also nothing else is tested.
* Add selective enabling of channels for pwm channelsPerry Hung2010-10-121-41/+43
| | | | | | | | | | pinMode(PWM) turns the channel on, other modes should turn it off Fixes bug with conflicting timer for spi1 and timer. This is not well-tested. Conflicts: libmaple/timers.c
* wirish reformatted and code-styledMarti Bolivar2010-09-261-107/+208
|
* Enable external interrupts on all Maple GPIOs.Perry Hung2010-09-221-62/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend the wirish attachInterrupt() and detachInterrupt() interface to work with all GPIOs. Note: The STM32 external interrupt lines are multiplexed between GPIO ports. While any GPIO can be used as an external interrupt, not all of them can be used at the same time. Each EXTI[n] line selects between PA[n], PB[n], PC[n], etc. For example, line EXTI5 can be used with STM32 pins PA5, PB5, or PC5, but not all at the same time. See table: EXTI Line Maple Pin STM32 Pin 0 D2 PA0 0 D27 PB0 0 D15 PC0 1 D3 PA1 1 D28 PB1 1 D16 PC1 2 D1 PA2 2 D17 PC2 2 D25 PD2 3 D0 PA3 3 D18 PC3 4 D10 PA4 4 D19 PC4 5 D13 PA5 5 D4 PB5 5 D20 PC5 6 D12 PA6 6 D5 PB6 6 D35 PC6 7 D11 PA7 7 D9 PB7 7 D36 PC7 8 D6 PA8 8 D14 PB8 8 D37 PC8 9 D7 PA9 9 D24 PB9 9 D38 PC9 (BUT) 10 D8 PA10 10 D29 PB10 10 D26 PC10 11 D30 PB11 12 D31 PB12 13 D32 PB13 13 D21 PC13 14 D33 PB14 14 D22 PC14 15 D34 PB15 15 D23 PC15
* bugfix MAPLE_RELOAD_VAL, whitespace fixesMarti Bolivar2010-09-131-4/+4
|
* added 'unused' attribs and reset default targetbnewbold2010-09-021-3/+4
|
* Various fixes, working with Maplebnewbold2010-09-011-2/+5
|
* Further wirish portability progressbnewbold2010-08-311-17/+82
| | | | Sort of ugly changes. Compiles but untested.
* Partial progress on wirish portabilitybnewbold2010-08-311-0/+154
This version throws "defined but unused" warnings which could probably be squashed with #pragma