uart.cpp
来自「用VC編的數碼相機仿真程序 包括圖像的預處理 DCT變換 壓縮等 最后可用ver」· C++ 代码 · 共 29 行
CPP
29 行
/*
* 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 + =
减小字号Ctrl + -
显示快捷键?