aboutsummaryrefslogtreecommitdiff
path: root/wirish/wirish.c
AgeCommit message (Collapse)Author
2011-03-11[WIP] GPIO refactor: seems ok, ready for reviewMarti Bolivar
2011-02-27Cleaned out libmaple.h; this had wide-ranging implications.Marti Bolivar
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.
2011-02-27Refactor ADC: Pass device pointer instead of register mapPerry Hung
2011-02-27Refactor DACPerry Hung
DAC header and source slightly cleaned up. Test on Maple Native prototype. Add flags parameter to allow selective enabling of channels.
2011-02-27libmaple: Refactor ADC routinesPerry Hung
ADC routines rewritten, support for ADC2, 3, added. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
2011-02-17Generalizing adc_init() to allow user to select sample timeMarti Bolivar
2011-02-16Merge branch 'nzmichaelh-master' into master.Marti Bolivar
This provides DMA, IWDG, PWR, and BKP support, and fixes several bugs. Conflicts: libmaple/adc.h libmaple/libmaple.h libmaple/ring_buffer.h
2011-01-31nvic bugfix; removed unnecessary volatile usageMarti Bolivar
2010-12-08Servo library tested and debugged.Marti Bolivar
Some additional HardwareTimer methods introduced to make this convenient; ancillary libmaple/timers.h changes resulted.
2010-11-30maple mini prototype seems to be workingMarti Bolivar
2010-09-26wirish reformatted and code-styledMarti Bolivar
2010-09-05timer refactor (c, not c++)bnewbold
also removed an old ASSERT()
2010-08-31Portability fixesbnewbold
Still not working but fixed a lot of merge errors
2010-08-31Merge maple-native changes into portablebnewbold
This compiles for both maple and maple_native but is untested.
2010-08-31Further wirish portability progressbnewbold
Sort of ugly changes. Compiles but untested.
2010-08-31Partial progress on wirish portabilitybnewbold
This version throws "defined but unused" warnings which could probably be squashed with #pragma
2010-08-05Some refactoringbnewbold
2010-08-04Cleaned up wirish/time, some interrupt handling refactoring:Perry Hung
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
2010-08-04New reset and clock control apiPerry Hung
2010-08-04Basic flash peripheral management api for board bringupPerry Hung
2010-07-20timers progressbnewbold
examples code cleanup, more descriptive comments, more notes
2010-07-20good quality vga leaf logo; usb+systick disabledbnewbold
refactored timers and added interrupt behavior. see notes and comments... also includes a crude vga hack that doesn't use timers.
2010-05-21Finalized the libmaple changes required by newboot. Added setupUSB() to ↵AJM
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.
2010-04-29Fixed examples, added spi example, moved pure virtual function handlerPerry Hung
out of main to cxxabi-compat.cpp.
2010-04-25Refactoring:Perry Hung
The 'core' directory has now been renamed to 'wirish.' Wirish is our version of the Arduino Wiring language.