From: SnickerSun Date: Tue, 2 Jan 2024 02:26:44 +0000 (+0800) Subject: 添加 mmc5603驱动,可以正常读数 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=474dc86aa81fc420ac5585fb66d8ea97f22d8d4c;p=mirrors%2FFD230.git 添加 mmc5603驱动,可以正常读数 --- diff --git a/code/sdk/application/brandy/brandy_standard/service_init.c b/code/sdk/application/brandy/brandy_standard/service_init.c index 4dc7ca312..5bc52369a 100755 --- a/code/sdk/application/brandy/brandy_standard/service_init.c +++ b/code/sdk/application/brandy/brandy_standard/service_init.c @@ -46,6 +46,10 @@ #include "lis2doc_at_cmd.h" #endif +#ifdef SUPPORT_AT_MMC5603 +#include "mmc5603_at_cmd.h" +#endif + #include "log_file.h" #ifdef CONFIG_OTA_UPDATE_SUPPORT #include "upg.h" @@ -97,6 +101,11 @@ static void register_at_service(void) at_cmd_add_moudle(lis2doc_table, lis2doc_cmd_count); #endif +#ifdef SUPPORT_AT_MMC5603 + uint32_t mmc5603_cmd_count; + at_cmd_table_t *mmc5603_table = get_mmc5603_cmd_table(&mmc5603_cmd_count); + at_cmd_add_moudle(mmc5603_table, mmc5603_cmd_count); +#endif } diff --git a/code/sdk/build/config/target_config/brandy/config.py b/code/sdk/build/config/target_config/brandy/config.py index cb624c372..5400ddda1 100755 --- a/code/sdk/build/config/target_config/brandy/config.py +++ b/code/sdk/build/config/target_config/brandy/config.py @@ -118,6 +118,7 @@ target = { 'FT_SINGLE_UART', 'PPG_HX3695', 'ACC_LIS2DOC', + 'MAG_MMC5603', #'CONFIG_ADC_SUPPORT_AUTO_SCAN','CONFIG_ADC_SUPPORT_LONG_SAMPLE', 'MIPI_ULPS_SUPPORT', 'TPTYPE_FT6X46'], 'ram_component': ["algorithm", "dfx_port_brandy", "dfx_update", 'dfx_nv', "osal", "arch_port", "-:testsuite", @@ -129,6 +130,7 @@ target = { "audio_proc", "audio_dump", "audio_probe", "power_manager", "gpu_proc", "ppg_sensor", "acc_sensor", + "mag_sensor", "batterry_service"], 'ram_component_set': ['bgh', 'media', 'gpu', 'graphic_uikit', 'bgh_audio', 'dfx_set', 'ohos_set', 'wearable_set', 'alipay_set'], 'dsp_version': 'max', diff --git a/code/sdk/drivers/peripheral/mag/CMakeLists.txt b/code/sdk/drivers/peripheral/mag/CMakeLists.txt index ce78370d4..468187744 100644 --- a/code/sdk/drivers/peripheral/mag/CMakeLists.txt +++ b/code/sdk/drivers/peripheral/mag/CMakeLists.txt @@ -4,32 +4,32 @@ #=============================================================================== set(COMPONENT_NAME "mag_sensor") -set(SOURCES - ${CMAKE_CURRENT_SOURCE_DIR}/touch_screen_drv.c - ${CMAKE_CURRENT_SOURCE_DIR}/touch_screen_queue1.c -) if("MAG_MMC5603" IN_LIST DEFINES) set(SOURCES ${SOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/mmc5603/Customer.c ${CMAKE_CURRENT_SOURCE_DIR}/mmc5603/main_sample.c ${CMAKE_CURRENT_SOURCE_DIR}/mmc5603/MMC5603.c + ${CMAKE_CURRENT_SOURCE_DIR}/mmc5603/mmc5603_at_cmd.c +) +set(PUBLIC_HEADER + ${CMAKE_CURRENT_SOURCE_DIR}/mmc5603 +) +set(PUBLIC_DEFINES + SUPPORT_AT_MMC5603 ) else() set(SOURCES ${SOURCES} ${CMAKE_CURRENT_SOURCE_DIR}/mmc5603/Customer.c ${CMAKE_CURRENT_SOURCE_DIR}/mmc5603/main_sample.c ${CMAKE_CURRENT_SOURCE_DIR}/mmc5603/MMC5603.c + ${CMAKE_CURRENT_SOURCE_DIR}/mmc5603/mmc5603_at_cmd.c ) -endif() - -if("MAG_MMC5603" IN_LIST DEFINES) set(PUBLIC_HEADER ${CMAKE_CURRENT_SOURCE_DIR}/mmc5603 ) -else() -set(PUBLIC_HEADER - {CMAKE_CURRENT_SOURCE_DIR}/mmc5603 +set(PUBLIC_DEFINES + SUPPORT_AT_MMC5603 ) endif() @@ -39,8 +39,7 @@ set(PRIVATE_HEADER set(PRIVATE_DEFINES ) -set(PUBLIC_DEFINES -) + # use this when you want to add ccflags like -include xxx set(COMPONENT_PUBLIC_CCFLAGS diff --git a/code/sdk/drivers/peripheral/mag/mmc5603/Customer.c b/code/sdk/drivers/peripheral/mag/mmc5603/Customer.c index 0540dbdbf..3fb542e82 100644 --- a/code/sdk/drivers/peripheral/mag/mmc5603/Customer.c +++ b/code/sdk/drivers/peripheral/mag/mmc5603/Customer.c @@ -1,29 +1,150 @@ #include "Customer.h" - -void Delay_Ms(int cnt) +#include "osal_timer.h" +#include "osal_mutex.h" +#include "pinctrl.h" +#include "chip_io.h" +#include "time.h" +#include "i2c.h" +#include "gpio.h" +#include "hal_gpio.h" +#include "hal_i2c.h" +#include "soc_osal.h" +#include "tcxo.h" +#define MMC5603_I2C_BUS I2C_BUS_2 +#define MMC5603_I2C_TIME_MAX 3 +void mmc5603_Delay_Ms(int cnt) { /* cnt is the time to wait */ - /* - . - . Need to be implemented by user. - . - */ - + uapi_tcxo_delay_ms(cnt); return; } -void Delay_Us(int cnt) +void mmc5603_Delay_Us(int cnt) { /* cnt is the time to wait */ - /* - . - . Need to be implemented by user. - . - */ + uapi_tcxo_delay_us(cnt); return; } +static uint8_t g_mmc_installed = 0; +/* + * @brief platform specific initialization (platform dependent) + */ +static void mmc5603_i2c_init(void) +{ + errcode_t result; + /* init i2c */ + if ( g_mmc_installed == 1 ) + return ; + + result = uapi_i2c_master_init(MMC5603_I2C_BUS, 400000, I2C_SPEED_MODE_FS); /* 400000: 400KHz */ + if (result != ERRCODE_SUCC) { + MMC_ERROR("mmc5603 i2c init fail! ret=0x%x", result); + return ; + } + + MMC_WARNING("mmc5603:i2c_id = %d i2c_speed = %d \r\n", + MMC5603_I2C_BUS, 400000); + + g_mmc_installed = 1; + + return ; +} + +/* + * @brief Write generic device register (platform dependent) + * + * @param handle customizable argument. In this examples is used in + * order to select the correct sensor bus handler. + * @param reg register to write + * @param bufp pointer to data to write in register reg + * @param len number of consecutive register to write + * + */ +static int32_t mmc5603_platform_write(unsigned char i2c_add, uint8_t reg, const uint8_t *bufp, + uint16_t len) +{ + + errcode_t ret; + uint32_t retry; + i2c_data_t data; + uint8_t *write_data = NULL; + uint16_t send_len; + uint8_t *data_buf=bufp; + uint16_t data_len=len; + + mmc5603_i2c_init(); + send_len = data_len + sizeof(uint8_t); + write_data = (uint8_t *)osal_kmalloc(send_len, OSAL_GFP_KERNEL); + if (write_data == NULL) { + MMC_ERROR("mmc5603 send buff malloc fail!"); + return ERRCODE_FAIL; + } + write_data[0] = reg; + ret = (uint32_t)memcpy_s(write_data + sizeof(uint8_t), send_len - sizeof(uint8_t), data_buf, data_len); + if (ret != EOK) { + MMC_ERROR("mmc5603 send_buf content copy fail! ret=0x%x", ret); + return ret; + } + + data.send_buf = write_data; + data.send_len = send_len; + data.receive_buf = NULL; + data.receive_len = 0; + + for (retry = 0; retry < MMC5603_I2C_TIME_MAX; retry++) { + ret = uapi_i2c_master_write(MMC5603_I2C_BUS, i2c_add, &data); + if (ret == ERRCODE_SUCC) { + break; + } + } + if (ret != ERRCODE_SUCC) { + MMC_ERROR("mmc5603 data write fail! ret=0x%x", ret); + return ret; + } + + osal_kfree(write_data); + return 0; +} + +/* + * @brief Read generic device register (platform dependent) + * + * @param handle customizable argument. In this examples is used in + * order to select the correct sensor bus handler. + * @param reg register to read + * @param bufp pointer to buffer that store the data read + * @param len number of consecutive register to read + * + */ +static int32_t mmc5603_platform_read( unsigned char i2c_add,uint8_t reg, uint8_t *bufp, + uint16_t len) +{ + errcode_t ret; + uint32_t retry; + i2c_data_t data; + + mmc5603_i2c_init(); + memset_s(bufp, len, 0, len); + data.send_buf = ® + data.send_len = 1; + data.receive_buf = bufp; + data.receive_len = len; + + for (retry = 0; retry < MMC5603_I2C_TIME_MAX; retry++) { + ret = uapi_i2c_master_writeread(MMC5603_I2C_BUS, i2c_add, &data); + if (ret == ERRCODE_SUCC) { + break; + } + } + if (ret != ERRCODE_SUCC) { + MMC_ERROR("mmc5603 data read fail! ret=0x%x", ret); + return ret; + } + + return ERRCODE_SUCC; +} int I2C_Write_Reg(unsigned char i2c_add, unsigned char reg_add, unsigned char cmd) { /* i2c_add is the 7-bit i2c address of the sensor @@ -32,13 +153,12 @@ int I2C_Write_Reg(unsigned char i2c_add, unsigned char reg_add, unsigned char cm * I2C operating successfully, return 1, otherwise return 0; */ - /* - . - . Need to be implemented by user. - . - */ - - return 1; + if ( ERRCODE_SUCC == mmc5603_platform_write(i2c_add,reg_add,&cmd,1)) + { + return 1; + }else{ + return 0; + } } int I2C_Read_Reg(unsigned char i2c_add, unsigned char reg_add, unsigned char *data) { @@ -48,13 +168,13 @@ int I2C_Read_Reg(unsigned char i2c_add, unsigned char reg_add, unsigned char *da * I2C operating successfully, return 1, otherwise return 0; */ - /* - . - . Need to be implemented by user. - . - */ - - return 1; + if ( ERRCODE_SUCC == mmc5603_platform_read(i2c_add,reg_add,data,1)) + { + return 1; + }else{ + return 0; + } + } int I2C_MultiRead_Reg(unsigned char i2c_add, unsigned char reg_add, int num, unsigned char *data) { @@ -65,12 +185,11 @@ int I2C_MultiRead_Reg(unsigned char i2c_add, unsigned char reg_add, int num, uns * I2C operating successfully, return 1, otherwise return 0; */ - /* - . - . Need to be implemented by user. - . - */ - - return 1; + if ( ERRCODE_SUCC == mmc5603_platform_read(i2c_add,reg_add,data,num)) + { + return 1; + }else{ + return 0; + } } diff --git a/code/sdk/drivers/peripheral/mag/mmc5603/Customer.h b/code/sdk/drivers/peripheral/mag/mmc5603/Customer.h index a61a346a9..535e41eb0 100644 --- a/code/sdk/drivers/peripheral/mag/mmc5603/Customer.h +++ b/code/sdk/drivers/peripheral/mag/mmc5603/Customer.h @@ -1,13 +1,39 @@ +#ifndef __MMC5603_PORTING_H__ +#define __MMC5603_PORTING_H__ +#include +#include +#include "debug_print.h" + +#define MMC_DEBUG + +#ifdef MMC_DEBUG +#define MMC_LOG(fmt, ...) \ + do { \ + PRINT(fmt"\r\n", ##__VA_ARGS__); \ + } while (0) +#else +#define MMC_LOG(ftm, ...) +#endif + +#define MMC_ERROR(x, ...) \ + do { \ + PRINT("[ERROR]%s(%d): "x"\r\n", __FUNCTION__, __LINE__, ##__VA_ARGS__); \ + } while (0) + +#define MMC_WARNING(x, ...) \ + do { \ + PRINT("[WARNING]%s(%d): "x"\r\n", __FUNCTION__, __LINE__, ##__VA_ARGS__); \ + } while (0) /** * @brief Delay function. */ -void Delay_Ms(int cnt); +void mmc5603_mmc5603_Delay_Ms(int cnt); /** * @brief Delay function. */ -void Delay_Us(int cnt); +void mmc5603_Delay_Us(int cnt); /** * @brief I2C write register. @@ -23,3 +49,5 @@ int I2C_Read_Reg(unsigned char i2c_add, unsigned char reg_add, unsigned char *da * @brief I2C multi read. */ int I2C_MultiRead_Reg(unsigned char i2c_add, unsigned char reg_add, int num, unsigned char *data); + +#endif diff --git a/code/sdk/drivers/peripheral/mag/mmc5603/MMC5603.c b/code/sdk/drivers/peripheral/mag/mmc5603/MMC5603.c index 0ab08c7cb..0454bfd30 100644 --- a/code/sdk/drivers/peripheral/mag/mmc5603/MMC5603.c +++ b/code/sdk/drivers/peripheral/mag/mmc5603/MMC5603.c @@ -76,7 +76,7 @@ int MMC5603_Factory_Test_Mode(void) /* Set Cmm_en bit '0', Disable continuous mode */ I2C_Write_Reg(MMC5603_7BITI2C_ADDRESS, MMC5603_REG_CTRL2, 0x00); - Delay_Ms(20); + mmc5603_Delay_Ms(20); /* Write reg 0x1B */ /* Set Auto_SR_en bit '0', Disable the function of automatic set/reset */ @@ -90,7 +90,7 @@ int MMC5603_Factory_Test_Mode(void) /* Write 0x01 to register 0x1B, set Take_meas_M bit '1' */ I2C_Write_Reg(MMC5603_7BITI2C_ADDRESS, MMC5603_REG_CTRL0, MMC5603_CMD_TMM); /* Delay 10 ms to finish the TM operation */ - Delay_Ms(10); + mmc5603_Delay_Ms(10); /* Read register data */ I2C_MultiRead_Reg(MMC5603_7BITI2C_ADDRESS, MMC5603_REG_DATA, 6, data_reg); /* Get high 16bits data */ @@ -103,7 +103,7 @@ int MMC5603_Factory_Test_Mode(void) /* Write 0x01 to register 0x1B, set Take_meas_M bit '1' */ I2C_Write_Reg(MMC5603_7BITI2C_ADDRESS,MMC5603_REG_CTRL0,MMC5603_CMD_TMM); /* Delay 10 ms to finish the TM operation */ - Delay_Ms(10); + mmc5603_Delay_Ms(10); /* Read register data */ I2C_MultiRead_Reg(MMC5603_7BITI2C_ADDRESS, MMC5603_REG_DATA, 6, data_reg); /* Get high 16bits data */ @@ -135,7 +135,7 @@ void MMC5603_SET(void) I2C_Write_Reg(MMC5603_7BITI2C_ADDRESS, MMC5603_REG_CTRL0, MMC5603_CMD_SET); /* Delay to finish the SET operation */ - Delay_Ms(1); + mmc5603_Delay_Ms(1); return; } @@ -149,7 +149,7 @@ void MMC5603_RESET(void) I2C_Write_Reg(MMC5603_7BITI2C_ADDRESS, MMC5603_REG_CTRL0, MMC5603_CMD_RESET); /* Delay to finish the RESET operation */ - Delay_Ms(1); + mmc5603_Delay_Ms(1); return; } @@ -216,7 +216,7 @@ int MMC5603_Auto_SelfTest(void) I2C_Write_Reg(MMC5603_7BITI2C_ADDRESS, MMC5603_REG_CTRL0, MMC5603_CMD_AUTO_ST_EN); /* Delay 15ms to finish the selftest process */ - Delay_Ms(15); + mmc5603_Delay_Ms(15); /* Read register 0x18, check Sat_sensor bit */ I2C_Read_Reg(MMC5603_7BITI2C_ADDRESS, MMC5603_REG_STATUS1, ®_status); @@ -274,7 +274,7 @@ int MMC5603_Saturation_Checking(void) /* Do TM_M after selftest operation */ I2C_Write_Reg(MMC5603_7BITI2C_ADDRESS,MMC5603_REG_CTRL0,MMC5603_CMD_TMM); - Delay_Ms(8); + mmc5603_Delay_Ms(8); } return ret; @@ -300,15 +300,15 @@ void MMC5603_Auto_Switch(uint16_t *mag) /* Disable continuous mode */ I2C_Write_Reg(MMC5603_7BITI2C_ADDRESS, MMC5603_REG_CTRL2, 0x00); - Delay_Ms(15);//Delay 15ms to finish the last sampling + mmc5603_Delay_Ms(15);//Delay 15ms to finish the last sampling /* Do SET operation */ I2C_Write_Reg(MMC5603_7BITI2C_ADDRESS, MMC5603_REG_CTRL0, MMC5603_CMD_SET); - Delay_Ms(1);//Delay 1ms to finish the SET operation + mmc5603_Delay_Ms(1);//Delay 1ms to finish the SET operation /* Do TM_M before next data reading */ I2C_Write_Reg(MMC5603_7BITI2C_ADDRESS,MMC5603_REG_CTRL0,MMC5603_CMD_TMM); - Delay_Ms(8);//Delay 8ms to finish the TM_M operation + mmc5603_Delay_Ms(8);//Delay 8ms to finish the TM_M operation } } else if(sensor_state == 2) @@ -345,7 +345,7 @@ void MMC5603_Disable(void) /* Set Cmm_en bit '0', Disable continuous mode */ I2C_Write_Reg(MMC5603_7BITI2C_ADDRESS, MMC5603_REG_CTRL2, 0x00); - Delay_Ms(20); + mmc5603_Delay_Ms(20); return; } @@ -374,7 +374,7 @@ void MMC5603_Enable(void) /* Work mode setting */ MMC5603_Continuous_Mode_With_Auto_SR(MMC5603_CMD_BW00, 50); - Delay_Ms(20); + mmc5603_Delay_Ms(20); return; } diff --git a/code/sdk/drivers/peripheral/mag/mmc5603/MMC5603.h b/code/sdk/drivers/peripheral/mag/mmc5603/MMC5603.h index e5a169172..a7461d4d8 100644 --- a/code/sdk/drivers/peripheral/mag/mmc5603/MMC5603.h +++ b/code/sdk/drivers/peripheral/mag/mmc5603/MMC5603.h @@ -17,12 +17,16 @@ #ifndef _MMC5603_H #define _MMC5603_H -typedef signed char int8_t; // signed 8-bit number (-128 to +127) -typedef unsigned char uint8_t; // unsigned 8-bit number (+0 to +255) -typedef signed short int16_t; // signed 16-bt number (-32768 to +32767) -typedef unsigned short uint16_t; // unsigned 16-bit number (+0 to +65535) -typedef signed int int32_t; // signed 32-bt number (-2,147,483,648 to +2,147,483,647) -typedef unsigned int uint32_t; // unsigned 32-bit number (+0 to +4,294,967,295) +#include +#include +#include +#include +// typedef signed char int8_t; // signed 8-bit number (-128 to +127) +// typedef unsigned char uint8_t; // unsigned 8-bit number (+0 to +255) +// typedef signed short int16_t; // signed 16-bt number (-32768 to +32767) +// typedef unsigned short uint16_t; // unsigned 16-bit number (+0 to +65535) +// typedef signed int int32_t; // signed 32-bt number (-2,147,483,648 to +2,147,483,647) +// typedef unsigned int uint32_t; // unsigned 32-bit number (+0 to +4,294,967,295) #define MMC5603_7BITI2C_ADDRESS 0x30 diff --git a/code/sdk/drivers/peripheral/mag/mmc5603/main_sample.c b/code/sdk/drivers/peripheral/mag/mmc5603/main_sample.c index 2680f684f..9560c345b 100644 --- a/code/sdk/drivers/peripheral/mag/mmc5603/main_sample.c +++ b/code/sdk/drivers/peripheral/mag/mmc5603/main_sample.c @@ -5,15 +5,15 @@ float magnetic_field_x; float magnetic_field_y; float magnetic_field_z; -int main(void) +int test_mmc5603(void) { /* Magnetic field vector, unit is gauss */ float mag_raw_data[3] = {0.0}; /* Enable the sensor. */ MMC5603_Enable(); - - while(1) + int count = 10; + while(count) { /* Get the MMC5603 data, unit is gauss */ MMC5603_GetData(mag_raw_data); @@ -21,8 +21,12 @@ int main(void) magnetic_field_x = mag_raw_data[0]; //unit is gauss magnetic_field_y = mag_raw_data[1]; //unit is gauss magnetic_field_z = mag_raw_data[2]; //unit is gauss - + count-- ; /* Sampling interval is 20ms, and the sampling rate is 50Hz. */ - Delay_Ms(20); + + MMC_LOG("mag 5603 x %.03f, y %.03f , z %.03f \r\n",magnetic_field_x,magnetic_field_y,magnetic_field_z); + mmc5603_Delay_Ms(20); } + MMC5603_Disable(); + return 0; } diff --git a/code/sdk/drivers/peripheral/mag/mmc5603/mmc5603_at_cmd.c b/code/sdk/drivers/peripheral/mag/mmc5603/mmc5603_at_cmd.c new file mode 100644 index 000000000..5ad847534 --- /dev/null +++ b/code/sdk/drivers/peripheral/mag/mmc5603/mmc5603_at_cmd.c @@ -0,0 +1,62 @@ + +// #include "mmc5603.h" + + +#include "at_cmd_api.h" +#include "pm_control.h" +#include "MMC5603.h" +#include "Customer.h" + +#define ARRAY_COUNT(array) (sizeof(array) / sizeof(array[0])) +#define MMC5603_MAX_ARGC 8 +#define MMC5603_MAX_ARGV_LEN 64 + +#define MMC5603_SUCCESS 0 +#define MMC5603_FAILED (-1) + +static int ConvertCmdToParam(uint8_t *para, uint32_t paraLen, + uint8_t argv[MMC5603_MAX_ARGC][MMC5603_MAX_ARGV_LEN], uint32_t* argc) +{ + uint32_t pos = 0; + *argc = 0; + + for (uint32_t i = 0; i < paraLen; i++) { + if ((para[i] == ' ' || para[i] == '\n') && pos != 0) { + argv[*argc][pos] = '\0'; + *argc += 1; + pos = 0; + if (*argc >= MMC5603_MAX_ARGC) { + return MMC5603_FAILED; + } + } else { + argv[*argc][pos] = para[i]; + pos++; + if (pos >= MMC5603_MAX_ARGV_LEN) { + return MMC5603_FAILED; + } + } + } + if (pos != 0) { + *argc += 1; + } + + return MMC5603_SUCCESS; +} + +extern int test_mmc5603(void); +static uint32_t mmc5603_do_test(uint8_t *para, uint32_t paraLen, char *strCommonCmd) +{ + UNUSED(strCommonCmd); + test_mmc5603(); + return ERRCODE_SUCC; +} + +static const at_cmd_table_t g_mmc5603_cmd[] = { + { (char *)"AT^MMC5603TEST", mmc5603_do_test, (char *)"aac enable" }, +}; + +at_cmd_table_t *get_mmc5603_cmd_table(uint32_t *cmd_count) +{ + *cmd_count = ARRAY_COUNT(g_mmc5603_cmd); + return (at_cmd_table_t *)g_mmc5603_cmd; +} diff --git a/code/sdk/drivers/peripheral/mag/mmc5603/mmc5603_at_cmd.h b/code/sdk/drivers/peripheral/mag/mmc5603/mmc5603_at_cmd.h new file mode 100644 index 000000000..1f2dd30ce --- /dev/null +++ b/code/sdk/drivers/peripheral/mag/mmc5603/mmc5603_at_cmd.h @@ -0,0 +1,32 @@ +/** + * Copyright (c) @CompanyNameMagicTag 2022-2022. All rights reserved. \n + * + * Description: Provides at cmd register func \n + * Author: @CompanyNameTag \n + * History: \n + * 2022-07-20, Create file. \n + */ +#ifndef MMC5603_AT_PROCESS_H +#define MMC5603_AT_PROCESS_H + +#include +#include +#include "errcode.h" +#include "soc_osal.h" +#include "at_cmd_api.h" + +#ifdef __cplusplus +#if __cplusplus +extern "C" { +#endif /* __cplusplus */ +#endif /* __cplusplus */ + +at_cmd_table_t *get_mmc5603_cmd_table(uint32_t *cmd_count); + +#ifdef __cplusplus +#if __cplusplus +} +#endif /* __cplusplus */ +#endif /* __cplusplus */ + +#endif