Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
66904fba
Commit
66904fba
authored
10 years ago
by
Oleg Hahm
Browse files
Options
Downloads
Patches
Plain Diff
drivers: fixed German influenced typo
parent
c61721ca
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drivers/at86rf231/at86rf231_tx.c
+3
-3
3 additions, 3 deletions
drivers/at86rf231/at86rf231_tx.c
drivers/cc2420/cc2420_tx.c
+5
-5
5 additions, 5 deletions
drivers/cc2420/cc2420_tx.c
with
8 additions
and
8 deletions
drivers/at86rf231/at86rf231_tx.c
+
3
−
3
View file @
66904fba
...
...
@@ -17,7 +17,7 @@ static void at86rf231_xmit(uint8_t *data, radio_packet_length_t length);
static
void
at86rf231_gen_pkt
(
uint8_t
*
buf
,
at86rf231_packet_t
*
packet
);
static
uint8_t
sequen
z
_nr
;
static
uint8_t
sequen
ce
_nr
;
int16_t
at86rf231_send
(
at86rf231_packet_t
*
packet
)
{
...
...
@@ -47,9 +47,9 @@ int16_t at86rf231_send(at86rf231_packet_t *packet)
}
packet
->
frame
.
src_pan_id
=
at86rf231_get_pan
();
packet
->
frame
.
seq_nr
=
sequen
z
_nr
;
packet
->
frame
.
seq_nr
=
sequen
ce
_nr
;
sequen
z
_nr
+=
1
;
sequen
ce
_nr
+=
1
;
// calculate size of the frame (payload + FCS) */
packet
->
length
=
ieee802154_frame_get_hdr_len
(
&
packet
->
frame
)
+
...
...
This diff is collapsed.
Click to expand it.
drivers/cc2420/cc2420_tx.c
+
5
−
5
View file @
66904fba
...
...
@@ -22,7 +22,7 @@
#include
"debug.h"
static
void
cc2420_gen_pkt
(
uint8_t
*
buf
,
cc2420_packet_t
*
packet
);
static
uint8_t
sequen
z
_nr
;
static
uint8_t
sequen
ce
_nr
;
static
bool
wait_for_ack
;
radio_tx_status_t
cc2420_load_tx_buf
(
ieee802154_packet_kind_t
kind
,
...
...
@@ -71,7 +71,7 @@ radio_tx_status_t cc2420_load_tx_buf(ieee802154_packet_kind_t kind,
}
/* sequence number */
hdr
[
2
]
=
sequen
z
_nr
++
;
hdr
[
2
]
=
sequen
ce
_nr
++
;
/* variable-length fields */
int
idx
=
3
;
...
...
@@ -190,7 +190,7 @@ radio_tx_status_t cc2420_transmit_tx_buf(void)
/* a packet has arrived, read the arrived data */
cc2420_read_fifo
(
ackbuf
,
ACK_LENGTH
);
if
(
ackbuf
[
0
]
==
0x02
/* ack packet in buffer */
&&
(
ackbuf
[
2
]
==
sequen
z
_nr
-
1
))
/* correct sequence number */
&&
(
ackbuf
[
2
]
==
sequen
ce
_nr
-
1
))
/* correct sequence number */
return
RADIO_TX_OK
;
}
return
RADIO_TX_NOACK
;
...
...
@@ -243,9 +243,9 @@ int16_t cc2420_send(cc2420_packet_t *packet)
}
packet
->
frame
.
src_pan_id
=
cc2420_get_pan
();
packet
->
frame
.
seq_nr
=
sequen
z
_nr
;
packet
->
frame
.
seq_nr
=
sequen
ce
_nr
;
sequen
z
_nr
+=
1
;
sequen
ce
_nr
+=
1
;
/* calculate size of the package (header + payload + fcs) */
packet
->
length
=
ieee802154_frame_get_hdr_len
(
&
packet
->
frame
)
+
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment