Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
2937f091
Commit
2937f091
authored
Jul 08, 2020
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i2c_eeprom_rwops point sdb i2c eeprom functions
parent
4e6377ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
storage.c
dev/storage.c
+6
-7
No files found.
dev/storage.c
View file @
2937f091
...
...
@@ -68,13 +68,6 @@ struct storage_i2c_eeprom_priv
struct
i2c_eeprom_device
*
dev
;
};
/* Functions for I2C EEPROM access */
const
struct
storage_rwops
i2c_eeprom_rwops
=
{
i2c_eeprom_read
,
i2c_eeprom_write
,
i2c_eeprom_erase
};
/* Functions for Flash access */
static
int
sdb_flash_read
(
struct
storage_device
*
dev
,
int
offset
,
void
*
buf
,
int
count
)
{
...
...
@@ -190,6 +183,12 @@ static int sdb_i2c_eeprom_erase(struct storage_device *dev, int offset, int coun
return
i2c_eeprom_erase
(
priv
->
dev
,
offset
,
count
);
}
/* Functions for I2C EEPROM access */
const
struct
storage_rwops
i2c_eeprom_rwops
=
{
sdb_i2c_eeprom_read
,
sdb_i2c_eeprom_write
,
sdb_i2c_eeprom_erase
};
void
storage_spiflash_create
(
struct
storage_device
*
dev
,
struct
spi_flash_device
*
flash
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment