telos-flash.h
来自「MANTIS是由科罗拉多大学开发的传感器网络嵌入式操作系统。 这是mantis」· C头文件 代码 · 共 74 行
H
74 行
// This file is part of MANTIS OS, Operating System// See http://mantis.cs.colorado.edu///// Copyright (C) 2003,2004,2005 University of Colorado, Boulder//// This program is free software; you can redistribute it and/or// modify it under the terms of the mos license (see file LICENSE)/** @file telos-flash.h * @brief port and pin definitions as well as function declarations * @author John Ledbetter * @date 07/01/2005 */#ifdef PLATFORM_TELOSB#ifndef __TELOS_FLASH_H__#define __TELOS_FLASH_H__// Port & Pin locations#define ST_FLASH_CS_PORT 4#define ST_FLASH_CS_PIN 4#define ST_FLASH_CS ST_FLASH_CS_PORT, ST_FLASH_CS_PIN#define ST_FLASH_MISO_PORT 3#define ST_FLASH_MISO_PIN 2#define ST_FLASH_MISO ST_FLASH_MISO_PORT, ST_FLASH_MISO_PIN#define ST_FLASH_MOSI_PORT 3#define ST_FLASH_MOSI_PIN 1#define ST_FLASH_MOSI ST_FLASH_MOSI_PORT, ST_FLASH_MOSI_PIN#define ST_FLASH_HOLD_PORT 4#define ST_FLASH_HOLD_PIN 7#define ST_FLASH_HOLD ST_FLASH_HOLD_PORT, ST_FLASH_HOLD_PIN#define ST_FLASH_SCLK_PORT 3#define ST_FLASH_SCLK_PIN 3#define ST_FLASH_SCLK ST_FLASH_SCLK_PORT, ST_FLASH_SCLK_PIN#define ST_FLASH_WP_PORT 1#define ST_FLASH_WP_PIN 2#define ST_FLASH_WP ST_FLASH_WP_PORT, ST_FLASH_WP_PIN#define ST_FLASH_POWER_PORT 4#define ST_FLASH_POWER_PIN 3#define ST_FLASH_POWER ST_FLASH_POWER_PORT, ST_FLASH_POWER_PINvoid st_flash_init();/*void st_flash_wake();void st_flash_sleep();uint8_t st_flash_read_sig();uint8_t st_flash_read_sr();void st_flash_read(uint32_t addr, uint8_t* buffer, uint16_t count);void st_flash_fast_read(uint32_t addr, uint8_t* buffer, uint16_t count);void st_flash_page_program(uint32_t addr, const uint8_t* buffer, uint16_t count);void st_flash_erase_sector(uint32_t addr);*/#define TELOS_FLASH_BULK_ERASE 0x11#define TELOS_FLASH_SECT_ERASE 0x12#endif#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?