diff options
author | Harald Welte <laforge@gnumonks.org> | 2015-09-28 17:00:51 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2015-09-28 17:02:22 +0200 |
commit | 21391e0bdbe676ab766204eaa0eddd46e529c849 (patch) | |
tree | a47c5305e5363c4dff8d4dabdc82750dc877a64b /firmware/src/picc/decoder_nrzl.c | |
parent | 5a40e2fed18ed75c7b8d62f52cf4a7c660a8e026 (diff) |
convert from u_int*_t to uint*_t
Diffstat (limited to 'firmware/src/picc/decoder_nrzl.c')
-rw-r--r-- | firmware/src/picc/decoder_nrzl.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/src/picc/decoder_nrzl.c b/firmware/src/picc/decoder_nrzl.c index 136a9c8..8307bcd 100644 --- a/firmware/src/picc/decoder_nrzl.c +++ b/firmware/src/picc/decoder_nrzl.c @@ -60,12 +60,12 @@ /* currently this code will only work with oversampling_rate == 1 */ #define OVERSAMPLING_RATE 1 -static u_int32_t get_next_bytesample(struct decoder_state *st, - u_int8_t *parity_sample) +static uint32_t get_next_bytesample(struct decoder_state *st, + uint8_t *parity_sample) { - u_int32_t ret = 0; - u_int8_t bits_per_sampled_char = st->algo->bits_per_sampled_char; - u_int8_t bytesample_mask = st->algo->bytesample_mask; + uint32_t ret = 0; + uint8_t bits_per_sampled_char = st->algo->bits_per_sampled_char; + uint8_t bytesample_mask = st->algo->bytesample_mask; /* FIXME: shift start and stop bit into parity_sample and just * return plain 8-bit data word */ @@ -83,7 +83,7 @@ static u_int32_t get_next_bytesample(struct decoder_state *st, return ret & bytesample_mask; } -static int nrzl_decode_sample(const u_int32_t sample, u_int8_t *data) +static int nrzl_decode_sample(const uint32_t sample, uint8_t *data) { *data = (sample >> 1) & 0xff; |