CIDER-Software/cflash/kick_flash.h
Matt Harlum 618089c795 cflash speedup
Using the "UNLOCK BYPASS" commands for the flash it takes half as many cycles to program each word

Also bump the task priority and enable compiler optimization
2023-04-18 20:47:21 +00:00

36 lines
1.2 KiB
C

// SPDX-License-Identifier: GPL-2.0-only
/* This file is part of cflash
* Copyright (C) 2023 Matthew Harlum <matt@harlum.net>
*
* 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; version 2.
*
* 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, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef KICK_FLASH_H
#define KICK_FLASH_H
#include <exec/types.h>
#include <stdbool.h>
void kick_flash_unlock_sdp();
void kick_flash_erase_chip();
void kick_flash_writeWord(ULONG, UWORD);
bool kick_flash_init(UWORD *, UWORD *);
void kick_flash_reset();
void kick_flash_erase_bank(int);
void kick_flash_erase_block(ULONG);
void kick_flash_unlock_bypass();
void kick_flash_unlock_bypass_reset();
void kick_flash_bypass_program(ULONG address, UWORD data);
#endif