Go to the source code of this file.
Defines | |
#define | Avr_ms_board_init() (Led_ms_init(), MMC_io_init(), Nandflash_init()) |
#define | Led_ms_init() (DDRD |= 0xA0, PORTD &= ~0xA0) |
#define | Led_ms_write_on() (PORTD |= 0x80) |
#define | Led_ms_write_off() (PORTD &= ~0x80) |
#define | Led_ms_read_on() (PORTD |= 0x20) |
#define | Led_ms_read_off() (PORTD &= ~0x20) |
#define | MMC_io_init() (DDRB &= 0xF7, DDRB |= 0x07, PORTB |= 0x09) |
#define | MMC_CS_LINE PORTB_Bit0 |
#define | MMC_CS_PORT PORTB |
#define | MMC_CS_PIN 0x00 |
#define | Mmc_sd_select() (MMC_CS_PORT &= ~(1<<MMC_CS_PIN)) |
#define | Mmc_sd_unselect() (MMC_CS_PORT |= (1<<MMC_CS_PIN)) |
#define | Nandflash_init() |
#define | Nandflash_CLE_select() (PORTC |= 0x01) |
#define | Nandflash_CLE_unselect() (PORTC &= ~0x01) |
#define | Nandflash_ALE_select() (PORTC |= 0x02) |
#define | Nandflash_ALE_unselect() (PORTC &= ~0x02) |
#define | Nandflash0_select() (PORTC &= ~0x04) |
#define | Nandflash0_unselect() (PORTC |= 0x04) |
#define | Nandflash1_select() (PORTC &= ~0x08) |
#define | Nandflash1_unselect() (PORTC |= 0x08) |
#define | Nandflash_powerdown() Nandflash_unselect() |
#define | Is_nandflash_ready() (((PORTC&0x40) != 0) ? TRUE : FALSE) |
#define | Is_nandflash_busy() (((PORTC&0x40) == 0) ? TRUE : FALSE) |
#define | Nandflash_wp_enable() |
#define | Nandflash_wp_disable() |
Definition in file avr_ms_board_drv.h.
#define Avr_ms_board_init | ( | ) | (Led_ms_init(), MMC_io_init(), Nandflash_init()) |
#define Led_ms_init | ( | ) | (DDRD |= 0xA0, PORTD &= ~0xA0) |
Definition at line 50 of file avr_ms_board_drv.h.
#define Led_ms_write_on | ( | ) | (PORTD |= 0x80) |
Definition at line 51 of file avr_ms_board_drv.h.
#define Led_ms_write_off | ( | ) | (PORTD &= ~0x80) |
Definition at line 52 of file avr_ms_board_drv.h.
#define Led_ms_read_on | ( | ) | (PORTD |= 0x20) |
Definition at line 53 of file avr_ms_board_drv.h.
#define Led_ms_read_off | ( | ) | (PORTD &= ~0x20) |
Definition at line 54 of file avr_ms_board_drv.h.
#define MMC_io_init | ( | ) | (DDRB &= 0xF7, DDRB |= 0x07, PORTB |= 0x09) |
Definition at line 60 of file avr_ms_board_drv.h.
#define MMC_CS_LINE PORTB_Bit0 |
Definition at line 62 of file avr_ms_board_drv.h.
#define MMC_CS_PORT PORTB |
Definition at line 65 of file avr_ms_board_drv.h.
#define MMC_CS_PIN 0x00 |
Definition at line 66 of file avr_ms_board_drv.h.
#define Mmc_sd_select | ( | ) | (MMC_CS_PORT &= ~(1<<MMC_CS_PIN)) |
Definition at line 67 of file avr_ms_board_drv.h.
Referenced by mmc_sd_erase_sector_group(), mmc_sd_get_cid(), mmc_sd_get_csd(), mmc_sd_get_status(), mmc_sd_lock_operation(), mmc_sd_read_sector(), mmc_sd_read_sector_to_ram(), mmc_sd_send_command(), mmc_sd_wait_not_busy(), mmc_sd_write_sector(), and mmc_sd_write_sector_from_ram().
#define Mmc_sd_unselect | ( | ) | (MMC_CS_PORT |= (1<<MMC_CS_PIN)) |
Definition at line 68 of file avr_ms_board_drv.h.
Referenced by mmc_sd_erase_sector_group(), mmc_sd_get_cid(), mmc_sd_get_csd(), mmc_sd_get_status(), mmc_sd_lock_operation(), mmc_sd_read_sector(), mmc_sd_read_sector_to_ram(), mmc_sd_send_command(), mmc_sd_wait_not_busy(), mmc_sd_write_sector(), and mmc_sd_write_sector_from_ram().
#define Nandflash_init | ( | ) |
Value:
(DDRC &= ~0xC0, DDRC |= 0x3F, PORTC |= 0x7C, PORTC &= ~0x03, \ DDRB |= ~0x01, PORTB |= 0x01, DDRE |= 0x03, PORTE &= ~0x03, \ PORTA = 0x00, DDRA |= 0xFF)
Definition at line 76 of file avr_ms_board_drv.h.
#define Nandflash_CLE_select | ( | ) | (PORTC |= 0x01) |
Definition at line 79 of file avr_ms_board_drv.h.
#define Nandflash_CLE_unselect | ( | ) | (PORTC &= ~0x01) |
Definition at line 80 of file avr_ms_board_drv.h.
#define Nandflash_ALE_select | ( | ) | (PORTC |= 0x02) |
Definition at line 81 of file avr_ms_board_drv.h.
#define Nandflash_ALE_unselect | ( | ) | (PORTC &= ~0x02) |
Definition at line 82 of file avr_ms_board_drv.h.
#define Nandflash0_select | ( | ) | (PORTC &= ~0x04) |
#define Nandflash0_unselect | ( | ) | (PORTC |= 0x04) |
Definition at line 84 of file avr_ms_board_drv.h.
Referenced by nf_XMCR_disable(), and nfc_select_dev().
#define Nandflash1_select | ( | ) | (PORTC &= ~0x08) |
#define Nandflash1_unselect | ( | ) | (PORTC |= 0x08) |
Definition at line 86 of file avr_ms_board_drv.h.
Referenced by nf_XMCR_disable(), and nfc_select_dev().
#define Nandflash_powerdown | ( | ) | Nandflash_unselect() |
Definition at line 87 of file avr_ms_board_drv.h.
#define Is_nandflash_ready | ( | ) | (((PORTC&0x40) != 0) ? TRUE : FALSE) |
Definition at line 88 of file avr_ms_board_drv.h.
#define Is_nandflash_busy | ( | ) | (((PORTC&0x40) == 0) ? TRUE : FALSE) |
Definition at line 89 of file avr_ms_board_drv.h.
#define Nandflash_wp_enable | ( | ) |
Definition at line 91 of file avr_ms_board_drv.h.
#define Nandflash_wp_disable | ( | ) |
Definition at line 92 of file avr_ms_board_drv.h.