Use platform configuration for CC2420/CC2520 SFD on MSP430 based platforms
This commit is contained in:
parent
c2db3a1a14
commit
767a9aeef1
|
@ -59,7 +59,7 @@ void
|
||||||
cc2420_arch_sfd_init(void)
|
cc2420_arch_sfd_init(void)
|
||||||
{
|
{
|
||||||
/* Need to select the special function! */
|
/* Need to select the special function! */
|
||||||
P4SEL = BV(CC2420_SFD_PIN);
|
CC2420_SFD_PORT(SEL) = BV(CC2420_SFD_PIN);
|
||||||
|
|
||||||
/* start timer B - 32768 ticks per second */
|
/* start timer B - 32768 ticks per second */
|
||||||
TBCTL = TBSSEL_1 | TBCLR;
|
TBCTL = TBSSEL_1 | TBCLR;
|
||||||
|
|
|
@ -58,7 +58,7 @@ void
|
||||||
cc2520_arch_sfd_init(void)
|
cc2520_arch_sfd_init(void)
|
||||||
{
|
{
|
||||||
/* Need to select the special function! */
|
/* Need to select the special function! */
|
||||||
P4SEL = BV(CC2520_SFD_PIN);
|
CC2520_SFD_PORT(SEL) = BV(CC2520_SFD_PIN);
|
||||||
|
|
||||||
/* start timer B - 32768 ticks per second */
|
/* start timer B - 32768 ticks per second */
|
||||||
TBCTL = TBSSEL_1 | TBCLR;
|
TBCTL = TBSSEL_1 | TBCLR;
|
||||||
|
|
Loading…
Reference in a new issue