// $Id$
-/* tab:4
+/*
* "Copyright (c) 2000-2003 The Regents of the University of California.
* All rights reserved.
*
* @author David Gay
*/
-module At45dbP {
+module At45dbP @safe() {
provides {
interface Init;
interface At45db;
void * COUNT_NOK(n) reqdata, at45pageoffset_t n) {
request = req;
- reqBuf = reqdata;
+ reqBuf = NULL;
reqBytes = n;
+ reqBuf = reqdata;
reqPage = page;
reqOffset = offset;
at45pageoffset_t n,
uint16_t baseCrc) {
/* This is a hack (store crc in reqBuf), but it saves 2 bytes of RAM */
- reqBuf = TCAST(uint8_t * COUNT(baseCrc), baseCrc);
- newRequest(R_READCRC, page, offset, reqBuf, n);
+ newRequest(R_READCRC, page, offset, TCAST(uint8_t * COUNT(n), baseCrc), n);
}
command void At45db.write(at45page_t page, at45pageoffset_t offset,