¶Ô±ÈÐÂÎļþ |
| | |
| | | /******************************************************************************* |
| | | * File Name : Internet.c |
| | | * Description : |
| | | * Created on : 2018å¹´5æ26æ¥ |
| | | * Author : æé® |
| | | *******************************************************************************/ |
| | | |
| | | /******************************************************************************* |
| | | * Include Files * |
| | | *******************************************************************************/ |
| | | #include "Internet.h" |
| | | #include "AIR780EDriver.h" |
| | | #include "AIR780EFSM.h" |
| | | |
| | | /******************************************************************************* |
| | | * Macro * |
| | | *******************************************************************************/ |
| | | |
| | | /******************************************************************************* |
| | | * Type Definition * |
| | | *******************************************************************************/ |
| | | |
| | | /******************************************************************************* |
| | | * Local Variable * |
| | | *******************************************************************************/ |
| | | |
| | | /******************************************************************************* |
| | | * Local Function Declaration * |
| | | *******************************************************************************/ |
| | | |
| | | /******************************************************************************* |
| | | * Local Function * |
| | | *******************************************************************************/ |
| | | |
| | | /******************************************************************************* |
| | | * Global Function * |
| | | *******************************************************************************/ |
| | | |
| | | /******************************************************************************* |
| | | * Function Name : Internet_Poll |
| | | * Description : |
| | | * Input : |
| | | * Output : |
| | | * Return : |
| | | * Author : æé® |
| | | * Modified Date: : 2018å¹´5æ26æ¥ |
| | | *******************************************************************************/ |
| | | HIDO_INT32 Internet_Poll(void) |
| | | { |
| | | HIDO_FSMEventExecute(HIDO_FSM(AIR780E), AIR780E_EVENT_POLL, HIDO_NULL); |
| | | |
| | | return HIDO_OK; |
| | | } |
| | | |
| | | /******************************************************************************* |
| | | * Function Name : Internet_Poll |
| | | * Description : |
| | | * Input : |
| | | * Output : |
| | | * Return : |
| | | * Author : æé® |
| | | * Modified Date: : 2018å¹´5æ26æ¥ |
| | | *******************************************************************************/ |
| | | HIDO_INT32 Internet_DebugOn(void) |
| | | { |
| | | AIR780EDriver_DebugOn(); |
| | | |
| | | return HIDO_OK; |
| | | } |
| | | |
| | | /******************************************************************************* |
| | | * Function Name : SIM8xxDriver_DebugOff |
| | | * Description : |
| | | * Input : |
| | | * Output : |
| | | * Return : |
| | | * Author : æé® |
| | | * Modified Date: : 2018å¹´5æ22æ¥ |
| | | *******************************************************************************/ |
| | | HIDO_INT32 Internet_DebugOff(void) |
| | | { |
| | | AIR780EDriver_DebugOff(); |
| | | |
| | | return HIDO_OK; |
| | | } |
| | | |
| | | /******************************************************************************* |
| | | * Function Name : Internet_Poll |
| | | * Description : |
| | | * Input : |
| | | * Output : |
| | | * Return : |
| | | * Author : æé® |
| | | * Modified Date: : 2018å¹´5æ26æ¥ |
| | | *******************************************************************************/ |
| | | HIDO_BOOL Internet_IsIPReady(void) |
| | | { |
| | | return AIR780E_IsIPReady(); |
| | | } |
| | | |
| | | /******************************************************************************* |
| | | * Function Name : Internet_Poll |
| | | * Description : |
| | | * Input : |
| | | * Output : |
| | | * Return : |
| | | * Author : æé® |
| | | * Modified Date: : 2018å¹´5æ26æ¥ |
| | | *******************************************************************************/ |
| | | HIDO_INT32 Internet_Init(void) |
| | | { |
| | | if (AIR780EDriver_Init() != HIDO_OK) |
| | | { |
| | | return HIDO_ERR; |
| | | } |
| | | #if 0 |
| | | if (TTS_Init() != HIDO_OK) |
| | | { |
| | | return HIDO_ERR; |
| | | } |
| | | |
| | | if (TONE_Init() != HIDO_OK) |
| | | { |
| | | return HIDO_ERR; |
| | | } |
| | | #endif |
| | | return HIDO_OK; |
| | | } |