/* * JR-IDE Project * - (c) 2017 Alan Hightower * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef __JRIDE_FLASH_API_H__ #define __JRIDE_FLASH_API_H__ extern int jride_flash_poll (uint16_t *bios_seg, uint16_t *window_seg); extern void jride_flash_erase (uint8_t page, uint8_t sector); extern void jride_flash_erase_all (void); extern void jride_flash_write (uint32_t offset, uint8_t far *data, uint16_t len); extern void jride_flash_read (uint8_t far *data, uint32_t offset, uint16_t remain); #endif