?? isp.h
字號(hào):
/* isp.h - part of USBasp Autor..........: Thomas Fischl <tfischl@gmx.de> Description....: Provides functions for communication/programming over ISP interface Licence........: GNU GPL v2 (see Readme.txt) Creation Date..: 2005-02-23 Last change....: 2007-07-23*//*Modify: avenbbs(8785116@qq.com)*/
#ifndef __isp_h_included__#define __isp_h_included__#include <avr/io.h>
#ifndef uchar#define uchar unsigned char#endif/* Prepare connection to target device */void ispConnect();/* Close connection to target device */void ispDisconnect();/* read an write a byte from isp using software (slow) */uchar ispTransmit_sw(uchar send_byte);/* read an write a byte from isp using hardware (fast) */uchar ispTransmit_hw(uchar send_byte);/* enter programming mode */uchar ispEnterProgrammingMode();/* read byte from eeprom at given address */uchar ispReadEEPROM(unsigned int address);/* write byte to flash at given address */uchar ispWriteFlash(unsigned long address, uchar data, uchar pollmode);uchar ispFlushPage(unsigned long address, uchar pollvalue);/* read byte from flash at given address */uchar ispReadFlash(unsigned long address);/* write byte to eeprom at given address */uchar ispWriteEEPROM(unsigned int address, uchar data);/* pointer to sw or hw transmit function */uchar (*ispTransmit)(uchar);/* set SCK speed. call before ispConnect! */void ispSetSCKOption(uchar sckoption);
unsigned char read_fuse(void);
unsigned char read_lockbit(void);
unsigned char erase_chip(void);
unsigned char read_id(void);
void write_page_cache(unsigned char *pt,unsigned char chiptype);
void write_page_flash(uint32_t address);
void pro_page_1by1(unsigned char chiptype,unsigned long buf_cnt);
unsigned char write_fuse(unsigned char low,unsigned char high,unsigned char ext);
unsigned char write_lockbit(unsigned char data);
unsigned char reset_avr(void);
void isp_init(void);
#endif /* __isp_h_included__ */
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -