<feed xmlns='http://www.w3.org/2005/Atom'>
<title>feurig/libmaplemidi-cma/examples/test-session.cpp, branch 0.0.10</title>
<subtitle>C and C++ library for STM32 ARM Cortex-M3 development boards.</subtitle>
<id>https://git.suspectdevices.com/feurig/libmaplemidi-cma/atom?h=0.0.10</id>
<link rel='self' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/atom?h=0.0.10'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/'/>
<updated>2011-04-27T21:38:33+00:00</updated>
<entry>
<title>Trivial test-session.cpp bugfix</title>
<updated>2011-04-27T21:38:33+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-04-27T21:38:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=d63748b8586ca630ed6ffa5eb46457b655f00591'/>
<id>urn:sha1:d63748b8586ca630ed6ffa5eb46457b655f00591</id>
<content type='text'>
</content>
</entry>
<entry>
<title>RET6 fixes</title>
<updated>2011-04-27T19:33:06+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-04-27T19:32:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=d5097adadf95525ea186756928cc92c0d4763859'/>
<id>urn:sha1:d5097adadf95525ea186756928cc92c0d4763859</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Better debug port support.</title>
<updated>2011-04-26T02:03:25+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-04-26T01:23:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=2f07cb6f6c6de25c97f5fa40e779c65b3a2edfe7'/>
<id>urn:sha1:2f07cb6f6c6de25c97f5fa40e779c65b3a2edfe7</id>
<content type='text'>
- gpio.h: afio_mapr_swj_config() renamed afio_cfg_debug_ports()

- [new] wirish_debug.h: disableDebugPorts(), enableDebugPorts()

- Maple, Maple Native, and Maple RET6 PIN_MAPs are now larger by 5,
  have mappings for the extra JTAG/SW pins.

  Documentation was updated appropriately.
</content>
</entry>
<entry>
<title>Minor test-session.cpp fixup</title>
<updated>2011-04-25T21:58:37+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-04-25T21:58:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=bdf325852190f2636f8d8ad5268ea1bcb602a2e0'/>
<id>urn:sha1:bdf325852190f2636f8d8ad5268ea1bcb602a2e0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Resolving some FIXMEs.</title>
<updated>2011-04-12T00:45:47+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-04-12T00:45:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=e1a5d8edafca569cf96ae88956c1392cabe84ab0'/>
<id>urn:sha1:e1a5d8edafca569cf96ae88956c1392cabe84ab0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Adding button test to examples/test-session.cpp.</title>
<updated>2011-04-11T16:32:09+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-04-11T16:32:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=587ac2c0778a4ab63a34e90f5a86594c2aca1978'/>
<id>urn:sha1:587ac2c0778a4ab63a34e90f5a86594c2aca1978</id>
<content type='text'>
</content>
</entry>
<entry>
<title>USART refactor.</title>
<updated>2011-04-07T17:18:36+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-04-06T17:57:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=f6f9a1122706ed336c52c984d76219dee0594487'/>
<id>urn:sha1:f6f9a1122706ed336c52c984d76219dee0594487</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Board-specific values; corresponding QA test generalizations.</title>
<updated>2011-03-30T11:19:13+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-03-30T04:55:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=6cf31789965b87efe9c51c9b1acc91c7cc9cb463'/>
<id>urn:sha1:6cf31789965b87efe9c51c9b1acc91c7cc9cb463</id>
<content type='text'>
Various board-specific #defines and arrays of pins added.

For the changelog (some of this information predates this commit):

* wirish/boards.h now declares the following arrays of pin numbers:

      * boardPWMPins - PWM-capable pins
      * boardADCPins - ADC-capable pins
      * boardUsedPins - pins already in use, e.g. BOARD_BUTTON_PIN

  It also declares a bool boardUsesPin(uint8 pin) function for
  convenient testing of whether a pin is in use.

* wirish/boards/*.h now define:

      * BOARD_USART1_TX_PIN
      * BOARD_USART1_RX_PIN
      * BOARD_USART2_TX_PIN
      * BOARD_USART2_RX_PIN
      * BOARD_USART3_TX_PIN
      * BOARD_USART3_RX_PIN
      * BOARD_NR_GPIO_PINS (renamed from NR_GPIO_PINS)
      * BOARD_NR_USARTS (renamed from NR_USARTS)
      * BOARD_NR_PWM_PINS
      * BOARD_NR_ADC_PINS
      * BOARD_NR_USED_PINS

* wirish/boards/maple_native.h now defines:

      * BOARD_UART4_TX_PIN
      * BOARD_UART4_RX_PIN
      * BOARD_UART5_TX_PIN
      * BOARD_UART5_RX_PIN

  (Unfortunately, wirish/boards/maple_RET6.h cannot, since at least
  one of the UART4/UART5 pins are used already; this will require layout
  changes for a wide-release Maple form factor RET6 board).

* wirish/boards/*.cpp all include the corresponding array definitions.
  They all live in flash by default, thanks to the new __FLASH__ macro
  in wirish/wirish_types.h, which is a synonym for the existing __attr_flash
  #define in libmaple/libmaple_types.h.

The documentation was updated to include this information.  It also
gained various FIXME/TODO comments related to its generalization
across boards.

The quality assurance-related examples (examples/qa-slave-shield.cpp
and examples/test-session.cpp) now make heavy use of board-specific
values to ensure portability.
</content>
</entry>
<entry>
<title>Final stm32_pin_info design candidate; ADC3 support on Native.</title>
<updated>2011-03-26T00:09:30+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-03-26T00:09:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=c5e16e962548c6117bc7d2c5bc1fbc30ecb76914'/>
<id>urn:sha1:c5e16e962548c6117bc7d2c5bc1fbc30ecb76914</id>
<content type='text'>
Added an adc_dev to struct stm32_pin_info.  This was necessary to add
support for the channels on the Native which are only connected to
ADC3, but it does add a bunch of NULLs to the PIN_MAPs.

I don't think any other peripherals need representation on a per-pin
basis.  Each peripheral library will be responsible for keeping track
of related GPIO ports and bits, and we can throw #defines in to
boards/*.h for other things (e.g. BOARD_SPI1_MISO_PIN).

Fleshed out the ADC refactor and brought it more in keeping with the
new design as it evolves.

A couple of other tweaks.  Notably: waitForButtonPress() now takes a
default argument meaning "wait forever".

Removed Maple-specific documentation from core functions in io.h; this
information will need to go into the individual board docs files.
</content>
</entry>
<entry>
<title>Adding /wirish/boards/ for easier porting; shrank PIN_MAPs.</title>
<updated>2011-03-24T21:31:47+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2011-03-24T21:27:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/feurig/libmaplemidi-cma/commit/?id=9d2b4e574c8196a7d1fe4b3243d2bcd3b1dbdb98'/>
<id>urn:sha1:9d2b4e574c8196a7d1fe4b3243d2bcd3b1dbdb98</id>
<content type='text'>
/wirish/boards/ contains xxx.h and xxx.cpp (for xxx=maple,
maple_native, maple_mini, maple_RET6).  The headers contain the
board-specific #defines that used to live in boards.h (except
BOARD_INIT, which was removed).  The CPP files contain the PIN_MAP
definitions that used to live in boards.cpp, and a proper boardInit()
function to replace the old BOARD_INIT macro.  This will make it
easier to add new boards in the future.

struct PinMapping was renamed struct stm32_pin_info, and was moved
into a new wirish_types.h.  Its external interrupt field was moved
into struct gpio_dev, which saves memory by storing an afio_exti_port
per port, rather than one per pin.  Also rearranged the stm32_pin_info
fields to improve packing.  Maple's PIN_MAP is now down to below 500
bytes.
</content>
</entry>
</feed>
