📄 debug.c
字号:
/*++
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
Copyright (c) 2001. Samsung Electronics, co. ltd All rights reserved.
--*/
#include <windows.h>
#include <nkintr.h>
#include <S2440.h>
//#define UART0BaudRate 115200
//#define UART1BaudRate 115200 //38400
/*
@func void | OEMInitDebugSerial | Initialize serial debug monitor port.
@rdesc N/A.
@comm
@xref
*/
void OEMInitDebugSerial(void)
{
//s2440UART1->rUBRDIV = ( (int)(S2440PCLK/16.0/UART1BaudRate + 0.5) -1 ); // Set up baudrate (38400).
}
/*****************************************************************************
*
*
* @func void | OEMWriteDebug | Display value to specified LED port.
*
* The wIndex parameter can be used to specify a write to the discrete LEDS (if
* 0xffff), otherwise is used as an offset (DWORD aligned) for the Alpha LEDS
* for triggering.
*/
void
OEMWriteDebugLED(WORD wIndex, DWORD dwPattern)
{
// s2440IOP->rGPFDAT=(s2440IOP->rGPFDAT & 0xf) | ((dwPattern & 0xf)<<4);
}
/*****************************************************************************
*
*
* @func void | OEMWriteDebugString | Display string to the monitor port.
*
* @parm unsigned short * | str |
* Points to the receiving buffer.
*/
void
OEMWriteDebugString(unsigned short *str)
{
}
/*****************************************************************************
*
*
* @func void | OEMWriteDebugByte | Output byte to the monitor port.
*
* @parm unsigned char *| str |
* Points to the output buffer.
*/
void
OEMWriteDebugByte(UCHAR ch)
{
}
int
OEMReadDebugByte()
{
return (0);
}
/*****************************************************************************
*
*
* @func void | OEMClearDebugComError | Clear a debug communications error
*
*/
void
OEMClearDebugCommError(void)
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -