Michal Sojka [Sun, 4 Oct 2015 07:23:24 +0000 (09:23 +0200)]
Makefile: Fix path to git-ls-files-attr
When git-ls-files-attr was called as part of release target from other
respoitories (e.g. simulink), the command was called with wrong path. This
is now fixed.
Michal Sojka [Tue, 1 Sep 2015 22:57:46 +0000 (00:57 +0200)]
Rename PINMUX to PINMMR
This commit cannot be compiled. Its purpose is to make the diff against
next commit more understandable. Unfortunately, git's diff is not that
clever, but kdiff3 or meld (see git difftool) can produce more
meaningful diffs.
Michal Sojka [Fri, 28 Aug 2015 21:30:53 +0000 (23:30 +0200)]
spi: Rework the SPI interface
Previous SPI API required the caller to know the SPI interface and index
of the device on this interface. This was because the interface data
structure had links to devices. Now, this is reversed - an SPI device
has a link to SPI interface it is connected to. Therefore, the user of
SPI API needs to specify only the device to communicate with. The SPI
interface is determined from the device internally.
Also some refactoring was done. Things than does not need to be public
were moved from .h to .c and declarations needed in spi.h were moved
there from spi_tms570.h.
Michal Horn [Tue, 11 Aug 2015 10:11:28 +0000 (12:11 +0200)]
Modify IRC enable code
The switch statements have been replaced by more effective lookup table,
The extern variables declaration has been removed as it would cause
problems with threadsave code later.
The lookup table array is not exported now and for getting the IRC status
the rpp_irc_status function is used instead of accessing the exported
variables.
There also was an error in rpp_irc_disable function, which was returning
FAILURE in case of success.
Michal Sojka [Thu, 27 Aug 2015 13:00:26 +0000 (15:00 +0200)]
Fix FreeRTOS for all target
In commit eebbf4597df1f1a8274af90e5b9bcaa97d14f0ad, I forgot to modify
other targets than rm48_hdk. This adds the missing (and needed)
modification to other targets.
Michal Sojka [Thu, 27 Aug 2015 07:17:00 +0000 (09:17 +0200)]
Trigger context switch after ADC interrupts - simpler version
Given the implementation of portYIELD_FROM_ISR() in FreeRTOS 8.2.2, it is
not necessary to call this macro at the end of the interrupt handler. This
allows us to centralize the call of this macro and keep target specific
files unmodified.
Michal Horn [Mon, 24 Aug 2015 12:51:29 +0000 (14:51 +0200)]
Trigger context switch after ADC interrupts
The previous behavior caused the ADC update function to wait until
context switch caused by the system timer. Now the scheduler is forced
to switch tasks immediately.
Michal Sojka [Sun, 2 Aug 2015 07:21:20 +0000 (09:21 +0200)]
Unify ADC among targets
There was little need to have ADC files different for each board. This
way it is simpler. The only difference is the number of pins and we now
keep this difference in port_def.h.
Michal Sojka [Sun, 2 Aug 2015 16:56:15 +0000 (18:56 +0200)]
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.
Michal Horn [Fri, 17 Jul 2015 08:07:23 +0000 (10:07 +0200)]
Merge port and gpio definitions into one file in the DRV layer
The idea is to have the pin and port names in a separated target specific
header files, the pin and port definitions in a target specific source files and
the target independent functions and data types in a common header and source
files.
The application than should include only one header file digital_io_def.h,
where are defined the names of the pins, and digital_io.h where is defined the
driver interface.
Michal Horn [Thu, 16 Jul 2015 07:41:00 +0000 (09:41 +0200)]
Separate GPIO HAL interface from the code
The implementation of the functions is moved to the source file, leaving only commented
function prototypes of the interface functions in the header and hiding the internal
functions in the source file.
Move GPIO HAL functions definitions from the header file fo the source file
Move functions comments from the source files to the header files
Michal Sojka [Sat, 1 Aug 2015 12:01:56 +0000 (14:01 +0200)]
eth: Get rid of volatile warnings
Pbuf is never modified by hardware and the code which uses it seems to
be safe even when the structure is not volatile. So remove the volatile
qualifier and get rid of the warnings.
Michal Sojka [Sat, 1 Aug 2015 09:08:13 +0000 (11:08 +0200)]
Allow target-specific API documentation
Now, it is not necessary to have separate header file for each target if
the only difference is the documentation (as it was the case for adc.h).
Now, Doxygen knows about the target being compiled and processes only
documentation comments for the given target (as specified via #ifdefs).
Michal Sojka [Sat, 25 Jul 2015 21:50:40 +0000 (23:50 +0200)]
Makefile: Put ARM compiler flags to variables
This is to allow using different compiler by redefining
CC, TARGET_CFLAGS, ARM_COMPILER_CFLAGS and RPP_MAKE_CFLAGS variables.
I use this if ARM compiler error message is not informative enough
to find the source of the error. Setting CC to gcc or clang and adding
a few other options to TARGET_CFLAGS allows using other compilers.
Michal Sojka [Fri, 10 Jul 2015 15:31:44 +0000 (17:31 +0200)]
Make attribute "eaton" to match only files in current directory
Previously, the attribute was set also for files, where it was not
desired because a file in the subdirectory had the same name a file with
eaton attribute in current directory. An example is
apps/rpp-test-suite/main.c and
apps/rpp-test-suite/src/_tms570_rpp/main.c, where only the former file
should be a part of release.