How danysr8/ece_528l_ble_uart works
This repository is MSP432 firmware for a BLE-controlled robot. The main workflow is Bluefruit Connect sending UART data to the board; firmware receives and decodes packets, then commands motor movement or stop. The firmware also supports command-driven LED changes and switch-selected/fixed-byte UART transmissions, with a separate UART used for terminal output. Driver layers provide clock, GPIO, UART, PWM, motor, and interrupt primitives. The map follows README capabilities and shown calls; links for unsampled implementation details are omitted.
Main entry points: main.c Firmware Main · BLE_UART.c BLE UART Driver · Motor.c Motor Control · GPIO.c GPIO and Switches
Components 16
Application
- Firmware Main
ece528L_ble_uart/BLE_UART/main.c - Command Processing
ece528L_ble_uart/BLE_UART/main.c - Fixed/Switch TX
ece528L_ble_uart/BLE_UART/main.c
BLE Communication
- BLE UART Driver
ece528L_ble_uart/BLE_UART/src/BLE_UART.c - Control Packet Decoder
ece528L_ble_uart/BLE_UART/src/BLE_UART.c - Terminal UART
ece528L_ble_uart/BLE_UART/src/EUSCI_A0_UART.c
Robot I/O
- Motor Control
ece528L_ble_uart/BLE_UART/src/Motor.c - Timer A0 PWM
ece528L_ble_uart/BLE_UART/src/Timer_A0_PWM.c - GPIO and Switches
ece528L_ble_uart/BLE_UART/src/GPIO.c
Platform Drivers
- Clock Driver
ece528L_ble_uart/BLE_UART/src/Clock.c - Interrupt Control
ece528L_ble_uart/BLE_UART/src/CortexM.c - SysTick Driver
ece528L_ble_uart/BLE_UART/src/SysTick_Interrupt.c
Other components
- Bluefruit Connect
- Bluefruit UART Module
- Gearmotors
- LaunchPad LEDs
Connections 18
- Bluefruit Connect → Bluefruit UART Module: sends commands
README.md - Bluefruit UART Module → BLE UART Driver: UART data
ece528L_ble_uart/BLE_UART/src/BLE_UART.c - Firmware Main → BLE UART Driver: reads packets
ece528L_ble_uart/BLE_UART/main.c - Firmware Main → Command Processing: dispatches commands
ece528L_ble_uart/BLE_UART/main.c - Command Processing → BLE UART Driver: checks commands
ece528L_ble_uart/BLE_UART/main.c - BLE UART Driver → Control Packet Decoder: decodes packets
ece528L_ble_uart/BLE_UART/src/BLE_UART.c - Control Packet Decoder → Motor Control: commands movement
ece528L_ble_uart/BLE_UART/src/BLE_UART.c - Motor Control → Timer A0 PWM: sets duty cycles
- Motor Control → Gearmotors: drives
- Command Processing → GPIO and Switches: sets LED state
ece528L_ble_uart/BLE_UART/main.c - GPIO and Switches → LaunchPad LEDs: controls
- Firmware Main → Fixed/Switch TX: runs transmit tasks
ece528L_ble_uart/BLE_UART/main.c - Fixed/Switch TX → BLE UART Driver: transmits bytes
ece528L_ble_uart/BLE_UART/main.c - Fixed/Switch TX → GPIO and Switches: reads switches
- Firmware Main → Terminal UART: initializes console
ece528L_ble_uart/BLE_UART/main.c - Firmware Main → Clock Driver: sets clock
ece528L_ble_uart/BLE_UART/main.c - Firmware Main → Interrupt Control: controls interrupts
ece528L_ble_uart/BLE_UART/main.c - Firmware Main → SysTick Driver: configures timing