Skip to content

Commit 58f5c6a

Browse files
committed
Fixes to get MQTT demo working with latest generated code.
1 parent 1970593 commit 58f5c6a

File tree

664 files changed

+1068620
-293551
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

664 files changed

+1068620
-293551
lines changed

wolfmqtt_trust_platform/firmware/src/app_mqtt_task.c

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
/*******************************************************************************
2-
* Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries.
3-
*
4-
* Subject to your compliance with these terms, you may use Microchip software
5-
* and any derivatives exclusively with Microchip products. It is your
6-
* responsibility to comply with third party license terms applicable to your
7-
* use of third party software (including open source software) that may
8-
* accompany Microchip software.
9-
*
10-
* THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
11-
* EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED
12-
* WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A
13-
* PARTICULAR PURPOSE.
14-
*
15-
* IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
16-
* INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND
17-
* WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS
18-
* BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE
19-
* FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN
20-
* ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY,
21-
* THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
22-
*******************************************************************************/
1+
/*
2+
Copyright (C) 2019-2023, Microchip Technology Inc., and its subsidiaries. All rights reserved.
3+
4+
The software and documentation is provided by microchip and its contributors
5+
"as is" and any express, implied or statutory warranties, including, but not
6+
limited to, the implied warranties of merchantability, fitness for a particular
7+
purpose and non-infringement of third party intellectual property rights are
8+
disclaimed to the fullest extent permitted by law. In no event shall microchip
9+
or its contributors be liable for any direct, indirect, incidental, special,
10+
exemplary, or consequential damages (including, but not limited to, procurement
11+
of substitute goods or services; loss of use, data, or profits; or business
12+
interruption) however caused and on any theory of liability, whether in contract,
13+
strict liability, or tort (including negligence or otherwise) arising in any way
14+
out of the use of the software and documentation, even if advised of the
15+
possibility of such damage.
16+
17+
Except as expressly permitted hereunder and subject to the applicable license terms
18+
for any third-party software incorporated in the software and any applicable open
19+
source software license terms, no license or other rights, whether express or
20+
implied, are granted under any patent or other intellectual property rights of
21+
Microchip or any third party.
22+
*/
2323

2424
/*******************************************************************************
2525
MPLAB Harmony Application Source File

wolfmqtt_trust_platform/firmware/src/app_mqtt_task.h

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
/*******************************************************************************
2-
* Copyright (C) 2019 Microchip Technology Inc. and its subsidiaries.
3-
*
4-
* Subject to your compliance with these terms, you may use Microchip software
5-
* and any derivatives exclusively with Microchip products. It is your
6-
* responsibility to comply with third party license terms applicable to your
7-
* use of third party software (including open source software) that may
8-
* accompany Microchip software.
9-
*
10-
* THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
11-
* EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED
12-
* WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A
13-
* PARTICULAR PURPOSE.
14-
*
15-
* IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
16-
* INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND
17-
* WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS
18-
* BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE
19-
* FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN
20-
* ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY,
21-
* THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
22-
*******************************************************************************/
1+
/*
2+
Copyright (C) 2019-2023, Microchip Technology Inc., and its subsidiaries. All rights reserved.
3+
4+
The software and documentation is provided by microchip and its contributors
5+
"as is" and any express, implied or statutory warranties, including, but not
6+
limited to, the implied warranties of merchantability, fitness for a particular
7+
purpose and non-infringement of third party intellectual property rights are
8+
disclaimed to the fullest extent permitted by law. In no event shall microchip
9+
or its contributors be liable for any direct, indirect, incidental, special,
10+
exemplary, or consequential damages (including, but not limited to, procurement
11+
of substitute goods or services; loss of use, data, or profits; or business
12+
interruption) however caused and on any theory of liability, whether in contract,
13+
strict liability, or tort (including negligence or otherwise) arising in any way
14+
out of the use of the software and documentation, even if advised of the
15+
possibility of such damage.
16+
17+
Except as expressly permitted hereunder and subject to the applicable license terms
18+
for any third-party software incorporated in the software and any applicable open
19+
source software license terms, no license or other rights, whether express or
20+
implied, are granted under any patent or other intellectual property rights of
21+
Microchip or any third party.
22+
*/
2323

2424
/*******************************************************************************
2525
MPLAB Harmony Application Header File
@@ -56,9 +56,7 @@
5656
#include <stdlib.h>
5757
#include "configuration.h"
5858
#include "definitions.h"
59-
#ifdef MICROCHIP_TCPIP
6059
#include "tcpip/tcpip.h"
61-
#endif
6260
#include "wolfmqtt/mqtt_client.h"
6361

6462
// TODO: add MQTT task definitions here

wolfmqtt_trust_platform/firmware/src/config/samd21_trust/ATSAMD21E18A.ld

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*--------------------------------------------------------------------------
22
* MPLAB XC32 Compiler - ATSAMD21E18A linker script
33
*
4-
* Copyright (c) 2021, Microchip Technology Inc. and its subsidiaries ("Microchip")
4+
* Copyright (c) 2022, Microchip Technology Inc. and its subsidiaries ("Microchip")
55
* All rights reserved.
66
*
77
* This software is developed by Microchip Technology Inc. and its
@@ -77,7 +77,7 @@ ENTRY(__XC32_RESET_HANDLER_NAME)
7777
#elif (RAM_LENGTH > 0x8000)
7878
# error RAM_LENGTH is greater than the max size of 0x8000
7979
#endif
80-
80+
8181

8282
/*************************************************************************
8383
* Memory-Region Definitions
@@ -92,7 +92,6 @@ MEMORY
9292
config_00804004 : ORIGIN = 0x00804004, LENGTH = 0x4
9393

9494
}
95-
9695
/*************************************************************************
9796
* Output region definitions.
9897
* CODE_REGION defines the output region for .text/.rodata.
@@ -211,6 +210,7 @@ SECTIONS
211210
. = ALIGN(4);
212211
_etext = .;
213212

213+
214214
/*
215215
* Align here to ensure that the .bss section occupies space up to
216216
* _end. Align after .bss to ensure correct alignment even if the
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
2+
#ifndef FREERTOS_CONFIG_H
3+
#define FREERTOS_CONFIG_H
4+
5+
/* MISRA C-2012 Rule 3.1, 5.4 deviated below. Deviation record ID -
6+
H3_MISRAC_2012_R_3_1_DR_1 & H3_MISRAC_2012_R_5_4_DR_1*/
7+
/*
8+
* FreeRTOS Kernel V10.4.0
9+
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
10+
*
11+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
12+
* this software and associated documentation files (the "Software"), to deal in
13+
* the Software without restriction, including without limitation the rights to
14+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
15+
* the Software, and to permit persons to whom the Software is furnished to do so,
16+
* subject to the following conditions:
17+
*
18+
* The above copyright notice and this permission notice shall be included in all
19+
* copies or substantial portions of the Software.
20+
*
21+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
23+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
24+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
25+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
26+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27+
*
28+
* http://www.FreeRTOS.org
29+
* http://aws.amazon.com/freertos
30+
*
31+
* 1 tab == 4 spaces!
32+
*/
33+
34+
/*-----------------------------------------------------------
35+
* Application specific definitions.
36+
*
37+
* These definitions should be adjusted for your particular hardware and
38+
* application requirements.
39+
*
40+
* THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
41+
* FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
42+
*
43+
* See http://www.freertos.org/a00110.html
44+
*----------------------------------------------------------*/
45+
#define configUSE_PREEMPTION 1
46+
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
47+
#define configUSE_TICKLESS_IDLE 0
48+
#define configCPU_CLOCK_HZ ( 48000000UL )
49+
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
50+
#define configMAX_PRIORITIES ( 5UL )
51+
#define configMINIMAL_STACK_SIZE ( 128 )
52+
#define configSUPPORT_DYNAMIC_ALLOCATION 1
53+
#define configSUPPORT_STATIC_ALLOCATION 0
54+
#define configTOTAL_HEAP_SIZE ( ( size_t ) 8600 )
55+
#define configMAX_TASK_NAME_LEN ( 16 )
56+
#define configUSE_16_BIT_TICKS 0
57+
#define configIDLE_SHOULD_YIELD 1
58+
#define configUSE_MUTEXES 1
59+
#define configUSE_RECURSIVE_MUTEXES 0
60+
#define configUSE_COUNTING_SEMAPHORES 1
61+
#define configUSE_TASK_NOTIFICATIONS 1
62+
#define configQUEUE_REGISTRY_SIZE 0
63+
#define configUSE_QUEUE_SETS 0
64+
#define configUSE_TIME_SLICING 1
65+
#define configUSE_NEWLIB_REENTRANT 0
66+
#define configUSE_TASK_FPU_SUPPORT 0
67+
68+
69+
/* Hook function related definitions. */
70+
#define configUSE_IDLE_HOOK 0
71+
#define configUSE_TICK_HOOK 0
72+
#define configCHECK_FOR_STACK_OVERFLOW 2
73+
#define configUSE_MALLOC_FAILED_HOOK 1
74+
75+
/* Run time and task stats gathering related definitions. */
76+
#define configGENERATE_RUN_TIME_STATS 0
77+
#define configUSE_TRACE_FACILITY 0
78+
#define configUSE_STATS_FORMATTING_FUNCTIONS 0
79+
80+
/* Co-routine related definitions. */
81+
#define configUSE_CO_ROUTINES 0
82+
#define configMAX_CO_ROUTINE_PRIORITIES 2
83+
84+
/* Software timer related definitions. */
85+
#define configUSE_TIMERS 0
86+
#define configTIMER_TASK_PRIORITY 0
87+
#define configTIMER_QUEUE_LENGTH 0
88+
#define configTIMER_TASK_STACK_DEPTH 0
89+
#define configUSE_DAEMON_TASK_STARTUP_HOOK 0
90+
91+
/* Misc */
92+
#define configUSE_APPLICATION_TASK_TAG 0
93+
94+
95+
/* Interrupt nesting behaviour configuration. */
96+
/* The priority at which the tick interrupt runs. This should probably be kept at lowest priority. */
97+
#define configKERNEL_INTERRUPT_PRIORITY (3 << (8 - 2))
98+
/* The maximum interrupt priority from which FreeRTOS.org API functions can be called.
99+
* Only API functions that end in ...FromISR() can be used within interrupts. */
100+
#define configMAX_SYSCALL_INTERRUPT_PRIORITY (1 << (8 - 2))
101+
102+
103+
/* Optional functions - most linkers will remove unused functions anyway. */
104+
#define INCLUDE_vTaskPrioritySet 1
105+
#define INCLUDE_uxTaskPriorityGet 1
106+
#define INCLUDE_vTaskDelete 1
107+
#define INCLUDE_vTaskSuspend 1
108+
#define INCLUDE_vTaskDelayUntil 1
109+
#define INCLUDE_vTaskDelay 1
110+
#define INCLUDE_xTaskGetSchedulerState 0
111+
#define INCLUDE_xTaskGetCurrentTaskHandle 1
112+
#define INCLUDE_uxTaskGetStackHighWaterMark 0
113+
#define INCLUDE_xTaskGetIdleTaskHandle 0
114+
#define INCLUDE_eTaskGetState 0
115+
#define INCLUDE_xTimerPendFunctionCall 0
116+
#define INCLUDE_xTaskAbortDelay 0
117+
#define INCLUDE_xTaskGetHandle 0
118+
#define INCLUDE_xQueueGetMutexHolder 0
119+
#define INCLUDE_xSemaphoreGetMutexHolder 0
120+
#define INCLUDE_uxTaskGetStackHighWaterMark2 0
121+
#define INCLUDE_xTaskResumeFromISR 0
122+
123+
124+
/* MISRAC 2012 deviation block end */
125+
#endif /* FREERTOS_CONFIG_H */
Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,24 @@
1-
#include "configuration.h"
1+
/*
2+
Copyright (C) 2012-2023, Microchip Technology Inc., and its subsidiaries. All rights reserved.
3+
4+
The software and documentation is provided by microchip and its contributors
5+
"as is" and any express, implied or statutory warranties, including, but not
6+
limited to, the implied warranties of merchantability, fitness for a particular
7+
purpose and non-infringement of third party intellectual property rights are
8+
disclaimed to the fullest extent permitted by law. In no event shall microchip
9+
or its contributors be liable for any direct, indirect, incidental, special,
10+
exemplary, or consequential damages (including, but not limited to, procurement
11+
of substitute goods or services; loss of use, data, or profits; or business
12+
interruption) however caused and on any theory of liability, whether in contract,
13+
strict liability, or tort (including negligence or otherwise) arising in any way
14+
out of the use of the software and documentation, even if advised of the
15+
possibility of such damage.
16+
17+
Except as expressly permitted hereunder and subject to the applicable license terms
18+
for any third-party software incorporated in the software and any applicable open
19+
source software license terms, no license or other rights, whether express or
20+
implied, are granted under any patent or other intellectual property rights of
21+
Microchip or any third party.
22+
*/
23+
24+
#include "configuration.h"

0 commit comments

Comments
 (0)