L1NNA / SV1DUR

Planes-On-The-Bus-Go-Swish-Swish-Swish
3 stars 1 forks source link

Data being passed from the scheduler #17

Open JBanks opened 2 years ago

JBanks commented 2 years ago

This is called by the scheduler, but the scheduler doesn't know what data to transmit, the device does.  We should have code inside of the "bc2rt" function to pull the data from the device struct.

Assuming this was in place so that the BC can send a shutdown command, or something to that effect, maybe we should have two functions, one where data is pulled from the RT that the bus controller is currently running on, and one where the scheduler decides that it wants to send a command to promote a new RT to become the bus controller.

https://github.com/L1NNA/I-NEED-A-NAME/blob/ed4d2c55ceca3de0920128a06cc4f1ffbde4dbc1/pkg/src/sys.rs#L488-L496