Thomas Otto
561ce37809
Changed address setting in dma.c+h.
2010-03-26 17:36:15 +01:00
Thomas Otto
0f710dd8fa
Fixed settings of groups in adc.c.
2010-03-26 17:35:15 +01:00
Thomas Otto
2bada0dacd
Merge branch 'master' of tommi@viadmin.org:/opt/git/libopenstm32
2010-03-26 10:17:00 +01:00
Thomas Otto
bd725f59ae
Small corrections/additions to adc.h.
2010-03-26 10:14:17 +01:00
Thomas Otto
3518301870
Integrated systick into build system.
2010-03-25 13:13:01 +01:00
Thomas Otto
feb3f187fe
Added systick.h definitions.
2010-03-25 13:11:59 +01:00
Thomas Otto
be986aa8d9
Corrected Makefile for ADC example
2010-03-25 10:13:15 +01:00
Thomas Otto
d96b318795
Added some address setting functions to dma.
2010-03-24 22:51:43 +01:00
Thomas Otto
a0e026d110
Added generic values for ADC_SMPR_SMP to adc.h.
2010-03-24 20:44:32 +01:00
Thomas Otto
3882f8f96f
Fixed binary name in README
2010-03-24 20:41:27 +01:00
Thomas Otto
384a7e688e
Added adc_temperature_sensor to examples
2010-03-24 20:36:19 +01:00
Thomas Otto
eb3f45dcdb
Completed scb.h definitions.
2010-03-24 15:39:44 +01:00
Thomas Otto
cdf93fedfa
Small correction in isr table.
2010-03-23 21:05:37 +01:00
Thomas Otto
1f8d94df35
Added irq number definitions.
2010-03-23 21:02:01 +01:00
Thomas Otto
80984d44c4
splitted nvic and scb
2010-03-22 22:08:07 +01:00
Thomas Otto
426d6a45fc
added some SCB defs. Added some NVIC functions.
2010-03-22 22:01:44 +01:00
Thomas Otto
e4788f67b6
added dma.h and basic functions
2010-03-22 21:52:49 +01:00
Thomas Otto
561c9a1d3e
added basic adc funktions
2010-03-22 21:40:08 +01:00
Uwe Hermann
a6342d4968
Cosmetic fixes.
2010-03-06 15:22:09 +01:00
Uwe Hermann
e6c72d5cfc
Fix bug: PLLMUL_PLL_CLK_MUL9 is correct.
2010-03-06 15:07:21 +01:00
Uwe Hermann
4390abfd95
Cosmetic and coding style changes.
2010-03-06 14:49:59 +01:00
Uwe Hermann
dd0548ee2b
Add some development guidelines and notes.
2010-03-05 23:52:22 +01:00
Uwe Hermann
b3618ffa3d
Factor out coding guidelines to HACKING.
2010-03-05 23:39:06 +01:00
Uwe Hermann
bc9a9ebec1
Small README fixes.
2010-03-05 23:38:11 +01:00
Uwe Hermann
d8eb8ce746
Consistently use the hex file for flashing.
2010-03-05 23:30:26 +01:00
Uwe Hermann
8faf33275a
Makefile output cosmetic improvements.
2010-03-05 23:24:09 +01:00
Uwe Hermann
20ff2d9a7b
Drop unused comments.
2010-03-05 23:16:56 +01:00
Uwe Hermann
87df73edf2
Print "Entering directory" only upon "make V=1".
2010-03-05 23:13:47 +01:00
Uwe Hermann
2c8ae015d0
Use standardized reg32 variable name.
2010-03-05 22:46:27 +01:00
Uwe Hermann
46e5ed202a
Add i2c_stts75_sensor example.
...
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
2010-03-05 22:35:29 +01:00
Uwe Hermann
f514162134
Add some more ADC support.
...
Also:
- Fix a few typos (e.g. s/ADC1_BSAE/ADC1_BASE/).
- adc.h: Use common SUBSYSTEMNAME_REGISTERNAME_FOO #define format.
2010-03-05 20:59:07 +01:00
Uwe Hermann
f1a6e56f5c
gpio: Fix some issues with gpio_set_mode().
...
This patch, a slightly modified version of a patch from Thomas Otto,
should fix the following two issues:
- It generally sets the submited config to the mentioned GPIO pins but
kills configs for other pins on the same GPIO port. So if we want to set
PB6 and PB7 to push-pull and I2C2 SDA and SCL (PB10 and PB11) to open
drain it's simply impossible, because the second config try kills the first.
- The floating-bit thing isn't working correctly. If we enable a config
for PB6 for instance, the same config will also apply to all following
pins of that port (i.e. PB7-PB15). That's because the shifting isn't only
done if a pin isn't to configure, if you are hitting a matching bit the
shiftig is missing. I think shifting isn't nessessary for a separate
variable. We have the counting index from the for statement.
Both issues should now be fixed.
2010-03-05 19:46:57 +01:00
Uwe Hermann
54dfb91996
Add missing spi.h #include.
2010-03-04 21:35:59 +01:00
Uwe Hermann
e7cadf0822
Use direct #includes instead of libopenstm32.h.
2010-03-04 21:25:25 +01:00
Uwe Hermann
92194abda4
Trivial quickfix for some compiler warnings.
2010-03-04 21:08:36 +01:00
Piotr Esden-Tempski
d7489ebfbd
Added standard clock setup routines.
...
Thanks to Thomas Otto for pointing out problems with the clock code in
examples and his clock routine implementations. Based on that the most
common clock combination routines were added to the library and all
routines in examples setting up the clock replaced with calls to that
functions.
2010-03-04 20:37:04 +01:00
Piotr Esden-Tempski
d84c4030b2
Cleaned up header inclusion.
...
Now all examples are including only the modules they really need. Also
each header file of the library is including only the necessary headers
making it possible to use these modules in parallel with other
implementations that may collide with the definitions in other modules.
2010-03-04 19:16:24 +01:00
Uwe Hermann
9b4b4b1c83
Add SPI example framework (unfinished).
2010-03-02 10:59:17 +01:00
Uwe Hermann
742c595114
Add initial set of I2C functions.
...
Thomas Otto has tested the code by successfully talking to a temperature
sensor from ST in master tranciever mode.
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
2010-03-01 21:47:14 +01:00
Uwe Hermann
5455b0970e
Add missing GPIO definitions for I2C1, I2C2, SPI2.
...
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
2010-02-27 23:21:25 +01:00
Piotr Esden-Tempski
cdc1846f5b
Added gamma 2.2 and set as default gamma for fade mode.
2010-02-27 20:58:31 +01:00
Uwe Hermann
9928fb0820
Add missing Makefile snippets for pwmleds.
2010-02-24 00:37:10 +01:00
Uwe Hermann
c441007867
Drop useless endif markers.
2010-02-24 00:34:18 +01:00
Uwe Hermann
7e1b849feb
i2c: Add initial i2c.h header file and registers.
...
Thanks Thomas Otto <tommi@viadmin.org> for the patch!
2010-02-24 00:32:55 +01:00
Uwe Hermann
75e66f26d7
Revert unintended change.
2010-02-23 23:39:09 +01:00
Uwe Hermann
0a0be96d12
Cosmetics, whitespace, coding style.
2010-02-23 23:38:05 +01:00
Piotr Esden-Tempski
2c404f962a
Added KITT mode.
2010-02-22 15:56:49 +01:00
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.
2010-02-22 15:06:28 +01:00
Piotr Esden-Tempski
c713c02e9d
Scaled gamma 1.3 table to cover whole power range.
...
Now the example shows the difference between different gamma approaches.
2010-02-22 13:59:51 +01:00
Piotr Esden-Tempski
002ec200ad
Added proper gamma correction tables.
2010-02-22 12:59:15 +01:00