<feed xmlns='http://www.w3.org/2005/Atom'>
<title>feurig/libmaplemidi-cma/libmaple/timer.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>timer.h: fix timer_oc_set_mode().</title>
<updated>2011-10-12T13:22:15+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-10-12T13:22:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=3b9f0a03bfb719c84a2239c064b51050fddcb6a6'/>
<id>urn:sha1:3b9f0a03bfb719c84a2239c064b51050fddcb6a6</id>
<content type='text'>
timer_oc_set_mode() incorrectly writes to CCMR1 when channel is 2; fix
this.

Thanks to ala42 for the fix.

Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
<entry>
<title>Added more doxygen file level headers.  Documented a few more functions.</title>
<updated>2011-09-13T07:35:12+00:00</updated>
<author>
<name>Michael Hope</name>
<email>michaelh@juju.net.nz</email>
</author>
<published>2011-08-31T08:45:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=b9be2450f0e3d39d234221ec301a319b79dcfb4e'/>
<id>urn:sha1:b9be2450f0e3d39d234221ec301a319b79dcfb4e</id>
<content type='text'>
Signed-off-by: Michael Hope &lt;michaelh@juju.net.nz&gt;
</content>
</entry>
<entry>
<title>timer.h: Doxygen</title>
<updated>2011-05-20T19:10:37+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-05-20T19:10:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=07899c0db3f2eb5586398fa36831cf4854110f06'/>
<id>urn:sha1:07899c0db3f2eb5586398fa36831cf4854110f06</id>
<content type='text'>
</content>
</entry>
<entry>
<title>timer:  Shortening long names.</title>
<updated>2011-05-19T22:45:46+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-05-19T21:00:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=178ef4089d6569f8142ed738f9d9f1c082c30d99'/>
<id>urn:sha1:178ef4089d6569f8142ed738f9d9f1c082c30d99</id>
<content type='text'>
Various names in timer.h were too unwieldy.  Making these slightly
more bearable.
</content>
</entry>
<entry>
<title>timer: Moving some Doxygen comments.</title>
<updated>2011-05-19T22:45:46+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-05-19T20:51:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=46dd8e69d9750240498e2c2c8bf8dcb2b08de5e1'/>
<id>urn:sha1:46dd8e69d9750240498e2c2c8bf8dcb2b08de5e1</id>
<content type='text'>
From declaration to definition, to keep with convention.
</content>
</entry>
<entry>
<title>timer.h: Naming tweaks.</title>
<updated>2011-05-19T22:45:46+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-05-19T20:50:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=60e5eccf9e097ca9242d427711c4a0da5ae3e4fd'/>
<id>urn:sha1:60e5eccf9e097ca9242d427711c4a0da5ae3e4fd</id>
<content type='text'>
Renamed timer_reg_map_union -&gt; timer_reg_map.

Named the anonymous timer_type.
</content>
</entry>
<entry>
<title>Doxygen bugfixes.</title>
<updated>2011-04-12T04:08:54+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-04-12T04:08:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=83f14f36d05af46ad7c7d71b0b9784439afdbc7d'/>
<id>urn:sha1:83f14f36d05af46ad7c7d71b0b9784439afdbc7d</id>
<content type='text'>
Fixed various Doxygen comment errors.
</content>
</entry>
<entry>
<title>timer_set_dma_burst_length() and TIMER8 comment bugfixes</title>
<updated>2011-03-24T12:01:13+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-03-24T11:56:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=a5901fc72e2edc0859c3d5b50af4e7e621e776cd'/>
<id>urn:sha1:a5901fc72e2edc0859c3d5b50af4e7e621e776cd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Initial timer refactor.</title>
<updated>2011-03-24T11:25:14+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-03-22T20:59:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=296b1188bfb8cf28466b95f1dd0fde309b1f9399'/>
<id>urn:sha1:296b1188bfb8cf28466b95f1dd0fde309b1f9399</id>
<content type='text'>
Basic PWM works.  Had some problems in testing that might be due to
USART bugs.

HardwareTimer has been removed from the build for now; I will
re-implement it in terms of the new libmaple API, but consider it
deprecated.  Let's come up with something better.

Servo is implemented in terms of HardwareTimer, so it also has been
temporarily removed from the build.

pwmWrite() likely got a little bit less inefficient due to
indirection, but the PIN_MAPs shrank by a pointer per PinMapping.
</content>
</entry>
</feed>
