Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rust-card10
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Puzzlewolf
rust-card10
Commits
d8468cc5
Commit
d8468cc5
authored
5 years ago
by
Astro
Browse files
Options
Downloads
Patches
Plain Diff
update c module, update client.c interface
parent
a1befe47
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
c
+1
-1
1 addition, 1 deletion
c
l0dable/src/client.c
+32
-0
32 additions, 0 deletions
l0dable/src/client.c
with
33 additions
and
1 deletion
c
@
c77e4c13
Subproject commit
51c6d6052fd09aa3636f4ea646a20ac0a52a112d
Subproject commit
c77e4c132e53b85ac2f017a123b42eb4bb1d11bc
This diff is collapsed.
Click to expand it.
l0dable/src/client.c
+
32
−
0
View file @
d8468cc5
...
...
@@ -1127,6 +1127,33 @@ int epic_trng_read(uint8_t *dest, size_t size)
return
*
(
int
*
)
_api_call_transact
(
epc__apistub_buffer
);
}
/* Autogenerated stub for API_MAX30001_ENABLE */
int
epic_max30001_enable_sensor
(
struct
max30001_sensor_config
*
config
)
{
const
int
epc__apistub_size
=
sizeof
(
struct
max30001_sensor_config
*
);
void
*
epc__apistub_buffer
;
epc__apistub_buffer
=
_api_call_start
(
API_MAX30001_ENABLE
,
epc__apistub_size
);
/* TODO: Check if epc__apistub_buffer is not NULL */
*
(
struct
max30001_sensor_config
**
)(
epc__apistub_buffer
+
0
)
=
config
;
return
*
(
int
*
)
_api_call_transact
(
epc__apistub_buffer
);
}
/* Autogenerated stub for API_MAX30001_DISABLE */
int
epic_max30001_disable_sensor
(
void
)
{
const
int
epc__apistub_size
=
0
;
void
*
epc__apistub_buffer
;
epc__apistub_buffer
=
_api_call_start
(
API_MAX30001_DISABLE
,
epc__apistub_size
);
/* TODO: Check if epc__apistub_buffer is not NULL */
return
*
(
int
*
)
_api_call_transact
(
epc__apistub_buffer
);
}
/* Weakly linked stubs for ISRs */
void
epic_isr_bhi160_accelerometer
(
api_int_id_t
id
)
...
...
@@ -1135,6 +1162,8 @@ void epic_isr_bhi160_orientation(api_int_id_t id)
__attribute__
((
weak
,
alias
(
"__epic_isr_default_handler"
)));
void
epic_isr_bhi160_gyroscope
(
api_int_id_t
id
)
__attribute__
((
weak
,
alias
(
"__epic_isr_default_handler"
)));
void
epic_isr_max30001_ecg
(
api_int_id_t
id
)
__attribute__
((
weak
,
alias
(
"__epic_isr_default_handler"
)));
void
__epic_isr_reset
(
api_int_id_t
id
)
__attribute__
((
weak
,
alias
(
"__epic_isr_default_handler"
)));
void
epic_isr_uart_rx
(
api_int_id_t
id
)
...
...
@@ -1175,6 +1204,9 @@ void __dispatch_isr(api_int_id_t id)
case
EPIC_INT_BHI160_GYROSCOPE
:
epic_isr_bhi160_gyroscope
(
id
);
break
;
case
EPIC_INT_MAX30001_ECG
:
epic_isr_max30001_ecg
(
id
);
break
;
case
EPIC_INT_RESET
:
__epic_isr_reset
(
id
);
break
;
...
...
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