Commit Graph

1259 Commits

Author SHA1 Message Date
Jared Boone 733c117c53 Added generalized #defines for USB0 ENDPTCTRL register fields. 2013-07-07 13:52:10 -07:00
Michael Ossmann 2946de9f5d ritimer.csv 2013-07-07 13:52:10 -07:00
Michael Ossmann 922beb0730 gima.csv 2013-07-07 13:52:09 -07:00
Michael Ossmann e3ad0c6dc8 gpio.csv 2013-07-07 13:52:09 -07:00
Michael Ossmann 4112a3c723 finished GPIO registers 2013-07-07 13:52:09 -07:00
Jared Boone 0323d020d0 USB controller in-memory structure #defines/typedefs for dTD and dQH. 2013-07-07 13:52:09 -07:00
Jared Boone 96ea1a35a3 #defines for making USB structure definitions a bit simpler. 2013-07-07 13:52:09 -07:00
Michael Ossmann 029bf6cbcc typo fix in eventrouter.h 2013-07-07 13:52:09 -07:00
Michael Ossmann 6a5deb7282 eventrouter.csv 2013-07-07 13:52:09 -07:00
Michael Ossmann 56361f7123 ccu.csv 2013-07-07 13:52:08 -07:00
Michael Ossmann 7b0cc0c6a3 atimer.csv 2013-07-07 13:52:08 -07:00
Michael Ossmann 299806bc4e csv contributions from GNU Radio Conference 2012 HackFest. Thanks, David! 2013-07-07 13:52:08 -07:00
Michael Ossmann df2ac8bbac scu.csv 2013-07-07 13:52:08 -07:00
Jared Boone b5ba6451af Fixed typo from user manual. 2013-07-07 13:52:08 -07:00
Jared Boone 28df3a2e12 Tweaked #defines of USB0_ENDPTCTRLx to use an indexed #define, which will be handy in other places... 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
Michael Ossmann a0624ecd21 creg.h updates from newer data sheet 2013-07-07 13:52:07 -07:00
TitanMKD f8542c09a6 UART driver and Example code for JellyBean. 2013-07-07 13:52:07 -07:00
Piotr Esden-Tempski 2f425af647 [Style] A small coding style fixing session. 2013-07-05 20:35:13 -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 b7e6fc8691 [Doc] Added tips and tricks section to the HACKING document. 2013-07-03 17:24:38 -07:00
Piotr Esden-Tempski 55b572edec [Workflow] Added simple sublime project config file. 2013-07-03 17:23:52 -07:00
Piotr Esden-Tempski 81bec57109 [Repo] added .DS_Store to gitignore. 2013-07-01 18:26:39 -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 beeb9c3f65 [Style] Do not declare new types if not really necessary. 2013-06-30 22:20:51 -07:00
Piotr Esden-Tempski 647b878031 [Style] Coding style fixes.
* No trailing white spaces
 * No sapces before tabs
 * "int *var" and not "int * var"
2013-06-30 22:09:25 -07:00
BuFran 035c67ced6 Add preliminary support for Cryptographic coprocessor on stm32 F2 and F4 2013-06-30 21:20:42 -07:00
BuFran 3bc5a249a1 Added support for BitBand I/O 2013-06-19 13:51:56 +02:00
Piotr Esden-Tempski fb5c86db07 Spellchecking fixes. 2013-06-16 14:06:37 -07:00
Piotr Esden-Tempski 169dbd6c08 Dropped raw option on github file archive links. 2013-06-13 11:26:16 -07:00
Piotr Esden-Tempski e4a86e269e Replaced goo.gl links with links to our new file archive at github.
https://github.com/libopencm3/libopencm3-archive
2013-06-13 11:20:04 -07:00
Piotr Esden-Tempski f92c45eeb5 Added amendments to the linux kernel coding style. 2013-06-13 10:49:56 -07:00
Piotr Esden-Tempski cabbd21329 Reverted the __packed and __aligned change.
We should not add compiler extensions, it is not our job. We are not a
selfcontained project as kernel is so we should not introduce things
like this.

If we need to add some abstraction for this in the future to support
compilers doing these things differently then we will do that the same
way we dealt with the depricated attribute.
2013-06-13 10:29:43 -07:00
Piotr Esden-Tempski 8da7fbd71e Changed to use accessors instead of casting to volatile pointers.
In places where we were defining memory mapped peripheral buffers we
were using directly a cast to "volatile int_type *". For consistency we
should use dereferenced accessor like: &MMIO32(address)
2013-06-12 21:37:55 -07:00
Piotr Esden-Tempski 39fa9e4c58 Stile fixes run, 80 char boundry. 2013-06-12 21:07:35 -07:00
Piotr Esden-Tempski 34de1e776e Changed to use stdint types. 2013-06-12 19:11:22 -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
Piotr Esden-Tempski 230c673a3e Added reference about locm3 submoduling and IRC channel. 2013-06-10 17:49:12 -07:00
Felix Ruess 0bf8324c91 stm32f1: add timer.o to objects for timer_ic_set_polarity 2013-06-04 18:44:19 +02:00
Karl Palsson a5966093e6 [stm32l1] Never write illegal values to voltage range selection
According to the reference manual, you are _forbidden_ from writing 00 to the
VOS[1:0] bits in PWR_CR.  Writing a 00 is automatically turned into range 2,
or, 10.  Attempting to then |= the bits for range 1 (01) results in the final
result of choosing voltage range 3 (11).  This has fairly catastrophic effects
if you then attempt to switch to PLL clock at 32Mhz.

Oddly, the existing code was working fine on STM32L151C6 revision W, but
failing with revision V silicon.  Regardless, the existing code was wrong and
not following the reference manual.

Further, attempting to change any power voltage range settings without the RCC
enabled will have no effect, so all the higher level helper routines
have added peripheral enable lines before attempting to set the range.
2013-06-03 19:38:37 +00:00