| AVR Z-LINKŪ | |||||
00001 /* This file has been prepared for Doxygen automatic documentation generation.*/ 00024 /* === Includes ============================================================ */ 00025 #include "ftdi.h" 00026 /* ==== Macros ============================================================= */ 00027 /* === Typedefs ============================================================ */ 00028 /* === Variables =========================================================== */ 00029 /* === Prototypes ========================================================== */ 00030 /* === Call-backs ========================================================== */ 00031 00036 void ftdiInitialization( void ){ 00037 00038 XRAM_ENABLE( ); 00039 00040 /* make sure USB_RXF and USB_TXE are inputs */ 00041 FTDI_ENABLE_TX( ); 00042 00043 //Enable external interrupt on FTDI_RX pin. 00044 FTDI_CONFIGURE_PIN_CHANGE_INTERRUPT( ); 00045 FTDI_ENABLE_RECEIVER( ); 00046 } 00047 00048 00057 void ftdiSendSymbol( const uint8_t symbol ){ 00058 00059 //Wait until the fifo is ready. 00060 while( ( FTDI_TX_MASK & FTDI_PIN ) != LOW ){ 00061 ; 00062 } 00063 00064 //Write symbol to memory address. 00065 *FTDI_Fifo = ( symbol ); 00066 }
Generated on Sat Dec 2 16:05:51 2006 for AVR414 User's Guide - ATAVRRZ502 - Accessory Kit by 1.4.7
|