1178 Commits

Author SHA1 Message Date
Michael Ossmann
82181c2cda trying to rm again 2012-05-27 23:02:18 -06:00
Michael Ossmann
27b1597c1a rm renamed file 2012-05-27 20:33:18 -06:00
Gareth McMullin
154f67598b Fixed setting of interrupt priorities. 2012-05-26 20:47:47 +12:00
Piotr Esden-Tempski
7011d47c70 Mark reg32 variables as used. So that the compiler does not complain. 2012-05-25 17:56:15 -07:00
Michael Ossmann
4c37af55f4 renamed linker script 2012-05-22 14:46:05 -06:00
Michael Ossmann
3a9d48923a semicolons might help 2012-05-22 14:21:11 -06:00
Michael Ossmann
61e162e3d2 Makefile updates 2012-05-22 14:20:39 -06:00
Michael Ossmann
ce14f4c077 updated linker script 2012-05-22 14:15:20 -06:00
Michael Ossmann
5e1bcaa582 gpio.c, vector.c updated for LPC43xx 2012-05-22 13:55:50 -06:00
Michael Ossmann
9439ce9d69 new lib/lpc43xx, starting with copy of lpc17xx 2012-05-22 10:59:27 -06:00
chrysn
282891f8a6 Merge branch 'master' into efm32 2012-05-01 13:49:34 +02:00
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. :(
2012-04-25 17:34:07 +02:00
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"
2012-04-24 09:34:39 +02:00
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
2012-04-24 09:16:22 +02:00
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().
2012-04-24 09:06:32 +02:00
Piotr Esden-Tempski
b8086b4ee2 Merge remote-tracking branch 'gsmcmullin/timer_input' 2012-04-20 16:41:16 -07:00
chrysn
09fea0bc1b Merge branch 'master' into efm32
Conflicts:
	Makefile
2012-04-19 17:28:55 +02:00
Gareth McMullin
8820277f09 Added functions for configuring timers in slave mode. 2012-04-08 14:12:21 +12:00
Gareth McMullin
a8ec86a527 Added functions for timer input capture polarity and enable/disable. 2012-04-08 13:55:16 +12:00
Gareth McMullin
4b041697f4 Added convenience function for timer input selection. 2012-04-08 11:56:42 +12:00
Gareth McMullin
a62473fbdf Added convenience funcions for timer input capture filter and prescaler. 2012-04-08 11:11:52 +12:00
Gareth McMullin
567faa9b61 Corrected parameters of timer_set_mode() to u32. 2012-04-07 20:31:56 +12:00
Taylor Vesely
66c5f91a87 Implemented gpio_clear() for LPC17xx. 2012-03-27 16:42:36 -06:00
Taylor Vesely
f7bf15343d Produced build system for Blueboard-LPC1768-H miniblink. 2012-03-27 08:55:19 -06:00
Taylor Vesely
bf2b8aad2f Added a bunch of register definitions and gpio_set() to LPC17xx gpio. 2012-03-26 16:43:43 -06:00
Taylor Vesely
fa1c6bc632 Successfully compiled and ran miniblink.c for the Blueboard-LPC1768-H. 2012-03-22 16:22:22 -07:00
Taylor Vesely
caade97299 Created vector.c by example. Added reset_handler entry to linker script. 2012-03-22 16:22:22 -07:00
Taylor Vesely
968557dfbb Copy-pasted linker script from LPC13xx to LPC17XX. Set up the ram and
rom regions for the Blueboard-LPC1768-H.
2012-03-22 16:22:22 -07:00
Taylor Vesely
60788fd9d2 Started porting to LPC17xx. Created file stubs and started conversion. 2012-03-22 16:22:21 -07:00
Piotr Esden-Tempski
26de4cb9d6 Constand value for resetting CAN_TDTxR was too big. Fixed. 2012-03-19 23:09:18 -07:00
Piotr Esden-Tempski
ec34e21ead Changed parameter size for trigger enable. 2012-03-19 20:20:05 -07:00
Piotr Esden-Tempski
451a5e227d Started some cleanup in the ADC headers and convenience code. 2012-03-19 17:38:24 -07:00
Piotr Esden-Tempski
4fbd42148a Added basic exception handling to the stm32 linker scripts. Thanks Mike Smith! 2012-03-18 22:59:31 -07:00
Piotr Esden-Tempski
06d6f3e0e6 Made spi_init_master ignore CRC and SPE bits. 2012-03-14 21:00:53 -07:00
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.
2012-03-02 15:39:15 -08:00
chrysn
78c93dc779 add missed license headers to efm32 files
some files had nonstandard shared copyright lines, fixed them too
2012-03-03 00:26:55 +01:00
chrysn
4668adcf1f follow the license change to lgpl3 in efm32
this follows the license change of the master branches in [43561de]. all
files whose copyright is not my own are originally based on files whose
license has been changed in master.

the expression used for the conversion was:

sed -i -e 's/This program is free software: you can redistribute/This library is free software: you can redistribute/g' -e 's/under the terms of the GNU General Public License as published/under the terms of the GNU Lesser General Public License as published/' -e 's/This program is distributed in the hope that/This library is distributed in the hope that/g' -e 's/You should have received a copy of the GNU General/You should have received a copy of the GNU Lesser General/' -e 's/along with this program.  If not/along with this library. If not/' -e 's/GNU General Public License for more details/GNU Lesser General Public License for more details/' */**/efm32/**/*(.)

[43561de] 43561de3297b88d68753cb4625d6dc48bfb43d71
2012-03-03 00:21:21 +01:00
chrysn
563586c072 Merge branch 'master' into efm32 2012-03-02 23:59:52 +01:00
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.
2012-03-02 14:44:49 -08:00
chrysn
541fded753 convenience functions for efm32 gpio
also, the whole gpio header file is now a big doxygen group, structuring
the convenience functions and the register/value definitions
2012-03-01 02:18:22 +01:00
Piotr Esden-Tempski
ec904f176b Cleaned up and streamlined DMA support for f1. Definitely needs a bunch of testing! 2012-02-29 16:02:51 -08:00
Piotr Esden-Tempski
20c5e56234 Fixed spi convenience reset function to compile properly. 2012-02-29 12:02:36 -08:00
Piotr Esden-Tempski
c49f505df4 Added spi reset convenience function. 2012-02-28 11:28:29 -08:00
chrysn
d6a314bed7 efm32: make all interrupts usable in vector table
* define weak symbol for ${irq_name}_isr
* put them in the rom vector table
* declare reset_vector weak in case someone wants to insert code there
* remove null_handler (null handlers should be only requested
  explicitly, and finding out why the chip gets stuck is easier than
  determining whether or not a no-op interrupt handler was executed)
2012-02-27 14:00:34 +01:00
chrysn
2275ed7b0c overhauled documentation
includes minor refactoring in example code and modification of how the
generic and the tinygecko specific vector.h go together (bringing it in
line with stm32/f1's memorymap.h)
2012-02-26 03:42:25 +01:00
chrysn
2180a02e2f first attempt at porting libopencm3 to energymicro
unless sources are explicitly given, the linker scripts and make files
were copied over from the stm32/f1 port.
2012-02-25 23:22:37 +01:00
Piotr Esden-Tempski
2b3f07ee08 Added reset function to i2c convenience functions. 2012-02-24 17:14:50 -08:00
Piotr Esden-Tempski
cbef43ddd8 Added set priority group convenience function. 2012-02-24 16:43:37 -08:00
Gareth McMullin
03e44e91e3 Linker scripts provide stack pointer at the top of RAM.
Thanks to Tomaz Solc.
2012-02-12 15:00:09 -08:00
Mike Smith
7da1967056 Add an interface for soft disconnection, and hook it up in the F107 driver. 2012-02-12 15:00:08 -08:00