]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/commit
RPP Library initalization rewritten.
authorMichal Horn <hornmich@fel.cvut.cz>
Fri, 10 Oct 2014 14:29:35 +0000 (16:29 +0200)
committerMichal Horn <hornmich@fel.cvut.cz>
Fri, 10 Oct 2014 14:29:35 +0000 (16:29 +0200)
commit75d5349851791255bb0dcd189ee813de43a5daf3
treef52c04ebf7e97efc80541e7f09f7317c8244cb8d
parent4a4c36e440ad2c644a01f6914e0a54d58564992e
RPP Library initalization rewritten.

There was only one function - rpp_init(), which initialized every
peripherals in the system, even if some of the peripherals were not
used by the software.

Now the rpp_init() is only convenient function and every needed
peripheral should be initialized by calling its own init function.
As a result, we were able to get rid of lots of ifdef and define
macros and resulting binary file is smaller.
24 files changed:
rpp/include/rpp/RppConfig.h
rpp/include/rpp/rpp.h
rpp/src/hal/spi_tms570.c
rpp/src/rpp/adc.c
rpp/src/rpp/can.c
rpp/src/rpp/dac.c
rpp/src/rpp/din.c
rpp/src/rpp/eth.c
rpp/src/rpp/fr.c
rpp/src/rpp/hbr.c
rpp/src/rpp/hout.c
rpp/src/rpp/irc.c
rpp/src/rpp/lin.c
rpp/src/rpp/lout.c
rpp/src/rpp/mout.c
rpp/src/rpp/rpp.c
rpp/src/rpp/sci.c
rpp/src/rpp/sdc.c
rpp/src/rpp/sdr.c
rpp/src/sys/ti_drv_can.c
rpp/src/sys/ti_drv_dmm.c
rpp/src/sys/ti_drv_gio.c
rpp/src/sys/ti_drv_het.c
rpp/src/sys/ti_drv_lin.c