]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/commit
Split drv/digital_io.h to drv/gio*.h and drv/port.h
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 2 Aug 2015 16:56:15 +0000 (18:56 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 7 Aug 2015 13:19:19 +0000 (15:19 +0200)
commita03a08f1086d9db86e3e063a1a6ac76bfa63451c
tree110c3d1480d9ff4226369848171de9f721222b8b
parentc46b9f237ddb6dc869ecf0fd443157dcc843956f
Split drv/digital_io.h to drv/gio*.h and drv/port.h

File digital_io.h mixed two concepts - digital IOs and so called ports.
Ports can be used to access digital IOs but also SPI and ADC. We
therefore spit this file into two independent one.

File gio.h defines access to digital IO on the MCU. The definition of
pins will be provided per target. Applications do not access this
definition directly but via two files: pin names are accessed via
gio_pin_names.h and the definition and related functions via
gio_pin_tab.h.

File port.h defines access to ports.

This commit only changes the interface (.h files). Target specific port
and pin definitions and changes in other files are in subsequent
commits.
20 files changed:
Makefile.var
rpp/include/drv/dac.h
rpp/include/drv/digital_io.h [deleted file]
rpp/include/drv/digital_io_def.h [deleted file]
rpp/include/drv/drv.h
rpp/include/drv/gio.h [new file with mode: 0644]
rpp/include/drv/gio_def.h [new file with mode: 0644]
rpp/include/drv/gio_names.h [new file with mode: 0644]
rpp/include/drv/gio_tab.h [new file with mode: 0644]
rpp/include/drv/mout.h
rpp/include/drv/port.h [new file with mode: 0644]
rpp/include/drv/port_def.h [new file with mode: 0644]
rpp/include/drv/spi.h
rpp/src/drv/_rm48_hdk/digital_io_def.c
rpp/src/drv/_tms570_hdk/digital_io_def.c
rpp/src/drv/_tms570_hydctr/digital_io_def.c
rpp/src/drv/_tms570_rpp/digital_io_def.c
rpp/src/drv/digital_io.c [deleted file]
rpp/src/drv/gio.c [new file with mode: 0644]
rpp/src/drv/gio_tab.c [new file with mode: 0644]