?? uart.cpp
字號:
/*
* Copyright 2008, writen by shikosan
* File name: uart.cpp
* 串行輸出
* only transmits, does not receive
*/
#include <stdio.h>
#include "uart.h"
static FILE *outputFileHandle;
// This function is passed name of file to output to
void UartInitialize(const char *outputFileName)
{
outputFileHandle = fopen(outputFileName, "w");
}
// This function transmits (writes to output file) bytes at a time
// Change char into uchar
void UartSend(char d)
// void UartSend(unsigned char d)
{
fprintf(outputFileHandle, "%i\n", (int)d);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -