refactoring: extract common code 98/260498/2
authorAdrian Szyndela <adrian.s@samsung.com>
Fri, 25 Jun 2021 13:08:20 +0000 (15:08 +0200)
committerAdrian Szyndela <adrian.s@samsung.com>
Mon, 28 Jun 2021 09:23:10 +0000 (11:23 +0200)
commitacc32553b5650221414099792e038e531baba4c9
tree48af2656d8630be713649358e4fd78d7a4ad2189
parent889346a1fe12e95e59a1a49dbcb74f9615c7ec7a
refactoring: extract common code

Extract generic flocks.
Extract ARRAY_SIZE.
Extract close_fd.
Extract MAX_d_FMT.

Change-Id: I1f165414e95c0c3d4ac5c7e21b70896b8ae4a288
src/common.c
src/common.h
src/peripheral_adc.c
src/peripheral_gpio.c
src/peripheral_i2c.c
src/peripheral_pwm.c
src/peripheral_spi.c
src/peripheral_uart.c