<feed xmlns='http://www.w3.org/2005/Atom'>
<title>feurig/libmaplemidi-cma/libmaple/rcc.h, branch master</title>
<subtitle>C and C++ library for STM32 ARM Cortex-M3 development boards.</subtitle>
<id>https://git.suspectdevices.com/feurig/libmaplemidi-cma/atom?h=master</id>
<link rel='self' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/'/>
<updated>2012-04-11T20:56:50+00:00</updated>
<entry>
<title>Move public headers to include directories; related cleanups.</title>
<updated>2012-04-11T20:56:50+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-11-15T17:45:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=954f9e5065b39fe4c683f4d216b54326d876f51b'/>
<id>urn:sha1:954f9e5065b39fe4c683f4d216b54326d876f51b</id>
<content type='text'>
Move libmaple/*.h to (new) libmaple/include/libmaple/. The new
accepted way to include a libmaple header foo.h is with:

    #include &lt;libmaple/foo.h&gt;

This is more polite in terms of the include namespace. It also allows
us to e.g. implement the Arduino SPI library at all (which has header
SPI.h; providing it was previously impossible on case-insensitive
filesystems due to libmaple's spi.h).

Similarly for Wirish.

The old include style (#include "header.h") is now deprecated.

libmaple/*.h:

- Change include guard #defines from _FOO_H_ to _LIBMAPLE_FOO_H_.
- Add license headers where they're missing
- Add conditional extern "C" { ... } blocks where they're missing
  (they aren't always necessary, but we might was well do it against
  the future, while we're at it.).
- Change includes from #include "foo.h" to #include &lt;libmaple/foo.h&gt;.
- Move includes after extern "C".
- Remove extra trailing newlines

Note that this doesn't include the headers under libmaple/usb/ or
libmaple/usb/usb_lib. These will get fixed later.

libmaple/*.c:

- Change includes from #include "foo.h" to #include &lt;libmaple/foo.h&gt;.

Makefile:

- Add I$(LIBMAPLE_PATH)/include/libmaple to GLOBAL_FLAGS.  This allows
  for users (including Wirish) to migrate their code, but should go
  away ASAP, since it slows down compilation.

Wirish:

- Move wirish/**/*.h to (new) wirish/include/wirish/.  This ignores
  the USB headers, which, as usual, are getting handled after
  everything else.

- Similarly generify wirish/boards/ structure. For each supported
  board "foo", move wirish/boards/foo.h and wirish/boards/foo.cpp to
  wirish/boards/foo/include/board/board.h and
  wirish/boards/foo/board.cpp, respectively. Also remove the #ifdef
  hacks around the .cpp files.

- wirish/rules.mk: put wirish/boards/foo/include in the include path
  (and add wirish/boards/foo/board.cpp to the list of sources to be
  compiled). This allows saying:

      #include &lt;board/board.h&gt;

  instead of the hack currently in place. We can allow the user to
  override this setting later to make adding custom board definitions
  easier.

- Disable -Werror in libmaple/rules.mk, as the current USB warnings
  don't let the olimex_stm32_h103 board compile. We can re-enable
  -Werror once we've moved the board-specific bits out of libmaple
  proper.

libraries, examples:

- Update includes accordingly.
- Miscellaneous cosmetic fixups.

Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
<entry>
<title>rcc: Add RCC_USB to rcc_clk_id/rcc_dev_table.</title>
<updated>2011-09-24T20:02:31+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-07-20T21:08:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=958ead333f7eb3adf200b319b98e99cc1bd49c16'/>
<id>urn:sha1:958ead333f7eb3adf200b319b98e99cc1bd49c16</id>
<content type='text'>
Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
<entry>
<title>rcc: Doxygen improvements.</title>
<updated>2011-08-23T03:29:55+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-08-22T22:09:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=97e4a6d8a6cf0febd00f2c8219f7ba3e33b1a6e1'/>
<id>urn:sha1:97e4a6d8a6cf0febd00f2c8219f7ba3e33b1a6e1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Keep it 80-column clean.</title>
<updated>2011-06-07T18:44:39+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-06-07T18:44:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=450e1c6e17329525639670855043bb169740702d'/>
<id>urn:sha1:450e1c6e17329525639670855043bb169740702d</id>
<content type='text'>
Go through overlong source code lines and convert as many of them as
appropriate to be 80-column clean.  This mostly affects license
headers.  Overlong lines are determined by running following from the
libmaple base directory:

$ ack-grep --nocolor --nogroup --cpp --cc --ignore-dir=usb -- '.{80}'

Note that this excludes libmaple's usb subdirectory, which is still
full of ST code that doesn't follow the libmaple source code
guidelines.

Contents of ~/.ackrc (these won't matter, but are included for
completeness):

--ignore-dir=docs
--ignore-dir=build
--type-set
ld=.ld
--type-set
rst=.rst
--type-set
txt=.txt
--type-set
mk=.mk
</content>
</entry>
<entry>
<title>Tweak some register map base pointers.</title>
<updated>2011-05-26T06:42:06+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-05-23T21:41:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=484f4686291469da85caef0e5be5ba0b57547905'/>
<id>urn:sha1:484f4686291469da85caef0e5be5ba0b57547905</id>
<content type='text'>
Replace

 #define XXX_BASE                        ((xxx_reg_map*)0xDEADBEEF)

with

 #define XXX_BASE                        ((struct xxx_reg_map*)0xDEADBEEF)

for increased GDB-friendliness.
</content>
</entry>
<entry>
<title>rcc.h: Better names for the prescaler divider enums.</title>
<updated>2011-05-19T22:45:45+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-05-19T19:49:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=93d7c920273f7dbce0d79b0fc52203318d210ec0'/>
<id>urn:sha1:93d7c920273f7dbce0d79b0fc52203318d210ec0</id>
<content type='text'>
The various clock divider enums suitable for passing to
rcc_set_prescaler() were badly named.  They have been renamed as
follows:

    * adc_prescaler_divider -&gt; rcc_adc_divider
    * apb1_prescaler_divider -&gt; rcc_apb1_divider
    * apb2_prescaler_divider -&gt; rcc_apb2_divider
    * ahb_prescaler_divider -&gt; rcc_ahb_divider
</content>
</entry>
<entry>
<title>rcc.h: Naming anonymous rcc_clk_id enum</title>
<updated>2011-05-19T22:45:45+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-05-19T19:44:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=21b247b46af413cd7f355c9acbe693996965df2b'/>
<id>urn:sha1:21b247b46af413cd7f355c9acbe693996965df2b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Adding RCC_SPI3 for high density devices.</title>
<updated>2011-04-29T16:02:51+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-04-29T16:02:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=7d0445ec14e427d3c3ff7688e4150ebe65eb15d1'/>
<id>urn:sha1:7d0445ec14e427d3c3ff7688e4150ebe65eb15d1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Adding rcc_dev_clk(), an accessor for a peripheral's clock line.</title>
<updated>2011-04-26T02:08:30+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-04-26T02:08:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=4941335ab8f6c3570e12069d60820cc2936f8c5e'/>
<id>urn:sha1:4941335ab8f6c3570e12069d60820cc2936f8c5e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Adding i2c2 and i2c fast mode</title>
<updated>2011-04-12T06:21:15+00:00</updated>
<author>
<name>Anton Eltchaninov</name>
<email>anton.eltchaninov@gmail.com</email>
</author>
<published>2011-04-11T11:17:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=1c05ac8497222a12a675ba31564e7c4864107de9'/>
<id>urn:sha1:1c05ac8497222a12a675ba31564e7c4864107de9</id>
<content type='text'>
Signed-off-by: Anton Eltchaninov &lt;anton.eltchaninov@gmail.com&gt;
</content>
</entry>
</feed>
