Contiki-NG
Loading...
Searching...
No Matches
xmem.c File Reference

Device driver for the MX25R8035F 1Mbyte external memory. More...

#include "contiki.h"
#include "ext-flash.h"
#include "dev/xmem.h"
#include "dev/watchdog.h"
#include "cfs-coffee-arch.h"
#include <stdio.h>

Go to the source code of this file.

Functions

void xmem_init (void)
 Initialize the external memory.
 
int xmem_pread (void *_p, int size, unsigned long addr)
 Read a number of bytes from an offset in the external memory.
 
int xmem_pwrite (const void *_buf, int size, unsigned long addr)
 
int xmem_erase (long size, unsigned long addr)
 Erase a sector in the flash memory.
 

Detailed Description

Device driver for the MX25R8035F 1Mbyte external memory.

Author
Dongda Lee dongd.nosp@m.ongb.nosp@m.hbh@g.nosp@m.mail.nosp@m..com

Data is written bit inverted (~-operator) to flash so that unwritten data will read as zeros (UNIX style).

Definition in file xmem.c.