From b10e42340675dfb915be881b45053aeccf1dcbe4 Mon Sep 17 00:00:00 2001
From: barthess <barthess@yandex.ru>
Date: Tue, 31 May 2016 00:04:19 +0300
Subject: 1-wire improvements.

1) Functions reading bit from PAL now return ioline_t type.
2) Functions that handle acquired buffer with acquired bits
   now use uint8_t type because it corresponds to buffer type.
3) Cryptic bit shifting in bit storage functions replaced by
   dividion operations because all modern compilers perfectly
   optimise such operations.
---
 os/hal/include/hal_onewire.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'os/hal/include')

diff --git a/os/hal/include/hal_onewire.h b/os/hal/include/hal_onewire.h
index 2d27f48..9fb5be2 100644
--- a/os/hal/include/hal_onewire.h
+++ b/os/hal/include/hal_onewire.h
@@ -342,8 +342,8 @@ extern "C" {
                           uint8_t *result, size_t max_rom_cnt);
 #endif /* ONEWIRE_USE_SEARCH_ROM */
 #if ONEWIRE_SYNTH_SEARCH_TEST
-  void _synth_ow_write_bit(onewireDriver *owp, uint8_t bit);
-  uint_fast8_t _synth_ow_read_bit(void);
+  void _synth_ow_write_bit(onewireDriver *owp, ioline_t bit);
+  ioline_t _synth_ow_read_bit(void);
   void synthSearchRomTest(onewireDriver *owp);
 #endif /* ONEWIRE_SYNTH_SEARCH_TEST */
 #ifdef __cplusplus
-- 
cgit v1.2.3