Extending ASF?

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm trying to get along with ASF "properly" and make it work for me. For instance, I'd like to create a library for my Nordic nRF24L01+ modules that I could re-use among a few Xmega devices for projects I'm working on. Basically exposing a bunch of wrapped SPI calls to configure the radio, transmit packets, receive, etc.. and setup some interrupt handling callbacks. I'd like to create something that can be shared and re-used.

If I went the ASF route on this, I'd pull in their SPI service and use it. Since I'm consuming their ASF SPI service, where would my library lay on the ASF stack? Could I create an application level ASF module and extend their framework to easily use this in other projects? I haven't ran across any documentation on how to properly extend the framework, just use it.

The other option of just creating my own nRF24L01 library and supporting SPI library seems easier, but in some cases I'm already pulling along ASF for USB and feel that I should stick with ASF. Appreciate any feedback I can get. Thanks!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Maybe the XDK User Guide (chapter 3) will help you?

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

meolsen wrote:
Maybe the XDK User Guide (chapter 3) will help you?

That's exactly what I was looking for, thanks!