|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| 
| | Put the PCLK1 and PCLK2 within #ifndef guards.  This assumption is
biased towards LeafLabs boards. | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | 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 | 
| | |  | 
| | |  | 
| | |  | 
| | |  | 
| | 
| 
| 
| 
| | The missing includes are a bug in general, and prevent usage of i2c.h
from within Maple IDE in particular. | 
| | 
| 
| 
| 
| 
| 
| | 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 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | Replace
 #define XXX_BASE                        ((xxx_reg_map*)0xDEADBEEF)
with
 #define XXX_BASE                        ((struct xxx_reg_map*)0xDEADBEEF)
for increased GDB-friendliness. | 
| | |  | 
| | |  | 
| | |  | 
| | |  | 
| | |  | 
| | |  | 
| | |  | 
| | |  | 
| | 
| 
| 
| | In keeping with convention. | 
| | 
| 
| 
| 
| | Various names in timer.h were too unwieldy.  Making these slightly
more bearable. | 
| | 
| 
| 
| | From declaration to definition, to keep with convention. | 
| | 
| 
| 
| 
| 
| | Renamed timer_reg_map_union -> timer_reg_map.
Named the anonymous timer_type. | 
| | |  | 
| | 
| 
| 
| 
| | Moving SPIn Doxygen comments to point of definition in keeping with
libmaple conventions. | 
| | 
| 
| 
| | Named spi_mode, spi_baud_rate, spi_cfg_flag, spi_interrupt. | 
| | |  | 
| | |  | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | 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 | 
| | |  | 
| | |  | 
| | |  | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | 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. | 
| | 
| 
| 
| 
| | It's an i2c_state; calling it one.  Previous uint8 type was broken
since I2C_STATE_ERROR is negative. | 
| | |  | 
| | 
| 
| 
| 
| | Anonymous enum typedefed to iwdg_prescaler is now also enum
iwdg_prescaler, for consistency with the rest of the library. | 
| | 
| 
| 
| 
| | Gave the anonymous enum typedefed to afio_exti_num the same name;
renamed AFIORemapPeripheral afio_remap_peripheral. | 
| | 
| 
| 
| 
| | You have to call rcc_set_prescaler() yourself now.  adc_init() never
should have been doing that anyway. | 
| | |  | 
| | 
| 
| 
| 
| | For SRAM functions, __io was in error.  Everything else just for
consistency. | 
| | |  | 
| | |  | 
| | |  | 
| | 
| 
| 
| 
| | -Add -Wall, -Werror to libmaple/*
-Fix warnings | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | -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. | 
| | 
| 
| 
| 
| 
| 
| | Committing the results of running the following on the libmaple root
directory:
$ fromdos `grep --exclude-dir='[.]git' -Ilsr $'\r$' .` | 
| | 
| 
| 
| 
| | This brings util.h down to some bit manipulation macros, failure
routines, and asserts. | 
| | |  | 
| | |  | 
| | |  | 
| | 
| 
| 
| 
| 
| | Initial post-review changes based on thread here:
https://github.com/leaflabs/libmaple/commit/77f707d7b87fce284945fc9fe21c824c18c4c93d#comments | 
| | |  |