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.
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:
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).
Michal Sojka [Thu, 24 Jul 2014 11:39:56 +0000 (13:39 +0200)]
Get rid of sciNotification() and sciLowLevelInterrupt()
sciNotification (probably generated by HalCoGen) didn't serve any
reasonable purpose. We replaced its only meaningful occurrence in receive
interrupt by the actual work done there - clearing error flags. This
clearing was hidden in sciReceive(). Now things are much more
straightforward.
In certain situation the H-Bridge stops working without signaling that in
its status byte. This happens when the watchdog message is sent
approximately 25us after asserting EN signal. To prevent this situation we
have to synchronize EN signal with watchdog thread.
This commit also cleans up the H-bridge enable/disable logic. Now, the
H-bridge is no longer enabled when zero duty cycle is passed to
rpp_hbr_control(). The H-bridge must be enabled and disabled explicitely by
calling rpp_hbr_enable/disable().
Michal Sojka [Wed, 2 Jul 2014 21:51:08 +0000 (23:51 +0200)]
Change the license from GPL to proprietary
It was the initial plan to have everything under a non-free license,
but Carlos preferred GPL while saying that we, as copyright holders,
can change this whenever we want. So we want now :)
Michal Horn [Mon, 23 Sep 2013 15:23:32 +0000 (17:23 +0200)]
FlexRay bug in transmission repaired
The reconfiguration of the size was badly implemented. Each time a message in dynamic segment was sent, the buffer was reconfigured to its default parameters.
Michal Sojka [Fri, 20 Sep 2013 07:49:17 +0000 (09:49 +0200)]
Do not initialize CAN by default
There are several reasons for that:
1. The default configuration is useless for most applications.
2. The config was allocated on stack. Since it is remembered in can.c,
it is necessary that the configuration remains in memory forever. This
is not true for local variables, that are allocated on the stack.
Michal Horn [Thu, 19 Sep 2013 11:29:32 +0000 (13:29 +0200)]
Prohibition of the cancelation of the first and second buffer removed
There is no need to prohibit the cancelation of transmission on key slot because the synchronisation is still running even if no user messages are transmitted.
Michal Horn [Thu, 19 Sep 2013 11:23:27 +0000 (13:23 +0200)]
Detection of reconfigurable buffer in DisableLPdu and ReconfigLPdu functions merged into Fr_reconfigurable_buffer_index Fr_reconfigurable_buffer_indexFr_reconfigurable_buffer_indexFr_reconfigurable_buffer_indexFr_reconfigurable_buffer_index function
Michal Horn [Tue, 17 Sep 2013 12:51:45 +0000 (14:51 +0200)]
FlexRay RX FIFO rejectio filter repaired
There was an error in datasheet, where channel rejection filter had values 0,2,3,4, but it is supposed to be 0,1,2,3.
The FID bits in the FRF specifies the slot ID to be rejected, not accpeted as I have thought.
Buffer configuration structure expanded with one more parameter - the FID mask.
Buffer parameters check function expanded to check all the parameters of the FIFO buffer.
Michal Sojka [Fri, 13 Sep 2013 18:33:42 +0000 (20:33 +0200)]
Modify linker script to not throw away interrupt vectors
This is necessary when programs link against the rpp library and do not
compile the sys_intvecs.asm themselves. This was the case in rpp-test-sw,
but after reorganization of the build system (the library is built
separately), the processor didn't start properly.