Here is the code in question:
http://pastebin.com/xTxn5829
To summarize -- just polling the timer works fine; but my attempt
at enabling the ISR isn't working, so I'm probably missing a register
setting somewhere :)
If you fine people come up with anything, let me know ;) (theres
about a 90% chance I'll figure it out as soon as I hit 'Send', of course.
I'm good at foot-in-mouth-mailing-list.)
libopencm3 seems good at supplying wrappers for the CMSIS level -
so its a good HAL library - but perhaps it could use another layer of
convenience functions (though finding the right granularity that doesn't
hide the flexiblity, may be impossible. So maybe as-is, with examples, is
the way to go, and I need to figure it out and supply an example for this
topic :)
jeff
On Mon, 13 Jan 2014, Jeff Mitchell wrote:
#
# I've got 3 or 4 different attempts all fragmented together, but I can
appreciate not being given the whole picture :) Many ways to achieve similar
goals :)
#
# I'll fiddle some more after kids go to bed and see if I can come up with
something; otherwise I'll split them apart and post the whole attempt in a
cohesive fashion.
#
# Will also check F4 .. F2 has limited examples :)
#
# Thanks guys,
#
# Jeff
#
# --
# Have you played Atari today?
#
# > On Jan 13, 2014, at 5:53 PM, Chuck McManis <[email protected]> wrote:
# >
# > Hi Jeff,
# >
# > I'm having a really hard time reading your source code as fragments.
# > For example in your timer2_setup there is a "#endif" in the middle of
# > it, where is the preceding #if? Did the timer code get compiled in?
# >
# > It looks like you've got the basic concepts there but it is hard to tell.
# >
# > I only see the 'jobygps' systems as an F2 example system in the
# > libopencm3-examples repo but if you look at some of the other examples
# > they might show you something you missed?
# >
# > Consider setting up a free github account and pushing a copy of your
# > source there so that it can be read in its entirety, then it will be
# > easier to talk about things that might help.
#
# ------------------------------------------------------------------------------
# CenturyLink Cloud: The Leader in Enterprise Cloud Services.
# Learn Why More Businesses Are Choosing CenturyLink Cloud For
# Critical Workloads, Development Environments & Everything In Between.
# Get a Quote or Start a Free Trial Today.
# http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
# _______________________________________________
# libopencm3-devel mailing list
# [email protected]
# https://lists.sourceforge.net/lists/listinfo/libopencm3-devel
#
--
If everyone would put barbecue sauce on their food, there would be no war.
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
libopencm3-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libopencm3-devel