Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | pin-definitions.txt: Break up GPIO ports visually. | Marti Bolivar | 2011-09-06 | 1 | -0/+28 | |
| | | | | | The tables are too long to read comfortably without additional horizontal line breaks. | |||||
* | test-session.cpp: Fix 'd' command. | Marti Bolivar | 2011-09-06 | 1 | -6/+2 | |
| | | | | | Actually read a character each time we ask for one. Put pin 22 back into OUTPUT mode when we're done. | |||||
* | wirish/boards: Move includes into .cpp files. | Marti Bolivar | 2011-09-01 | 7 | -26/+20 | |
| | | | | | The headers just #define some numbers, so there's no need for them to be including libmaple headers. | |||||
* | maple_native.cpp: Add FSMC FIXME to resolve for 0.0.12. | Marti Bolivar | 2011-09-01 | 1 | -0/+1 | |
| | ||||||
* | maple-native.cpp: Comment tweak. | Marti Bolivar | 2011-08-31 | 1 | -1/+1 | |
| | | | | | First in what is sure to be a long series of efforts in educating people that you can have GPIOs 56--100 or the SRAM chip, but not both. | |||||
* | test-spi-roundtrip.cpp: Remove redundant loop. | Marti Bolivar | 2011-08-31 | 1 | -2/+0 | |
| | | | | SerialUSB.read() is already blocking, so no sense looping on available(). | |||||
* | maple_native.cpp: mark initSRAMChip() static. | Marti Bolivar | 2011-08-31 | 1 | -2/+2 | |
| | ||||||
* | test-session.cpp: Tweak output. | Marti Bolivar | 2011-08-31 | 1 | -3/+3 | |
| | ||||||
* | test-session.cpp: Measure ADC noise sequentially. | Marti Bolivar | 2011-08-31 | 1 | -8/+28 | |
| | | | | Measure pins one at a time. | |||||
* | test-session.cpp: Multiple ADC noise measurements by default. | Marti Bolivar | 2011-08-31 | 1 | -15/+20 | |
| | | | | | Each call to measure_adc_noise() now does N_ADC_NOISE_MEASUREMENTS (currently 40) samples, instead of just 1. | |||||
* | test-session.cpp: Better analog noise readings. | Marti Bolivar | 2011-08-31 | 1 | -8/+9 | |
| | | | | | | | | | | | | | | | | | | | | | | | | Update measure_adc_noise() to actually use the Welford online algorithm, instead of accumulating data in an array on the stack. This allows us to increase the number of samples (to 1000). Revised algorithm tested on host PC and compared (in Python) against numpy with a list of 100 values in [0, 1) drawn using random.random(). Results (Python): >>> r = [random.random() for i in xrange(100)] >>> numpy.mean(r) 0.50073064742634854 >>> numpy.var(r) 0.083726090293309297 Results (C++, x86 host PC): n: 100 mean: 0.500731 variance: 0.084572 So this algorithm for variance has some inaccuracies, but it appears to be good to a couple of significant figures. | |||||
* | fsmc-stress-test.cpp: Eliminating unnecessary variable. | Marti Bolivar | 2011-08-31 | 1 | -2/+1 | |
| | ||||||
* | fsmc-stress-test.cpp: Convert to SerialUSB, don't print so much. | Marti Bolivar | 2011-08-31 | 1 | -2/+1 | |
| | ||||||
* | test-session.cpp: Tweak output. | Marti Bolivar | 2011-08-30 | 1 | -1/+1 | |
| | | | | Print input as if it were an ASCII character, not a number. | |||||
* | test-fsmc.cpp: Tweak output. | Marti Bolivar | 2011-08-30 | 1 | -0/+1 | |
| | ||||||
* | usart.h: Remove unnecessary local in usart_putc(). | Marti Bolivar | 2011-08-30 | 1 | -2/+1 | |
| | ||||||
* | maple_native.h: Fix USART pins. | Marti Bolivar | 2011-08-30 | 1 | -8/+8 | |
| | | | | | These apparently didn't get updated from an earlier prototype's values. | |||||
* | fsmc-stress-test.cpp: Eliminating unnecessary variable. | Marti Bolivar | 2011-08-30 | 1 | -3/+1 | |
| | ||||||
* | fsmc-stress-test.cpp: Eliminate unused variable. | Marti Bolivar | 2011-08-30 | 1 | -2/+0 | |
| | ||||||
* | fsmc-stress-test.cpp: Halt on error, print "all's well" message less often. | Marti Bolivar | 2011-08-30 | 1 | -5/+11 | |
| | ||||||
* | fsmc-stress-test.cpp: Convert to SerialUSB, don't print so much. | Marti Bolivar | 2011-08-30 | 1 | -7/+20 | |
| | ||||||
* | stm32.h: Doxygen tweaks. | Marti Bolivar | 2011-08-30 | 1 | -49/+49 | |
| | | | | | | | | For some unfathomable reason, Doxygen happily believes in PCLK2, but but not PCLK1, so Breathe can't find the docs for PCLK1, and all the children are unhappy. As a workaround, move all the Doxgyen crap into __DOXYGEN_PREDEFINED_HACK sections immediately preceding the actual definitions. | |||||
* | Makefile: Add doxygen to .PHONY, remove doxygen dir on clean. | Marti Bolivar | 2011-08-30 | 1 | -2/+2 | |
| | ||||||
* | dma.c: Fix Doxygen syntax for dma_get_irq_cause(). | Marti Bolivar | 2011-08-30 | 1 | -2/+2 | |
| | ||||||
* | util.h: Doxygen | Marti Bolivar | 2011-08-22 | 1 | -0/+13 | |
| | ||||||
* | stm32.h: Doxygen | Marti Bolivar | 2011-08-22 | 1 | -20/+49 | |
| | ||||||
* | Doxyfile: add __DOXYGEN_PREDEFINED_HACK to PREDEFINED. | Marti Bolivar | 2011-08-22 | 1 | -1/+2 | |
| | | | | | | | Doxygen refuses to trust us when we \def something that it doesn't notice as a #define. To work around this, we put __DOXYGEN_PREDEFINED_HACK into our Doxyfile's PREDEFINED, so that documentation may be inserted for #defines which we know will exist. | |||||
* | stm32.h: Doxygen | Marti Bolivar | 2011-08-22 | 1 | -1/+31 | |
| | ||||||
* | scb.h: Doxygen | Marti Bolivar | 2011-08-22 | 1 | -0/+1 | |
| | ||||||
* | nvic.h: Doxygen | Marti Bolivar | 2011-08-22 | 1 | -2/+9 | |
| | ||||||
* | i2c.h: Doxygen | Marti Bolivar | 2011-08-22 | 1 | -1/+1 | |
| | ||||||
* | gpio.h: Doxygen | Marti Bolivar | 2011-08-22 | 1 | -11/+20 | |
| | ||||||
* | flash.c: Doxygen | Marti Bolivar | 2011-08-22 | 1 | -1/+2 | |
| | ||||||
* | exti.c: Doxygen improvements. | Marti Bolivar | 2011-08-22 | 1 | -3/+4 | |
| | ||||||
* | rcc: Doxygen improvements. | Marti Bolivar | 2011-08-22 | 2 | -20/+21 | |
| | ||||||
* | dma.h: Doxygen improvements. | Marti Bolivar | 2011-08-22 | 1 | -1/+6 | |
| | ||||||
* | Whitespace tweak. | Marti Bolivar | 2011-08-18 | 1 | -1/+1 | |
| | ||||||
* | freertos-blinky.cpp: Remove executable bit. | Marti Bolivar | 2011-08-18 | 1 | -0/+0 | |
| | ||||||
* | HardwareSerial.h: Remove documentation TODO. | Marti Bolivar | 2011-08-16 | 1 | -3/+0 | |
| | | | | | | | It's difficult to document HardwareSerial's interface fully in HardwareSerial.h, since most of the methods people care about are inherited from Print, anyway. Stick with documenting this interface by hand for the foreseeable future. | |||||
* | HardwareSerial.cpp: Respect PCLK1 and PCLK2. | Marti Bolivar | 2011-08-16 | 1 | -6/+6 | |
| | ||||||
* | HardwareSerial: Add pin accessors. | Marti Bolivar | 2011-08-16 | 1 | -0/+4 | |
| | ||||||
* | HardwareSerial: trivial code reordering | Marti Bolivar | 2011-08-16 | 2 | -11/+23 | |
| | ||||||
* | HardwareSPI.cpp: minor HardwareSPI::send() cleanup. | Marti Bolivar | 2011-08-16 | 1 | -4/+1 | |
| | ||||||
* | HardwareSPI: Add pin accessors. | Marti Bolivar | 2011-08-16 | 2 | -40/+102 | |
| | ||||||
* | Typos. | Marti Bolivar | 2011-08-11 | 2 | -2/+2 | |
| | ||||||
* | Fix Doxyfile. | Marti Bolivar | 2011-08-03 | 1 | -5/+5 | |
| | ||||||
* | examples/mini-exti-test.cpp: Comment fix. | Marti Bolivar | 2011-08-03 | 1 | -4/+4 | |
| | ||||||
* | exti.c: Optimize multiplexed IRQ handlers. | Marti Bolivar | 2011-08-03 | 1 | -43/+48 | |
| | | | | | | | | | | | | | | Rewrite existing IRQ handlers in terms of new functions dispatch_single_exti() and dispatch_extis(). dispatch_single_exti() handles EXTIs which have a dedicated IRQ line, and thus doesn't have to check EXTI_PR; it is mostly equivalent to the (now removed) handle_exti(). dispatch_extis() handles multiple EXTIs sharing an IRQ line. Using dispatch_extis() instead of calling handle_exti() multiple times avoids unnecessary I/O to the (volatile) EXTI_BASE->PR register. These changes are in the flavor of the timer IRQ optimizations performed in f5016b15bef56bbdfd187f9b623177ef6dde7ace. | |||||
* | exti.c: Cleanups. | Marti Bolivar | 2011-08-03 | 1 | -5/+4 | |
| | ||||||
* | exti.c: Remove enable_irq() and maybe_disable_irq(). | Marti Bolivar | 2011-08-03 | 1 | -36/+1 | |
| | | | | | These functions incorrectly replicate functionality that is already accomplished by manipulating EXTI_IMR directly. |