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

📄 specification

📁 mpc8xx driver(led), based on tqm8
💻
字号:
/*********************************************************************** * * (C) Copyright 2000 * Jean-Jacques Germond, Fr閐閞ic Soulier, Christian Batt; Alcatel * C/O jjg@sxb.bsf.alcatel.fr * * All rights reserved. * * This code is free software; you can redistribute it and/or * modify it under the terms of the GNU *Library* General Public License * as published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This code is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * *Library* General Public License for more details. * * You should have received a copy of the GNU *Library* General Public * License along with this program (see file COPYING.LIB); if not, * write to the Free Software Foundation, Inc., 675 Mass Ave, * Cambridge, MA 02139, USA. * ***********************************************************************/Trivial driver specOn writing, The files look like files with a "physical" content of atmost TRV_MAX_CHARS at head, followed by a /dev/nill like device.     +---------------------------+  <---   begining of file     |                           |     |                           |     |                           |     |                           |     |      Physical area        |     |                           |     |                           |     |                           |     |                           |     |                           |     +---------------------------+  <--- TRV_MAX_CHARS     .                           .     .                           .     .                           .     .                           .     .                           .     .                           .     . Infinite unrecorded area  .     .                           .     .                           .     .                           .     .                           .     .                           .On reading, files look like files with a max length of TRV_MAX_CHARS.open      standard AR openwrite     write at most TRV_MAX_CHARS in the driver's static buffer.          If the buffer becomes full, then switch to the /dev/null mode,          that is accept and silently drop any incomming bytes.read      returns:               "TRV_EMPTY"  if no write was done.                The string (or max size) if write was done (and update the                file position)                EOF as appropriate.close     standard AR closeseek      standard seekNote that inod & ivol as statically allocated because dynamicallocation such as (AR pg 45) (Alesssandro Rubini) requests toolssuch as mknod and awk that I do not want to put in the webphoneramdisk. (ie too costly for embedded application).

⌨️ 快捷键说明

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