mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-17 08:14:03 +02:00
21 lines
311 B
C
21 lines
311 B
C
|
#include <avr/io.h>
|
||
|
|
||
|
#define F_CPU 8000000UL
|
||
|
#include <util/delay.h>
|
||
|
|
||
|
#include "board.h"
|
||
|
|
||
|
|
||
|
void reset_rf(void)
|
||
|
{
|
||
|
/* AT86RF231 data sheet, 12.4.13, reset pulse width: 625 ns (min) */
|
||
|
|
||
|
CLR(nRST_RF);
|
||
|
_delay_us(1);
|
||
|
SET(nRST_RF);
|
||
|
|
||
|
/* 12.4.14: SPI access latency after reset: 625 ns (min) */
|
||
|
|
||
|
_delay_us(1);
|
||
|
}
|