Michael Ossmann
9439ce9d69
new lib/lpc43xx, starting with copy of lpc17xx
13 years ago
Michael Ossmann
3a3c306ee3
#include fix
13 years ago
Michael Ossmann
95224dbc5e
finished gpio.h and memorymap.h changes for LPC43xx but still much to fill in
13 years ago
Michael Ossmann
ba35602e3d
started gpio.h lpc43xx changes
13 years ago
Michael Ossmann
b6d1dc06d1
started include/lpc43xx with copy of lpc17xx
13 years ago
Piotr Esden-Tempski
3596075ee0
Fixed the linker scripts to be the way Tomaz Solc proposed.
Something went wrong when cherrypicking his commits in the pull request.
Sorry about that. :(
13 years ago
Piotr Esden-Tempski
3b20a5e34e
Removed the load address statement from the .bss section.
Otherwise the linker will complain: "section has both a load address and
a load region"
13 years ago
Tomaz Solc
bf65589183
Support for exception handling in linker scripts.
This is needed even in plain C when 64 bit variable (e.g. long long int)
arithmetic is used. For example it is required when newlib is compiled with
--enable-newlib-io-long-long.
Conflicts:
lib/stm32/f1/libopencm3_stm32f1.ld
lib/stm32/f2/libopencm3_stm32f2.ld
13 years ago
Tomaz Solc
c3038bc876
Added rcc.h include, needed for osc_t.
13 years ago
Tomaz Solc
5510e1fe3b
Wait for writes to finish upon exiting RTC config
This fixes race condition when rtc_get_counter_val() call immediately follows
rtc_set_counter_val().
13 years ago
Piotr Esden-Tempski
0d50b97ed5
Correct DMA_CCR_MSIZE and PSIZE bit masks. Thanks Tomas Solic.
13 years ago
Piotr Esden-Tempski
b97c59e462
Initial implementation of DAC registers for stm32 by Felix Held
13 years ago
Piotr Esden-Tempski
b8086b4ee2
Merge remote-tracking branch 'gsmcmullin/timer_input'
13 years ago
Gareth McMullin
8820277f09
Added functions for configuring timers in slave mode.
13 years ago
Gareth McMullin
a8ec86a527
Added functions for timer input capture polarity and enable/disable.
13 years ago
Gareth McMullin
4b041697f4
Added convenience function for timer input selection.
13 years ago
Gareth McMullin
a62473fbdf
Added convenience funcions for timer input capture filter and prescaler.
13 years ago
Gareth McMullin
567faa9b61
Corrected parameters of timer_set_mode() to u32.
13 years ago
Gareth McMullin
3be6cd8f76
Corrected bit definitions for capture/compare input selection.
Thanks to Linux Casassa.
13 years ago
Taylor Vesely
66c5f91a87
Implemented gpio_clear() for LPC17xx.
13 years ago
Taylor Vesely
f7bf15343d
Produced build system for Blueboard-LPC1768-H miniblink.
13 years ago
Taylor Vesely
bf2b8aad2f
Added a bunch of register definitions and gpio_set() to LPC17xx gpio.
13 years ago
Taylor Vesely
fa1c6bc632
Successfully compiled and ran miniblink.c for the Blueboard-LPC1768-H.
13 years ago
Taylor Vesely
caade97299
Created vector.c by example. Added reset_handler entry to linker script.
13 years ago
Taylor Vesely
9eb77c9fd7
Wrote miniblink.c for Blueboard-LPC1768-H, cleaned up gpio.h.
13 years ago
Taylor Vesely
968557dfbb
Copy-pasted linker script from LPC13xx to LPC17XX. Set up the ram and
rom regions for the Blueboard-LPC1768-H.
13 years ago
Taylor Vesely
82f89c414a
Started to set up GPIO registers.
13 years ago
Taylor Vesely
cec41eb0c4
Filled in the APB0 memory map for the lpc17xx. Also set values for the
GPIO on AHB.
13 years ago
Taylor Vesely
60788fd9d2
Started porting to LPC17xx. Created file stubs and started conversion.
13 years ago
Daniel O'Connor
404353b1aa
- Add FSMC helper macros. IMO FSMC_BTR_ACCMOD aren't much use, but I left them in case someone uses them.
- FSMC_BASE is already in memorymap.h so don't define it here.
13 years ago
Daniel O'Connor
5a463f03e1
Cast PERIPH_BASE to unsigned otherwise certain operations result in build problems (overflow signed type).
13 years ago
Daniel O'Connor
f76e99c98d
Add mask for SWJ bits.
(These are write only)
13 years ago
Fergus Noble
a30fc96c59
Revert "Fix setting alternate port functions on the STM32F2."
This was also fixed in ac29b654a9
in a
different way. I think the mask definition should be left with 1s
indicating the bits of interest.
See also 87ea496ca7
.
This reverts commit 2433f17e73
.
13 years ago
Fergus Noble
87ea496ca7
Revert "Fix setting alternate port functions on the STM32F4."
This was also fixed in ac29b654a9
in a
different way. I think the mask definition should be left with 1s
indicating the bits of interest.
This reverts commit e11185d47d
.
13 years ago
Piotr Esden-Tempski
26de4cb9d6
Constand value for resetting CAN_TDTxR was too big. Fixed.
13 years ago
Piotr Esden-Tempski
ec34e21ead
Changed parameter size for trigger enable.
13 years ago
Piotr Esden-Tempski
451a5e227d
Started some cleanup in the ADC headers and convenience code.
13 years ago
Piotr Esden-Tempski
4fbd42148a
Added basic exception handling to the stm32 linker scripts. Thanks Mike Smith!
13 years ago
Piotr Esden-Tempski
4e26104c18
Fixed position of PSIZE bits, thanks to Patrick for spotting this.
13 years ago
Piotr Esden-Tempski
06d6f3e0e6
Made spi_init_master ignore CRC and SPE bits.
13 years ago
Piotr Esden-Tempski
b7875d0230
Added dma based usart IO example.
13 years ago
Piotr Esden-Tempski
aaa0158221
Fixed operation order for dma bit calculations.
13 years ago
Piotr Esden-Tempski
1b7cd12f20
Added irq usart example for lisa/m 2.0
13 years ago
Piotr Esden-Tempski
b41987dc7a
Added blocking usart printf for lisa/m 2.0
13 years ago
Piotr Esden-Tempski
22706613d9
Added usart irq example for lisa/m 2.0
13 years ago
Piotr Esden-Tempski
7e9425bdac
Added usart example to lisa/m 2.0
13 years ago
Uwe Hermann
7907b29113
Fix search-replace left-over.
13 years ago
Piotr Esden-Tempski
789ae97212
Some additional LGPL3+ license change cleanups.
Changed the license to LGPL3+ for some makefiles that got ommited in the
previous big patch commit.
Corrected a find and replace error in a linker file.
13 years ago
Piotr Esden-Tempski
43561de329
License change of the library to LGPL, version 3 or later.
Agreed to by all the significant contributors to the library.
13 years ago
Piotr Esden-Tempski
994d559a6c
Corrected interrupt flag register defines.
13 years ago