📄 lcdtest.c
字号:
//===============================================================================
// TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION
//
// Property of Texas Instruments
// For Unrestricted Internal Use Only
// Unauthorized reproduction and/or distribution is strictly prohibited.
// This product is protected under copyright law and trade secret law
// as an unpublished work.
// Created 1999, (C) Copyright 1999 Texas Instruments. All rights reserved.
//
// Filename : lcdtest.c
//
// Description : library of Test lcd controller
//
// Project : TI925MM
//
// Author : Francis Huguenin Fhugueni@tif.ti.com
//
//===============================================================================
#include "test.h"
#include "gpio_a9.h"
void LCDT_ConfigGpioForLcdStub(void)
{
#define DCR_8IN_8OUT 0x00ff // set the first eight bit in intput, and the next eight in output */
//enable clock on gpio
CLKA_SetPeripheralClockEnable(PER,(BOOL)ENABLE);
// Disable peripheral reset
CLKA_TogglePeripheralResetPin((BOOL)ENABLE);
gpio_set_all_dcr(DCR_8IN_8OUT); // init Direction of IO pins
}
BOOL LCDT_StubDone(void)
{
// stub done is connected to mpu io 0
// = 1 test done
// = 0 not yet fineshed
if (GPIO_ReadAllDir() & 1)
return(True);
else
return(False);
}
BOOL LCDT_StubResult(void)
{
// stub result is connected to mpu io 1
// = 1 BAD
// = 0 OK
if (GPIO_ReadAllDir() & 2)
return(False);
else
return(True);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -