aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple
Commit message (Collapse)AuthorAgeFilesLines
...
* rcc.c: Trivial comment tweak.Marti Bolivar2011-06-201-1/+0
|
* gpio.h: Fix zero/oh comment mixup.Marti Bolivar2011-06-141-1/+1
|
* adc.h: Clarify adc_smp_rate Doxygen comment.Marti Bolivar2011-06-111-1/+5
| | | | Thanks to gbulmer for the clarifying remarks.
* stm32.h: Don't blindly assume PCLK1 and PCLK2 values.Marti Bolivar2011-06-111-0/+4
| | | | | Put the PCLK1 and PCLK2 within #ifndef guards. This assumption is biased towards LeafLabs boards.
* Keep it 80-column clean.Marti Bolivar2011-06-0727-378/+432
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* delay.h: Add missing include.Marti Bolivar2011-06-061-0/+2
|
* flash.h: Add missing include.Marti Bolivar2011-06-061-1/+2
|
* scb.h: Add missing include.Marti Bolivar2011-06-061-0/+2
|
* bitband.h: Add missing include.Marti Bolivar2011-06-061-0/+2
|
* i2c.h: Add missing includes.Marti Bolivar2011-06-061-0/+5
| | | | | The missing includes are a bug in general, and prevent usage of i2c.h from within Maple IDE in particular.
* usart.h: Allow the environment to determine USART_RX_BUF_SIZE.Marti Bolivar2011-05-271-0/+2
| | | | | | | Place the USART_RX_BUF_SIZE #define within an #ifndef to allow users to pick their own buffer size. See http://forums.leaflabs.com/topic.php?id=803
* Tweak some register map base pointers.Marti Bolivar2011-05-269-18/+18
| | | | | | | | | | | | Replace #define XXX_BASE ((xxx_reg_map*)0xDEADBEEF) with #define XXX_BASE ((struct xxx_reg_map*)0xDEADBEEF) for increased GDB-friendliness.
* Moving Doxygen comments from declarations to definitions.Marti Bolivar2011-05-236-10/+9
|
* adc.c: Giving adc_dev variables static linkage.Marti Bolivar2011-05-231-2/+2
|
* adc: Moving ADC[123] Doxygen comments to definitionsMarti Bolivar2011-05-232-3/+3
|
* spi.h: DoxygenMarti Bolivar2011-05-201-3/+3
|
* dma: DoxygenMarti Bolivar2011-05-202-4/+5
|
* timer.h: DoxygenMarti Bolivar2011-05-201-10/+23
|
* usart.h: Doxygen.Marti Bolivar2011-05-201-6/+6
|
* i2c.h: Documentation fixes.Marti Bolivar2011-05-201-31/+31
|
* usart: Moving Doxygen comments to points of definitionMarti Bolivar2011-05-192-5/+5
| | | | In keeping with convention.
* timer: Shortening long names.Marti Bolivar2011-05-192-22/+19
| | | | | Various names in timer.h were too unwieldy. Making these slightly more bearable.
* timer: Moving some Doxygen comments.Marti Bolivar2011-05-192-8/+8
| | | | From declaration to definition, to keep with convention.
* timer.h: Naming tweaks.Marti Bolivar2011-05-191-4/+4
| | | | | | Renamed timer_reg_map_union -> timer_reg_map. Named the anonymous timer_type.
* systick.h: Doxygen commentsMarti Bolivar2011-05-191-1/+14
|
* spi: Comment fixupsMarti Bolivar2011-05-192-3/+3
| | | | | Moving SPIn Doxygen comments to point of definition in keeping with libmaple conventions.
* spi.h: Naming anonymous enums.Marti Bolivar2011-05-191-4/+4
| | | | Named spi_mode, spi_baud_rate, spi_cfg_flag, spi_interrupt.
* scb.h: Comment/line length fixupsMarti Bolivar2011-05-191-18/+20
|
* ring_buffer.h: Comment fix.Marti Bolivar2011-05-191-1/+1
|
* rcc.h: Better names for the prescaler divider enums.Marti Bolivar2011-05-191-8/+8
| | | | | | | | | | | The various clock divider enums suitable for passing to rcc_set_prescaler() were badly named. They have been renamed as follows: * adc_prescaler_divider -> rcc_adc_divider * apb1_prescaler_divider -> rcc_apb1_divider * apb2_prescaler_divider -> rcc_apb2_divider * ahb_prescaler_divider -> rcc_ahb_divider
* rcc.h: Naming anonymous rcc_clk_id enumMarti Bolivar2011-05-191-1/+1
|
* pwr.h: Whitespace/comment cleanupsMarti Bolivar2011-05-191-10/+26
|
* pwr: removing unused device.Marti Bolivar2011-05-192-16/+0
|
* i2c: Renaming, type changes, exposing i2c_init(), documentation.Marti Bolivar2011-05-192-91/+137
| | | | | | | | | | | | | | | | | Changes to struct i2c_dev members: - uint8 clk_line's type is changing and is being renamed, is now rcc_clk_id clk_id - uint8 ev_nvic_line's type is changing to nvic_irq_num - uint8 er_nvic_line's type is changing to nvic_irq_num Previous names were badly typed and inconsistent with the rest of libmaple. Exposing i2c_init(), also for consistency. Adding/editing many Doxygen comments, for documentation and general housekeeping.
* i2c.h: fixing type of i2c_dev state member.Marti Bolivar2011-05-191-1/+1
| | | | | It's an i2c_state; calling it one. Previous uint8 type was broken since I2C_STATE_ERROR is negative.
* iwdg: Doxygen commentsMarti Bolivar2011-05-192-11/+17
|
* iwdg: Naming anonymous enum.Marti Bolivar2011-05-191-1/+1
| | | | | Anonymous enum typedefed to iwdg_prescaler is now also enum iwdg_prescaler, for consistency with the rest of the library.
* gpio: Renaming for consistency.Marti Bolivar2011-05-192-59/+191
| | | | | Gave the anonymous enum typedefed to afio_exti_num the same name; renamed AFIORemapPeripheral afio_remap_peripheral.
* adc.c: adc_init() doesn't set the RCC's ADC prescaler.Marti Bolivar2011-05-191-3/+2
| | | | | You have to call rcc_set_prescaler() yourself now. adc_init() never should have been doing that anyway.
* delay.h: Adding Doxygen comments for the file and delay_us().Marti Bolivar2011-05-191-1/+11
|
* bitband.h: Changing "__io" -> "volatile"Marti Bolivar2011-05-191-12/+20
| | | | | For SRAM functions, __io was in error. Everything else just for consistency.
* bkp.h: Adding missing register bit definitionsMarti Bolivar2011-05-191-0/+45
|
* adc.h: Putting ADC3_BASE within an #ifdef STM32_HIGH_DENSITYMarti Bolivar2011-05-171-0/+2
|
* Docs: Various improvements.Marti Bolivar2011-05-131-0/+3
|
* libmaple: Fix warnings in libmaple source filesPerry Hung2011-05-128-19/+15
| | | | | -Add -Wall, -Werror to libmaple/* -Fix warnings
* i2c: Various fixes, extensions, documentation.Perry Hung2011-05-126-80/+285
| | | | | | | | | | | | -Fix clock calculations for fast-mode support -Add I2C_REMAP option to remap i2c1 (untested) -Add I2C_BUS_RESET option to reset bus on initialization -Add optional timeout parameter -Doxygen comments -Various cleanup 10-bit slave addressing is untested until I have a device that speaks such.
* Converting all files to UNIX newlines.Marti Bolivar2011-05-1013-3308/+3308
| | | | | | | Committing the results of running the following on the libmaple root directory: $ fromdos `grep --exclude-dir='[.]git' -Ilsr $'\r$' .`
* Finally getting rid of __read() and __write().Marti Bolivar2011-05-061-8/+1
| | | | | This brings util.h down to some bit manipulation macros, failure routines, and asserts.
* IWDG include fixup.Marti Bolivar2011-05-061-0/+1
|
* Independent watchdog refactor.Marti Bolivar2011-05-062-38/+88
|