<feed xmlns='http://www.w3.org/2005/Atom'>
<title>feurig/libmaplemidi-cma/wirish/Print.cpp, 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-05-31T22:55:44+00:00</updated>
<entry>
<title>Assert LeafLabs copyright in wirish/Print.cpp.</title>
<updated>2012-05-31T22:55:44+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2012-05-31T22:55:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=819a2404ca1b2b3a164f9b6008db767faffa268d'/>
<id>urn:sha1:819a2404ca1b2b3a164f9b6008db767faffa268d</id>
<content type='text'>
This should get replaced with a clean-room MIT licensed version, but
pieces of it are ours (notably the bugfixes to the floating point
printing routines), so might as well do the copyright thing.

Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
<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>Update Print to match Arduino master.</title>
<updated>2011-06-08T20:39:04+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-06-08T20:39:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=5c847fda31d956cc62c511a5fe277d197777de39'/>
<id>urn:sha1:5c847fda31d956cc62c511a5fe277d197777de39</id>
<content type='text'>
Add base argument to integral Print methods, defaulting to DEC so as
not to break backwards compatibility.  Add precision argument to
floating-point Print methods.

These changes increase compatibility with the Arduino Print
implementation.
</content>
</entry>
<entry>
<title>SerialUSB fixups.</title>
<updated>2011-05-04T17:31:53+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-05-04T17:15:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=e7d5f4c167f063ca186bfa30f3ca72b1ca1a11aa'/>
<id>urn:sha1:e7d5f4c167f063ca186bfa30f3ca72b1ca1a11aa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Minor Print cleanups.</title>
<updated>2011-04-25T22:02:10+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-04-25T22:02:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=842096ba3533ea01dffb2b1b3cdff30f5d525a9c'/>
<id>urn:sha1:842096ba3533ea01dffb2b1b3cdff30f5d525a9c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Compromise Print implementation.</title>
<updated>2011-04-12T21:44:27+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-04-12T05:13:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=f72d2948a8daec00b4090fb8b80e8cfe6377100d'/>
<id>urn:sha1:f72d2948a8daec00b4090fb8b80e8cfe6377100d</id>
<content type='text'>
The users really hated the code size requirements for an snprintf()-based
Print implementation, but I really hated how bad the old implementation was.

Revised version fixes bugs related to printing 64-bit values and has some
improved behavior when it comes to printing doubles.  Now, instead of
happily printing garbage values when large doubles are printed, we try
printing "&lt;large double&gt;" or "-&lt;large double&gt;" (depending on sign) when
the argument is too big for the old strategy to accommodate.
</content>
</entry>
<entry>
<title>Reverting "Rewrote Print class."</title>
<updated>2011-04-12T21:25:51+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-04-12T05:07:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=b99df81845ea89279771ac0ce9278dce1dd44905'/>
<id>urn:sha1:b99df81845ea89279771ac0ce9278dce1dd44905</id>
<content type='text'>
This reverts commit 8bd3cebbee62e2dd7e961b149cc8bb0e980eaf88.
</content>
</entry>
<entry>
<title>Rewrote Print class.</title>
<updated>2011-02-24T20:45:41+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-02-24T19:42:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=8bd3cebbee62e2dd7e961b149cc8bb0e980eaf88'/>
<id>urn:sha1:8bd3cebbee62e2dd7e961b149cc8bb0e980eaf88</id>
<content type='text'>
The old Print class couldn't print uint64 values, and featured
hand-hacked functionality better handled by snprintf().  Redid it
using snprintf(), using "[u]int[8,16,32,64]" types for more clarity,
and eliminated some private methods in favor of auxiliary functions in
Print.cpp.

Breaking compatibility with original implementation in three ways:

  - Print::print(double) is now accurate to 6 digits, rather
    than 2; this is consistent with the default behavior of the %f
    format specifier, and if you're using floating point, it's slow
    enough that you probably want the increased accuracy.

  - The only bases you can print a number to are 2, 8, 10, and
    16.  8, 10, and 16 already have format specifiers, and 2 is an
    important special case; others complicate matters unnecessarily.

  - Printing numbers in bases other than 10 treats them as
    unsigned quantities (i.e., won't print '-' characters).  This is
    more consistent with C++'s behavior for hexadecimal and octal
    literals (e.g., 0xFFFFFFFF has type uint32).

Updated HardwareSerial and USBSerial class documentation to reflect
the new behavior.
</content>
</entry>
<entry>
<title>wirish reformatted and code-styled</title>
<updated>2010-09-27T01:47:55+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@mit.edu</email>
</author>
<published>2010-09-27T01:47:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=849bc0f8f6abf42567a152cf6e01bf7349902aac'/>
<id>urn:sha1:849bc0f8f6abf42567a152cf6e01bf7349902aac</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Preliminary wirish USBSerial implementation.</title>
<updated>2010-06-04T04:43:21+00:00</updated>
<author>
<name>Perry Hung</name>
<email>iperry@alum.mit.edu</email>
</author>
<published>2010-06-04T04:43:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=88d4b095e4590ab9bbafcf76e134d168f66c41b1'/>
<id>urn:sha1:88d4b095e4590ab9bbafcf76e134d168f66c41b1</id>
<content type='text'>
-updated examples
-removed HardwareUSB
-cleaned up a handful of includes
</content>
</entry>
</feed>
