-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpdk_eeprom.h
41 lines (26 loc) · 1.05 KB
/
pdk_eeprom.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* pdk_eeprom.h
EEPROM declarations for Padauk microcontrollers.
ROM Consumed : 96B / 0x60
RAM Consumed : 15B / 0x0F - USING 4B BUFFER
USAGE NOTE:
The buffer is formatted [2B] + [NB]. The first byte is used to identify the
number of data bytes to process and the second byte is the EEPROM device ID.
The N bytes after are used for reading or writing data. The first byte specifies
how many of these bytes will be processed.
This software is licensed under GPLv3 <http://www.gnu.org/licenses/>.
Any modifications or distributions have to be licensed under GPLv3.
No warranty of any kind and copyright holders cannot be held liable.
Licensees cannot remove copyright notices.
Copyright (c) 2021 Robert R. Puccinelli
*/
//===========//
// VARIABLES //
//===========//
EXTERN WORD eeprom_trx_buffer; // Pointer to array : [NumOps, Addr, Op1, Op2, ..., OpM]
//===================//
// PROGRAM INTERFACE //
//===================//
void EEPROM_Initialize (void);
void EEPROM_Release (void);
void EEPROM_Read (void);
void EEPROM_Write (void);