aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/hal_onewire.h
diff options
context:
space:
mode:
authorbarthess <barthess@yandex.ru>2016-05-31 00:04:19 +0300
committerbarthess <barthess@yandex.ru>2016-05-31 00:04:19 +0300
commitb10e42340675dfb915be881b45053aeccf1dcbe4 (patch)
tree513acfeb99700d71100b9b9b10b5d2e996d1c872 /os/hal/include/hal_onewire.h
parent0fb26389ea53d4e2a4b0587886e6970f8c5ad102 (diff)
downloadChibiOS-Contrib-b10e42340675dfb915be881b45053aeccf1dcbe4.tar.gz
ChibiOS-Contrib-b10e42340675dfb915be881b45053aeccf1dcbe4.tar.bz2
ChibiOS-Contrib-b10e42340675dfb915be881b45053aeccf1dcbe4.zip
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.
Diffstat (limited to 'os/hal/include/hal_onewire.h')
-rw-r--r--os/hal/include/hal_onewire.h4
1 files changed, 2 insertions, 2 deletions
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