/*! * @defgroup RSLK * @brief RSLK Bumper switches
RSLK Bumper switches
TM4C MSPM0 Description
PA5 PA27 Left, Bump 0,
PF0 PB15 Center Left, Bump 1,
PB3 PA28 Center Right, Bump 2
PC4 PA31 Right, Bump 3
* @{*/ /** * @file Bump.h * @brief RSLK Bumper switches * @details Four negative logic internal pullup
* @version RSLK v2.02 * @author Daniel Valvano and Jonathan Valvano * @copyright Copyright 2024 by Jonathan W. Valvano, valvano@mail.utexas.edu, * @warning AS-IS * @note For more information see http://users.ece.utexas.edu/~valvano/ * @date June 28, 2024
RSLK Bumper switches
TM4C MSPM0 Description
PA5 PA27 Left, Bump 0,
PF0 PB15 Center Left, Bump 1,
PB3 PA28 Center Right, Bump 2
PC4 PA31 Right, Bump 3
******************************************************************************/ #ifndef __BUMP_H__ #define __BUMP_H__ /** * Initialize RSLK bump switches * @param none * @return none * @brief Initialize bump switches */ void Bump_Init(void); /** * Input RSLK bump switches
* bit 0 is left
* bit 1 is left center
* bit 2 is right center
* bit 3 is right * @param none * @return 0 to 15 in positive logic * @brief Read bump switches */ uint32_t Bump_In(void); #endif