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 |
Definition in file 90USBnRF_drv.h.
#define Leds_init | ( | ) | (DDRD |= 0x03, PORTD &= ~0x03) |
#define Led0_on | ( | ) | (PORTD |= 0x01) |
#define Led0_off | ( | ) | (PORTD &= ~0x01) |
#define Led0_toggle | ( | ) | (PORTD ^= 0x01) |
Definition at line 49 of file 90USBnRF_drv.h.
#define Led1_on | ( | ) | (PORTD |= 0x02) |
#define Led1_off | ( | ) | (PORTD &= ~0x02) |
#define Led1_toggle | ( | ) | (PORTD ^= 0x02) |
Definition at line 53 of file 90USBnRF_drv.h.
#define Leds_set_val | ( | c | ) | (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.