📄 io&led.h
字号:
/*
* Copyright 2004 by SSD.
* All rights reserved. Property of SSD.
* Restricted rights to use, duplicate or disclose this code are
* granted through contract.
*
*/
/* August 2005 */
/**************************************************************************/
/* io&led.h file */
/**************************************************************************/
#ifndef IOLED_H
#define IOLED_H
#include "dm642.h"
#define DM642_LED_D3 0
#define DM642_LED_D4 1
#define DM642_LED_ON 1
#define DM642_LED_OFF 0
/* GPIO handle */
extern GPIO_Handle DM642_GPIO_hGPIO;
void DM642_GPIO_init();
void DM642_GPIO_setgpio15(Uint8 val);
void DM642_GPIO_ledblink();
/*turn on the led */
void DM642_Led_onboard(Uint32 Number,Uint32 on);
/*IO port write*/
void DM642_io_write(Uint32 data);
/*IO port read*/
Uint32 DM642_io_read();
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -