2022-01-11 04:00:58 +00:00
|
|
|
// Copyright Terence J. Boldt (c)2021-2022
|
2021-10-30 13:50:00 +00:00
|
|
|
// Use of this source code is governed by an MIT
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// This file is used for setting up the communications for the handlers
|
2021-11-03 09:33:09 +00:00
|
|
|
|
2021-10-30 11:03:18 +00:00
|
|
|
package handlers
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/tjboldt/Apple2-IO-RPi/RaspberryPi/apple2driver/a2io"
|
|
|
|
)
|
|
|
|
|
|
|
|
var comm a2io.A2Io
|
|
|
|
|
2021-11-03 09:33:09 +00:00
|
|
|
// SetCommunication configures whether to use real or mock communications
|
2021-10-30 11:03:18 +00:00
|
|
|
func SetCommunication(commIO a2io.A2Io) {
|
|
|
|
comm = commIO
|
|
|
|
}
|