/** * lab5_template.c * * Template file for CprE 288 lab 5 * * @author Zhao Zhang, Chad Nelson, Zachary Glanz * @date 08/14/2016 * * @author Phillip Jones, updated 6/4/2019 */ #include "button.h" #include "timer.h" #include "lcd.h" #include "cyBot_uart.h" // Functions for communiticate between CyBot and Putty (via UART) // PuTTy: Buad=115200, 8 data bits, No Flow Control, No Party, COM1 #include "cyBot_Scan.h" // For scan sensors #warning "Possible unimplemented functions" #define REPLACEME 0 // Defined in button.c : Used to communicate information between the // the interupt handeler and main. extern volatile int button_event; extern volatile int button_num; int main(void) { button_init(); lcd_init(); // Don't forget to initialze the cyBot UART before trying to use it // (Uncomment ME for PuTTy to CyBot UART init part of lab) cyBot_uart_init_clean(); // Clean UART initialization, before running your UART GPIO init code // Complete this code for configuring the (GPIO) part of UART initialization // SYSCTL_RCGCGPIO_R |= FIXME; // timer_waitMillis(1); // Small delay before accessing device after turning on clock // GPIO_PORTB_AFSEL_R |= FIXME; // GPIO_PORTB_PCTL_R &= FIXME; // Force 0's in the disired locations // GPIO_PORTB_PCTL_R |= FIXME; // Force 1's in the disired locations // GPIO_PORTB_DEN_R |= FIXME; // GPIO_PORTB_DIR_R &= FIXME; // Force 0's in the disired locations // GPIO_PORTB_DIR_R |= FIXME; // Force 1's in the disired locataions // (Uncomment ME for UART init part of lab) cyBot_uart_init_last_half(); // Complete the UART device initialization part of configuration // Initialze scan sensors // cyBOT_init_Scan(); // YOUR CODE HERE while(1) { // YOUR CODE HERE } }