?? init_host.c
字號(hào):
//init_host.c
//
// Project Red 2002: High Performance OFDM Modem
// Against Channel Imperfections
// Auther: Linus Falk
#include "ofdm.h"
//int HOST_READY;
void wait_for_host(void);
void init_host(void){
HOST_READY = FALSE;
//send START_INIT MESSAGE
//pci_message_sync_send(INIT_START_MM); //sync to be sure that the host gets the first message
pci_message_send(INIT_START_MM);
wait_for_host();
//SEND HOST_BUFFER_1_ADDRESS
pci_message_send(HostBuffer1);
wait_for_host();
//SEND HOST_BUFFER_2_ADDRESS
pci_message_send(HostBuffer2);
wait_for_host();
//SEND BITLOAD_BUFFER_1_ADDRESS
pci_message_send(BitLoadBuffer1);
wait_for_host();
//SEND BITLOAD_BUFFER_2_ADDRESS
pci_message_send(BitLoadBuffer2);
//wait_for_host();
pci_message_sync_send(FILL_HOSTBUFFER1_MM); //Send fill buffer1 message to host
// Initialize ready, enable led
evm_led_enable(0);
}
void wait_for_host(void){
while(HOST_READY != TRUE){
//wait
}
HOST_READY = FALSE;
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -