3.3.0.0R11
Software Development Kit
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
config_pin

Detailed Description

The config_pin module implements an output "Role" which can be assigned to any configurable pin.

Build it from project "configurablePinDemo".

Use either the Web Manager or Command Line Interface to setup configuration in group CPM. Under "Roles", find your role of "Blinker". Assign it a CP of your choice and set State to Enabled. HINT (applicable to xPicoWifi): If using the evaluation board, you must jumper your selected Configurable Pin on JP5 to an LED on JP7. (If some other role is enabled using your selected CP, this will fail.) Observe the blinking with an LED or scope connected to your selected CP.

Notice use of the macro STACK_SIZE_GREEN_FROM_MAX_OBSERVED_STACK_USED when calling ltrx_thread_create(). It was originally built with 2000 bytes of stack. Then the module was built and run. The actual stack was observed either via the Web Manager or the Command Line Interface under Diagnostics Threads. Find the "Blinker" thread, and the "Stack used" is shown. That value was plugged into the macro in the sample code.