Uwe Hermann
0308b49b76
Fix typo in TIM3RST #define.
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
15 years ago
Uwe Hermann
1f9479e673
Add initial (unfinished, untested) RTC support.
15 years ago
Uwe Hermann
3e29876d98
rcc: Add a few functions to set prescalers.
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
15 years ago
Piotr Esden-Tempski
a38fc2c3a2
Added basic NVIC register defs and functions.
15 years ago
Piotr Esden-Tempski
6fe7e25a8a
Added usb descriptor definitions.
15 years ago
Piotr Esden-Tempski
cde7d1ce4d
Added usb peripheral register definitions. It uses some tool macros defined in tools.h
15 years ago
Piotr Esden-Tempski
0c6b661502
Adapted to the new header style. Added some defs.
15 years ago
Uwe Hermann
6c66a41f27
Use FLASH_MEM_INTERFACE_BASE (not FLASH_BASE).
The latter does not exist in the repo.
15 years ago
Uwe Hermann
8d196a2a1f
Mention reserved memory map areas in code comments.
15 years ago
Uwe Hermann
d7d851e579
Prefix all flash related stuff with FLASH_.
15 years ago
Uwe Hermann
d192a67d4d
Add reference to flash programming datasheet.
15 years ago
Uwe Hermann
4fdb7f08fd
Add initial flash memory register support.
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
15 years ago
Uwe Hermann
1b73ccdd7a
Whitespace fixes.
15 years ago
Piotr Esden-Tempski
667f32bd45
Added USART_ prefix to bit definitions.
This matches the new convention used throughout libopenstm32.
15 years ago
Piotr Esden-Tempski
afc9cc84de
Typo fixes in timer.
15 years ago
Piotr Esden-Tempski
7fd62e6d0b
Added timer related register and bit definitions.
15 years ago
Uwe Hermann
98997691d3
Add first version of spi_enable()/spi_disable().
15 years ago
Uwe Hermann
a7a3770d51
Add initial SPI code.
For now, add the following basic SPI functions:
- spi_init_master()
- spi_write()
- spi_read()
This is incomplete and untested, yet.
Also, add some more SPI bit definition macros and comments.
15 years ago
Uwe Hermann
821873acac
Add initial version of an spi.h header file.
So far, it contains the SPI register definitions and some bit
definitions of control register 1 (CR1).
15 years ago
Uwe Hermann
88f35a4a7e
ADC #defines, contributed by Edward Cheeseman <ed@landcrab.co.nz>.
15 years ago
Uwe Hermann
25a003b076
Add rcc_peripheral_{reset,clear_reset} functions.
Also, rename two other functions for consistency.
15 years ago
Uwe Hermann
cf69b51ee7
Add AFIO register definitions.
16 years ago
Uwe Hermann
9a4a47fdeb
Add default alternate function GPIO pin definitions.
16 years ago
Uwe Hermann
c6ec621b1a
Initial implementation of USART API functions.
The usart_set_baudrate() function is currently hardcoded to certain
settings, that needs to be fixed later.
16 years ago
Uwe Hermann
712261bb52
Add some more USART related bit definitions.
16 years ago
Uwe Hermann
c26541c4c5
Some random cosmetic changes and additional comments.
16 years ago
Uwe Hermann
5ba3aae7d7
Add simple USART convenience macros.
16 years ago
Uwe Hermann
732760ccd0
Add more comments, fix copy-paste error in descriptions.
16 years ago
Uwe Hermann
2a571de8f8
Add RCC_CR3 values and some more comments.
16 years ago
Uwe Hermann
ecd6d52463
Add RCC_CR2 bit definitions.
16 years ago
Uwe Hermann
944456fde1
Fix compile by using the correct variable name.
16 years ago
Uwe Hermann
ab8cec181c
Add missing #include <stdint.h>.
16 years ago
Uwe Hermann
56ffeed8af
Make u8/u16/etc. simple aliases.
16 years ago
Uwe Hermann
b6a4976495
Add register #defines for all available USARTs/UARTs.
16 years ago
Uwe Hermann
6db6d5b49c
Add initial framework for USART support. So far only some #defines.
16 years ago
Uwe Hermann
9fd3064cb2
Add more RCC related API functions and their prototypes.
This includes:
- rcc_set_sysclk_source()
- rcc_set_pll_multiplication_factor()
- rcc_set_pll_source()
- rcc_set_pllxtpre()
16 years ago
Uwe Hermann
a5a9648144
Add rcc_enable_peripheral_clock() et al, and respective prototypes.
16 years ago
Uwe Hermann
5df3d0a23d
Add RCC_AHBRSTR and RCC_CFGR2 bit definitions.
16 years ago
Uwe Hermann
6ec84bf10e
Reorder RCC bits, add missing bits for STM32 connectivity line.
16 years ago
Uwe Hermann
839748ad3d
Add RCC_APB1RSTR bit definitions.
16 years ago
Uwe Hermann
6f0070991c
Add RCC_APB2RSTR bit definitions.
16 years ago
Piotr Esden-Tempski
446de38728
Changed all includes to use <foo.h> notation.
16 years ago
Uwe Hermann
07b6ca3a90
Add RCC_CSR bit definitions and a osc_t enum.
16 years ago
Uwe Hermann
3eb5397d8d
Add RCC_BDCR bit definitions.
16 years ago
Uwe Hermann
df399e248b
Add RCC_APB1ENR bit definitions.
16 years ago
Uwe Hermann
af9302d2b0
Merge some more RCC related #defines contributed by Federico Ruiz-Ugalde.
Addition of remaining (mostly "connectivity line" STMs related) #defines
was done by me.
16 years ago
Uwe Hermann
b888530345
Whitespace fixes.
16 years ago
Uwe Hermann
2c1fa8bd67
Partial merge of RCC support work contributed by Federico Ruiz-Ugalde.
For now, this adds a bunch of #defines, double-checked against the
datasheet by me (added a few missing values for "connectivity line" STM32s).
16 years ago
Uwe Hermann
3bef8767f9
Add gpio_get() API function.
16 years ago
Uwe Hermann
83f5c58eb9
Switch the license to GPL, version 3 or later.
16 years ago