aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/wirish.h
Commit message (Collapse)AuthorAgeFilesLines
* Keep it 80-column clean.Marti Bolivar2011-06-071-14/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Putting updated HardwareTimer back into the build.Marti Bolivar2011-05-061-0/+1
| | | | | | | | | | | | | | | HardwareTimer was removed from the build when the timer refactor was done; this redoes it in terms of the new timer.h interface. A variety of conflicting or badly designed bits were deprecated or removed. I'm still not satisfied with this interface, as it's going to make life difficult moving forward to high-density chips, where the addition of basic timers means that the capture/compare methods won't apply in some cases. However, we need to get 0.0.10 out the door, so it'll have to do for now. The docs are up to date, and contain a warning that the Wirish API isn't stable and a recommendation to use libmaple proper.
* Better debug port support.Marti Bolivar2011-04-251-0/+1
| | | | | | | | | | | - gpio.h: afio_mapr_swj_config() renamed afio_cfg_debug_ports() - [new] wirish_debug.h: disableDebugPorts(), enableDebugPorts() - Maple, Maple Native, and Maple RET6 PIN_MAPs are now larger by 5, have mappings for the extra JTAG/SW pins. Documentation was updated appropriately.
* Hacks to get things to compile in the IDE.Marti Bolivar2011-03-301-1/+1
|
* Final stm32_pin_info design candidate; ADC3 support on Native.Marti Bolivar2011-03-251-2/+0
| | | | | | | | | | | | | | | | | | | | Added an adc_dev to struct stm32_pin_info. This was necessary to add support for the channels on the Native which are only connected to ADC3, but it does add a bunch of NULLs to the PIN_MAPs. I don't think any other peripherals need representation on a per-pin basis. Each peripheral library will be responsible for keeping track of related GPIO ports and bits, and we can throw #defines in to boards/*.h for other things (e.g. BOARD_SPI1_MISO_PIN). Fleshed out the ADC refactor and brought it more in keeping with the new design as it evolves. A couple of other tweaks. Notably: waitForButtonPress() now takes a default argument meaning "wait forever". Removed Maple-specific documentation from core functions in io.h; this information will need to go into the individual board docs files.
* Adding /wirish/boards/ for easier porting; shrank PIN_MAPs.Marti Bolivar2011-03-241-0/+1
| | | | | | | | | | | | | | | | | /wirish/boards/ contains xxx.h and xxx.cpp (for xxx=maple, maple_native, maple_mini, maple_RET6). The headers contain the board-specific #defines that used to live in boards.h (except BOARD_INIT, which was removed). The CPP files contain the PIN_MAP definitions that used to live in boards.cpp, and a proper boardInit() function to replace the old BOARD_INIT macro. This will make it easier to add new boards in the future. struct PinMapping was renamed struct stm32_pin_info, and was moved into a new wirish_types.h. Its external interrupt field was moved into struct gpio_dev, which saves memory by storing an afio_exti_port per port, rather than one per pin. Also rearranged the stm32_pin_info fields to improve packing. Maple's PIN_MAP is now down to below 500 bytes.
* Initial timer refactor.Marti Bolivar2011-03-241-3/+0
| | | | | | | | | | | | | | | Basic PWM works. Had some problems in testing that might be due to USART bugs. HardwareTimer has been removed from the build for now; I will re-implement it in terms of the new libmaple API, but consider it deprecated. Let's come up with something better. Servo is implemented in terms of HardwareTimer, so it also has been temporarily removed from the build. pwmWrite() likely got a little bit less inefficient due to indirection, but the PIN_MAPs shrank by a pointer per PinMapping.
* [WIP] GPIO refactor: seems ok, ready for reviewMarti Bolivar2011-03-111-13/+3
|
* fixed highByte() implementation for when sizeof(argument) > 2Marti Bolivar2010-11-161-2/+2
|
* wirish reformatted and code-styledMarti Bolivar2010-09-261-11/+11
|
* systick testing and simplificationbnewbold2010-09-051-1/+0
| | | | | | ripped out marti's SystemTick for the sake of simplicity and added a systick_resume function to libmaple. new example program demonstrates the functionality, also demonstrates micros()/USB bug
* Various fixes, working with Maplebnewbold2010-09-011-10/+2
|\
| * Further wirish portability progressbnewbold2010-08-311-1/+1
| | | | | | | | Sort of ugly changes. Compiles but untested.
| * Partial progress on wirish portabilitybnewbold2010-08-311-3/+1
| | | | | | | | | | This version throws "defined but unused" warnings which could probably be squashed with #pragma
| * inital portability workbnewbold2010-08-251-6/+0
| |
* | added support to enable/disable systick in wirishMarti Bolivar2010-08-311-0/+1
|/
* timers progressbnewbold2010-07-201-1/+2
| | | | examples code cleanup, more descriptive comments, more notes
* good quality vga leaf logo; usb+systick disabledbnewbold2010-07-201-1/+1
| | | | | refactored timers and added interrupt behavior. see notes and comments... also includes a crude vga hack that doesn't use timers.
* Preliminary wirish USBSerial implementation.Perry Hung2010-06-041-0/+6
| | | | | | -updated examples -removed HardwareUSB -cleaned up a handful of includes
* get wirish_math stuff going (random, map, etc)bnewbold2010-05-211-0/+1
| | | | | Perry, you might want to look this over... I only include the contents of wirish_math.h when cpp? It's what arduino does and it works, so...
* Refactoring:Perry Hung2010-04-251-0/+85
The 'core' directory has now been renamed to 'wirish.' Wirish is our version of the Arduino Wiring language.