MSPM0_ValvanoWare  1.0
ECE445L starter code
Macros | Functions
Motor.h File Reference

RSLK dual H-bridge driver. More...

Go to the source code of this file.

Macros

#define MOTOR_PERIOD   10000
 
#define MOTORMIN   2
 
#define MOTORMAX   (MOTOR_PERIOD-2)
 

Functions

void Motor_Init (void)
 Initialize motors. More...
 
void Motor_Forward (uint32_t dutyLeft, uint32_t dutyRight)
 Go forward. More...
 
void Motor_Backward (uint32_t dutyLeft, uint32_t dutyRight)
 Go backward. More...
 
void Motor_Right (uint32_t dutyLeft, uint32_t dutyRight)
 Turn right. More...
 
void Motor_Left (uint32_t dutyLeft, uint32_t dutyRight)
 Turn left. More...
 

Detailed Description

RSLK dual H-bridge driver.

RSLK motor interface

Version
RSLK v2.03
Author
Daniel Valvano and Jonathan Valvano
Warning
AS-IS
Note
For more information see http://users.ece.utexas.edu/~valvano/
Date
July 12, 2026
RSLK Bumper switches
TM4C MSPM0 Description
PF2 PB4 Motor_PWML, ML+, IN3, PB.4/TIMA1_C0;
PF3 PB1 Motor_PWMR, MR+, IN1, PB.1/TIMA1_C1;
PA3 PB0 Motor_DIR_L,ML-, IN4, 1 means forward, 0 means backward
PA2 PB16 Motor_DIR_R,MR-, IN2