90USBnRF_drv.h File Reference

AT90USBnRF REFERENCE DESIGN RF transceiver nrf24L01 from Nordic Driver file for basic peripherals. More...

Go to the source code of this file.

Defines

#define Leds_init()   (DDRD |= 0x03, PORTD &= ~0x03)
#define Led0_on()   (PORTD |= 0x01)
#define Led0_off()   (PORTD &= ~0x01)
#define Led0_toggle()   (PORTD ^= 0x01)
#define Led1_on()   (PORTD |= 0x02)
#define Led1_off()   (PORTD &= ~0x02)
#define Led1_toggle()   (PORTD ^= 0x02)
#define Leds_set_val(c)   (Leds_off(),PORTD |= (c&0x03)+((c&0x0C)<<2))
#define Leds_get_val()   ((PORTD&0x30)>>2+(PORTD&0x03))
#define Leds_off()   (PORTD &= ~0x03)
#define Hwb_button_init()   (DDRD &= ~0x80)
#define Is_hwb()   (((PIND&0x80) == 0) ? TRUE : FALSE)
#define NRF_port_init()
#define NRF_CS_PORT   PORTB
#define NRF_CS_PIN   0x04
#define NRF_CE_PORT   PORTC
#define NRF_CE_PIN   0x02
#define NRF_IRQ_PORT   PIND
#define NRF_IRQ_PIN   0x04


Detailed Description

AT90USBnRF REFERENCE DESIGN RF transceiver nrf24L01 from Nordic Driver file for basic peripherals.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file 90USBnRF_drv.h.


Define Documentation

 
#define Leds_init (  )     (DDRD |= 0x03, PORTD &= ~0x03)

Definition at line 45 of file 90USBnRF_drv.h.

Referenced by cdc_rf_task_init().

 
#define Led0_on (  )     (PORTD |= 0x01)

Definition at line 47 of file 90USBnRF_drv.h.

Referenced by sof_action().

 
#define Led0_off (  )     (PORTD &= ~0x01)

Definition at line 48 of file 90USBnRF_drv.h.

Referenced by sof_action().

 
#define Led0_toggle (  )     (PORTD ^= 0x01)

Definition at line 49 of file 90USBnRF_drv.h.

 
#define Led1_on (  )     (PORTD |= 0x02)

Definition at line 51 of file 90USBnRF_drv.h.

Referenced by sof_action().

 
#define Led1_off (  )     (PORTD &= ~0x02)

Definition at line 52 of file 90USBnRF_drv.h.

Referenced by sof_action().

 
#define Led1_toggle (  )     (PORTD ^= 0x02)

Definition at line 53 of file 90USBnRF_drv.h.

#define Leds_set_val (  )     (Leds_off(),PORTD |= (c&0x03)+((c&0x0C)<<2))

Definition at line 55 of file 90USBnRF_drv.h.

 
#define Leds_get_val (  )     ((PORTD&0x30)>>2+(PORTD&0x03))

Definition at line 56 of file 90USBnRF_drv.h.

 
#define Leds_off (  )     (PORTD &= ~0x03)

Definition at line 57 of file 90USBnRF_drv.h.

 
#define Hwb_button_init (  )     (DDRD &= ~0x80)

Definition at line 61 of file 90USBnRF_drv.h.

 
#define Is_hwb (  )     (((PIND&0x80) == 0) ? TRUE : FALSE)

Definition at line 62 of file 90USBnRF_drv.h.

 
#define NRF_port_init (  ) 

Value:

(DDRC |= 0x04, DDRB |= 0x10, DDRD &= 0xFB, \
                                  PORTC &= ~0x04, PORTB |= 0x10, PORTD |= 0x10,\
                                  DDRB |= 0x01)

Definition at line 71 of file 90USBnRF_drv.h.

Referenced by cdc_rf_task_init().

#define NRF_CS_PORT   PORTB

Definition at line 75 of file 90USBnRF_drv.h.

#define NRF_CS_PIN   0x04

Definition at line 76 of file 90USBnRF_drv.h.

#define NRF_CE_PORT   PORTC

Definition at line 78 of file 90USBnRF_drv.h.

#define NRF_CE_PIN   0x02

Definition at line 79 of file 90USBnRF_drv.h.

#define NRF_IRQ_PORT   PIND

Definition at line 81 of file 90USBnRF_drv.h.

#define NRF_IRQ_PIN   0x04

Definition at line 82 of file 90USBnRF_drv.h.


Generated on Mon May 5 15:57:55 2008 for ATMEL by  doxygen 1.5.1-p1