aboutsummaryrefslogtreecommitdiffstats
path: root/examples/test-session.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Adding /wirish/boards/ for easier porting; shrank PIN_MAPs.Marti Bolivar2011-03-241-1/+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-11/+8
| | | | | | | | | | | | | | | 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.
* Maple RET6 edition supportMarti Bolivar2011-03-161-5/+4
|
* [WIP] GPIO refactor: seems ok, ready for reviewMarti Bolivar2011-03-111-14/+14
|
* Cleaned out libmaple.h; this had wide-ranging implications.Marti Bolivar2011-02-271-2/+1
| | | | | | | | | | | | | | | | | | | 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.
* workaround to compile test-session.cppPerry Hung2011-02-271-1/+1
|
* Function examples/test-session.cpp on NativeMarti Bolivar2011-02-101-13/+19
|
* Ported examples/test-session.cpp to work on MiniMarti Bolivar2011-01-301-438/+515
|
* fixed Serial crash bugbnewbold2010-09-051-1/+5
|
* simplified example headersbnewbold2010-08-311-23/+6
|
* Call init() before static constructorsPerry Hung2010-06-251-2/+7
| | | | | | | Commit 70a18f96b6d55d23ce58ab40ffb61f172c8f6c73 forces init() to be called before any statically allocated object constructors for the IDE. This adds the change to the examples for users not using the IDE.
* fixed QA test (pulldown)bnewbold2010-06-161-2/+2
|
* new QA testing modesbnewbold2010-06-151-0/+43
|
* test session serial fixbnewbold2010-06-071-3/+3
|
* fixed examplebnewbold2010-06-051-5/+5
|
* example updates...bnewbold2010-06-041-523/+524
|
* Preliminary wirish USBSerial implementation.Perry Hung2010-06-041-6/+0
| | | | | | -updated examples -removed HardwareUSB -cleaned up a handful of includes
* finish cxxabi-compat refactorbnewbold2010-04-291-7/+0
| | | | perry forgot to add/edit these...
* updated test-session with new banner art etcbnewbold2010-04-271-64/+163
|
* mostly complete new interactive hardware testing programbnewbold2010-04-211-0/+437