Skip to content

Commit

Permalink
GD project modify for AliOS update
Browse files Browse the repository at this point in the history
修正AliOS升级后,工程编译报错的问题
  • Loading branch information
leek3 committed Mar 30, 2018
1 parent 6013572 commit fca226b
Show file tree
Hide file tree
Showing 10 changed files with 286 additions and 4,456 deletions.
8 changes: 4 additions & 4 deletions framework/atparser/atparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ static int at_send_raw_self_define_respone_formate_internal(const char *command,
tsk->rsp_fail_postfix_len = strlen(rsp_fail_postfix);
}

tsk->command = command;
tsk->command = (char *)command;
tsk->rsp = rsp;
tsk->rsp_len = rsplen;

Expand Down Expand Up @@ -482,7 +482,7 @@ static int at_send_data_2stage(const char *fst, const char *data,
LOGD(MODULE_NAME, "at task created: %d, smpr: %d",
(uint32_t)tsk, (uint32_t)&tsk->smpr);

tsk->command = fst;
tsk->command = (char *)fst;
tsk->rsp = rsp;
tsk->rsp_len = rsplen;

Expand Down Expand Up @@ -567,8 +567,8 @@ static int at_oob(const char *prefix, const char *postfix, int maxlen,


oob->maxlen = maxlen;
oob->prefix = prefix;
oob->postfix = postfix;
oob->prefix = (char *)prefix;
oob->postfix = (char *)postfix;
oob->cb = cb;
oob->arg = arg;
oob->reallen = 0;
Expand Down
8 changes: 0 additions & 8 deletions platform/mcu/gd32f4xx/include/atcmd_config_module.h

This file was deleted.

6 changes: 0 additions & 6 deletions platform/mcu/gd32f4xx/include/atcmd_config_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,5 @@

// AT uart
#define AT_UART_PORT 1
#define AT_UART_BAUDRATE 115200
#define AT_UART_DATA_WIDTH DATA_WIDTH_8BIT
#define AT_UART_PARITY NO_PARITY
#define AT_UART_STOP_BITS STOP_BITS_1
#define AT_UART_FLOW_CONTROL FLOW_CONTROL_DISABLED
#define AT_UART_MODE MODE_TX_RX

#endif
9 changes: 1 addition & 8 deletions platform/mcu/gd32f4xx/soc/soc_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void dev_wifi_reset(void)
/* enable the led clock */
rcu_periph_clock_enable(RCU_GPIOE);
/* configure led GPIO port */
gpio_mode_set(GPIOE, GPIO_MODE_OUTPUT, GPIO_PUPD_PULLUP, GPIO_PIN_0);
gpio_mode_set(GPIOE, GPIO_MODE_OUTPUT, GPIO_PUPD_NONE, GPIO_PIN_0);
gpio_output_options_set(GPIOE, GPIO_OTYPE_PP, GPIO_OSPEED_50MHZ, GPIO_PIN_0);
gpio_bit_reset(GPIOE, GPIO_PIN_0);
aos_msleep(200);
Expand Down Expand Up @@ -135,13 +135,6 @@ void aos_components_init(void)

}

#if defined (__CC_ARM)
_ARMABI time_t time(time_t * p)
{
return 0;
}
#endif

//int application_start(int argc, char *argv[])
//{
// aos_task_new("led1", led1_task, 0, 512);
Expand Down
Loading

0 comments on commit fca226b

Please sign in to comment.