Download Print this page

Infineon Multicore 1 Manual page 5

Multicore led control, aurix tc2xx microcontroller training

Advertisement

Implementation
Configure and control the LED
An LED is toggled by CPU0 and CPU1. Before using the LED, a port pin to which the
LED is connected must be configured during the initialization phase.
First step is to set the port pin to level "HIGH"; this keeps the LED turned off as a
default state (IfxPort_setPinHigh() function).
Second step is to set the port pin to push-pull output mode with the
IfxPort_setPinMode() function.
Depending on the state of the global variable g_turnLEDon, either CPU0 turns the
LED on (IfxPort_setPinlow()) or CPU1 turns it off (IfxPort_setPinHigh()).
The state of the global variable g_turnLEDon is changed by CPU2 every second
using the wait() function from the header Bsp.h.
All functions used to control the port pin are declared in the iLLD header IfxPort.h.
2020-01-17
Copyright © Infineon Technologies AG 2020. All rights reserved.
5

Advertisement

loading
Need help?

Need help?

Do you have a question about the Multicore 1 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel