Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.
/ TC27D_lib Public archive

Infenion TriCore TC27D C libraries using iLLD

License

Notifications You must be signed in to change notification settings

hhk7734/TC27D_lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TC27D libraries

Setup

cd <path to workspace>/0_Src/AppSw/Tricore
git clone https://github.com/hhk7734/TC27D_lib.git

When cloning git, you have to clean project.

If not, a building may fail because the new directory path wasn't registered in Makefile.

Usage

Shell on Cpu0

#include "Ifx_Types.h"
#include "IfxCpu.h"
#include "IfxScuWdt.h"
#include "shell_interface.h"

IfxCpu_syncEvent cpuSyncEvent = 0;

int core0_main( void )
{
    IfxCpu_enableInterrupts();
    /*
     * !!WATCHDOG0 AND SAFETY WATCHDOG ARE DISABLED HERE!!
     * Enable the watchdog in the demo if it is required and also service the watchdog periodically
     * */
    IfxScuWdt_disableCpuWatchdog( IfxScuWdt_getCpuWatchdogPassword() );
    IfxScuWdt_disableSafetyWatchdog( IfxScuWdt_getSafetyWatchdogPassword() );

    /* Cpu sync event wait*/
    IfxCpu_emitEvent( &cpuSyncEvent );
    IfxCpu_waitEvent( &cpuSyncEvent, 1 );

    shell_init();

    while( 1 )
    {
        shell_run();
    }
    return ( 1 );
}

About

Infenion TriCore TC27D C libraries using iLLD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published