Function tc_init_2bit_gray()

Configure TC for 2-bit Gray Counter for Stepper Motor.

uint32_t tc_init_2bit_gray(
		Tc * p_tc,
		uint32_t ul_channel,
		uint32_t ul_steppermode)

Note: The function tc_init() must be called prior to this one.
Note: This function is not available on SAM3U devices.
Table 1. Parameters
Data direction Parameter name Description

[out]

p_tc

Module hardware register base address pointer

[in]

ul_channel

Channel to configure

[in]

ul_steppermode

Stepper motor mode register value to set

Returns

0 for OK.