You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
303 B
19 lines
303 B
6 years ago
|
#include "mpu_driver.h"
|
||
|
|
||
|
typedef struct mpu_s {
|
||
|
} mpu_t;
|
||
|
|
||
|
esp_err_t mpu_init(mpu_config_t *config, mpu_t **hndl_out) {
|
||
|
mpu_t *hndl = malloc(sizeof(mpu_t));
|
||
|
if (!hndl) return ESP_ERR_NO_MEM;
|
||
|
*hndl_out = hndl;
|
||
|
|
||
|
return ESP_OK;
|
||
|
}
|
||
|
|
||
|
esp_err_t mpu_free(mpu_t *hndl) {
|
||
|
free(hndl);
|
||
|
|
||
|
return ESP_OK;
|
||
|
}
|