]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/log
pes-rpp/rpp-lib.git
9 years agoSet CAN clock source to PLL2 to have the same frequency as it has on TMS570 rm48-exp-before-uncrustify
Michal Horn [Mon, 10 Nov 2014 17:08:12 +0000 (18:08 +0100)]
Set CAN clock source to PLL2 to have the same frequency as it has on TMS570

This was the easiest fix of bit timing calculation, which was OK for HDK
kits, but was not compatible with other devices.

9 years agoFix bug in NHET1 initialization
Michal Horn [Mon, 10 Nov 2014 12:08:04 +0000 (13:08 +0100)]
Fix bug in NHET1 initialization

The HET port has not been initialized, bacause of typo in condition.

9 years agoFix pins multiplexing for RM48
Michal Horn [Mon, 10 Nov 2014 12:07:20 +0000 (13:07 +0100)]
Fix pins multiplexing for RM48

Used peripherals: ADC1, CAN1-3, GIOA, GIOB, HET1, EMIF, SCI
Some pins fron NHET1 port has been disabled, bacause they are shared
with SCI, which is also used.

9 years agoFix system clock configuration to use the constants from port.h
Michal Horn [Mon, 10 Nov 2014 12:02:23 +0000 (13:02 +0100)]
Fix system clock configuration to use the constants from port.h

9 years agoFix clock values for RM48, fix makefile and sci broken by the last merge
Michal Horn [Mon, 3 Nov 2014 16:27:50 +0000 (17:27 +0100)]
Fix clock values for RM48, fix makefile and sci broken by the last merge

9 years agoAdd Makefile for compiling using CCS
Michal Sojka [Thu, 30 Oct 2014 17:33:09 +0000 (18:33 +0100)]
Add Makefile for compiling using CCS

This works both under Linux and Windows and is intended to be used by
buildbot on Windows.

9 years agoPort ADC driver to RM48 and HDK
Michal Horn [Fri, 31 Oct 2014 14:44:32 +0000 (15:44 +0100)]
Port ADC driver to RM48 and HDK

Refs #1024

9 years agoFix RTI clock source and FreeRTOS speed
Michal Horn [Fri, 31 Oct 2014 13:41:45 +0000 (14:41 +0100)]
Fix RTI clock source and FreeRTOS speed

The RTI clock was disabled, which caused the system to freeze in delays.

Refs: #1024

9 years agoFix GPIO pins definiton
Michal Horn [Thu, 30 Oct 2014 13:50:32 +0000 (14:50 +0100)]
Fix GPIO pins definiton

NHET pins renamed to be without underscore for right interpretation
in cmdproc.

Initial configuratio of all GPIO pins changed to use pull up resistors.

Right ranges into pin_map defined for GIOA, GIOB and NHET.

Refs #1024

9 years agoAdd GPIO RPP layer
Michal Horn [Thu, 30 Oct 2014 13:46:22 +0000 (14:46 +0100)]
Add GPIO RPP layer

Refs #1024

9 years agoFix compile warning for POSIX version
Michal Horn [Wed, 29 Oct 2014 15:02:04 +0000 (16:02 +0100)]
Fix compile warning for POSIX version

Refs #1024

9 years agoDefine ports and pins for RM48 HDK, remove old ports and pins
Michal Horn [Wed, 29 Oct 2014 15:01:19 +0000 (16:01 +0100)]
Define ports and pins for RM48 HDK, remove old ports and pins

This commit refs #1024

9 years agoRemove excessive lower layer files
Michal Horn [Wed, 29 Oct 2014 13:48:01 +0000 (14:48 +0100)]
Remove excessive lower layer files

The same as in previous commit, but for lower layers than the RPP.

This commit refs #1024

Conflicts:
rpp/include/hal/spi_tms570.h
rpp/src/hal/spi_tms570.c
rpp/src/sys/sys_startup.c

9 years agoRemove excessive rpp library files from the RM48 project
Michal Horn [Wed, 29 Oct 2014 13:31:07 +0000 (14:31 +0100)]
Remove excessive rpp library files from the RM48 project

The HDK with RM48 does not have some peripherals that the RPP board
does have and some peripherals that are present for both board are not
desired for the current project. Those files for high-level support have
been removed from the project. Lower layers functions are still present.

This commit refs #1024

Conflicts:
rpp/src/sys/notification.c

9 years agoDisable Flash ECC
Michal Horn [Wed, 12 Nov 2014 14:28:04 +0000 (15:28 +0100)]
Disable Flash ECC

The simulink download code to the target is not working with Flash ECC
enabled, because the download script has not enabled the Auto ECC generation.
This could be fixed easily by some switch. But worse thing is, that Open
OCD stopped working as well, because of the same reason and the fix may not
be so easy as for Ti Download script.
So for now the best solution is to disable the ECC.

9 years agoMerge branch 'master' of rtime.felk.cvut.cz:pes-rpp/rpp-lib
Michal Horn [Fri, 7 Nov 2014 15:21:18 +0000 (16:21 +0100)]
Merge branch 'master' of rtime.felk.cvut.cz:pes-rpp/rpp-lib

9 years agoRemove excessive low level CAN functions from Ti HALCoGen
Michal Horn [Fri, 7 Nov 2014 14:59:31 +0000 (15:59 +0100)]
Remove excessive low level CAN functions from Ti HALCoGen

Those functions and ISR were generated by HALCoGen and modified for HW
testing in the past, when there was no other CAN support in the library.

Because we have now good support for CAN in RPP library, those Ti
functions are not needed.

9 years agoCode reformat, get rid of USER CODE sections from the HALCoGen
Michal Horn [Fri, 7 Nov 2014 14:33:33 +0000 (15:33 +0100)]
Code reformat, get rid of USER CODE sections from the HALCoGen

9 years agoUse library function for copy table initialization
Michal Horn [Fri, 7 Nov 2014 14:01:26 +0000 (15:01 +0100)]
Use library function for copy table initialization

9 years agoFix MCU initialization
Michal Horn [Fri, 7 Nov 2014 13:58:13 +0000 (14:58 +0100)]
Fix MCU initialization

The old HALCoGen version generated error for Enabling Flash ECC.
0x0C000000 caused that RAM ECC was enabled instead of the Flash ECC.
See section 2.22 and 2.5 for more detiails.

Fixes: #1029
9 years agoEnable parity for RAM initialization
Michal Horn [Fri, 7 Nov 2014 13:54:16 +0000 (14:54 +0100)]
Enable parity for RAM initialization

9 years agoEnable response to ECC errors before Flash ECC enabling
Michal Horn [Fri, 7 Nov 2014 13:52:50 +0000 (14:52 +0100)]
Enable response to ECC errors before Flash ECC enabling

The response has to be enabled before the Flash ECC. See description of
EDACEN field of FEDACCTRL1 register.

9 years agoChange register initializatoin to finish in System Mode
Michal Horn [Fri, 7 Nov 2014 13:50:42 +0000 (14:50 +0100)]
Change register initializatoin to finish in System Mode

Supervizor mode is entered on the reset, while system mode has not been set at all
in the previous version.

9 years agoImplement EFC self test return value
Michal Horn [Fri, 7 Nov 2014 13:31:04 +0000 (14:31 +0100)]
Implement EFC self test return value

9 years agoPBIST self check expanded
Michal Horn [Fri, 7 Nov 2014 13:19:16 +0000 (14:19 +0100)]
PBIST self check expanded

New HALCoGen version generates more complex PBIST self check, which allows
to discover more errors.

9 years agoMove common Makefile definition to a separate file
Michal Sojka [Fri, 7 Nov 2014 12:56:51 +0000 (13:56 +0100)]
Move common Makefile definition to a separate file

We want to use these definitions also in other project (e.g. rpp-test-sw).

9 years agoMCU startup fix
Michal Horn [Fri, 7 Nov 2014 12:52:11 +0000 (13:52 +0100)]
MCU startup fix

When the MCU starts up, it sometimes ended in a esm group3 error with
flag 0x8, which means RAM error. Now it fails approximately every
second boot.

The RAM may not sometimes be initialized properly, becuse wrong bit has
been checked in a waiting loop. This error was caused by the HALCoGen
version used for the first code generatoin.

PBIST self check used non volatile variables for waiting loop. Those loops
may be removed by compiler in some optimizatoin step. The self check itself
has been replaced by improved version from newer HALCoGen.

Refs: #1029

9 years agoImplement device specific configuration file
Michal Horn [Mon, 3 Nov 2014 15:06:45 +0000 (16:06 +0100)]
Implement device specific configuration file

Each device can have different endianity, source clock and clock tree.
Those and some other parameter regarding the frekvencies on each clock
tree branches can be configured in the sys/port.h file

9 years agoMerge branch 'master' of rtime.felk.cvut.cz:pes-rpp/rpp-lib
Michal Horn [Thu, 30 Oct 2014 20:15:24 +0000 (21:15 +0100)]
Merge branch 'master' of rtime.felk.cvut.cz:pes-rpp/rpp-lib

9 years agoAdd Makefile for compiling using CCS
Michal Sojka [Thu, 30 Oct 2014 17:33:09 +0000 (18:33 +0100)]
Add Makefile for compiling using CCS

This works both under Linux and Windows and is intended to be used by
buildbot on Windows.

9 years agoRevert changes done by mistake
Michal Horn [Thu, 30 Oct 2014 17:22:37 +0000 (18:22 +0100)]
Revert changes done by mistake

Revert to previous state before commit 6cc82e70597801d04a0c7836bc059ae2de7986de
Chenges between commit 6cc82e70597801d04a0c7836bc059ae2de7986de and
ecdf0ae0a2aca0bf932c6e39073325ab0db31c0c were done by mistake and should
be done in RM48_experimental branch instead of the master branch.

9 years agoFix app test-sw makefile
Michal Horn [Thu, 30 Oct 2014 14:25:41 +0000 (15:25 +0100)]
Fix app test-sw makefile

This is a continuation of my mistake described in previous commit.

9 years agoMakefile fix
Michal Horn [Thu, 30 Oct 2014 14:19:05 +0000 (15:19 +0100)]
Makefile fix

I have overwritten it in some previous commit by mistake, because
I was thinking I am in another branch.

9 years agoFix bug in HAL GPIO push/pull resistor configuration
Michal Horn [Thu, 30 Oct 2014 13:57:36 +0000 (14:57 +0100)]
Fix bug in HAL GPIO push/pull resistor configuration

9 years agoMerge branch 'master' into RM48-experimental
Michal Horn [Wed, 29 Oct 2014 12:43:45 +0000 (13:43 +0100)]
Merge branch 'master' into RM48-experimental

9 years agoFix mailbox numbering comments
Michal Horn [Wed, 29 Oct 2014 09:37:03 +0000 (10:37 +0100)]
Fix mailbox numbering comments

9 years agoChange rpp_can_timing_cfg to read-only structure
Michal Horn [Thu, 23 Oct 2014 11:49:01 +0000 (13:49 +0200)]
Change rpp_can_timing_cfg to read-only structure

This commit refs: #1026

9 years agoMerge branch 'master' of rtime.felk.cvut.cz:pes-rpp/rpp-lib
Michal Horn [Thu, 23 Oct 2014 09:40:17 +0000 (11:40 +0200)]
Merge branch 'master' of rtime.felk.cvut.cz:pes-rpp/rpp-lib

9 years agoMCU errata fixes added to the startup code
Michal Horn [Thu, 23 Oct 2014 09:40:12 +0000 (11:40 +0200)]
MCU errata fixes added to the startup code

The fixes were taken from the newest HALCoGen generated startup code
for TMS570.

9 years agoMake rpp_can_write() not to fail when previous TX request is pending
Michal Sojka [Wed, 22 Oct 2014 16:01:12 +0000 (18:01 +0200)]
Make rpp_can_write() not to fail when previous TX request is pending

Instead, the previous request is overwritten.

Also change the name of tx_con() to tx_pend(), which is more descriptive.

Needs to be tested: #1027

9 years agoUpdate documentation of CAN API
Michal Sojka [Wed, 22 Oct 2014 15:28:42 +0000 (17:28 +0200)]
Update documentation of CAN API

9 years agoSCI driver modified to work with Ti HDK
Michal Horn [Wed, 22 Oct 2014 13:37:50 +0000 (15:37 +0200)]
SCI driver modified to work with Ti HDK

The HDK uses different port for SCI than the RPP board. HDK uses
SCI/LIN port, RPP uses SCI2 port. In order to get it working, sci base
register has to be switched and ISR for the sci/lin has to be set in
the VIM.

This implementation is horrible and has to be reworked. It is working though.

This commit refs: #1024

Signed-off-by: Michal Horn <hornmich@fel.cvut.cz>
9 years agoAdd doc target to the main Makefile
Michal Sojka [Wed, 22 Oct 2014 11:55:10 +0000 (13:55 +0200)]
Add doc target to the main Makefile

9 years agoMCU initialization tuned for RM48
Michal Horn [Wed, 22 Oct 2014 11:45:45 +0000 (13:45 +0200)]
MCU initialization tuned for RM48

- Registers definitions switched to little endian.
- Pinmux tuned for RM48 with GPIOA, GPIOB and EMIF enabled, NHET, DMM,
  SCI2 and EMAC disabled.
- Wrong value systemREG1->MINITGCR = 0xA fixed to 0x5 for disable
  memory HW initialization. This value has been badly generated by the old
  HALCoGen version.
- TMS570 specific memory tests for FRAY and FTU disabled.
- PLL and clock domains settings tuned:
  RM48 can run on higher frequency, which required increacing the
  PLL multiplication factor and decreasing VCLK divider.
  Also unused Clock domains (RTI, EMAC, USB) has been disabled.

Now the code is able to enter the main() function.

This commit refs: #1024

Signed-off-by: Michal Horn <hornmich@fel.cvut.cz>
9 years agoProject settings and makefiles changed for RM48L952ZWT
Michal Horn [Tue, 21 Oct 2014 13:56:22 +0000 (15:56 +0200)]
Project settings and makefiles changed for RM48L952ZWT

Library can be built, but should not be runned on the device.

This commit refs: #1024

Signed-off-by: Michal Horn <hornmich@fel.cvut.cz>
9 years agoLibrary prepared for future use of new versions od FreeRTOS
Michal Horn [Mon, 20 Oct 2014 15:21:13 +0000 (17:21 +0200)]
Library prepared for future use of new versions od FreeRTOS

lwip has been modified to be compatible with the newest FreeRTOS without
warnings, so the library has to be also slightly modified to reflect the changes.

Macro for data type casting of the task name for xTaskCreate function added,
as this function has the name parameter with different data type for newer
FreeRTOS version.

This commit refs: #1021

9 years agoFixed header file name in FreeRTOS 7.4
Michal Horn [Fri, 17 Oct 2014 12:08:30 +0000 (14:08 +0200)]
Fixed header file name in FreeRTOS 7.4

9 years agoMissing header file included
Michal Horn [Fri, 17 Oct 2014 12:07:48 +0000 (14:07 +0200)]
Missing header file included

With some FreeRTOS version 7.4 there was a missing data type declaration.

9 years agoFixed interrupt identifier selection dependent on FreeRTOS version
Michal Horn [Fri, 17 Oct 2014 12:06:22 +0000 (14:06 +0200)]
Fixed interrupt identifier selection dependent on FreeRTOS version

9 years agoCompile against the DRV library macro reduced to FREERTOS_POSIX
Michal Horn [Wed, 15 Oct 2014 11:25:54 +0000 (13:25 +0200)]
Compile against the DRV library macro reduced to FREERTOS_POSIX

The macro is not needed as the RAM drivers are disabled if and only
if the library is compiled against the POSIX version of FreeRTOS.

This commit fixes #916

9 years agoMore warning in compile of the apidoc fixed
Michal Horn [Tue, 14 Oct 2014 13:51:56 +0000 (15:51 +0200)]
More warning in compile of the apidoc fixed

Those warnings are caused by unsupported parameter inout in the version
on the builbot. But the functions arguments marked as inout are used as out
only inside the function. So I have changed their mark to out.

This commit fixes #1019

9 years agoFixed some warnings in documentation compilation
Michal Horn [Mon, 13 Oct 2014 15:28:39 +0000 (17:28 +0200)]
Fixed some warnings in documentation compilation

This commit refs #1019

9 years agoFixed comments and documentation
Michal Horn [Mon, 13 Oct 2014 14:53:36 +0000 (16:53 +0200)]
Fixed comments and documentation

This commit refs #916

9 years agoMerge branch 'init_rework'
Michal Horn [Mon, 13 Oct 2014 12:30:19 +0000 (14:30 +0200)]
Merge branch 'init_rework'

9 years agoCopyright and licence for CAN timing calculation functions changed
Michal Horn [Mon, 13 Oct 2014 12:29:42 +0000 (14:29 +0200)]
Copyright and licence for CAN timing calculation functions changed

After an analysis of the code and discussion with author, we were allowed
to use this code as we want and need.

We thing that the code does not differ from the original Pavel Pisas
code enough to be patentable, but it works better for our CAN implementation.

Fixes #979

Signed-off-by: Michal Horn <hornmich@fel.cvut.cz>
9 years agoFixed compile errors when building the POSIX version
Michal Horn [Mon, 13 Oct 2014 12:16:56 +0000 (14:16 +0200)]
Fixed compile errors when building the POSIX version

I have missed some directives in sci_posix.c, sys_startup.c and notification.c in previous commit.
Also rppPOSIX_VERSION definition has been removed as it can be substituted by FREERTOS_POSIX.

9 years agoCompile errors fixed
Michal Horn [Fri, 10 Oct 2014 15:13:56 +0000 (17:13 +0200)]
Compile errors fixed

Compiler failed on building the POSIX version. Some drivers have to be
excluded from the buid process.

9 years agoRPP Library initalization rewritten.
Michal Horn [Fri, 10 Oct 2014 14:29:35 +0000 (16:29 +0200)]
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.

9 years agoCode Composer Studio project setup updated
Michal Horn [Fri, 10 Oct 2014 14:07:44 +0000 (16:07 +0200)]
Code Composer Studio project setup updated

Target configuration file set, Compiler explicitly selected for the case
more than one version is installed.

9 years agoDocumentation rewritten to be well-aranged, excessive record from rpp_can_timing_cfg...
Michal Horn [Thu, 9 Oct 2014 13:55:02 +0000 (15:55 +0200)]
Documentation rewritten to be well-aranged, excessive record from rpp_can_timing_cfg removed

Signed-off-by: Michal Horn <hornmich@fel.cvut.cz>
9 years agoCAN timing parameters calculation fixed, interface for manual specification of timing...
Michal Horn [Thu, 9 Oct 2014 10:44:00 +0000 (12:44 +0200)]
CAN timing parameters calculation fixed, interface for manual specification of timing parameters added

The previous algorithm for timing parameters calculation from desired
baudrate was working only for few baudrates values. When tested from
100kb to 1mb with step 100kb, only 100, 500 and 800kb were working
correctly. The new algorithm is much better. Now only 300, 600 and 900kb
are not working correctly, when communicating with PC via USB2CAN.

For the cases that non working baudrate is desired or more control
over the frame timing is needed, an interface for manual timing
specificatiion has been implemented.

Fixes #979

Signed-off-by: Michal Horn <hornmich@fel.cvut.cz>
9 years agoMerge branch 'master' of rtime.felk.cvut.cz:pes-rpp/rpp-lib
Michal Horn [Thu, 2 Oct 2014 15:38:06 +0000 (17:38 +0200)]
Merge branch 'master' of rtime.felk.cvut.cz:pes-rpp/rpp-lib

9 years agoFixes problem with not running programs when new compiler used
Michal Horn [Thu, 2 Oct 2014 15:37:40 +0000 (17:37 +0200)]
Fixes problem with not running programs when new compiler used

Old HalCoGen produced bad code once again.

Fixes #1014

9 years agoCompile test suite with ARM 5.1.1 compiler
Michal Sojka [Wed, 1 Oct 2014 16:41:26 +0000 (18:41 +0200)]
Compile test suite with ARM 5.1.1 compiler

(this is the same as the library)

9 years agoMakefile: make cp and rm commands work under Windows
Michal Sojka [Wed, 1 Oct 2014 16:24:28 +0000 (18:24 +0200)]
Makefile: make cp and rm commands work under Windows

9 years agoModify makefile to be Windows-compatible
Michal Sojka [Wed, 1 Oct 2014 14:59:24 +0000 (16:59 +0200)]
Modify makefile to be Windows-compatible

9 years agoSwitch to ARM compiler 5.1.1
Michal Sojka [Wed, 1 Oct 2014 14:58:54 +0000 (16:58 +0200)]
Switch to ARM compiler 5.1.1

This is the version bundled with CCS 5.5.

9 years agoFixed warnings detected by new ARM compiler 5.1.1
Michal Horn [Wed, 1 Oct 2014 09:57:03 +0000 (11:57 +0200)]
Fixed warnings detected by new ARM compiler 5.1.1

Wrong use of preprocessor's token-pasting operator.

9 years agoUpdate .gitignore files
Michal Sojka [Tue, 16 Sep 2014 17:47:48 +0000 (19:47 +0200)]
Update .gitignore files

9 years agoFix some doxygen warnings
Michal Sojka [Sat, 13 Sep 2014 11:51:34 +0000 (13:51 +0200)]
Fix some doxygen warnings

9 years agoMake rpp_can_read return different error codes for different errors
Michal Sojka [Sat, 13 Sep 2014 11:27:47 +0000 (13:27 +0200)]
Make rpp_can_read return different error codes for different errors

Fixes #971

9 years agoCorrect missing comet start delimiter.
Pavel Pisa [Fri, 12 Sep 2014 16:27:45 +0000 (18:27 +0200)]
Correct missing comet start delimiter.

9 years agoCleanup warnings in parameters overlay module support and copyright update.
Pavel Pisa [Fri, 12 Sep 2014 16:23:34 +0000 (18:23 +0200)]
Cleanup warnings in parameters overlay module support and copyright update.

9 years agoIncluded linker script and modification for SDRAM build
Michal Horn [Fri, 12 Sep 2014 15:19:58 +0000 (17:19 +0200)]
Included linker script and modification for SDRAM build

9 years agoMerge branch 'master' of rtime.felk.cvut.cz:pes-rpp/rpp-lib
Michal Horn [Fri, 12 Sep 2014 15:16:01 +0000 (17:16 +0200)]
Merge branch 'master' of rtime.felk.cvut.cz:pes-rpp/rpp-lib

9 years agoFix link errors on some systems
Michal Sojka [Fri, 12 Sep 2014 13:29:39 +0000 (15:29 +0200)]
Fix link errors on some systems

This fixes a link error in POSIX version of the test suite. The -lm and
-lpthread flags has to be put after rpp-lib.a on the command line.

9 years agoRemaping of vectors to RAM implemented
Michal Horn [Fri, 12 Sep 2014 12:44:19 +0000 (14:44 +0200)]
Remaping of vectors to RAM implemented

9 years agocan: Fix compiler warnings about changed sign
Michal Sojka [Mon, 8 Sep 2014 14:35:04 +0000 (16:35 +0200)]
can: Fix compiler warnings about changed sign

9 years agocan: Distinguish different types of failures
Michal Sojka [Mon, 8 Sep 2014 14:33:59 +0000 (16:33 +0200)]
can: Distinguish different types of failures

9 years agocan: Rename bit_index to bit_mask
Michal Sojka [Mon, 8 Sep 2014 14:28:58 +0000 (16:28 +0200)]
can: Rename bit_index to bit_mask

It is a better name for it.

9 years agoReformat comments to not have infinitely long lines
Michal Sojka [Mon, 8 Sep 2014 10:01:52 +0000 (12:01 +0200)]
Reformat comments to not have infinitely long lines

9 years agoThe coments about gpio functinons tuned to provide more clear information about curre...
Michal Horn [Wed, 3 Sep 2014 13:37:14 +0000 (15:37 +0200)]
The coments about gpio functinons tuned to provide more clear information about current state of the software

9 years agoMerge branch 'master' of rtime.felk.cvut.cz:pes-rpp/rpp-lib
Michal Horn [Tue, 26 Aug 2014 08:41:00 +0000 (10:41 +0200)]
Merge branch 'master' of rtime.felk.cvut.cz:pes-rpp/rpp-lib

9 years agoFixed bug in CAN configuration, fiiltering settings
Michal Horn [Tue, 26 Aug 2014 08:40:36 +0000 (10:40 +0200)]
Fixed bug in CAN configuration, fiiltering settings

This bug caused the message filtering malfunction when mask was defined.
Now the standart, extended and mixed message ID filtering with mask definition is supported.

When mixed is selected, only he higher bits of the Mask and ID registers are used.

9 years agoUpdate to fixed lwip version
Michal Sojka [Tue, 19 Aug 2014 17:16:55 +0000 (19:16 +0200)]
Update to fixed lwip version

The commit message from lwip submodule:

Remove inline from non-static functions

It seems that the compiler/CCS is somehow buggy when it sees non-static
inline functions, because the build is successful on desktop computers
but not buildbot's server. This change solves the buildbot failure. The
error message was:

9 years agoFixes IRC enable
Karel Kočí [Tue, 19 Aug 2014 15:35:36 +0000 (17:35 +0200)]
Fixes IRC enable

IRC couldn't been started, because of wrong data change.
Only by mistake in HET program IRC2 was working.

9 years agoGet rid of compiler warning
Michal Sojka [Tue, 19 Aug 2014 14:33:50 +0000 (16:33 +0200)]
Get rid of compiler warning

warning #10210-D: creating ".stack" section with default size of 0x800; use the -stack option to change the default size

9 years agoFix some errors and warnings in POSIX compilation
Michal Sojka [Tue, 19 Aug 2014 13:31:44 +0000 (15:31 +0200)]
Fix some errors and warnings in POSIX compilation

9 years agoFix compile error in POSIX build of the library
Michal Sojka [Tue, 19 Aug 2014 13:19:29 +0000 (15:19 +0200)]
Fix compile error in POSIX build of the library

../rpp/src/rpp/din.c: In function ‘check_pin_busy’:
../rpp/src/rpp/din.c:63:9: error: ‘rpp_irc1_enabled’ undeclared (first use in this function)

9 years agoAdd implementation of IRC module.
Karel Kočí [Tue, 19 Aug 2014 13:08:12 +0000 (15:08 +0200)]
Add implementation of IRC module.

Added implementation of IRC. Implementation is in new files
ti_drv_het2.c/ti_drv_het2.h, because IRC is implemented on second N2HET.

New header file of RPP API irc.h is also added to rpp.h with macro
condition rppCONFIG_INCLUDE_IRC. And also added call of rpp_irc_init()
in rpp_init() for initializing to rpp.c.

Added DIN 10,11 and 14,15 blocking when IRC1/2 is running. For this reason are
added new global variables: rpp_irc1_enabled, rpp_irc2_enabled.

Program for N2HET in ti_drv_het2.c was build with NHET Assembler. Source file is ti_drv_het2_irc.het
and is in same folder as ti_drv_het2.c.

Added new function setMuxForIRC() for pinmux for HET2 (file sys_pinmux.c/.h).

9 years agoAdd proper dependency to rpp-lib into rpp-test-suite Makefiles
Michal Sojka [Tue, 29 Jul 2014 08:31:15 +0000 (10:31 +0200)]
Add proper dependency to rpp-lib into rpp-test-suite Makefiles

Now, the test is re-linked if the library changes

9 years agoAdd Makefile for POSIX version of testsuite
Michal Sojka [Tue, 29 Jul 2014 08:25:42 +0000 (10:25 +0200)]
Add Makefile for POSIX version of testsuite

9 years agoMakefile: Fix subdir targets containing slashes
Michal Sojka [Tue, 29 Jul 2014 07:08:06 +0000 (09:08 +0200)]
Makefile: Fix subdir targets containing slashes

9 years agoChange top-level Makefile to not call Eclipse
Michal Sojka [Mon, 28 Jul 2014 18:08:47 +0000 (20:08 +0200)]
Change top-level Makefile to not call Eclipse

Now, when we have the proper Makefiles, it is not necessary to bother
with slow Eclipse.

9 years agoAdd Makefile for rpp-test-suite
Michal Sojka [Mon, 28 Jul 2014 17:44:41 +0000 (19:44 +0200)]
Add Makefile for rpp-test-suite

9 years agoFix compile errors discovered by GCC
Michal Sojka [Mon, 28 Jul 2014 16:49:50 +0000 (18:49 +0200)]
Fix compile errors discovered by GCC

9 years agoAdd Makefile to compile POSIX version of the library
Michal Sojka [Mon, 28 Jul 2014 16:49:18 +0000 (18:49 +0200)]
Add Makefile to compile POSIX version of the library

9 years agoAdd Makefile for Release configuration
Michal Sojka [Mon, 28 Jul 2014 16:09:22 +0000 (18:09 +0200)]
Add Makefile for Release configuration

Split the configuration so that it is easier to have more makefiles
for building the library.

9 years agoUse handwritten Makefile to compile the library
Michal Sojka [Mon, 28 Jul 2014 15:13:08 +0000 (17:13 +0200)]
Use handwritten Makefile to compile the library

Fixes #921.

9 years agoCompile the library with --gen_func_subsections
Michal Sojka [Thu, 24 Jul 2014 12:07:07 +0000 (14:07 +0200)]
Compile the library with --gen_func_subsections

This allow linker to remove unused functions such as sciReceive() from
the final binary.