?? hardware.h
字號:
/* * Name: hardware.h * Project: AVR-Doper * Author: Christian Starkjohann <cs@obdev.at> * Creation Date: 2006-07-05 * Tabsize: 4 * Copyright: (c) 2006 by Christian Starkjohann, all rights reserved. * License: Proprietary, see documentation. * Revision: $Id: hardware.h 228 2006-07-18 10:51:22Z cs $ *//*General Description:This module defines hardware properties and configuration choices.*/#ifndef __hardware_h_included__#define __hardware_h_included__/* configuration options: */#define USE_DCD_REPORTING 0/* If this option is defined to 1, the driver will report carrier detect when * the serial device is opened. This is useful on some Unix platforms to allow * using the /dev/tty* instead of /dev/cu* devices. * Setting this option to 0 saves a couple of bytes in flash and RAM memory. */#define ENABLE_DEBUG_INTERFACE 1/* If this option is defined to 1, the device buffers serial data (read from * the the ISP connector) and makes it available through vendor specific * requests to host based software. This is useful to display debug information * sent by the target. * Setting this option to 0 saves a couple of bytes in flash memory. */#define ENABLE_HID_INTERFACE 1/* If this option is defined to 1, the device implements a custom HID type * interface to send and receive STK500 serial data. If both, the CDC-ACM and * HID interface are enabled, a jumper selects which one is used. */#define ENABLE_CDC_INTERFACE 1/* If this option is defined to 1, the device implements a CDC-ACM modem, * emulating the behavior of the STK500 board on a virtual COM port. */#define HW_DEBUG_BAUDRATE 19200/* Bit-rate for the UART (for reading debug data from the target). */#define F_CPU 12000000/* Our CPU frequency. *//*Port | Function | dir | value------------+-------------------------+-----+-------PORT B 0 | HVSP Supply [O] 1 1 OC1A | SMPS [O] 0 2 | HVSP RESETHV / LEDHV [O] 0 3 OC2 | HVSP SCI / ISP target clk [O] 0 4 | ISP driver enable [O] 0 5 | LED Prog active [O] 1 6 XTAL1 | XTAL 7 XTAL2 | XTALPORT C (ADC) 0 | SMPS feedback [i] 0 1 | ISP voltage sense [i] 0 2 | ISP SCK [O] 0 3 | ISP MISO [I] 1 4 | ISP MOSI [O] 0 5 | ISP RESET / HVSP RESET [O] 0 6 RESET | Reset 7 n/a | *PORT D 0 RxD | ISP TxD [I] 1 1 TxD | ISP RxD [I] 1 2 Int0 | USB D+ [i] 0 3 Int1 | USB D- [i] 0 4 T0 | JUMPER Low Speed [I] 1 5 T1 | HVSP SII (PPD1) [I] 1 6 AIN0 | HVSP SDI (PPD0) [I] 1 7 AIN1 | HVSP SDO (PPD2) [I] 1*//* The following defines can be used with the PORT_* macros from utils.h */#define HWPIN_HVSP_SUPPLY B, 0#define HWPIN_SMPS_OUT B, 1#define HWPIN_HVSP_HVRESET B, 2#define HWPIN_HVSP_SCI B, 3#define HWPIN_ISP_CLK B, 3#define HWPIN_ISP_DRIVER B, 4#define HWPIN_LED B, 5#define HWPIN_ADC_SMPS C, 0#define HWPIN_ADC_VTARGET C, 1#define HWPIN_ISP_SCK C, 2#define HWPIN_ISP_MISO C, 3#define HWPIN_ISP_MOSI C, 4#define HWPIN_ISP_RESET C, 5#define HWPIN_HVSP_RESET C, 5#define HWPIN_ISP_TXD D, 0#define HWPIN_ISP_RXD D, 1#define HWPIN_USB_DPLUS D, 2#define HWPIN_USB_DMINUS D, 3#define HWPIN_JUMPER D, 4#define HWPIN_HVSP_SII D, 5#define HWPIN_HVSP_SDI D, 6#define HWPIN_HVSP_SDO D, 7#endif /* __hardware_h_included__ */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -