File tree 7 files changed +26
-42
lines changed
portable/ThirdParty/GCC/RP2040 7 files changed +26
-42
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
4
* Copyright (c) 2021 Raspberry Pi (Trading) Ltd.
5
5
*
6
+ * SPDX-License-Identifier: MIT AND BSD-3-Clause
7
+ *
6
8
* Permission is hereby granted, free of charge, to any person obtaining a copy of
7
9
* this software and associated documentation files (the "Software"), to deal in
8
10
* the Software without restriction, including without limitation the rights to
24
26
* https://github.com/FreeRTOS
25
27
*/
26
28
27
- /*
28
- * Copyright (c) 2021 Raspberry Pi (Trading) Ltd.
29
- *
30
- * SPDX-License-Identifier: BSD-3-Clause
31
- */
32
-
33
29
#include "FreeRTOS.h"
34
30
35
31
void vApplicationGetIdleTaskMemory ( StaticTask_t * * ppxIdleTaskTCBBuffer ,
Original file line number Diff line number Diff line change 1
1
/*
2
2
* FreeRTOS Kernel V10.4.3
3
3
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ * Copyright (c) 2021 Raspberry Pi (Trading) Ltd.
5
+ *
6
+ * SPDX-License-Identifier: BSD-3-Clause
4
7
*
5
8
* Permission is hereby granted, free of charge, to any person obtaining a copy of
6
9
* this software and associated documentation files (the "Software"), to deal in
23
26
* https://github.com/FreeRTOS
24
27
*/
25
28
26
- /*
27
- * Copyright (c) 2021 Raspberry Pi (Trading) Ltd.
28
- *
29
- * SPDX-License-Identifier: BSD-3-Clause
30
- */
31
-
32
29
#ifndef FREERTOS_SDK_CONFIG_H
33
30
#define FREERTOS_SDK_CONFIG_H
34
31
Original file line number Diff line number Diff line change 1
1
/*
2
2
* FreeRTOS Kernel V10.4.3
3
3
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ * Copyright (c) 2021 Raspberry Pi (Trading) Ltd.
5
+ *
6
+ * SPDX-License-Identifier: MIT AND BSD-3-Clause
4
7
*
5
8
* Permission is hereby granted, free of charge, to any person obtaining a copy of
6
9
* this software and associated documentation files (the "Software"), to deal in
24
27
*
25
28
*/
26
29
27
- /*
28
- * Copyright (c) 2021 Raspberry Pi (Trading) Ltd.
29
- *
30
- * SPDX-License-Identifier: BSD-3-Clause
31
- */
32
-
33
30
#ifndef PORTMACRO_H
34
31
#define PORTMACRO_H
35
32
Original file line number Diff line number Diff line change 1
1
/*
2
2
* FreeRTOS Kernel V10.4.3
3
3
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ * Copyright (c) 2021 Raspberry Pi (Trading) Ltd.
5
+ *
6
+ * SPDX-License-Identifier: MIT AND BSD-3-Clause
4
7
*
5
8
* Permission is hereby granted, free of charge, to any person obtaining a copy of
6
9
* this software and associated documentation files (the "Software"), to deal in
23
26
* https://github.com/FreeRTOS
24
27
*/
25
28
26
- /*
27
- * Copyright (c) 2021 Raspberry Pi (Trading) Ltd.
28
- *
29
- * SPDX-License-Identifier: BSD-3-Clause
30
- */
31
-
32
29
#ifndef RP2040_CONFIG_H
33
30
#define RP2040_CONFIG_H
34
31
@@ -70,4 +67,4 @@ extern "C" {
70
67
};
71
68
#endif
72
69
73
- #endif
70
+ #endif
Original file line number Diff line number Diff line change 1
- # Called after the Raspberry Pi Pico SDK has been initialized to add our libraries
2
-
3
- add_library (FreeRTOS-Kernel_included INTERFACE )
4
- target_compile_definitions (FreeRTOS-Kernel_included INTERFACE
5
- -DFREERTOS_KERNEL=1
6
- # todo don't know if we need this; maybe just want to explicitly disable things
7
- -DPICO_RTOS=1 # let SDK know that RTOS is in use
8
- )
1
+ # Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
2
+ #
3
+ # SPDX-License-Identifier: BSD-3-Clause
9
4
10
- pico_add_platform_library(FreeRTOS-Kernel_included)
5
+ # Called after the Raspberry Pi Pico SDK has been initialized to add our libraries
11
6
12
7
add_library (FreeRTOS-Kernel-Core INTERFACE )
13
8
target_sources (FreeRTOS-Kernel-Core INTERFACE
@@ -36,13 +31,14 @@ target_link_libraries(FreeRTOS-Kernel INTERFACE
36
31
37
32
target_compile_definitions (FreeRTOS-Kernel INTERFACE
38
33
LIB_FREERTOS_KERNEL=1
39
- FREE_RTOS_KERNEL_SMP =0
34
+ FREERTOS_KERNEL_SMP =0
40
35
)
41
36
42
37
add_library (FreeRTOS-Kernel-Static INTERFACE )
43
38
target_compile_definitions (FreeRTOS-Kernel-Static INTERFACE
44
39
configSUPPORT_STATIC_ALLOCATION=1
45
40
)
41
+
46
42
target_sources (FreeRTOS-Kernel-Static INTERFACE ${CMAKE_CURRENT_LIST_DIR} /idle_task_static_memory.c)
47
43
target_link_libraries (FreeRTOS-Kernel-Static INTERFACE FreeRTOS-Kernel)
48
44
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
2
+ #
3
+ # SPDX-License-Identifier: BSD-3-Clause
4
+
1
5
# This is a copy of <PICO_SDK_PATH>/external/pico_sdk_import.cmake
2
6
3
7
# This can be dropped into an external project to help locate this SDK
Original file line number Diff line number Diff line change 1
1
/*
2
2
* FreeRTOS Kernel V10.4.3
3
3
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ * Copyright (c) 2021 Raspberry Pi (Trading) Ltd.
5
+ *
6
+ * SPDX-License-Identifier: MIT AND BSD-3-Clause
4
7
*
5
8
* Permission is hereby granted, free of charge, to any person obtaining a copy of
6
9
* this software and associated documentation files (the "Software"), to deal in
24
27
*
25
28
*/
26
29
27
- /*
28
- * Copyright (c) 2021 Raspberry Pi (Trading) Ltd.
29
- *
30
- * SPDX-License-Identifier: BSD-3-Clause
31
- */
32
-
33
30
/*----------------------------------------------------------------------
34
31
* Implementation of functions defined in portable.h for the RP2040 port.
35
32
*----------------------------------------------------------------------*/
@@ -876,4 +873,4 @@ __attribute__( ( weak ) ) void vPortSetupTimerInterrupt( void )
876
873
vTaskDelay (uxTicksToWait );
877
874
}
878
875
}
879
- #endif /* configSUPPORT_PICO_TIME_INTEROP */
876
+ #endif /* configSUPPORT_PICO_TIME_INTEROP */
You can’t perform that action at this time.
0 commit comments