<feed xmlns='http://www.w3.org/2005/Atom'>
<title>feurig/libmaplemidi-cma/libmaple/syscalls.c, 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-06-07T23:15:05+00:00</updated>
<entry>
<title>Move syscalls.c into Wirish.</title>
<updated>2012-06-07T23:15:05+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2012-06-07T09:45:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=d14105d11ef1b2fa429318425efcb9c125f60f61'/>
<id>urn:sha1:d14105d11ef1b2fa429318425efcb9c125f60f61</id>
<content type='text'>
libmaple takes orders, it doesn't give them.

Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
<entry>
<title>Fix a bunch of Doxygen file-level comments.</title>
<updated>2012-05-08T20:22:41+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2012-05-08T20:22:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=306e19cb9ffc452f5759c863ef55b6e9e837f6b1'/>
<id>urn:sha1:306e19cb9ffc452f5759c863ef55b6e9e837f6b1</id>
<content type='text'>
Fix @file in many places. Also fix up the descriptions where it's
appropriate. This standardizes the @file formatting across the library
to explicitly include any parent directories up to the repository
root.

Besides being nice, this will hopefully let us manage Doxygen's XML
output so as to make extracting series-specific pieces via Breathe in
the leaflabs-docs repo possible.

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>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>syscalls.c: Allow environment to specify heap boundaries.</title>
<updated>2011-09-13T00:59:12+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-09-13T00:59:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=f711c740e011b4f0014e934720bf8c4d1ac8a109'/>
<id>urn:sha1:f711c740e011b4f0014e934720bf8c4d1ac8a109</id>
<content type='text'>
Rename HEAP_START/HEAP_END macros CONFIG_HEAP_START/CONFIG_HEAP_END,
to mark them as build-time configuration options.  Wrap their
definitions with #ifndefs appropriately.
</content>
</entry>
<entry>
<title>[support/ld] Add linker support for reconfigurable heap.</title>
<updated>2011-09-12T21:25:01+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-09-12T20:24:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=fc4bd8eb9ea6271ad1e3aa734657808e77ac1e2a'/>
<id>urn:sha1:fc4bd8eb9ea6271ad1e3aa734657808e77ac1e2a</id>
<content type='text'>
- common_header.inc: Declare EXTERN symbols _lm_heap_start and
  _lm_heap_end.

- common_rom.inc: Check for _lm_heap_start and _lm_heap_end.  If they
  are defined, preserve their values.  Otherwise, _lm_heap_start is
  starts after .bss, and _lm_heap_end is the end of SRAM.

  This allows existing linker scripts to continue using the old heap
  scheme, but allows for customizability elsewhere.

- syscalls.c: Respect the addresses of _lm_heap_start and _lm_heap_end
  as the boundaries of the heap in _sbrk().
</content>
</entry>
<entry>
<title>syscalls.c: Bugfix _sbrk() implementation.</title>
<updated>2011-09-08T03:34:24+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-09-07T18:39:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=3c0a3ee2516e6709484a922b8298c84eccf87490'/>
<id>urn:sha1:3c0a3ee2516e6709484a922b8298c84eccf87490</id>
<content type='text'>
Fix _sbrk() implementation so it properly rejects negative arguments
which would send the program break below the heap start.  Fix
incorrect check against argument causing heap overflow.  Also set
errno properly to ENOMEM when the call fails.

Beginning and end of the heap are now determined by HEAP_START and
HEAP_END macros.  Their current values seem to work OK for heaps on
the internal SRAM, but they'll need to get generalized for Maple
Native.
</content>
</entry>
<entry>
<title>syscalls.c: Remove fictitious uart_send() and broken comments.</title>
<updated>2011-09-08T03:34:23+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-09-07T04:51:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=a1772c16e1048b172bd0c4a0dcf050748500a678'/>
<id>urn:sha1:a1772c16e1048b172bd0c4a0dcf050748500a678</id>
<content type='text'>
uart_send() is not part of libmaple, and nm doesn't show it getting
linked in from anywhere else, so I don't believe it exists.  Remove it.

Also remove some commented-out sections from getch(), putch(),
_write(), and fgets().  These either reference uart_send() or use old
libmaple APIs which no longer exist.
</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>whitespace cleanups</title>
<updated>2010-09-27T04:40:44+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@mit.edu</email>
</author>
<published>2010-09-27T04:40:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=753f89de354eff212d84f3f2aff41146865da342'/>
<id>urn:sha1:753f89de354eff212d84f3f2aff41146865da342</id>
<content type='text'>
</content>
</entry>
</feed>
