Go to the documentation of this file.
43 #ifndef BSP_DEFAULT_TIMER
45 #define BSP_DEFAULT_TIMER (&MODULE_STM0)
131 #define TIMER_COUNT (11)
132 #define TIMER_INDEX_10NS (0)
133 #define TIMER_INDEX_100NS (1)
134 #define TIMER_INDEX_1US (2)
135 #define TIMER_INDEX_10US (3)
136 #define TIMER_INDEX_100US (4)
137 #define TIMER_INDEX_1MS (5)
138 #define TIMER_INDEX_10MS (6)
139 #define TIMER_INDEX_100MS (7)
140 #define TIMER_INDEX_1S (8)
141 #define TIMER_INDEX_10S (9)
142 #define TIMER_INDEX_100S (10)
175 #define TimeConst_0s ((Ifx_TickTime)0)
176 #define TimeConst_10ns (TimeConst[TIMER_INDEX_10NS])
177 #define TimeConst_100ns (TimeConst[TIMER_INDEX_100NS])
178 #define TimeConst_1us (TimeConst[TIMER_INDEX_1US])
179 #define TimeConst_10us (TimeConst[TIMER_INDEX_10US])
180 #define TimeConst_100us (TimeConst[TIMER_INDEX_100US])
181 #define TimeConst_1ms (TimeConst[TIMER_INDEX_1MS])
182 #define TimeConst_10ms (TimeConst[TIMER_INDEX_10MS])
183 #define TimeConst_100ms (TimeConst[TIMER_INDEX_100MS])
184 #define TimeConst_1s (TimeConst[TIMER_INDEX_1S])
185 #define TimeConst_10s (TimeConst[TIMER_INDEX_10S])
186 #define TimeConst_100s (TimeConst[TIMER_INDEX_100S])
204 boolean interruptState;
262 return now() - since;
282 deadLine =
now() + timeout;
305 timeout = deadline -
now();
329 result =
now() >= deadLine;
373 return stmNow - since;
408 #define PIN_DRIVER_STRONG_SHARP IfxPort_PadDriver_cmosAutomotiveSpeed1
409 #define Pin_setState(pin, mode) IfxPort_setPinState((pin)->port, (pin)->pinIndex, (mode))
410 #define Pin_setGroupState(pin, mask, data) IfxPort_setGroupState((pin)->port, (pin)->pinIndex, (mask), (data))
411 #define Pin_setMode(pin, mode) IfxPort_setPinMode((pin)->port, (pin)->pinIndex, (mode))
412 #define Pin_setDriver(pin, mode) IfxPort_setPinPadDriver((pin)->port, (pin)->pinIndex, (mode))
413 #define Pin_setStateHigh(pin) IfxPort_setPinHigh((pin)->port, (pin)->pinIndex)
414 #define Pin_setStateLow(pin) IfxPort_setPinLow((pin)->port, (pin)->pinIndex)
415 #define Pin_getState(pin) IfxPort_getPinState((pin)->port, (pin)->pinIndex)
416 #define Pin_setGroupModeOutput(pin, mask, mode, outputIdx) IfxPort_setGroupModeOutput((pin)->port, (pin)->pinIndex, (mask), (mode), (outputIdx))
417 #define Pin_setGroupModeInput(pin, mask, mode) IfxPort_setGroupModeInput((pin)->port, (pin)->pinIndex, (mask), (mode))
418 #define Pin_setGroupState(pin, mask, data) IfxPort_setGroupState((pin)->port, (pin)->pinIndex, (mask), (data))
419 #define Pin_getGroupState(pin, mask) IfxPort_getGroupState((pin)->port, (pin)->pinIndex, (mask))
420 #define Pin_enableEmgStop(pin) IfxPort_enableEmergencyStop((pin)->port, (pin)->pinIndex)