make: check if git is available before calculate version
[pyfrprog.git] / pkernel / flash.h
1 #ifndef __FLASH_H__
2 #define __FLASH_H__
3
4 #include "mb91465k.h"
5
6 #define hseq_1 ((volatile unsigned short int *)0x000A1557)
7 #define hseq_2 ((volatile unsigned short int *)0x000A0AAF)
8
9 #define DPOLL 0x0080
10 #define TLOVER 0x0020
11 #define SETIMR 0x0008
12
13 void FLASH_PrepareWriteHalfWordMode();
14 void FLASH_PrepareReadMode();
15 unsigned char FLASH_WriteHalfWord(unsigned int adr, unsigned short int data);
16 unsigned char FLASH_ChipErase(void);
17 unsigned char FLASH_SectorBlankCheck(unsigned int secaddr, unsigned int size);
18 unsigned char FLASH_ReadReset(void);
19 unsigned char FLASH_CheckPendingInterrupt(void);
20
21 #endif