initial support for exceptions
This commit is contained in:
parent
5552ad3d4a
commit
88ec010f98
9 changed files with 116 additions and 42 deletions
|
@ -3,7 +3,6 @@ module BusTypes(
|
|||
BusError(..),
|
||||
TransactionSize(..),
|
||||
ReadRequest(..),
|
||||
BusResponse(..),
|
||||
BusVal(..),
|
||||
) where
|
||||
|
||||
|
@ -28,11 +27,6 @@ data TransactionSize
|
|||
data ReadRequest = Request Addr TransactionSize
|
||||
deriving (Generic, Show, Eq, NFDataX)
|
||||
|
||||
data BusResponse a
|
||||
= Result a
|
||||
| Error BusError
|
||||
deriving (Generic, Show, Eq, NFDataX)
|
||||
|
||||
data BusVal
|
||||
= BusByte Byte
|
||||
| BusHalfWord HalfWord
|
||||
|
|
Reference in a new issue