Skip to content
Snippets Groups Projects
Commit d8468cc5 authored by Astro's avatar Astro :gear:
Browse files

update c module, update client.c interface

parent a1befe47
No related branches found
No related tags found
No related merge requests found
c @ c77e4c13
Subproject commit 51c6d6052fd09aa3636f4ea646a20ac0a52a112d
Subproject commit c77e4c132e53b85ac2f017a123b42eb4bb1d11bc
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment