eeprom_avr_libc.c

来自「无线传感器网络中的节点定位算法。详见ReadMe文件。在TinyOS上实现的节点」· C语言 代码 · 共 21 行

C
21
字号
/* DCM: This code emulates the eeprom API provided by the AVR version * of libc.  That way we can use this API in our TinyOS apps * directly. */void eeprom_read_block(void* buffer, void * offset, int length){    readEEPROM(buffer, NODE_NUM, (int) offset, length);}uint8_t eeprom_read_byte(void * offset){    uint8_t byte;    readEEPROM(&byte, NODE_NUM, (int) offset, 1);    return byte;}void eeprom_write_byte(void * offset, uint8_t byte){    writeEEPROM(&byte, NODE_NUM, (int) offset, 1);}

⌨️ 快捷键说明

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