aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Linker scripts: Indent common_ram.inc, common_rom.inc.Marti Bolivar2011-09-092-148/+149
|
* Updated against 0.11Michael Hope2011-09-082-27/+50
|
* syscalls.c: Bugfix _sbrk() implementation.Marti Bolivar2011-09-071-16/+31
| | | | | | | | | | | | Fix _sbrk() implementation so it properly rejects negative arguments which would send the program break below the heap start. Fix incorrect check against argument causing heap overflow. Also set errno properly to ENOMEM when the call fails. Beginning and end of the heap are now determined by HEAP_START and HEAP_END macros. Their current values seem to work OK for heaps on the internal SRAM, but they'll need to get generalized for Maple Native.
* stm32.h: Add STM32_SRAM_END.Marti Bolivar2011-09-071-0/+12
|
* Update outdated stm32.h usages.Marti Bolivar2011-09-075-12/+12
| | | | | stm32.h has been updated to prefix its definitions. Update the rest of libmaple to take this into account.
* stm32.h: Remove SRAM_SIZE, prefix all #defines.Marti Bolivar2011-09-071-41/+63
| | | | | | | | | | | | | | | Remove SRAM_SIZE define. This seems like a bad idea given that bootloader builds drop user code at an offset from the SRAM start address. Prefix every #define with "STM32_" to avoid polluting the namespace. Keep and deprecate the remaining ones (except for aforementioned SRAM_SIZE), but define them to be the same as their prefixed variant. Take a little extra care to break libmaple builds which specify PCLK1 and PCLK2 instead of the prefixed versions. Some libmaple forks make use of these; they will break in mysterious ways if they don't handle this change properly.
* Tidy up linker scripts.Marti Bolivar2011-09-0712-27/+19
| | | | Comment/whitespace changes only.
* syscalls.c: Remove fictitious uart_send() and broken comments.Marti Bolivar2011-09-071-10/+0
| | | | | | | | | uart_send() is not part of libmaple, and nm doesn't show it getting linked in from anywhere else, so I don't believe it exists. Remove it. Also remove some commented-out sections from getch(), putch(), _write(), and fgets(). These either reference uart_send() or use old libmaple APIs which no longer exist.
* util.c: Respect stm32.h.Marti Bolivar2011-09-071-1/+1
|
* [support/ld] Factor out header from common_rom.inc, common_ram.inc.Marti Bolivar2011-09-073-73/+48
| | | | | | | The linker scripts share an initial section. Factor this out into a new file common_header.inc, and have the main linker scripts include this file. Apart from eliminating a redundancy, this will make it easier to add new linker scripts in the future.
* Makefile: tweak clean, add mrproper, make help more helpful.Marti Bolivar2011-09-071-2/+11
| | | | | | | | | | | Remove doxygen from clean; no sense killing the docs just because you want to change boards. Add new "mrproper" target to nuke all autogenerated files; currently, this is just the build/ and doxygen/ directories. Make a note of BOARD env. variable and doxygen, mrproper targets from help target.
* pin-definitions.txt: Break up GPIO ports visually.Marti Bolivar2011-09-061-0/+28
| | | | | The tables are too long to read comfortably without additional horizontal line breaks.
* test-session.cpp: Fix 'd' command.Marti Bolivar2011-09-061-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 Bolivar2011-09-017-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 Bolivar2011-09-011-0/+1
|
* maple-native.cpp: Comment tweak.Marti Bolivar2011-08-311-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 Bolivar2011-08-311-2/+0
| | | | SerialUSB.read() is already blocking, so no sense looping on available().
* maple_native.cpp: mark initSRAMChip() static.Marti Bolivar2011-08-311-2/+2
|
* test-session.cpp: Tweak output.Marti Bolivar2011-08-311-3/+3
|
* test-session.cpp: Measure ADC noise sequentially.Marti Bolivar2011-08-311-8/+28
| | | | Measure pins one at a time.
* test-session.cpp: Multiple ADC noise measurements by default.Marti Bolivar2011-08-311-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 Bolivar2011-08-311-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 Bolivar2011-08-311-2/+1
|
* fsmc-stress-test.cpp: Convert to SerialUSB, don't print so much.Marti Bolivar2011-08-311-2/+1
|
* test-session.cpp: Tweak output.Marti Bolivar2011-08-301-1/+1
| | | | Print input as if it were an ASCII character, not a number.
* test-fsmc.cpp: Tweak output.Marti Bolivar2011-08-301-0/+1
|
* usart.h: Remove unnecessary local in usart_putc().Marti Bolivar2011-08-301-2/+1
|
* maple_native.h: Fix USART pins.Marti Bolivar2011-08-301-8/+8
| | | | | These apparently didn't get updated from an earlier prototype's values.
* fsmc-stress-test.cpp: Eliminating unnecessary variable.Marti Bolivar2011-08-301-3/+1
|
* fsmc-stress-test.cpp: Eliminate unused variable.Marti Bolivar2011-08-301-2/+0
|
* fsmc-stress-test.cpp: Halt on error, print "all's well" message less often.Marti Bolivar2011-08-301-5/+11
|
* fsmc-stress-test.cpp: Convert to SerialUSB, don't print so much.Marti Bolivar2011-08-301-7/+20
|
* stm32.h: Doxygen tweaks.Marti Bolivar2011-08-301-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 Bolivar2011-08-301-2/+2
|
* dma.c: Fix Doxygen syntax for dma_get_irq_cause().Marti Bolivar2011-08-301-2/+2
|
* util.h: DoxygenMarti Bolivar2011-08-221-0/+13
|
* stm32.h: DoxygenMarti Bolivar2011-08-221-20/+49
|
* Doxyfile: add __DOXYGEN_PREDEFINED_HACK to PREDEFINED.Marti Bolivar2011-08-221-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: DoxygenMarti Bolivar2011-08-221-1/+31
|
* scb.h: DoxygenMarti Bolivar2011-08-221-0/+1
|
* nvic.h: DoxygenMarti Bolivar2011-08-221-2/+9
|
* i2c.h: DoxygenMarti Bolivar2011-08-221-1/+1
|
* gpio.h: DoxygenMarti Bolivar2011-08-221-11/+20
|
* flash.c: DoxygenMarti Bolivar2011-08-221-1/+2
|
* exti.c: Doxygen improvements.Marti Bolivar2011-08-221-3/+4
|
* rcc: Doxygen improvements.Marti Bolivar2011-08-222-20/+21
|
* dma.h: Doxygen improvements.Marti Bolivar2011-08-221-1/+6
|
* Whitespace tweak.Marti Bolivar2011-08-181-1/+1
|
* freertos-blinky.cpp: Remove executable bit.Marti Bolivar2011-08-181-0/+0
|
* HardwareSerial.h: Remove documentation TODO.Marti Bolivar2011-08-161-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.