Uwe Hermann
75e66f26d7
Revert unintended change.
15 years ago
Uwe Hermann
0a0be96d12
Cosmetics, whitespace, coding style.
15 years ago
Piotr Esden-Tempski
2c404f962a
Added KITT mode.
15 years ago
Piotr Esden-Tempski
da2b9d94fb
Added gamma 2.5 corrected 3.0 table added fade mode.
The fade mode is using one gamma correction table and fades with a time
offset to create a nice moving fade.
15 years ago
Piotr Esden-Tempski
c713c02e9d
Scaled gamma 1.3 table to cover whole power range.
Now the example shows the difference between different gamma approaches.
15 years ago
Piotr Esden-Tempski
002ec200ad
Added proper gamma correction tables.
15 years ago
Piotr Esden-Tempski
18097d9ed0
Added pwmleds example for mb252 board.
It creates a fading pattern on the 4 leds on the eval board, using TIM3
PWM output, and a gamma correction lookup table.
15 years ago
Piotr Esden-Tempski
efb510f526
Modified include model of some files.
This model allows using libopenstm32 in parallel with other stm32
firmware libraries. It is not yet complete change to all code but a
start. Only changed parts that I tested.
15 years ago
Uwe Hermann
94ccc164db
Use --no-print-directory option of 'make'.
15 years ago
Uwe Hermann
06fa19df3e
Cosmetics in build output.
15 years ago
Uwe Hermann
da79139560
Fix Makefile to use new directory names.
15 years ago
Uwe Hermann
da8d9de6b0
Rename example directory names to all-lowercase.
15 years ago
Piotr Esden-Tempski
ed0e46c31e
Fixed a cut&paste typo in gpio.h.
15 years ago
Piotr Esden-Tempski
14ec3bdf39
Added bit definitions of AFIO registers.
15 years ago
Piotr Esden-Tempski
6ca739296d
Updated example README files.
15 years ago
Piotr Esden-Tempski
bc46b3118e
Added all handlers to the vector table.
All handlers are weak symbols pointing to a null handler (doing nothing)
or blocking handler (running an infinite loop). This means you can
define a function with the name in the list and the linker will use your
definition instead of the default one. This makes it easy to implement
your own handlers without touching the library code.
15 years ago
Piotr Esden-Tempski
4935a0ddd8
Moved vector_table to the library.
15 years ago
Piotr Esden-Tempski
a88c1b0ee9
Fixed ROM start address in linker scripts.
15 years ago
Piotr Esden-Tempski
699ec0fb15
Added fancyblink example for the MB525 eval board.
15 years ago
Piotr Esden-Tempski
3a4f36d80f
Moved all examples to a board specific folder.
15 years ago
Uwe Hermann
d167b6c9e9
Add RCC_AHBENR bit definitions.
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
15 years ago
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
Uwe Hermann
92dc4c361e
Add empty lib/nvic.c to make libopenstm32 compile.
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
d173306c31
Add some more generic info to the README.
15 years ago
Uwe Hermann
f682aa84b0
Document that the library API is NOT yet stable!
15 years ago
Uwe Hermann
99249672d5
Document the usage of the example projects.
15 years ago
Uwe Hermann
8d1c464961
Add flash.o to list of objects to build.
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
312db1a301
Fix logic bugs in rcc_wait_for_osc_ready().
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
15 years ago
Uwe Hermann
977f0ef6a0
Configure SPI as master in spi_init_master().
15 years ago
Uwe Hermann
e5fb750378
Modularize OpenOCD paths in the example Makefiles.
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