aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/wirish.c
Commit message (Collapse)AuthorAgeFilesLines
* Cleaned out libmaple.h; this had wide-ranging implications.Marti Bolivar2011-02-271-2/+2
| | | | | | | | | | | | | | | | | | | 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.
* Refactor ADC: Pass device pointer instead of register mapPerry Hung2011-02-271-1/+1
|
* Refactor DACPerry Hung2011-02-271-4/+0
| | | | | DAC header and source slightly cleaned up. Test on Maple Native prototype. Add flags parameter to allow selective enabling of channels.
* libmaple: Refactor ADC routinesPerry Hung2011-02-271-1/+4
| | | | | | ADC routines rewritten, support for ADC2, 3, added. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
* Generalizing adc_init() to allow user to select sample timeMarti Bolivar2011-02-171-2/+4
|
* Merge branch 'nzmichaelh-master' into master.Marti Bolivar2011-02-161-1/+1
|\ | | | | | | | | | | | | | | | | This provides DMA, IWDG, PWR, and BKP support, and fixes several bugs. Conflicts: libmaple/adc.h libmaple/libmaple.h libmaple/ring_buffer.h
| * nvic bugfix; removed unnecessary volatile usageMarti Bolivar2011-01-311-1/+1
| |
* | Servo library tested and debugged.Marti Bolivar2010-12-081-1/+1
| | | | | | | | | | 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-0/+3
|/
* wirish reformatted and code-styledMarti Bolivar2010-09-261-35/+34
|
* timer refactor (c, not c++)bnewbold2010-09-051-6/+6
| | | | also removed an old ASSERT()
* Portability fixesbnewbold2010-08-311-1/+1
| | | | Still not working but fixed a lot of merge errors
* Merge maple-native changes into portablebnewbold2010-08-311-24/+36
|\ | | | | | | This compiles for both maple and maple_native but is untested.
| * Further wirish portability progressbnewbold2010-08-311-4/+8
| | | | | | | | Sort of ugly changes. Compiles but untested.
| * Partial progress on wirish portabilitybnewbold2010-08-311-4/+4
| | | | | | | | | | This version throws "defined but unused" warnings which could probably be squashed with #pragma
| * Cleaned up wirish/time, some interrupt handling refactoring:Perry Hung2010-08-041-1/+1
| | | | | | | | | | | | | | | | | | Fixed millis(), it was just wrong, before. Added micros(), not extensively tested. New implementation of delayMicroseconds(). Should be more consistent now. Added a handful of nvic routines to enable/disable interrupts. Cleaned up systick
| * New reset and clock control apiPerry Hung2010-08-041-3/+14
| |
| * Basic flash peripheral management api for board bringupPerry Hung2010-08-041-0/+6
| |
* | Some refactoringbnewbold2010-08-051-8/+27
|/
* timers progressbnewbold2010-07-201-3/+3
| | | | examples code cleanup, more descriptive comments, more notes
* good quality vga leaf logo; usb+systick disabledbnewbold2010-07-201-3/+3
| | | | | refactored timers and added interrupt behavior. see notes and comments... also includes a crude vga hack that doesn't use timers.
* Finalized the libmaple changes required by newboot. Added setupUSB() to ↵AJM2010-05-211-0/+2
| | | | | | wirish init this involved some some changes to copy-to-ide, WProgram.h, and the makefile. Separated the reset.py from the wait.py so that the program closes the serial port correctly.
* Fixed examples, added spi example, moved pure virtual function handlerPerry Hung2010-04-291-2/+0
| | | | out of main to cxxabi-compat.cpp.
* Refactoring:Perry Hung2010-04-251-0/+47
The 'core' directory has now been renamed to 'wirish.' Wirish is our version of the Arduino Wiring language.