HI Thomas, I solved my problem with your advices but I'm wondering why when I add USEMODULE += transceiver in default Makefile example it doesn't add transceiver Module and when I add it to the base Makefile.dep it does ?
Cheers, Maxence -----Message d'origine----- De : devel [mailto:[email protected]] De la part de Thomas Eichinger Envoyé : mardi 25 novembre 2014 11:01 À : RIOT OS kernel developers Objet : Re: [riot-devel] At86rf231 for samr21 Hi Maxence, > On 24 Nov 2014, at 21:00, Maxence Chotard <[email protected]> wrote: > I am facing a problem with the at86rf231 implementation for > samr21-xpro. Is there somebody who could explain me how to add a > module in RIOT in order to use it? You are already on the right path. With USEMODULE you can specify which modules to include into your build. > I'm trying to add USEMODULE at86rf231 in default exemple Makefile but > I can't make it work. My main.c can't access to transceiver.h so if > somebody has any idea how to solve this problem I would be grateful ! The dependency works the other way around. When you specify USEMODULE += transceiver in you Makefile, the build system knows which radio driver to include (at86rf231 for the samr21-xpro). You can then send messages to the transceiver to control the radio interface. You should be able to play with example/default out of the box if including Troels’ PR [1]. The default example then provides shell commands to set the node’s address, channel, PAN and also the txtsnd command you can use to send data between two nodes. To get a feeling how to interact with the transceiver module in your own code you can also take a look at sys/shell/commands/sc_transceiver.c. Hope this somehow provides you the information to get started. Else don’t hesitate to ask on this list. Best, Thomas [1] https://github.com/RIOT-OS/RIOT/pull/1997 _______________________________________________ devel mailing list [email protected] http://lists.riot-os.org/mailman/listinfo/devel _______________________________________________ devel mailing list [email protected] http://lists.riot-os.org/mailman/listinfo/devel
