forked from ECE-196/ControlWithPython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I assumed that the file was on my school repository, but it wasn't here is the original submission just copied over. THANKS!
- Loading branch information
Showing
5 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
### How does the DevBoard handle received serial messages? How does this differ from the naïve approach? | ||
|
||
The DevBoard manages incoming serial messages using interrupt methods. When a serial message reaches the microcontroller, it triggers an interrupt. This interrupts the current task being executed by the microcontroller, allowing it to initiate a routine specifically designed to handle the incoming data. This method differs from a more simplistic approach where the microcontroller continuously checks for incoming bytes, a process that consumes more energy and CPU resources compared to using interrupts. | ||
|
||
|
||
|
||
|
||
|
||
|
||
### What does `detached_callback` do? What would happen if it wasn't used? | ||
|
||
It serves as a mechanism to prevent the user interface from becoming unresponsive in scenarios where certain code operations take an extended period to execute.. | ||
|
||
|
||
### What does `LockedSerial` do? Why is it _necessary_? | ||
|
||
In situations where multiple threads attempt to utilize the same serial port concurrently, it can lead to unpredictable outcomes. LockedSerial ensures that these threads can effectively share the same resources simultaneously, mitigating potential conflicts and ensuring smooth operation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters