⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dip_sw.h

📁 usbn9603等时传输的firmware
💻 H
字号:
/*----------------------------------------------------------------------------
 *  Copyright (c) 2001 by National Semiconductor Corporation
 *  National Semiconductor Corporation
 *  2900 Semiconductor Drive
 *  Santa Clara, California 95051
 *
 *  All rights reserved
 *
 *<<<-------------------------------------------------------------------------
 * File Contents:
 *	dip_sw.h - Dip SW related definitions
 *
 *  Project: UJA firmware
 *  Author : Avi Fishman (Avi.Fishman@nsc.com)
 *  Date   : Jan 2001
 *----------------------------------------------------------------------->>>*/
#ifndef __dip_sw_h__
#define __dip_sw_h__

#include "..\drv\voyager_reg.h"
#include "..\include\common.h"
byte invert_byte(byte source);

#define GET_DIP_SW1() invert_byte(~KBSIN)
#define SET_ID_LEDS(x) PFDOUT = ((PFDOUT & 0xC0) | ((u_char)(x) & 0x3F))
#define SET_USB_LED() PFDOUT = (PFDOUT & ~0x40)
#define RESET_USB_LED() PFDOUT = (PFDOUT | 0x40)

#endif __dip_sw_h__

⌨️ 快捷键说明

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