EE445M RTOS
Taken at the University of Texas Spring 2015
test-display.c File Reference
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include "inc/hw_ints.h"
#include "inc/hw_memmap.h"
#include "driverlib/debug.h"
#include "driverlib/fpu.h"
#include "driverlib/gpio.h"
#include "driverlib/interrupt.h"
#include "driverlib/pin_map.h"
#include "driverlib/sysctl.h"
#include "driverlib/rom.h"
#include <sys/stat.h>
#include "libdisplay/ST7735.h"
#include "libstd/nexus.h"
Include dependency graph for test-display.c:

Go to the source code of this file.

Functions

int main (void)
 

Function Documentation

int main ( void  )

Accept input on UART 0, and parrot input back out to UART 0.

Returns
Exit status

Definition at line 32 of file test-display.c.

References FPUEnable(), GPIO_PIN_2, GPIO_PORTF_BASE, GPIOPinTypeGPIOOutput(), INITR_REDTAB, IntMasterEnable(), postpone_death, ST7735_DrawFastHLine(), ST7735_InitR(), ST7735_OutString(), ST7735_OutString2(), ST7735_YELLOW, SYSCTL_OSC_MAIN, SYSCTL_PERIPH_GPIOF, SYSCTL_PERIPH_TIMER0, SYSCTL_SYSDIV_1, SYSCTL_USE_OSC, SYSCTL_XTAL_16MHZ, SysCtlClockSet(), and SysCtlPeripheralEnable().

32  {
33 
34  int j;
35  FPUEnable();
38 
39  /* Enable the GPIO port that is used for the on-board LED. */
41 
42  /* Enable the timer for display driver timings */
44 
45  /* Enable the GPIO pins for the LED (PF2). */
47 
48  /* Enable processor interrupts. */
50 
52 
53  ST7735_OutString("test on screen 0\n");
54  ST7735_OutString("test on screen 0\n");
55 
57 
58  ST7735_OutString2("test on screen 1\n");
59  ST7735_OutString2("test on screen 1\n");
60 
62 }
#define SYSCTL_PERIPH_GPIOF
Definition: sysctl.h:76
#define SYSCTL_OSC_MAIN
Definition: sysctl.h:378
void FPUEnable(void)
Definition: fpu.c:66
#define SYSCTL_USE_OSC
Definition: sysctl.h:350
#define GPIO_PIN_2
Definition: gpio.h:62
#define SYSCTL_XTAL_16MHZ
Definition: sysctl.h:372
void ST7735_InitR(enum initRFlags option)
Definition: ST7735.c:741
void ST7735_OutString2(uint8_t *ptr)
Definition: ST7735.c:1542
#define postpone_death()
Definition: nexus.h:40
void ST7735_OutString(uint8_t *ptr)
Definition: ST7735.c:1535
#define SYSCTL_PERIPH_TIMER0
Definition: sysctl.h:114
void SysCtlPeripheralEnable(uint32_t ui32Peripheral)
Definition: sysctl.c:841
bool IntMasterEnable(void)
void GPIOPinTypeGPIOOutput(uint32_t ui32Port, uint8_t ui8Pins)
Definition: gpio.c:1427
#define ST7735_YELLOW
Definition: ST7735.h:75
void ST7735_DrawFastHLine(int16_t x, int16_t y, int16_t w, uint16_t color)
Definition: ST7735.c:849
#define SYSCTL_SYSDIV_1
Definition: sysctl.h:221
void SysCtlClockSet(uint32_t ui32Config)
Definition: sysctl.c:2532
#define GPIO_PORTF_BASE
Definition: hw_memmap.h:74

Here is the call graph for this function: