Aug 08, 2019
12:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 08, 2019
12:16 AM
Hi,
I tried to read pin state the following way:
[HTML]
boolean is_pin_high = IfxPort_getPinState(pin->desired_scu_pin->pin.port,
pin->desired_scu_pin->pin.pinIndex);
[/HTML]
There problem is when ever this function is called program is stuck in trap.
pin is configured as input, compiler return no warning and errors about this function.
why such thing is happening ?
I use Tc222L iLLd version iLLD_1_0_1_11_0.
I tried to read pin state the following way:
[HTML]
boolean is_pin_high = IfxPort_getPinState(pin->desired_scu_pin->pin.port,
pin->desired_scu_pin->pin.pinIndex);
[/HTML]
There problem is when ever this function is called program is stuck in trap.
pin is configured as input, compiler return no warning and errors about this function.
why such thing is happening ?
I use Tc222L iLLd version iLLD_1_0_1_11_0.
Labels
- Tags:
- IFX
2 Replies
Aug 08, 2019
05:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 08, 2019
05:37 AM
Hi,
there is a wrong/invalid value for pin, desired_scu_pin or pin defined. How you you define and initalize structure pin?
there is a wrong/invalid value for pin, desired_scu_pin or pin defined. How you you define and initalize structure pin?
Aug 11, 2019
11:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 11, 2019
11:36 PM
hi,
you were right it was a dump mistake:
pointer had different value
you were right it was a dump mistake:
pointer had different value