Skip to content

Commit d86b33c

Browse files
committed
Add module headers to all moved I2C modules
1 parent 1e0cc58 commit d86b33c

File tree

7 files changed

+55
-3
lines changed

7 files changed

+55
-3
lines changed

clash-cores/src/Clash/Cores/I2C.hs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
{-|
2+
Copyright : (C) 2014, University of Twente
3+
2024, Google LLC
4+
License : BSD2 (see the file LICENSE)
5+
Maintainer : QBayLogic B.V. <[email protected]>
6+
7+
I2C core
8+
-}
9+
110
{-# LANGUAGE CPP #-}
211

312
module Clash.Cores.I2C

clash-cores/src/Clash/Cores/I2C/BitMaster.hs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
{-|
2+
Copyright : (C) 2014, University of Twente
3+
2024, Google LLC
4+
License : BSD2 (see the file LICENSE)
5+
Maintainer : QBayLogic B.V. <[email protected]>
6+
-}
7+
18
{-# LANGUAGE CPP #-}
29
{-# LANGUAGE RecordWildCards #-}
310
module Clash.Cores.I2C.BitMaster (bitMaster) where

clash-cores/src/Clash/Cores/I2C/BitMaster/BusCtrl.hs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
{-|
2+
Copyright : (C) 2014, University of Twente
3+
2024, Google LLC
4+
License : BSD2 (see the file LICENSE)
5+
Maintainer : QBayLogic B.V. <[email protected]>
6+
-}
7+
18
{-# LANGUAGE CPP #-}
29
{-# LANGUAGE RecordWildCards #-}
310
module Clash.Cores.I2C.BitMaster.BusCtrl where

clash-cores/src/Clash/Cores/I2C/BitMaster/StateMachine.hs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
{-|
2+
Copyright : (C) 2014, University of Twente
3+
2024, Google LLC
4+
License : BSD2 (see the file LICENSE)
5+
Maintainer : QBayLogic B.V. <[email protected]>
6+
-}
7+
18
{-# LANGUAGE CPP #-}
29
{-# LANGUAGE RecordWildCards #-}
310
module Clash.Cores.I2C.BitMaster.StateMachine where

clash-cores/src/Clash/Cores/I2C/ByteMaster.hs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
{-|
2+
Copyright : (C) 2014, University of Twente
3+
2024, Google LLC
4+
License : BSD2 (see the file LICENSE)
5+
Maintainer : QBayLogic B.V. <[email protected]>
6+
-}
7+
18
{-# LANGUAGE CPP #-}
29
{-# LANGUAGE RecordWildCards #-}
310
module Clash.Cores.I2C.ByteMaster (byteMaster, I2COperation(..)) where
@@ -54,9 +61,10 @@ type ByteMasterI = (Bool,Bool,Maybe I2COperation,Bool,BitRespSig)
5461
type ByteMasterO = (Bool,Bool,BitVector 8,BitCtrlSig)
5562

5663
-- | Byte level controller, takes care of correctly executing i2c communication
57-
-- based on the supplied control signals. It should be instantiated alongside 'bitMaster'.
58-
-- The outgoing bitCtrl' controls the 'bitMaster' whose 'bitResp' should be supplied
59-
-- as last input.
64+
-- based on the supplied control signals. It should be instantiated alongside
65+
-- 'Clash.Cores.I2C.BitMaster.bitMaster'. The outgoing 'BitCtrlSig' controls the
66+
-- 'Clash.Cores.I2C.BitMaster.bitMaster. whose 'BitRespSig' should be supplied as last
67+
-- input.
6068
byteMaster
6169
:: KnownDomain dom
6270
=> Clock dom

clash-cores/src/Clash/Cores/I2C/ByteMaster/ShiftRegister.hs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
{-|
2+
Copyright : (C) 2014, University of Twente
3+
2024, Google LLC
4+
License : BSD2 (see the file LICENSE)
5+
Maintainer : QBayLogic B.V. <[email protected]>
6+
-}
7+
18
{-# LANGUAGE RecordWildCards #-}
29
module Clash.Cores.I2C.ByteMaster.ShiftRegister where
310

clash-cores/src/Clash/Cores/I2C/Types.hs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
{-|
2+
Copyright : (C) 2014, University of Twente
3+
2024, Google LLC
4+
License : BSD2 (see the file LICENSE)
5+
Maintainer : QBayLogic B.V. <[email protected]>
6+
-}
7+
18
module Clash.Cores.I2C.Types where
29

310
import Clash.Prelude

0 commit comments

Comments
 (0)