<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/libmaple/wirish/stm32f1/boards_setup.cpp, branch master</title>
<subtitle>Working copy of Leaflabs libmaple</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/libmaple/atom?h=master</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/libmaple/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/libmaple/'/>
<updated>2013-05-02T16:31:45+00:00</updated>
<entry>
<title>Reverted work change</title>
<updated>2013-05-02T16:31:45+00:00</updated>
<author>
<name>mlundinse</name>
<email>lundin@mlu.mine.nu</email>
</author>
<published>2013-05-02T16:31:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/libmaple/commit/?id=63f3c453f8fd2a7fe1c2dde9fdb22f1802681384'/>
<id>urn:sha1:63f3c453f8fd2a7fe1c2dde9fdb22f1802681384</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dont initialise SerialUSB by default</title>
<updated>2013-04-23T18:48:01+00:00</updated>
<author>
<name>mlundinse</name>
<email>lundin@mlu.mine.nu</email>
</author>
<published>2013-04-23T18:48:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/libmaple/commit/?id=cd7f34a357c1035a2c69918131a923e4006544a0'/>
<id>urn:sha1:cd7f34a357c1035a2c69918131a923e4006544a0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wirish: Weaken boards_private.h definitions.</title>
<updated>2012-06-07T07:38:29+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2012-06-05T19:07:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/libmaple/commit/?id=cc28a31a5b266bdb350130e69a4d2446ed0ff5b5'/>
<id>urn:sha1:cc28a31a5b266bdb350130e69a4d2446ed0ff5b5</id>
<content type='text'>
This lets users override them conveniently if our decisions don't
suit.

Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
<entry>
<title>Provide wirish::priv::series_init() on F1.</title>
<updated>2012-06-07T07:38:29+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2012-06-05T19:04:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/libmaple/commit/?id=dbe91ade96a3f550462947314da79a08a6cf9e0a'/>
<id>urn:sha1:dbe91ade96a3f550462947314da79a08a6cf9e0a</id>
<content type='text'>
This lets us remove the weak definition in boards.cpp.

Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
<entry>
<title>Remove a completed FIXME comment.</title>
<updated>2012-06-07T07:38:28+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2012-06-05T18:38:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/libmaple/commit/?id=4d6905d298ed7e45ce67a387c05ad7e38f2e10ae'/>
<id>urn:sha1:4d6905d298ed7e45ce67a387c05ad7e38f2e10ae</id>
<content type='text'>
Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
<entry>
<title>Slightly improve and generify the USB infrastructure.</title>
<updated>2012-06-04T02:40:39+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2012-06-03T10:00:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/libmaple/commit/?id=8796a81efc61a7406625ee278125a52c62e626f4'/>
<id>urn:sha1:8796a81efc61a7406625ee278125a52c62e626f4</id>
<content type='text'>
The good news is that &lt;libmaple/usb.h&gt; and &lt;libmaple/usb_cdcacm.h&gt; did
turn out generic enough in what they specify to go on unchanged.

However, we can't just go on assuming that there's USB just because
we're on an F1. Now that there's value line in the tree, we need to be
more careful (value line F1s don't have USB peripherals). To that end,
make all the F1 board-includes/*.mk files specify what line their MCU
is with an MCU_F1_LINE variable. Use that to hack
libmaple/usb/rules.mk so we only try to build the USB module under
appropriate circumstances.

While we're at it, add a vector_symbols.inc for value line MCUs under
support/ld/. We need this to get the target-config.mk modifications
implied by the addition of MCU_F1_LINE. We'll fix up some other
performance-line-isms under libmaple/stm32f1 in a separate commit.

Also in libmaple/usb/:

- Move everything into a new stm32f1 directory. Due to aforementioned
  rules.mk hacks, there is no immediate need for an stm32f2
  directory (USB support doesn't exist there).

- Update the README for style and content.

Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
<entry>
<title>Bring timer initialization back to init().</title>
<updated>2012-06-03T01:04:13+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2012-06-03T01:02:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/libmaple/commit/?id=6c52b7e870ddb4308341cacf8c1cd60d47fa123a'/>
<id>urn:sha1:6c52b7e870ddb4308341cacf8c1cd60d47fa123a</id>
<content type='text'>
Turns out the F1 code was pretty portable after all, so take it from
the F1 boards_setup.cpp and stick it back into boards.cpp. The only
change needed was to add a call to the newly-minted
timer_has_cc_channel() (and this is necessary on F103 XL-density,
anyway).

Also assert LeafLabs copyright in boards.cpp. We really need to do
this throughout the library; it's basically been rewritten since
Perry.

Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
<entry>
<title>stm32.h: Various updates, mostly to help STM32F1 line support.</title>
<updated>2012-04-24T09:01:28+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2012-04-24T09:01:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/libmaple/commit/?id=53a51ccf05b2e24c1d9253cb92c68f98869e191a'/>
<id>urn:sha1:53a51ccf05b2e24c1d9253cb92c68f98869e191a</id>
<content type='text'>
Add STM32_HAVE_USB feature test macro requirement for
&lt;series/stm32.h&gt;. This will let us test if we've got a USB peripheral.
wirish/stm32f1/boards_setup.cpp is set up to use this when turning on
USB CDC ACM support at init() time.

Rework the STM32F1 &lt;series/stm32.h&gt; to make it easier to support the
various lines that subdivide that series. We don't really support
anything besides performance line yet, but there's been enough
enthusiasm for value and connectivity line support in the past that
these hooks seem worth adding. This means adding an STM32_F1_LINE
macro and STM32_F1_LINE_[PERFORMANCE,VALUE,ACCESS,CONNECTIVITY] macros
for values that STM32_F1_LINE can take, and generalizing the rest of
the file to begin taking this into account. Some TODOs remain, but
filling these in is the responsibility of future libmaple porting
efforts.

One pleasant consequence of the F1 stm32.h rework is that the build
system no longer has to tell us what density of F103 we're building
for, so remove that from the relevant support/make/board-includes/
files.

Add some tweaks to &lt;libmaple/stm32.h&gt; and the STM32F2 stm32.h header
to make sure this went through properly, and continues to go through
properly in the future.
</content>
</entry>
<entry>
<title>stm32f1 boards_setup.cpp: Allow overriding the PLL multiplier.</title>
<updated>2012-04-23T17:45:15+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2012-04-23T17:45:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/libmaple/commit/?id=645ab9108af6e413e1652477fd5212eb917aa645'/>
<id>urn:sha1:645ab9108af6e413e1652477fd5212eb917aa645</id>
<content type='text'>
Allow &lt;board/board.h&gt; to override the PLL multiplier by defining
BOARD_RCC_PLLMUL. This should be useful for e.g. value line MCUs,
which have slower clocks. It's also probably useful for people who
have external oscillators different from the 8 MHz ones we use on all
of our boards.

Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
<entry>
<title>Resurrect ADC support.</title>
<updated>2012-04-11T20:56:56+00:00</updated>
<author>
<name>Marti Bolivar</name>
<email>mbolivar@leaflabs.com</email>
</author>
<published>2012-03-27T02:17:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/libmaple/commit/?id=a949744d3c0e830b9a00c372e868158ee3714f5a'/>
<id>urn:sha1:a949744d3c0e830b9a00c372e868158ee3714f5a</id>
<content type='text'>
Standard refactoring: add series headers for F1 and F2, along with
series adc.c files. There are some issues relating to adc_extsel_event
to hammer out later, but this will do for now.

We also add some new portability interfaces to libmaple/adc.h in order
for Wirish to use the same code to initialize the ADCs at init() time.

As usual, F1 is untested.

Signed-off-by: Marti Bolivar &lt;mbolivar@leaflabs.com&gt;
</content>
</entry>
</feed>
