iLLD_TC29x  1.0
Bsp.h File Reference

Board support package. More...

#include "Ifx_Cfg.h"
#include "Cpu/Std/IfxCpu_Intrinsics.h"
#include "_Utilities/Ifx_Assert.h"
#include "Cpu/Std/IfxCpu.h"
#include "Port/Std/IfxPort.h"
#include "Src/Std/IfxSrc.h"
#include "Stm/Std/IfxStm.h"
#include "Scu/Std/IfxScuCcu.h"

Go to the source code of this file.

Macros

#define BSP_DEFAULT_TIMER   (&MODULE_STM0)
 
#define TIMER_COUNT   (11)
 
#define TIMER_INDEX_10NS   (0)
 
#define TIMER_INDEX_100NS   (1)
 
#define TIMER_INDEX_1US   (2)
 
#define TIMER_INDEX_10US   (3)
 
#define TIMER_INDEX_100US   (4)
 
#define TIMER_INDEX_1MS   (5)
 
#define TIMER_INDEX_10MS   (6)
 
#define TIMER_INDEX_100MS   (7)
 
#define TIMER_INDEX_1S   (8)
 
#define TIMER_INDEX_10S   (9)
 
#define TIMER_INDEX_100S   (10)
 
#define PIN_DRIVER_STRONG_SHARP   IfxPort_PadDriver_cmosAutomotiveSpeed1
 
#define Pin_setState(pin, mode)   IfxPort_setPinState((pin)->port, (pin)->pinIndex, (mode))
 
#define Pin_setGroupState(pin, mask, data)   IfxPort_setGroupState((pin)->port, (pin)->pinIndex, (mask), (data))
 
#define Pin_setMode(pin, mode)   IfxPort_setPinMode((pin)->port, (pin)->pinIndex, (mode))
 
#define Pin_setDriver(pin, mode)   IfxPort_setPinPadDriver((pin)->port, (pin)->pinIndex, (mode))
 
#define Pin_setStateHigh(pin)   IfxPort_setPinHigh((pin)->port, (pin)->pinIndex)
 
#define Pin_setStateLow(pin)   IfxPort_setPinLow((pin)->port, (pin)->pinIndex)
 
#define Pin_getState(pin)   IfxPort_getPinState((pin)->port, (pin)->pinIndex)
 
#define Pin_setGroupModeOutput(pin, mask, mode, outputIdx)   IfxPort_setGroupModeOutput((pin)->port, (pin)->pinIndex, (mask), (mode), (outputIdx))
 
#define Pin_setGroupModeInput(pin, mask, mode)   IfxPort_setGroupModeInput((pin)->port, (pin)->pinIndex, (mask), (mode))
 
#define Pin_setGroupState(pin, mask, data)   IfxPort_setGroupState((pin)->port, (pin)->pinIndex, (mask), (data))
 
#define Pin_getGroupState(pin, mask)   IfxPort_getGroupState((pin)->port, (pin)->pinIndex, (mask))
 
#define Pin_enableEmgStop(pin)   IfxPort_enableEmergencyStop((pin)->port, (pin)->pinIndex)
 

Functions

Interrupt APIs
IFX_INLINE boolean areInterruptsEnabled (void)
 Return the status of the global interrupts. More...
 
IFX_INLINE boolean disableInterrupts (void)
 Disable the global interrupts. More...
 
IFX_INLINE void enableInterrupts (void)
 enable the global interrupts More...
 
IFX_INLINE void restoreInterrupts (boolean enabled)
 Restore the state of the global interrupts. More...
 
IFX_INLINE void forceDisableInterrupts (void)
 Disable the global interrupts forcefully. More...
 

Variables

IFX_EXTERN Ifx_TickTime TimeConst [TIMER_COUNT]
 

Time APIs

#define TimeConst_0s   ((Ifx_TickTime)0)
 time constant equal to 1s More...
 
#define TimeConst_10ns   (TimeConst[TIMER_INDEX_10NS])
 time constant equal to 10ns More...
 
#define TimeConst_100ns   (TimeConst[TIMER_INDEX_100NS])
 time constant equal to 100ns More...
 
#define TimeConst_1us   (TimeConst[TIMER_INDEX_1US])
 time constant equal to 1us More...
 
#define TimeConst_10us   (TimeConst[TIMER_INDEX_10US])
 time constant equal to 10us More...
 
#define TimeConst_100us   (TimeConst[TIMER_INDEX_100US])
 time constant equal to 100us More...
 
#define TimeConst_1ms   (TimeConst[TIMER_INDEX_1MS])
 time constant equal to 1ms More...
 
#define TimeConst_10ms   (TimeConst[TIMER_INDEX_10MS])
 time constant equal to 10ms More...
 
#define TimeConst_100ms   (TimeConst[TIMER_INDEX_100MS])
 time constant equal to 100ms More...
 
#define TimeConst_1s   (TimeConst[TIMER_INDEX_1S])
 time constant equal to 1s More...
 
#define TimeConst_10s   (TimeConst[TIMER_INDEX_10S])
 time constant equal to 10s More...
 
#define TimeConst_100s   (TimeConst[TIMER_INDEX_100S])
 time constant equal to 100s More...
 
typedef void(* WaitTimeFunction )(Ifx_TickTime timeout)
 
IFX_INLINE Ifx_TickTime addTTime (Ifx_TickTime a, Ifx_TickTime b)
 Add 2 Ifx_TickTime values and return the result. More...
 
IFX_INLINE Ifx_TickTime elapsed (Ifx_TickTime since)
 Return the elapsed time in ticks. More...
 
IFX_INLINE Ifx_TickTime getDeadLine (Ifx_TickTime timeout)
 Return the time dead line. More...
 
IFX_INLINE Ifx_TickTime getTimeout (Ifx_TickTime deadline)
 Return the time until the dead line. More...
 
IFX_EXTERN void initTime (void)
 Initialize the time constants. More...
 
IFX_INLINE boolean isDeadLine (Ifx_TickTime deadLine)
 Return TRUE if the dead line is over. More...
 
IFX_INLINE Ifx_TickTime now (void)
 Return system timer value (critical section). More...
 
IFX_INLINE Ifx_TickTime nowWithoutCriticalSection (void)
 Return system timer value (without critical section). More...
 
IFX_INLINE boolean poll (volatile boolean *test, Ifx_TickTime timeout)
 Poll a variable for a time. More...
 
IFX_INLINE Ifx_TickTime timingNoInterruptEnd (Ifx_TickTime since, boolean interruptEnabled)
 Return the elapsed time in system timer ticks, and enable the interrupts. More...
 
IFX_INLINE Ifx_TickTime timingNoInterruptStart (boolean *interruptEnabled)
 Disable the interrupt and return system timer value. More...
 
IFX_INLINE void wait (Ifx_TickTime timeout)
 Wait for a while. More...
 
IFX_EXTERN void waitPoll (void)
 Wait function. More...
 
IFX_EXTERN void waitTime (Ifx_TickTime timeout)
 Wait time function. More...
 

Detailed Description

Board support package.

Version
iLLD_1_0_0_11_0
                            IMPORTANT NOTICE

Infineon Technologies AG (Infineon) is supplying this file for use exclusively with Infineon's microcontroller products. This file can be freely distributed within development tools that are supporting such microcontroller products.

THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.

Definition in file Bsp.h.

Macro Definition Documentation

#define BSP_DEFAULT_TIMER   (&MODULE_STM0)

Defined the default timer used

Definition at line 45 of file Bsp.h.

Referenced by initTime(), now(), and nowWithoutCriticalSection().

#define PIN_DRIVER_STRONG_SHARP   IfxPort_PadDriver_cmosAutomotiveSpeed1

Definition at line 408 of file Bsp.h.

#define Pin_enableEmgStop (   pin)    IfxPort_enableEmergencyStop((pin)->port, (pin)->pinIndex)

Definition at line 420 of file Bsp.h.

#define Pin_getGroupState (   pin,
  mask 
)    IfxPort_getGroupState((pin)->port, (pin)->pinIndex, (mask))

Definition at line 419 of file Bsp.h.

#define Pin_getState (   pin)    IfxPort_getPinState((pin)->port, (pin)->pinIndex)

Definition at line 415 of file Bsp.h.

#define Pin_setDriver (   pin,
  mode 
)    IfxPort_setPinPadDriver((pin)->port, (pin)->pinIndex, (mode))

Definition at line 412 of file Bsp.h.

#define Pin_setGroupModeInput (   pin,
  mask,
  mode 
)    IfxPort_setGroupModeInput((pin)->port, (pin)->pinIndex, (mask), (mode))

Definition at line 417 of file Bsp.h.

#define Pin_setGroupModeOutput (   pin,
  mask,
  mode,
  outputIdx 
)    IfxPort_setGroupModeOutput((pin)->port, (pin)->pinIndex, (mask), (mode), (outputIdx))

Definition at line 416 of file Bsp.h.

#define Pin_setGroupState (   pin,
  mask,
  data 
)    IfxPort_setGroupState((pin)->port, (pin)->pinIndex, (mask), (data))

Definition at line 418 of file Bsp.h.

#define Pin_setGroupState (   pin,
  mask,
  data 
)    IfxPort_setGroupState((pin)->port, (pin)->pinIndex, (mask), (data))

Definition at line 418 of file Bsp.h.

#define Pin_setMode (   pin,
  mode 
)    IfxPort_setPinMode((pin)->port, (pin)->pinIndex, (mode))

Definition at line 411 of file Bsp.h.

#define Pin_setState (   pin,
  mode 
)    IfxPort_setPinState((pin)->port, (pin)->pinIndex, (mode))

Definition at line 409 of file Bsp.h.

#define Pin_setStateHigh (   pin)    IfxPort_setPinHigh((pin)->port, (pin)->pinIndex)

Definition at line 413 of file Bsp.h.

#define Pin_setStateLow (   pin)    IfxPort_setPinLow((pin)->port, (pin)->pinIndex)

Definition at line 414 of file Bsp.h.

#define TIMER_COUNT   (11)

Definition at line 131 of file Bsp.h.

#define TIMER_INDEX_100MS   (7)

Definition at line 139 of file Bsp.h.

Referenced by initTime().

#define TIMER_INDEX_100NS   (1)

Definition at line 133 of file Bsp.h.

Referenced by initTime().

#define TIMER_INDEX_100S   (10)

Definition at line 142 of file Bsp.h.

Referenced by initTime().

#define TIMER_INDEX_100US   (4)

Definition at line 136 of file Bsp.h.

Referenced by initTime().

#define TIMER_INDEX_10MS   (6)

Definition at line 138 of file Bsp.h.

Referenced by initTime().

#define TIMER_INDEX_10NS   (0)

Definition at line 132 of file Bsp.h.

Referenced by initTime().

#define TIMER_INDEX_10S   (9)

Definition at line 141 of file Bsp.h.

Referenced by initTime().

#define TIMER_INDEX_10US   (3)

Definition at line 135 of file Bsp.h.

Referenced by initTime().

#define TIMER_INDEX_1MS   (5)

Definition at line 137 of file Bsp.h.

Referenced by initTime().

#define TIMER_INDEX_1S   (8)

Definition at line 140 of file Bsp.h.

Referenced by initTime().

#define TIMER_INDEX_1US   (2)

Definition at line 134 of file Bsp.h.

Referenced by initTime().

Variable Documentation

Definition at line 148 of file Bsp.h.