Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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. | ||||
* | exti.c: Clean up some bit-banding usages. | Marti Bolivar | 2011-08-03 | 1 | -9/+9 |
| | |||||
* | exti.c: Cleanups. | Marti Bolivar | 2011-08-03 | 1 | -21/+18 |
| | | | | | Add new handle_exti() instead of calling clear_pending() and dispatch_handler() each time. | ||||
* | util.h: Properly parenthesize IS_POWER_OF_TWO(). | Marti Bolivar | 2011-08-03 | 1 | -1/+1 |
| | |||||
* | Add examples/mini-exti-test.cpp. | Marti Bolivar | 2011-08-03 | 1 | -0/+251 |
| | | | | | | | Nonportable (Maple Mini only) test of external interrupt functionality. When wired properly, this triggers various EXTI lines simultaneously, keeping track of the number of times each handler is invoked. | ||||
* | timer.c: Minor IRQ dispatch tweaks. | Marti Bolivar | 2011-07-21 | 1 | -3/+3 |
| | | | | | | Read TIMx_SR before grabbing a pointer to the user handlers instead of after. This should shave a couple of cycles off of the time between IRQ entry and SR read. | ||||
* | timer.c: Optimize IRQ dispatch routines. | Marti Bolivar | 2011-07-20 | 1 | -59/+66 |
| | | | | | | | | | | | | | | | | | Remove dispatch_irq() and dispatch_cc_irqs(). For IRQs which handle exactly one timer interrupt, add new dispatch_single_irq(). The mere fact that the IRQ has been called suffices to prove that its interrupt enable bit (in TIMx_DIER) and interrupt flag (in TIMx_SR) are set. These facts are combined in dispatch_single_irq(), which only needs to check if the timer_dev handler is non-null before calling it and clearing the SR flag. For IRQs which serve multiple timer interrupts, replace the composition of calls to dispatch_irq() and dispatch_cc_irqs() with individualized routines. These eliminate unnecessary timer register reads/writes, and, in the case of capture/compare interrupts, have a loop unrolling performed. | ||||
* | timer.c: Fix dispatch_irq() and dispatch_cc_irqs(). | Marti Bolivar | 2011-07-19 | 1 | -24/+46 |
| | | | | | Modify them to check whether the relevant interrupts are enabled before attempting to handle them. | ||||
* | timer.c: Fix off-by-one error in NR_GEN_HANDLERS. | Marti Bolivar | 2011-07-18 | 1 | -1/+1 |
| | |||||
* | stm32.h: Add license header. | Marti Bolivar | 2011-07-18 | 1 | -0/+26 |
| | |||||
* | stm32.h: Trivial comment tweak. | Marti Bolivar | 2011-07-18 | 1 | -1/+1 |
| | |||||
* | Add DELAY_US_MULT, for use in generalizing delay_us(). | Marti Bolivar | 2011-07-18 | 2 | -8/+9 |
| | | | | | | | | The delay_us() implementation multiplies its specified delay target by a fixed constant in order to turn it into a busy-loop. This magic number doesn't work properly when the clock configuration isn't the same as a stock LeafLabs board. Add DELAY_US_MULT to the MCU-specific configuration in stm32.h in order to allow other chips to use delay_us(). | ||||
* | Move STM32 config from libmaple.h into stm32.h. | Marti Bolivar | 2011-07-18 | 2 | -39/+39 |
| | |||||
* | test-usart-dma.cpp: Change mistaken "__io" -> "volatile" | Marti Bolivar | 2011-07-06 | 1 | -1/+1 |
| |