
3.3. AWS FreeeRTOS SDK
Modifications
7
TypeABR AWS FreeRTOS SDK Getting Started Guide
3.3 AWS FreeeRTOS SDK
Modifications
1.
Modify board
file
for TypeABR module
Modify below settings in
mw300_rd.c
located in
aws_freertos/vendors/marvell/WMSDK/mw320/sdk/src/boards
51
52
53
54
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
2.
Modify the WiFi AP SSID and PASSWORD in SDK
Modify below settings in
amazon-freertos/demos/include/aws_clientcredential.h
58
#define clientcredentialWIFI_SSID
"TestAP"
64
#define clientcredentialWIFI_PASSWORD
"12345678"
Modify the security if needed.
74
#define clientcredentialWIFI_SECURITY
eWiFiSecurityWPA2
3.
Modify the AWS Ting Name and endpoint in SDK
Modify below settings in
amazon-freertos/demos/include/aws_clientcredential.h
34
41
4.
Modify AWS Thing cert and private key
modify below setting in
amazon-freertos/demos/include/aws_clientcredential_keys.h
with the cert and private
key download from AWS-IoT.
39
#define keyCLIENT_CERTIFICATE_PEM
"-----BEGIN CERTIFICATE-----\n"\
40
"...base64 data...\n"\
41
"-----END CERTIFICATE-----\n"
void
board_uart_pin_config
(
int
id)
{
switch
(id)
{
case
UART0_ID
:
GPIO_PinMuxFun(GPIO_2, GPIO2_UART0_TXD);
GPIO_PinMuxFun(GPIO_3, GPIO3_UART0_RXD);
GPIO_PinMuxFun(GPIO_0, GPIO0_UART0_CTSn);
GPIO_PinMuxFun(GPIO_1, GPIO1_UART0_RTSn);
break
;
case
UART1_ID
:
break
;
case
UART2_ID
:
break
;
}
}
#define clientcredentialMQTT_BROKER_ENDPOINT
C
→
ap-northeast-1.amazonaws.com"
"xxxxxxxxxxxxxx-ats.iot.
return
false
;
int
board_32k_osc
()
{
}
/* Not implemented yet */
GPIO_PinMuxFun(GPIO_48, GPIO48_UART2_TXD);
GPIO_PinMuxFun(GPIO_49, GPIO49_UART2_RXD);
#define clientcredentialIOT_THING_NAME
"aws_demo_led"