Piotr Esden-Tempski
ebb058825f
[STM32F3] Removed all specific F3 stuff out of common files.
2013-07-07 16:01:51 -07:00
Piotr Esden-Tempski
f8734dfcd3
[STM32F3] Move the f3 specific stuff out of common.
2013-07-07 16:01:50 -07:00
Federico Ruiz Ugalde
60bdf4eebd
stm32f3: f1 usb header files moved to stm32 root directory.
...
- Now the f1 usb header files serve both the f1 and f3.
- usb_f103 modified to find the new headers file location.
2013-07-07 16:01:50 -07:00
Federico Ruiz Ugalde
934c8dbf4c
stm32f3: Usb support added. usb unit is the same as f103.
...
- memorymap value for usb base changed to the one expected by the
f103 usb code.
- f3 Makefile updated to build the f102 usb code.
2013-07-07 16:01:50 -07:00
Federico Ruiz Ugalde
59b2b5da87
stm32f3: Some additions to rcc.
...
- Additional frequency configuration (48Mhz, for usb use!)
- FLASH latency decreased (too unnecessarily low before)
- Rcc functions to change usb freq prescaler.
2013-07-07 16:01:50 -07:00
Federico Ruiz Ugalde
011124c33f
stm32f3: i2c support increased. Now it works.
...
- Several functions added (that only work on the f3)
- The data register now has a 8bit access counter part
that is necessary for 8bit transmissions, together with
the access functions.
- The init master functions doesn't work for the f3.
2013-07-07 16:01:50 -07:00
Federico Ruiz Ugalde
9b2873d874
stm32f3: Adding convinience functions for sending and receiving i2c data.
2013-07-07 16:01:50 -07:00
Federico Ruiz Ugalde
66eab73570
stm32f3: Some additional f3 clock functions for the i2c.
2013-07-07 16:01:49 -07:00
Federico Ruiz Ugalde
4673348ff7
stm32f3: i2c support now in f3 directory.
...
Very few functions can be shared (~ 3). A possible solutions is to move
i2c_common_all to i2c_common_f124, create i2c_common_all and move f3/i2c to i2c_common_f3. Who agrees?
2013-07-07 16:01:49 -07:00
Federico Ruiz Ugalde
8f3675fbfd
stm32f3: i2c support removed from the i2c_common_all files because f3 is too different.
2013-07-07 16:01:49 -07:00
Federico Ruiz Ugalde
e9375dbfd2
usart set baudrate clock source incorrect. Now fixed.
2013-07-07 16:01:49 -07:00
Federico Ruiz Ugalde
efe08e4898
stm32f3: flash_common_f24 now includes f3 support. Also, renamed to f234.
...
- Makefiles of other stm32s updated accordingly.
- f3/rcc.c updated to some definition changes.
- f3/flash.c removed in order to use flash_common_f234.c to comply with new organization.
2013-07-07 16:01:49 -07:00
Federico Ruiz Ugalde
74a313625f
stm32f3: timer support added.
2013-07-07 16:01:48 -07:00
Federico Ruiz Ugalde
6af6cec101
stm32f3: dma support added.
2013-07-07 16:01:48 -07:00
Federico Ruiz Ugalde
433c1c9db8
stm32f3: spi support added.
2013-07-07 16:01:48 -07:00
Federico Ruiz Ugalde
5c825a78c7
stm32f3: watchdog support added.
2013-07-07 16:01:48 -07:00
Federico Ruiz Ugalde
6b522fc644
stm32f3: Crc support added.
2013-07-07 16:01:48 -07:00
Federico Ruiz Ugalde
ef762f0448
Stm32f3: usart support added.
2013-07-07 16:01:48 -07:00
Federico Ruiz Ugalde
49fe59e82d
stm32f3: adding external interrupts support.
2013-07-07 16:01:47 -07:00
Federico Ruiz Ugalde
a7bcf6446b
stm32f3 dac support added.
2013-07-07 16:01:47 -07:00
Federico Ruiz Ugalde
0a39eab19a
Missing files for adc stm32f3 support added.
2013-07-07 16:01:47 -07:00
Federico Ruiz Ugalde
6732ae25cb
Adc stm32f3 support added.
2013-07-07 16:01:47 -07:00
Federico Ruiz Ugalde
be841154a9
i2c support added.
...
Most of the changes went to i2c_common_all.h file.
F3 is considerably different than all the other in i2c.
2013-07-07 16:01:47 -07:00
Federico Ruiz Ugalde
b6bae46b71
Unnecessary include of pwr.h removed from rcc.c. Pwr.h becomes unnecessary to run the f3
2013-07-07 16:01:47 -07:00
Federico Ruiz Ugalde
934821aa42
Partial flash support added.
2013-07-07 16:01:47 -07:00
Federico Ruiz Ugalde
45035f2f3c
Fixed compile warning, function declaration in rcc.h wrong
2013-07-07 16:01:46 -07:00
Federico Ruiz Ugalde
0ca18eb09f
Added interrupts for f3, Pre_main rutine in vector_chipset, nvic.h modified to include f3.
2013-07-07 16:01:46 -07:00
Federico Ruiz Ugalde
b8764d0214
Makefile for f3 lib added. Gpio.c and rcc.c also in.
2013-07-07 16:01:46 -07:00
Federico Ruiz Ugalde
67c979e5fa
Fixed compile of f4 and l1 after gpio_common_f234.c renaming.
2013-07-07 16:01:46 -07:00
Federico Ruiz Ugalde
a156b9e8fc
linker script file for f3 added.
2013-07-07 16:01:45 -07:00
Federico Ruiz Ugalde
3af5833b83
Initial support for stm32f3. Changes in makefiles, gpio.
...
- Makefiles now include building f3 src directory.
- Gpio support added. gpio_common_f24 changed to support also f3.
- f3 still not compiling, but f2 compile not broken (probably also f4).
2013-07-07 16:01:45 -07:00
Ben Gamari
d7fdcefbd7
lpc43xx: Fix rom_to_ram linker script
...
It was missing some definitions compared to the libopencm3_lpc43xx.ld.
2013-07-07 18:22:56 -04:00
Piotr Esden-Tempski
b72a3640b3
[CM0] Disabled sync for LPC43xx/M0.
...
We are currently using the same code for CM0 CM3 and CM4 cores. This
patch is a bodge that disables sync on the LPC43xx/M0 core, it would be
nicer to probably implement a dispatch system similar to the one used in
stm32 peripheral support so that we can accomodate the different
features of the cortex cores. I (esden) assume we will run into more
incompatibilities in the future between the cortex cores.
2013-07-07 13:58:00 -07:00
Ben Gamari
11ea9b090c
sync: Add comment
2013-07-07 13:52:16 -07:00
Ben Gamari
78081bd794
lpc43xx: Add irq.yaml for M0 core
2013-07-07 13:52:16 -07:00
Ben Gamari
c25461dfce
lpc43xx: Move M4 specific files to m4/
2013-07-07 13:52:15 -07:00
Ben Gamari
3ab761d244
Remove dead lpc43xx_m0/vector.c
2013-07-07 13:52:15 -07:00
Ben Gamari
9aa2f82164
lpc32xx_ram_only.ld: Fix region name
2013-07-07 13:52:15 -07:00
Ben Gamari
8eb5fba93b
lpc43xx/uart: Fix code style
2013-07-07 13:52:15 -07:00
Ben Gamari
fa47bb80d5
lpc43xx/uart: Fix TER register definition
...
I'm not sure why bit 7 and offset 0x30 were used previously. Revision
1.6 of UM10503 claims that the TXEN bit is bit 0 in all UARTs' TER
registers.
2013-07-07 13:52:15 -07:00
Ben Gamari
8201703e64
lpc43xx/ssp: Fix duplicate function definition from merge
2013-07-07 13:52:14 -07:00
Ben Gamari
994e679fb8
lpc43xx: Clean up linker script breakage from merge
2013-07-07 13:52:14 -07:00
Ben Gamari
e8af7a98ee
lpc43xx/ssp: Add ssp_transfer
2013-07-07 13:52:13 -07:00
Ben Gamari
0d29b1d2d6
lpc43: Use uint*_t instead of u*
2013-07-07 13:52:13 -07:00
Ben Gamari
26162762b7
lpc43xx: Update linker scripts
2013-07-07 13:52:13 -07:00
Ben Gamari
17fd708f66
Move lpc43xx and lpc43xx_m0 code to lpc43xx/ hierarchy
...
Previously there were nasty dependency issues causing M4 objects to be
linked into the M0 library
2013-07-07 13:52:13 -07:00
Hoernchen
16424d1c69
m0: remove useless remap
...
The m4 will 1) remap 2) start the m0, so it already is remapped, if it's
not, then we'd never execute this code anyway.
2013-07-07 13:52:13 -07:00
Hoernchen
4c8d260232
make sure the m0 is really running/stopped
2013-07-07 13:52:13 -07:00
TitanMKD
e5a4dd0609
Cleanup M0 makefile to avoid copying file from lpc43xx(M4) directory.
2013-07-07 13:52:13 -07:00
TitanMKD
786e3215a4
Fixed a problem with rom to ram. (which can produce error "cannot move location counter backwards")
2013-07-07 13:52:12 -07:00