← back

+/rtos

git clone https://git.julia.blue/+/rtos

Joseph RyanUpdate README with Lab7 description5e01da2

master
5 folders4 files
languages

files

inc/
lib/
misc/
src/
userprog/
.gitignore191 B
Makefile2.6 KiB
README.md7.6 KiB
todo.md564 B

Features

Our OS implements the features covered in EE445M with some modifications and additions. We rewrote the provided hardware drivers to use the driverlib code embedded in the TM4C's ROM rather than Dr. Valvano's code. Here are some notable features that extend upon the ones required for the class.

Final Lab

To demonstrate the capabilities of our OS, our final lab project was to integrate a USB device stack and use it to remotely control each other's mice through the remote interpreter. We did this in a way that allowed multiple movements in different threads to be performed simultaneously such as linear and circular motions combining to create a spiral. Here is the list of commands available for our project demo:

led COLOR [on, off, or toggle]  control the onboard RGB led
adc                             read a single sample from the ADC
temp                            get the internal system temperature
time [get/reset]                OS time helpers

jitter                          show periodic task jitter stats
heap                            show heap usage information

mount                           mount the sd card
unmount                         unmount the sd card
format yes really               format the sd card
upload FILENAME                 transfer a file over UART
exec FILENAME                   load and run process from file
touch FILENAME                  creates a new file
cat FILENAME                    display the contents of a file
append FILENAME WORD            append a word to a file
ls                              list the files in the directory
mv FILENAME NEWNAME             move a file
cp FILENAME NEWNAME             copy a file
rm FILENAME                     delete a file
checksum FILENAME               compute a checksum of a file

connect [SSID PASS]             connect to a wifi network.
server                          spawn remote interpreter
client IPV4                     spawn remote client
mouse_server                    spawn remote mouse server
mouse_client IPV4               spawn remote mouse controller
mouse                           control the mouse locally
exit                            leave this session

And these are the controls from within the mouse control app:

q w e      These keys all make the mouse move a straight direction
a s d      Holding shift allows you to make slight adjustments to
z x c      the cursor position. s stops this movement.

, . and / act as the left, middle, and right mouse buttons
normally they perform a single click, but holding shift (so < > and ?)
makes them toggle holding the button.

+ and - increase and decrease the speed of continuous movements

o makes the mouse start circling (press again to stop)

Space makes the cursor move to the center of the screen,
stops all mouse movement, and releases all mouse buttons

Hardware

GPIO Pins:

Pin #Description
A0Main UART Rx
A1Main UART Tx
A2LCD/SDC SPI Clock
A3LCD SPI Chip Select
A4LCD/SDC SPI MISO
A5LCD/SDC SPI MOSI
A6LCD/SDC SPI D/C
A7LCD Reset
B0SDC SPI Chip Select
B1ESP Reset
D4USB0 D-
D5USB0 D+
D6ESP UART Rx
D7ESP UART Tx
F0Launchpad Left Button
F1Launchpad Red LED

In addition we allow use of any of the 12 ADC channels that don't conflict with the above pins.

Peripherals