Actually we don't support your flash memory, but I see the code is quietly simple to add it to the driver. If you would like to add this memory, you should modify this file "bertos/drv/flash25.h", adding the definition for you memory, and test it.
Generally most bertos driver had the kfile interface that simplify their use. To use it you should init the spi module, and then init the flash25 driver with it, in code come:
#include <drv/ser.h>
#include <drv/flash25.h>
#include <io/kfile.h>
static Sertia spi_fd;
static Flash25 flash;
void main()
{
/* all init needed */
init();
/* Init and open the spi channel 0 */
spimaster_init(&spi_fd, SER_SPI0);
LOG_INFO("SPI0 init..ok\n");
/* set spi baudrate */
ser_setbaudrate(&spi_fd, 5000000UL);
LOG_INFO("SPI0 set baudrate..ok\n");
/* Init the flash driver over the spi channel */
flash25_init(&flash.fd, &spi_fd.fd);
/* Now we can access to memory using kfile interface */
kfile_write(&flash.fd, "Test", sizeof("Test")); // We write "Test" sting in memory starting from 0 address
kfile_seek(&flash.fd, 1000, KSM_SEEK_SET); // move pointer to address 1000 of memory, now we can read or write from this address
kfile_read(&flash.fd, buf, 10); // read 10 byte from current flash address, and put it into buf.
}
For more info you can consult the bertos sites:
http://www.bertos.org/use/tutorial-fron ... -interface