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
29
Issues
29
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
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
cd34a40e
Commit
cd34a40e
authored
Jun 12, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev: little cleanup
parent
1ecc871b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
16 deletions
+2
-16
i2c.c
dev/i2c.c
+0
-13
onewire.c
dev/onewire.c
+2
-3
No files found.
dev/i2c.c
View file @
cd34a40e
...
...
@@ -97,16 +97,3 @@ void mi2c_init(uint8_t i2cif)
M_SCL_OUT
(
i2cif
,
1
);
M_SDA_OUT
(
i2cif
,
1
);
}
//void mi2c_scan(uint8_t i2cif)
//{
// int i;
//
// for(i=0;i<0x80;i++)
// {
// mi2c_start(i2cif);
// if(!mi2c_put_byte(i2cif, i<<1)) mprintf("found : %x\n", i);
// mi2c_stop(i2cif);
//
// }
//}
dev/onewire.c
View file @
cd34a40e
...
...
@@ -65,9 +65,8 @@ static uint32_t slot(uint32_t port, uint32_t bit)
return
reg
&
CSR_DAT_MSK
;
}
static
uint32_t
ow_read_bit
(
uint32_t
port
)
{
return
slot
(
port
,
0x1
);
}
static
uint32_t
ow_write_bit
(
uint32_t
port
,
uint32_t
bit
)
{
return
slot
(
port
,
bit
);
}
static
inline
uint32_t
ow_read_bit
(
uint32_t
port
)
{
return
slot
(
port
,
0x1
);
}
static
inline
uint32_t
ow_write_bit
(
uint32_t
port
,
uint32_t
bit
)
{
return
slot
(
port
,
bit
);
}
uint8_t
ow_read_byte
(
uint32_t
port
)
{
...
...
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