]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/commit
Rework rpp_gio initialization
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 3 Jul 2015 11:13:39 +0000 (13:13 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 3 Jul 2015 11:16:44 +0000 (13:16 +0200)
commit0d33e336ddd57c945884370bf9e74c72637d7fc8
tree1ce81445433143542c180646c32ba50713322f5c
parent1bacdb628b9695f028403a1974aea7d0f19da0e1
Rework rpp_gio initialization

Previously, it was necessary to define indexes of various ports in
pin_map. This was error prone and some targets were buggy due to wrong
indexes specified. The new initialization procedure does not require
these indexes and hence works more reliably.

This patch also changes the IDs of ports at RPP layer to correspond to
IDs in the HAL layer. This is now needed for proper initialization and
reduces confusion.
rpp/include/hal/_rm48_hdk/gpio_def.h
rpp/include/hal/_tms570_hdk/gpio_def.h
rpp/include/hal/_tms570_hydctr/gpio_def.h
rpp/include/rpp/gio.h
rpp/src/rpp/gio.c