Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC TDC 1ns 5cha - Software
Commits
1627ac98
Commit
1627ac98
authored
Aug 20, 2018
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drv: add bitfield shift value for channels
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
cc39d6ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
tdc_regs.h
kernel/hw/tdc_regs.h
+11
-5
No files found.
kernel/hw/tdc_regs.h
View file @
1627ac98
...
...
@@ -60,12 +60,18 @@
#define TDC_CTRL_CONFIG_DAC BIT(11)
/* TDC_REG_INPUT_ENABLE bits */
#define TDC_INPUT_ENABLE_CH1_SHIFT 16
#define TDC_INPUT_ENABLE_CH2_SHIFT 17
#define TDC_INPUT_ENABLE_CH3_SHIFT 18
#define TDC_INPUT_ENABLE_CH4_SHIFT 19
#define TDC_INPUT_ENABLE_CH5_SHIFT 20
#define TDC_INPUT_ENABLE_FLAG BIT(7)
#define TDC_INPUT_ENABLE_CH1 BIT(
16
)
#define TDC_INPUT_ENABLE_CH2 BIT(
17
)
#define TDC_INPUT_ENABLE_CH3 BIT(
18
)
#define TDC_INPUT_ENABLE_CH4 BIT(
19
)
#define TDC_INPUT_ENABLE_CH5 BIT(
20
)
#define TDC_INPUT_ENABLE_CH1 BIT(
TDC_INPUT_ENABLE_CH1_SHIFT
)
#define TDC_INPUT_ENABLE_CH2 BIT(
TDC_INPUT_ENABLE_CH2_SHIFT
)
#define TDC_INPUT_ENABLE_CH3 BIT(
TDC_INPUT_ENABLE_CH3_SHIFT
)
#define TDC_INPUT_ENABLE_CH4 BIT(
TDC_INPUT_ENABLE_CH4_SHIFT
)
#define TDC_INPUT_ENABLE_CH5 BIT(
TDC_INPUT_ENABLE_CH5_SHIFT
)
#define TDC_INPUT_ENABLE_CH_ALL (TDC_INPUT_ENABLE_CH1 | \
TDC_INPUT_ENABLE_CH2 | \
TDC_INPUT_ENABLE_CH3 | \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment