Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PLATO RDCU
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Armin Luntzer
PLATO RDCU
Commits
cd569cf2
Commit
cd569cf2
authored
5 years ago
by
Armin Luntzer
Browse files
Options
Downloads
Plain Diff
Merge branch 'dloidolt-master'
parents
cdf951d5
1a102dbf
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/rdcu_ctrl.h
+3
-0
3 additions, 0 deletions
include/rdcu_ctrl.h
lib/rdcu_ctrl.c
+36
-0
36 additions, 0 deletions
lib/rdcu_ctrl.c
with
39 additions
and
0 deletions
include/rdcu_ctrl.h
+
3
−
0
View file @
cd569cf2
...
...
@@ -164,6 +164,7 @@ uint32_t rdcu_get_adc_logic_reset(void);
uint32_t
rdcu_get_adc_logic_enabled
(
void
);
uint32_t
rdcu_get_rdcu_interrupt_enabled
(
void
);
uint32_t
rdcu_get_compr_status_valid
(
void
);
uint32_t
rdcu_get_data_compr_ready
(
void
);
uint32_t
rdcu_get_data_compr_interrupted
(
void
);
...
...
@@ -194,6 +195,8 @@ void rdcu_clear_adc_logic_reset(void);
void
rdcu_set_adc_logic_enabled
(
void
);
void
rdcu_set_adc_logic_disabled
(
void
);
void
rdcu_set_rdcu_interrupt
(
void
);
void
rdcu_clear_rdcu_interrupt
(
void
);
void
rdcu_set_data_compr_interrupt
(
void
);
void
rdcu_clear_data_compr_interrupt
(
void
);
void
rdcu_set_data_compr_start
(
void
);
...
...
This diff is collapsed.
Click to expand it.
lib/rdcu_ctrl.c
+
36
−
0
View file @
cd569cf2
...
...
@@ -462,6 +462,20 @@ uint32_t rdcu_get_adc_logic_enabled(void)
}
/*
* @brief get RDCU Interrupt status
* @see RDCU-FRS-FN-0632
*
* @returns 0: Interrupt is disabled
* 1: Interrupt is enabled
*/
uint32_t
rdcu_get_rdcu_interrupt_enabled
(
void
)
{
return
((
rdcu
->
compr_status
>>
8
)
&
0x1UL
);
}
/**
* @brief get compressor status valid
* @see RDCU-FRS-FN-0632
...
...
@@ -774,6 +788,28 @@ void rdcu_set_adc_logic_disabled(void)
}
/**
* @brief enable RDCU interrupt signal to the ICU
* @see RDCU-FRS-FN-0732
*/
void
rdcu_set_rdcu_interrupt
(
void
)
{
rdcu
->
compr_ctrl
|=
(
0x1UL
<<
8
);
}
/**
* @brief disable RDCU interrupt signal to the ICU
* @see RDCU-FRS-FN-0732
*/
void
rdcu_clear_rdcu_interrupt
(
void
)
{
rdcu
->
compr_ctrl
&=
~
(
0x1UL
<<
8
);
}
/**
* @brief set data compressor interrupt
* @see RDCU-FRS-FN-0732
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment