dipled.h

来自「基本回音程式,可以改变parameter来测试其速度和音响。」· C头文件 代码 · 共 23 行

H
23
字号
#ifndef __DIPLED_H__
#define __DIPLED_H__

/* 
 * Functions to access the CPLD controlled DIP and LED 
 * 
 * 31May07 .. initial version
 *
 * Note: 
 * - work for Large Memory Model only 
 * - to work in Small Memory Model, we need to use 
 *   the far_peek & far_poke (to be supported)
 * - ..
 */

unsigned short DSK_DIP_read(unsigned short dip_num);
unsigned short DSK_DIP_read_all(void);
void DSK_LED_on(unsigned short led_num);
void DSK_LED_off(unsigned short led_num);
void DSK_LED_set(unsigned short led_pat);

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?