Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Astro
rust-card10
Commits
d8468cc5
Commit
d8468cc5
authored
Aug 23, 2019
by
Astro
⚙
Browse files
update c module, update client.c interface
parent
a1befe47
Pipeline
#3268
passed with stage
in 11 minutes and 38 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
c
@
c77e4c13
Compare
51c6d605
...
c77e4c13
Subproject commit
51c6d6052fd09aa3636f4ea646a20ac0a52a112d
Subproject commit
c77e4c132e53b85ac2f017a123b42eb4bb1d11bc
l0dable/src/client.c
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
;
...
...
Write
Preview
Supports
Markdown
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