stepRocker Open Source TMCL
1.00
|
I/O functions. More...
Go to the source code of this file.
Functions | |
void | InitIO (void) |
Initialize I/O. More... | |
void | EnableInterrupts (void) |
Enable all interrupts. More... | |
void | DisableInterrupts (void) |
Disable all interrupts. More... | |
void | ResetCPU (UCHAR ResetPeripherals) |
Reset the CPU. More... | |
void | SetMotorCurrent (UCHAR Motor, UCHAR Current) |
Set motor current. More... | |
UCHAR | GetStallState (UCHAR Motor) |
Get stall flag state of motor driver. More... | |
I/O functions.
This file contains definitions for using the I/O functions.
void DisableInterrupts | ( | void | ) |
Disable all interrupts.
This function globally disables all interrupts.
void EnableInterrupts | ( | void | ) |
Enable all interrupts.
This function globally enables all interrupts.
Get stall flag state of motor driver.
Motor | Motor number (with stepRocker always 0) |
This function reads the state of the SG_TEST pin of the TMC262.
void InitIO | ( | void | ) |
Initialize I/O.
This function initalizes all I/O port pins of the CPU that are not initialized in somewhere else in other initialization functions.
void ResetCPU | ( | UCHAR | ResetPeripherals | ) |
Reset the CPU.
ResetPeripherals | Reset also periperals when TRUE |
This function resets the CPU with or without the integrated peripherals.