Commit Graph

77 Commits

Author SHA1 Message Date
Jared Boone b5ba6451af Fixed typo from user manual. 2013-07-07 13:52:08 -07:00
Jared Boone 24d8d81b43 Add generated bit/shift/mask #defines for CGU, CREG, RGU, USB (USB0 only) peripherals.
Added script used to generate #defines above.
Fixed one small change in the #define naming scheme in i2c0_init().
2013-07-07 13:52:08 -07:00
Jared Boone 49b2be5224 Added CGU PLL0USB_CTRL bit 3, DIRECTO to cgu.csv. 2013-07-07 13:52:07 -07:00
Michael Ossmann 77a1f68ea3 gpdma.csv 2013-07-07 13:52:07 -07:00
Michael Ossmann 0f7e6cf54d cgu.csv 2013-07-07 13:52:07 -07:00
Michael Ossmann 07ee98420c sgpio.csv 2013-07-07 13:52:07 -07:00
Michael Ossmann ae9a6ae4af started csv files for generation of register field stuff 2013-07-07 13:52:07 -07:00
Piotr Esden-Tempski db1f19c8f8 [Stylecheck] Also accept the usage of the x defines. 2013-07-05 19:56:08 -07:00
Piotr Esden-Tempski 66b9d658bb [Stylecheck] Accept defines using lower case x.
It is considerede CamelCase but we do accept those as it makes the code
more readable knowing that the lower case x is a placeholder for a
number or letter in the define and the define applies to all "banks",
"buffers", "subsystems".
2013-07-05 19:45:31 -07:00
Piotr Esden-Tempski 21e01edc63 [Stylecheck] We actually prefer __attribute__. 2013-07-05 19:25:23 -07:00
Piotr Esden-Tempski 01f690d0d6 [Stylecheck] Adapted checkpatch.pl to coding style. 2013-07-05 18:56:16 -07:00
Piotr Esden-Tempski 56e2928ebe [Style] Removed trailing spaces. 2013-06-30 23:40:44 -07:00
BuFran c2f7128459 Linker generation script for most of the supported chips 2013-06-30 23:30:35 -07:00
Piotr Esden-Tempski 7df63fcae0 First coarse run to fix coding style in locm3.
Added --terse and --mailback options to the make stylecheck target. It
also does continue even if it enounters a possible error.

We decided on two exceptions from the linux kernel coding standard:
- Empty wait while loops may end with ; on the same line.
- All blocks after while, if, for have to be in brackets even if they
  only contain one statement. Otherwise it is easy to introduce an
  error.

Checkpatch needs to be adapted to reflect those changes.
2013-06-12 18:22:56 -07:00
Piotr Esden-Tempski 48e0f3326b Added linux kernel checkpatch.pl script and stylecheck target.
To make it easier on everyone to keep a uniform coding style throughout
the project we will be using this target to verify our code for
complience.

Currently a lot of files in the project don't fully follow the coding
style. We need to reach that spot over time though. :)
2013-06-11 18:10:29 -07:00
chrysn a1f4c29872 Merge branch 'efm32'
this adds support for energy micro's efm32 tiny gecko, gecko, leopard gecko and
giant gecko series.

also, the experimental libopencmsis is included in this branch, as it is
required for full operation of the free energymicro standard library
2012-10-29 14:44:37 +01:00
chrysn f594af86c8 fixes for generated header cleanup
* make target phony
* don't complain about missing files
2012-10-23 01:59:41 +02:00
chrysn efce73f815 make `make clean` work again
the irq2nvic_h generates files in a way make doesn't understand, so it
now also provides an option to clean up again
2012-10-23 01:38:27 +02:00
chrysn 2ad04777bf only generate irq headers on demand
as header file generation is not directly controlled by make (which, by
the way, makes the generatedheaders target phony), the script has to
take care of not needlessly generating files itself lest to have make
rebuild everything everytime
2012-10-23 01:31:30 +02:00
chrysn a818dbe729 use generalized libopencm3 functions in cmsis 2012-10-19 00:18:49 +02:00
chrysn 75c9cfc287 BEGIN_DECLS wrap nivc.h declarations for c++ 2012-10-18 21:19:04 +02:00
chrysn 41c8c229cc nvic.h generation script: be on safe side with directories
now tries to mkdir its way to the output files

this wouldn't be a problem currently if it wasn't for the efm32 data
lingering in the wrong branch, but otoh it's just on the safe side in
case we meet architectures that don't need other specializations at all.
2012-10-18 21:12:00 +02:00
chrysn c69916ffb6 integrate irq2nvic_h script in buildprocess 2012-10-18 17:58:12 +02:00
chrysn ae832b4ee8 split irq.yaml output in nvic.h and vector_nvic.h
the weak pragmas need to be used in the very compilation unit where
their target is defined, requiring another dispatch
2012-10-18 17:33:20 +02:00
chrysn 5ceb377a37 switch all interrupt lists to yaml format 2012-10-18 16:52:48 +02:00
Michael Ossmann 24cc217d10 lpcvtcksum: a simple Python program for generating LPC43xx vector table signatures 2012-05-27 22:57:56 -06:00
Piotr Esden-Tempski 5d97653163 Added black magic probe flashing support to the example code makefile. 2011-10-02 01:25:33 -07:00