aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/libmaple.rst
blob: 88c5d6b0d91b5bf5e475b5c211c575766c612e26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.. highlight:: sh

.. _libmaple:

``libmaple``
============

LeafLabs' libmaple is the open source library we have developed for
programming the `STM32 <http://www.st.com/stonline>`_ line of
microcontrollers.  Libmaple's `source is on GitHub
<https://github.com/leaflabs/libmaple>`_; :ref:`patches are welcome
<libmaple-contributing>`.

.. _libmaple-vs-wirish:

Libmaple is split into two pieces: 

- A low-level layer, written in C, called *libmaple proper*, located
  in the `libmaple/
  <https://github.com/leaflabs/libmaple/tree/master/libmaple>`_
  subdirectory of the source repository.

- A high-level layer, written in C++, called *wirish*, in the `wirish/
  <https://github.com/leaflabs/libmaple/tree/master/wirish>`_
  subdirectory.

Wirish is :ref:`largely compatible <arduino-compatibility>` with the
AVR libraries written for the `Arduino <http://arduino.cc>`_ and
`Wiring <http://wiring.org.co/>`_ development boards. The Wirish
:ref:`language` page is a good summary of what Wirish provides; a
:ref:`complete Wirish API index <language-index>` is also
available. :ref:`Wirish libraries <libraries>` are documented
separately.

The following pages document libmaple. They are intended for advanced users who
know how to write C.

.. toctree::
   :maxdepth: 1

   libmaple/overview
   libmaple/apis
   libmaple/contributing
   libmaple/coding-standard