Commit Graph

3026 Commits

Author SHA1 Message Date
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
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.
2010-02-22 10:03:56 +01:00
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.
2010-02-22 10:01:55 +01:00
Uwe Hermann 94ccc164db Use --no-print-directory option of 'make'. 2010-01-26 03:12:23 +01:00
Uwe Hermann 06fa19df3e Cosmetics in build output. 2010-01-26 03:11:27 +01:00
Uwe Hermann da79139560 Fix Makefile to use new directory names. 2010-01-26 03:02:06 +01:00
Uwe Hermann da8d9de6b0 Rename example directory names to all-lowercase. 2010-01-26 03:01:25 +01:00
Piotr Esden-Tempski ed0e46c31e Fixed a cut&paste typo in gpio.h. 2010-01-25 17:32:35 +01:00
Piotr Esden-Tempski 14ec3bdf39 Added bit definitions of AFIO registers. 2010-01-25 17:32:35 +01:00
Piotr Esden-Tempski 6ca739296d Updated example README files. 2010-01-25 17:32:35 +01:00
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.
2010-01-25 17:32:33 +01:00
Piotr Esden-Tempski 4935a0ddd8 Moved vector_table to the library. 2010-01-25 17:29:06 +01:00
Piotr Esden-Tempski a88c1b0ee9 Fixed ROM start address in linker scripts. 2010-01-25 17:22:25 +01:00
Piotr Esden-Tempski 699ec0fb15 Added fancyblink example for the MB525 eval board. 2010-01-25 17:22:11 +01:00