1682 lines
99 KiB
Plaintext
1682 lines
99 KiB
Plaintext
ARM GAS /tmp/ccNYH43h.s page 1
|
||
|
||
|
||
1 .cpu cortex-m4
|
||
2 .arch armv7e-m
|
||
3 .fpu fpv4-sp-d16
|
||
4 .eabi_attribute 27, 1
|
||
5 .eabi_attribute 28, 1
|
||
6 .eabi_attribute 20, 1
|
||
7 .eabi_attribute 21, 1
|
||
8 .eabi_attribute 23, 3
|
||
9 .eabi_attribute 24, 1
|
||
10 .eabi_attribute 25, 1
|
||
11 .eabi_attribute 26, 1
|
||
12 .eabi_attribute 30, 1
|
||
13 .eabi_attribute 34, 1
|
||
14 .eabi_attribute 18, 4
|
||
15 .file "main.c"
|
||
16 .text
|
||
17 .Ltext0:
|
||
18 .cfi_sections .debug_frame
|
||
19 .section .text.UART1_PrintString,"ax",%progbits
|
||
20 .align 1
|
||
21 .global UART1_PrintString
|
||
22 .syntax unified
|
||
23 .thumb
|
||
24 .thumb_func
|
||
26 UART1_PrintString:
|
||
27 .LVL0:
|
||
28 .LFB137:
|
||
29 .file 1 "Src/main.c"
|
||
1:Src/main.c **** /* USER CODE BEGIN Header */
|
||
2:Src/main.c **** /**
|
||
3:Src/main.c **** ******************************************************************************
|
||
4:Src/main.c **** * @file : main.c
|
||
5:Src/main.c **** * @brief : Main program body
|
||
6:Src/main.c **** ******************************************************************************
|
||
7:Src/main.c **** * @attention
|
||
8:Src/main.c **** *
|
||
9:Src/main.c **** * Copyright (c) 2025 STMicroelectronics.
|
||
10:Src/main.c **** * All rights reserved.
|
||
11:Src/main.c **** *
|
||
12:Src/main.c **** * This software is licensed under terms that can be found in the LICENSE file
|
||
13:Src/main.c **** * in the root directory of this software component.
|
||
14:Src/main.c **** * If no LICENSE file comes with this software, it is provided AS-IS.
|
||
15:Src/main.c **** *
|
||
16:Src/main.c **** ******************************************************************************
|
||
17:Src/main.c **** */
|
||
18:Src/main.c **** /* USER CODE END Header */
|
||
19:Src/main.c **** /* Includes ------------------------------------------------------------------*/
|
||
20:Src/main.c **** #include "main.h"
|
||
21:Src/main.c **** #include "iwdg.h"
|
||
22:Src/main.c **** #include "rng.h"
|
||
23:Src/main.c **** #include "rtc.h"
|
||
24:Src/main.c **** #include "tim.h"
|
||
25:Src/main.c **** #include "usart.h"
|
||
26:Src/main.c **** #include "wwdg.h"
|
||
27:Src/main.c **** #include "gpio.h"
|
||
28:Src/main.c ****
|
||
29:Src/main.c **** #include <stdio.h>
|
||
ARM GAS /tmp/ccNYH43h.s page 2
|
||
|
||
|
||
30:Src/main.c **** #include <string.h>
|
||
31:Src/main.c ****
|
||
32:Src/main.c **** /* Private includes ----------------------------------------------------------*/
|
||
33:Src/main.c **** /* USER CODE BEGIN Includes */
|
||
34:Src/main.c ****
|
||
35:Src/main.c **** /* USER CODE END Includes */
|
||
36:Src/main.c ****
|
||
37:Src/main.c **** /* Private typedef -----------------------------------------------------------*/
|
||
38:Src/main.c **** /* USER CODE BEGIN PTD */
|
||
39:Src/main.c ****
|
||
40:Src/main.c **** /* USER CODE END PTD */
|
||
41:Src/main.c ****
|
||
42:Src/main.c **** /* Private define ------------------------------------------------------------*/
|
||
43:Src/main.c **** /* USER CODE BEGIN PD */
|
||
44:Src/main.c ****
|
||
45:Src/main.c **** /* USER CODE END PD */
|
||
46:Src/main.c ****
|
||
47:Src/main.c **** /* Private macro -------------------------------------------------------------*/
|
||
48:Src/main.c **** /* USER CODE BEGIN PM */
|
||
49:Src/main.c ****
|
||
50:Src/main.c **** /* USER CODE END PM */
|
||
51:Src/main.c ****
|
||
52:Src/main.c **** /* Private variables ---------------------------------------------------------*/
|
||
53:Src/main.c ****
|
||
54:Src/main.c **** /* USER CODE BEGIN PV */
|
||
55:Src/main.c ****
|
||
56:Src/main.c **** /* USER CODE END PV */
|
||
57:Src/main.c ****
|
||
58:Src/main.c **** /* Private function prototypes -----------------------------------------------*/
|
||
59:Src/main.c **** void SystemClock_Config(void);
|
||
60:Src/main.c **** /* USER CODE BEGIN PFP */
|
||
61:Src/main.c **** void UART1_PrintString(const char* str) {
|
||
30 .loc 1 61 41 view -0
|
||
31 .cfi_startproc
|
||
32 @ args = 0, pretend = 0, frame = 0
|
||
33 @ frame_needed = 0, uses_anonymous_args = 0
|
||
34 .loc 1 61 41 is_stmt 0 view .LVU1
|
||
35 0000 10B5 push {r4, lr}
|
||
36 .LCFI0:
|
||
37 .cfi_def_cfa_offset 8
|
||
38 .cfi_offset 4, -8
|
||
39 .cfi_offset 14, -4
|
||
40 0002 0446 mov r4, r0
|
||
62:Src/main.c **** HAL_UART_Transmit(&huart1, (uint8_t*)str, strlen(str), HAL_MAX_DELAY);
|
||
41 .loc 1 62 5 is_stmt 1 view .LVU2
|
||
42 .loc 1 62 47 is_stmt 0 view .LVU3
|
||
43 0004 FFF7FEFF bl strlen
|
||
44 .LVL1:
|
||
45 .loc 1 62 5 view .LVU4
|
||
46 0008 4FF0FF33 mov r3, #-1
|
||
47 000c 82B2 uxth r2, r0
|
||
48 000e 2146 mov r1, r4
|
||
49 0010 0148 ldr r0, .L3
|
||
50 0012 FFF7FEFF bl HAL_UART_Transmit
|
||
51 .LVL2:
|
||
63:Src/main.c **** }
|
||
52 .loc 1 63 1 view .LVU5
|
||
ARM GAS /tmp/ccNYH43h.s page 3
|
||
|
||
|
||
53 0016 10BD pop {r4, pc}
|
||
54 .LVL3:
|
||
55 .L4:
|
||
56 .loc 1 63 1 view .LVU6
|
||
57 .align 2
|
||
58 .L3:
|
||
59 0018 00000000 .word huart1
|
||
60 .cfi_endproc
|
||
61 .LFE137:
|
||
63 .section .text.Error_Handler,"ax",%progbits
|
||
64 .align 1
|
||
65 .global Error_Handler
|
||
66 .syntax unified
|
||
67 .thumb
|
||
68 .thumb_func
|
||
70 Error_Handler:
|
||
71 .LFB140:
|
||
64:Src/main.c **** /* USER CODE END PFP */
|
||
65:Src/main.c ****
|
||
66:Src/main.c **** /* Private user code ---------------------------------------------------------*/
|
||
67:Src/main.c **** /* USER CODE BEGIN 0 */
|
||
68:Src/main.c ****
|
||
69:Src/main.c **** /* USER CODE END 0 */
|
||
70:Src/main.c ****
|
||
71:Src/main.c **** /**
|
||
72:Src/main.c **** * @brief The application entry point.
|
||
73:Src/main.c **** * @retval int
|
||
74:Src/main.c **** */
|
||
75:Src/main.c **** int main(void)
|
||
76:Src/main.c **** {
|
||
77:Src/main.c ****
|
||
78:Src/main.c **** /* USER CODE BEGIN 1 */
|
||
79:Src/main.c ****
|
||
80:Src/main.c **** /* USER CODE END 1 */
|
||
81:Src/main.c ****
|
||
82:Src/main.c **** /* MCU Configuration--------------------------------------------------------*/
|
||
83:Src/main.c ****
|
||
84:Src/main.c **** /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
|
||
85:Src/main.c **** HAL_Init();
|
||
86:Src/main.c ****
|
||
87:Src/main.c **** /* USER CODE BEGIN Init */
|
||
88:Src/main.c ****
|
||
89:Src/main.c **** /* USER CODE END Init */
|
||
90:Src/main.c ****
|
||
91:Src/main.c **** /* Configure the system clock */
|
||
92:Src/main.c **** SystemClock_Config();
|
||
93:Src/main.c ****
|
||
94:Src/main.c **** /* USER CODE BEGIN SysInit */
|
||
95:Src/main.c ****
|
||
96:Src/main.c **** /* USER CODE END SysInit */
|
||
97:Src/main.c ****
|
||
98:Src/main.c **** /* Initialize all configured peripherals */
|
||
99:Src/main.c **** MX_GPIO_Init();
|
||
100:Src/main.c **** MX_USART1_UART_Init();
|
||
101:Src/main.c **** MX_RTC_Init();
|
||
102:Src/main.c **** MX_IWDG_Init();
|
||
103:Src/main.c **** MX_RNG_Init();
|
||
ARM GAS /tmp/ccNYH43h.s page 4
|
||
|
||
|
||
104:Src/main.c **** MX_TIM13_Init();
|
||
105:Src/main.c **** MX_WWDG_Init();
|
||
106:Src/main.c **** /* USER CODE BEGIN 2 */
|
||
107:Src/main.c **** UART1_PrintString("Hello ASCII!\r\n");
|
||
108:Src/main.c **** /* USER CODE END 2 */
|
||
109:Src/main.c ****
|
||
110:Src/main.c **** /* Infinite loop */
|
||
111:Src/main.c **** /* USER CODE BEGIN WHILE */
|
||
112:Src/main.c **** while (1)
|
||
113:Src/main.c **** {
|
||
114:Src/main.c **** /* USER CODE END WHILE */
|
||
115:Src/main.c **** /* USER CODE BEGIN 3 */
|
||
116:Src/main.c **** }
|
||
117:Src/main.c **** /* USER CODE END 3 */
|
||
118:Src/main.c **** }
|
||
119:Src/main.c ****
|
||
120:Src/main.c **** /**
|
||
121:Src/main.c **** * @brief System Clock Configuration
|
||
122:Src/main.c **** * @retval None
|
||
123:Src/main.c **** */
|
||
124:Src/main.c **** void SystemClock_Config(void)
|
||
125:Src/main.c **** {
|
||
126:Src/main.c **** RCC_OscInitTypeDef RCC_OscInitStruct = {0};
|
||
127:Src/main.c **** RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
|
||
128:Src/main.c ****
|
||
129:Src/main.c **** /** Configure the main internal regulator output voltage
|
||
130:Src/main.c **** */
|
||
131:Src/main.c **** __HAL_RCC_PWR_CLK_ENABLE();
|
||
132:Src/main.c **** __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
|
||
133:Src/main.c ****
|
||
134:Src/main.c **** /** Initializes the RCC Oscillators according to the specified parameters
|
||
135:Src/main.c **** * in the RCC_OscInitTypeDef structure.
|
||
136:Src/main.c **** */
|
||
137:Src/main.c **** RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSI|RCC_OSCILLATORTYPE_HSE
|
||
138:Src/main.c **** |RCC_OSCILLATORTYPE_LSE;
|
||
139:Src/main.c **** RCC_OscInitStruct.HSEState = RCC_HSE_ON;
|
||
140:Src/main.c **** RCC_OscInitStruct.LSEState = RCC_LSE_ON;
|
||
141:Src/main.c **** RCC_OscInitStruct.LSIState = RCC_LSI_ON;
|
||
142:Src/main.c **** RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
|
||
143:Src/main.c **** RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
|
||
144:Src/main.c **** RCC_OscInitStruct.PLL.PLLM = 4;
|
||
145:Src/main.c **** RCC_OscInitStruct.PLL.PLLN = 168;
|
||
146:Src/main.c **** RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;
|
||
147:Src/main.c **** RCC_OscInitStruct.PLL.PLLQ = 7;
|
||
148:Src/main.c **** if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
|
||
149:Src/main.c **** {
|
||
150:Src/main.c **** Error_Handler();
|
||
151:Src/main.c **** }
|
||
152:Src/main.c ****
|
||
153:Src/main.c **** /** Initializes the CPU, AHB and APB buses clocks
|
||
154:Src/main.c **** */
|
||
155:Src/main.c **** RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
|
||
156:Src/main.c **** |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
|
||
157:Src/main.c **** RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
|
||
158:Src/main.c **** RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
|
||
159:Src/main.c **** RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV4;
|
||
160:Src/main.c **** RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV2;
|
||
ARM GAS /tmp/ccNYH43h.s page 5
|
||
|
||
|
||
161:Src/main.c ****
|
||
162:Src/main.c **** if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_5) != HAL_OK)
|
||
163:Src/main.c **** {
|
||
164:Src/main.c **** Error_Handler();
|
||
165:Src/main.c **** }
|
||
166:Src/main.c **** }
|
||
167:Src/main.c ****
|
||
168:Src/main.c **** /* USER CODE BEGIN 4 */
|
||
169:Src/main.c ****
|
||
170:Src/main.c **** /* USER CODE END 4 */
|
||
171:Src/main.c ****
|
||
172:Src/main.c **** /**
|
||
173:Src/main.c **** * @brief This function is executed in case of error occurrence.
|
||
174:Src/main.c **** * @retval None
|
||
175:Src/main.c **** */
|
||
176:Src/main.c **** void Error_Handler(void)
|
||
177:Src/main.c **** {
|
||
72 .loc 1 177 1 is_stmt 1 view -0
|
||
73 .cfi_startproc
|
||
74 @ Volatile: function does not return.
|
||
75 @ args = 0, pretend = 0, frame = 0
|
||
76 @ frame_needed = 0, uses_anonymous_args = 0
|
||
77 @ link register save eliminated.
|
||
178:Src/main.c **** /* USER CODE BEGIN Error_Handler_Debug */
|
||
179:Src/main.c **** /* User can add his own implementation to report the HAL error return state */
|
||
180:Src/main.c **** __disable_irq();
|
||
78 .loc 1 180 3 view .LVU8
|
||
79 .LBB4:
|
||
80 .LBI4:
|
||
81 .file 2 "Drivers/CMSIS/Include/cmsis_gcc.h"
|
||
1:Drivers/CMSIS/Include/cmsis_gcc.h **** /**************************************************************************//**
|
||
2:Drivers/CMSIS/Include/cmsis_gcc.h **** * @file cmsis_gcc.h
|
||
3:Drivers/CMSIS/Include/cmsis_gcc.h **** * @brief CMSIS compiler GCC header file
|
||
4:Drivers/CMSIS/Include/cmsis_gcc.h **** * @version V5.4.1
|
||
5:Drivers/CMSIS/Include/cmsis_gcc.h **** * @date 27. May 2021
|
||
6:Drivers/CMSIS/Include/cmsis_gcc.h **** ******************************************************************************/
|
||
7:Drivers/CMSIS/Include/cmsis_gcc.h **** /*
|
||
8:Drivers/CMSIS/Include/cmsis_gcc.h **** * Copyright (c) 2009-2021 Arm Limited. All rights reserved.
|
||
9:Drivers/CMSIS/Include/cmsis_gcc.h **** *
|
||
10:Drivers/CMSIS/Include/cmsis_gcc.h **** * SPDX-License-Identifier: Apache-2.0
|
||
11:Drivers/CMSIS/Include/cmsis_gcc.h **** *
|
||
12:Drivers/CMSIS/Include/cmsis_gcc.h **** * Licensed under the Apache License, Version 2.0 (the License); you may
|
||
13:Drivers/CMSIS/Include/cmsis_gcc.h **** * not use this file except in compliance with the License.
|
||
14:Drivers/CMSIS/Include/cmsis_gcc.h **** * You may obtain a copy of the License at
|
||
15:Drivers/CMSIS/Include/cmsis_gcc.h **** *
|
||
16:Drivers/CMSIS/Include/cmsis_gcc.h **** * www.apache.org/licenses/LICENSE-2.0
|
||
17:Drivers/CMSIS/Include/cmsis_gcc.h **** *
|
||
18:Drivers/CMSIS/Include/cmsis_gcc.h **** * Unless required by applicable law or agreed to in writing, software
|
||
19:Drivers/CMSIS/Include/cmsis_gcc.h **** * distributed under the License is distributed on an AS IS BASIS, WITHOUT
|
||
20:Drivers/CMSIS/Include/cmsis_gcc.h **** * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
21:Drivers/CMSIS/Include/cmsis_gcc.h **** * See the License for the specific language governing permissions and
|
||
22:Drivers/CMSIS/Include/cmsis_gcc.h **** * limitations under the License.
|
||
23:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
24:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
25:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __CMSIS_GCC_H
|
||
26:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_H
|
||
27:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
ARM GAS /tmp/ccNYH43h.s page 6
|
||
|
||
|
||
28:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ignore some GCC warnings */
|
||
29:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
|
||
30:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wsign-conversion"
|
||
31:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wconversion"
|
||
32:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wunused-parameter"
|
||
33:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
34:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Fallback for __has_builtin */
|
||
35:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __has_builtin
|
||
36:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __has_builtin(x) (0)
|
||
37:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
38:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
39:Drivers/CMSIS/Include/cmsis_gcc.h **** /* CMSIS compiler specific defines */
|
||
40:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __ASM
|
||
41:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __ASM __asm
|
||
42:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
43:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __INLINE
|
||
44:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __INLINE inline
|
||
45:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
46:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __STATIC_INLINE
|
||
47:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __STATIC_INLINE static inline
|
||
48:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
49:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __STATIC_FORCEINLINE
|
||
50:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __STATIC_FORCEINLINE __attribute__((always_inline)) static inline
|
||
51:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
52:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __NO_RETURN
|
||
53:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __NO_RETURN __attribute__((__noreturn__))
|
||
54:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
55:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __USED
|
||
56:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __USED __attribute__((used))
|
||
57:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
58:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __WEAK
|
||
59:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __WEAK __attribute__((weak))
|
||
60:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
61:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __PACKED
|
||
62:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __PACKED __attribute__((packed, aligned(1)))
|
||
63:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
64:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __PACKED_STRUCT
|
||
65:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __PACKED_STRUCT struct __attribute__((packed, aligned(1)))
|
||
66:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
67:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __PACKED_UNION
|
||
68:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __PACKED_UNION union __attribute__((packed, aligned(1)))
|
||
69:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
70:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT32 /* deprecated */
|
||
71:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
|
||
72:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
|
||
73:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
|
||
74:Drivers/CMSIS/Include/cmsis_gcc.h **** struct __attribute__((packed)) T_UINT32 { uint32_t v; };
|
||
75:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
|
||
76:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v)
|
||
77:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
78:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT16_WRITE
|
||
79:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
|
||
80:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
|
||
81:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
|
||
82:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; };
|
||
83:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
|
||
84:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))-
|
||
ARM GAS /tmp/ccNYH43h.s page 7
|
||
|
||
|
||
85:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
86:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT16_READ
|
||
87:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
|
||
88:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
|
||
89:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
|
||
90:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT16_READ { uint16_t v; };
|
||
91:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
|
||
92:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(add
|
||
93:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
94:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT32_WRITE
|
||
95:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
|
||
96:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
|
||
97:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
|
||
98:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; };
|
||
99:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
|
||
100:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))-
|
||
101:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
102:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT32_READ
|
||
103:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
|
||
104:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
|
||
105:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
|
||
106:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT32_READ { uint32_t v; };
|
||
107:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
|
||
108:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(add
|
||
109:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
110:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __ALIGNED
|
||
111:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __ALIGNED(x) __attribute__((aligned(x)))
|
||
112:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
113:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __RESTRICT
|
||
114:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __RESTRICT __restrict
|
||
115:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
116:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __COMPILER_BARRIER
|
||
117:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __COMPILER_BARRIER() __ASM volatile("":::"memory")
|
||
118:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
119:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
120:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ######################### Startup and Lowlevel Init ######################## */
|
||
121:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
122:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __PROGRAM_START
|
||
123:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
124:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
125:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Initializes data and bss sections
|
||
126:Drivers/CMSIS/Include/cmsis_gcc.h **** \details This default implementations initialized all data and additional bss
|
||
127:Drivers/CMSIS/Include/cmsis_gcc.h **** sections relying on .copy.table and .zero.table specified properly
|
||
128:Drivers/CMSIS/Include/cmsis_gcc.h **** in the used linker script.
|
||
129:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
130:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
131:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE __NO_RETURN void __cmsis_start(void)
|
||
132:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
133:Drivers/CMSIS/Include/cmsis_gcc.h **** extern void _start(void) __NO_RETURN;
|
||
134:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
135:Drivers/CMSIS/Include/cmsis_gcc.h **** typedef struct {
|
||
136:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t const* src;
|
||
137:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t* dest;
|
||
138:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t wlen;
|
||
139:Drivers/CMSIS/Include/cmsis_gcc.h **** } __copy_table_t;
|
||
140:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
141:Drivers/CMSIS/Include/cmsis_gcc.h **** typedef struct {
|
||
ARM GAS /tmp/ccNYH43h.s page 8
|
||
|
||
|
||
142:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t* dest;
|
||
143:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t wlen;
|
||
144:Drivers/CMSIS/Include/cmsis_gcc.h **** } __zero_table_t;
|
||
145:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
146:Drivers/CMSIS/Include/cmsis_gcc.h **** extern const __copy_table_t __copy_table_start__;
|
||
147:Drivers/CMSIS/Include/cmsis_gcc.h **** extern const __copy_table_t __copy_table_end__;
|
||
148:Drivers/CMSIS/Include/cmsis_gcc.h **** extern const __zero_table_t __zero_table_start__;
|
||
149:Drivers/CMSIS/Include/cmsis_gcc.h **** extern const __zero_table_t __zero_table_end__;
|
||
150:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
151:Drivers/CMSIS/Include/cmsis_gcc.h **** for (__copy_table_t const* pTable = &__copy_table_start__; pTable < &__copy_table_end__; ++pTable
|
||
152:Drivers/CMSIS/Include/cmsis_gcc.h **** for(uint32_t i=0u; i<pTable->wlen; ++i) {
|
||
153:Drivers/CMSIS/Include/cmsis_gcc.h **** pTable->dest[i] = pTable->src[i];
|
||
154:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
155:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
156:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
157:Drivers/CMSIS/Include/cmsis_gcc.h **** for (__zero_table_t const* pTable = &__zero_table_start__; pTable < &__zero_table_end__; ++pTable
|
||
158:Drivers/CMSIS/Include/cmsis_gcc.h **** for(uint32_t i=0u; i<pTable->wlen; ++i) {
|
||
159:Drivers/CMSIS/Include/cmsis_gcc.h **** pTable->dest[i] = 0u;
|
||
160:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
161:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
162:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
163:Drivers/CMSIS/Include/cmsis_gcc.h **** _start();
|
||
164:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
165:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
166:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __PROGRAM_START __cmsis_start
|
||
167:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
168:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
169:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __INITIAL_SP
|
||
170:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __INITIAL_SP __StackTop
|
||
171:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
172:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
173:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __STACK_LIMIT
|
||
174:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __STACK_LIMIT __StackLimit
|
||
175:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
176:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
177:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __VECTOR_TABLE
|
||
178:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __VECTOR_TABLE __Vectors
|
||
179:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
180:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
181:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __VECTOR_TABLE_ATTRIBUTE
|
||
182:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __VECTOR_TABLE_ATTRIBUTE __attribute__((used, section(".vectors")))
|
||
183:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
184:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
185:Drivers/CMSIS/Include/cmsis_gcc.h **** #if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
|
||
186:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __STACK_SEAL
|
||
187:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __STACK_SEAL __StackSeal
|
||
188:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
189:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
190:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __TZ_STACK_SEAL_SIZE
|
||
191:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __TZ_STACK_SEAL_SIZE 8U
|
||
192:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
193:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
194:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __TZ_STACK_SEAL_VALUE
|
||
195:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __TZ_STACK_SEAL_VALUE 0xFEF5EDA5FEF5EDA5ULL
|
||
196:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
197:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
198:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
ARM GAS /tmp/ccNYH43h.s page 9
|
||
|
||
|
||
199:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_STACKSEAL_S (uint32_t* stackTop) {
|
||
200:Drivers/CMSIS/Include/cmsis_gcc.h **** *((uint64_t *)stackTop) = __TZ_STACK_SEAL_VALUE;
|
||
201:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
202:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
203:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
204:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
205:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ########################## Core Instruction Access ######################### */
|
||
206:Drivers/CMSIS/Include/cmsis_gcc.h **** /** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface
|
||
207:Drivers/CMSIS/Include/cmsis_gcc.h **** Access to dedicated instructions
|
||
208:Drivers/CMSIS/Include/cmsis_gcc.h **** @{
|
||
209:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
210:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
211:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Define macros for porting to both thumb1 and thumb2.
|
||
212:Drivers/CMSIS/Include/cmsis_gcc.h **** * For thumb1, use low register (r0-r7), specified by constraint "l"
|
||
213:Drivers/CMSIS/Include/cmsis_gcc.h **** * Otherwise, use general registers, specified by constraint "r" */
|
||
214:Drivers/CMSIS/Include/cmsis_gcc.h **** #if defined (__thumb__) && !defined (__thumb2__)
|
||
215:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_OUT_REG(r) "=l" (r)
|
||
216:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_RW_REG(r) "+l" (r)
|
||
217:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_USE_REG(r) "l" (r)
|
||
218:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
|
||
219:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_OUT_REG(r) "=r" (r)
|
||
220:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_RW_REG(r) "+r" (r)
|
||
221:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_USE_REG(r) "r" (r)
|
||
222:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
223:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
224:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
225:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief No Operation
|
||
226:Drivers/CMSIS/Include/cmsis_gcc.h **** \details No Operation does nothing. This instruction can be used for code alignment purposes.
|
||
227:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
228:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __NOP() __ASM volatile ("nop")
|
||
229:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
230:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
231:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Wait For Interrupt
|
||
232:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Wait For Interrupt is a hint instruction that suspends execution until one of a number o
|
||
233:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
234:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __WFI() __ASM volatile ("wfi":::"memory")
|
||
235:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
236:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
237:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
238:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Wait For Event
|
||
239:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Wait For Event is a hint instruction that permits the processor to enter
|
||
240:Drivers/CMSIS/Include/cmsis_gcc.h **** a low-power state until one of a number of events occurs.
|
||
241:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
242:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __WFE() __ASM volatile ("wfe":::"memory")
|
||
243:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
244:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
245:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
246:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Send Event
|
||
247:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Send Event is a hint instruction. It causes an event to be signaled to the CPU.
|
||
248:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
249:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __SEV() __ASM volatile ("sev")
|
||
250:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
251:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
252:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
253:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Instruction Synchronization Barrier
|
||
254:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Instruction Synchronization Barrier flushes the pipeline in the processor,
|
||
255:Drivers/CMSIS/Include/cmsis_gcc.h **** so that all instructions following the ISB are fetched from cache or memory,
|
||
ARM GAS /tmp/ccNYH43h.s page 10
|
||
|
||
|
||
256:Drivers/CMSIS/Include/cmsis_gcc.h **** after the instruction has been completed.
|
||
257:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
258:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __ISB(void)
|
||
259:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
260:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("isb 0xF":::"memory");
|
||
261:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
262:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
263:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
264:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
265:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Data Synchronization Barrier
|
||
266:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Acts as a special kind of Data Memory Barrier.
|
||
267:Drivers/CMSIS/Include/cmsis_gcc.h **** It completes when all explicit memory accesses before this instruction complete.
|
||
268:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
269:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __DSB(void)
|
||
270:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
271:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("dsb 0xF":::"memory");
|
||
272:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
273:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
274:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
275:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
276:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Data Memory Barrier
|
||
277:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Ensures the apparent order of the explicit memory operations before
|
||
278:Drivers/CMSIS/Include/cmsis_gcc.h **** and after the instruction, without ensuring their completion.
|
||
279:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
280:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __DMB(void)
|
||
281:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
282:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("dmb 0xF":::"memory");
|
||
283:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
284:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
285:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
286:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
287:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Reverse byte order (32 bit)
|
||
288:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x785
|
||
289:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to reverse
|
||
290:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Reversed value
|
||
291:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
292:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __REV(uint32_t value)
|
||
293:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
294:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
|
||
295:Drivers/CMSIS/Include/cmsis_gcc.h **** return __builtin_bswap32(value);
|
||
296:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
|
||
297:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
298:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
299:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM ("rev %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) );
|
||
300:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
|
||
301:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
302:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
303:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
304:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
305:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
306:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Reverse byte order (16 bit)
|
||
307:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes
|
||
308:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to reverse
|
||
309:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Reversed value
|
||
310:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
311:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __REV16(uint32_t value)
|
||
312:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
ARM GAS /tmp/ccNYH43h.s page 11
|
||
|
||
|
||
313:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
314:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
315:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM ("rev16 %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) );
|
||
316:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
|
||
317:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
318:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
319:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
320:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
321:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Reverse byte order (16 bit)
|
||
322:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For exam
|
||
323:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to reverse
|
||
324:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Reversed value
|
||
325:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
326:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE int16_t __REVSH(int16_t value)
|
||
327:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
328:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
|
||
329:Drivers/CMSIS/Include/cmsis_gcc.h **** return (int16_t)__builtin_bswap16(value);
|
||
330:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
|
||
331:Drivers/CMSIS/Include/cmsis_gcc.h **** int16_t result;
|
||
332:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
333:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM ("revsh %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) );
|
||
334:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
|
||
335:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
336:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
337:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
338:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
339:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
340:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Rotate Right in unsigned value (32 bit)
|
||
341:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Rotate Right (immediate) provides the value of the contents of a register rotated by a v
|
||
342:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] op1 Value to rotate
|
||
343:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] op2 Number of Bits to rotate
|
||
344:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Rotated value
|
||
345:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
346:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
|
||
347:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
348:Drivers/CMSIS/Include/cmsis_gcc.h **** op2 %= 32U;
|
||
349:Drivers/CMSIS/Include/cmsis_gcc.h **** if (op2 == 0U)
|
||
350:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
351:Drivers/CMSIS/Include/cmsis_gcc.h **** return op1;
|
||
352:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
353:Drivers/CMSIS/Include/cmsis_gcc.h **** return (op1 >> op2) | (op1 << (32U - op2));
|
||
354:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
355:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
356:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
357:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
358:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Breakpoint
|
||
359:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Causes the processor to enter Debug state.
|
||
360:Drivers/CMSIS/Include/cmsis_gcc.h **** Debug tools can use this to investigate system state when the instruction at a particula
|
||
361:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value is ignored by the processor.
|
||
362:Drivers/CMSIS/Include/cmsis_gcc.h **** If required, a debugger can use it to store additional information about the break
|
||
363:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
364:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __BKPT(value) __ASM volatile ("bkpt "#value)
|
||
365:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
366:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
367:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
368:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Reverse bit order of value
|
||
369:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Reverses the bit order of the given value.
|
||
ARM GAS /tmp/ccNYH43h.s page 12
|
||
|
||
|
||
370:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to reverse
|
||
371:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Reversed value
|
||
372:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
373:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __RBIT(uint32_t value)
|
||
374:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
375:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
376:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
377:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
|
||
378:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
|
||
379:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
|
||
380:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM ("rbit %0, %1" : "=r" (result) : "r" (value) );
|
||
381:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
|
||
382:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t s = (4U /*sizeof(v)*/ * 8U) - 1U; /* extra shift needed at end */
|
||
383:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
384:Drivers/CMSIS/Include/cmsis_gcc.h **** result = value; /* r will be reversed bits of v; first get LSB of v */
|
||
385:Drivers/CMSIS/Include/cmsis_gcc.h **** for (value >>= 1U; value != 0U; value >>= 1U)
|
||
386:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
387:Drivers/CMSIS/Include/cmsis_gcc.h **** result <<= 1U;
|
||
388:Drivers/CMSIS/Include/cmsis_gcc.h **** result |= value & 1U;
|
||
389:Drivers/CMSIS/Include/cmsis_gcc.h **** s--;
|
||
390:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
391:Drivers/CMSIS/Include/cmsis_gcc.h **** result <<= s; /* shift when v's highest bits are zero */
|
||
392:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
393:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
|
||
394:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
395:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
396:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
397:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
398:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Count leading zeros
|
||
399:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Counts the number of leading zeros of a data value.
|
||
400:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to count the leading zeros
|
||
401:Drivers/CMSIS/Include/cmsis_gcc.h **** \return number of leading zeros in value
|
||
402:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
403:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint8_t __CLZ(uint32_t value)
|
||
404:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
405:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Even though __builtin_clz produces a CLZ instruction on ARM, formally
|
||
406:Drivers/CMSIS/Include/cmsis_gcc.h **** __builtin_clz(0) is undefined behaviour, so handle this case specially.
|
||
407:Drivers/CMSIS/Include/cmsis_gcc.h **** This guarantees ARM-compatible results if happening to compile on a non-ARM
|
||
408:Drivers/CMSIS/Include/cmsis_gcc.h **** target, and ensures the compiler doesn't decide to activate any
|
||
409:Drivers/CMSIS/Include/cmsis_gcc.h **** optimisations using the logic "value was passed to __builtin_clz, so it
|
||
410:Drivers/CMSIS/Include/cmsis_gcc.h **** is non-zero".
|
||
411:Drivers/CMSIS/Include/cmsis_gcc.h **** ARM GCC 7.3 and possibly earlier will optimise this test away, leaving a
|
||
412:Drivers/CMSIS/Include/cmsis_gcc.h **** single CLZ instruction.
|
||
413:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
414:Drivers/CMSIS/Include/cmsis_gcc.h **** if (value == 0U)
|
||
415:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
416:Drivers/CMSIS/Include/cmsis_gcc.h **** return 32U;
|
||
417:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
418:Drivers/CMSIS/Include/cmsis_gcc.h **** return __builtin_clz(value);
|
||
419:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
420:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
421:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
422:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
|
||
423:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
|
||
424:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \
|
||
425:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) )
|
||
426:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
ARM GAS /tmp/ccNYH43h.s page 13
|
||
|
||
|
||
427:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief LDR Exclusive (8 bit)
|
||
428:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a exclusive LDR instruction for 8 bit value.
|
||
429:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to data
|
||
430:Drivers/CMSIS/Include/cmsis_gcc.h **** \return value of type uint8_t at (*ptr)
|
||
431:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
432:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint8_t __LDREXB(volatile uint8_t *addr)
|
||
433:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
434:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
435:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
436:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
|
||
437:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldrexb %0, %1" : "=r" (result) : "Q" (*addr) );
|
||
438:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
|
||
439:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not
|
||
440:Drivers/CMSIS/Include/cmsis_gcc.h **** accepted by assembler. So has to use following less efficient pattern.
|
||
441:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
442:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) : "memory" );
|
||
443:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
444:Drivers/CMSIS/Include/cmsis_gcc.h **** return ((uint8_t) result); /* Add explicit type cast here */
|
||
445:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
446:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
447:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
448:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
449:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief LDR Exclusive (16 bit)
|
||
450:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a exclusive LDR instruction for 16 bit values.
|
||
451:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to data
|
||
452:Drivers/CMSIS/Include/cmsis_gcc.h **** \return value of type uint16_t at (*ptr)
|
||
453:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
454:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint16_t __LDREXH(volatile uint16_t *addr)
|
||
455:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
456:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
457:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
458:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
|
||
459:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldrexh %0, %1" : "=r" (result) : "Q" (*addr) );
|
||
460:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
|
||
461:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not
|
||
462:Drivers/CMSIS/Include/cmsis_gcc.h **** accepted by assembler. So has to use following less efficient pattern.
|
||
463:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
464:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) : "memory" );
|
||
465:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
466:Drivers/CMSIS/Include/cmsis_gcc.h **** return ((uint16_t) result); /* Add explicit type cast here */
|
||
467:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
468:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
469:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
470:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
471:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief LDR Exclusive (32 bit)
|
||
472:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a exclusive LDR instruction for 32 bit values.
|
||
473:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to data
|
||
474:Drivers/CMSIS/Include/cmsis_gcc.h **** \return value of type uint32_t at (*ptr)
|
||
475:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
476:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr)
|
||
477:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
478:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
479:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
480:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
|
||
481:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
|
||
482:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
483:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
ARM GAS /tmp/ccNYH43h.s page 14
|
||
|
||
|
||
484:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
485:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
486:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief STR Exclusive (8 bit)
|
||
487:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a exclusive STR instruction for 8 bit values.
|
||
488:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to store
|
||
489:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to location
|
||
490:Drivers/CMSIS/Include/cmsis_gcc.h **** \return 0 Function succeeded
|
||
491:Drivers/CMSIS/Include/cmsis_gcc.h **** \return 1 Function failed
|
||
492:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
493:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __STREXB(uint8_t value, volatile uint8_t *addr)
|
||
494:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
495:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
496:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
497:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("strexb %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" ((uint32_t)value) );
|
||
498:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
|
||
499:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
500:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
501:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
502:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
503:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief STR Exclusive (16 bit)
|
||
504:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a exclusive STR instruction for 16 bit values.
|
||
505:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to store
|
||
506:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to location
|
||
507:Drivers/CMSIS/Include/cmsis_gcc.h **** \return 0 Function succeeded
|
||
508:Drivers/CMSIS/Include/cmsis_gcc.h **** \return 1 Function failed
|
||
509:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
510:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __STREXH(uint16_t value, volatile uint16_t *addr)
|
||
511:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
512:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
513:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
514:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("strexh %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" ((uint32_t)value) );
|
||
515:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
|
||
516:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
517:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
518:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
519:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
520:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief STR Exclusive (32 bit)
|
||
521:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a exclusive STR instruction for 32 bit values.
|
||
522:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to store
|
||
523:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to location
|
||
524:Drivers/CMSIS/Include/cmsis_gcc.h **** \return 0 Function succeeded
|
||
525:Drivers/CMSIS/Include/cmsis_gcc.h **** \return 1 Function failed
|
||
526:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
527:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr)
|
||
528:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
529:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
530:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
531:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
|
||
532:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
|
||
533:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
534:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
535:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
536:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
537:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Remove the exclusive lock
|
||
538:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Removes the exclusive lock which is created by LDREX.
|
||
539:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
540:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __CLREX(void)
|
||
ARM GAS /tmp/ccNYH43h.s page 15
|
||
|
||
|
||
541:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
542:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("clrex" ::: "memory");
|
||
543:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
544:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
545:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
|
||
546:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
|
||
547:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \
|
||
548:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */
|
||
549:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
550:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
551:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
|
||
552:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
|
||
553:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
|
||
554:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
555:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Signed Saturate
|
||
556:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Saturates a signed value.
|
||
557:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ARG1 Value to be saturated
|
||
558:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ARG2 Bit position to saturate to (1..32)
|
||
559:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Saturated value
|
||
560:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
561:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __SSAT(ARG1, ARG2) \
|
||
562:Drivers/CMSIS/Include/cmsis_gcc.h **** __extension__ \
|
||
563:Drivers/CMSIS/Include/cmsis_gcc.h **** ({ \
|
||
564:Drivers/CMSIS/Include/cmsis_gcc.h **** int32_t __RES, __ARG1 = (ARG1); \
|
||
565:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ssat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) : "cc" ); \
|
||
566:Drivers/CMSIS/Include/cmsis_gcc.h **** __RES; \
|
||
567:Drivers/CMSIS/Include/cmsis_gcc.h **** })
|
||
568:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
569:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
570:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
571:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Unsigned Saturate
|
||
572:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Saturates an unsigned value.
|
||
573:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ARG1 Value to be saturated
|
||
574:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ARG2 Bit position to saturate to (0..31)
|
||
575:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Saturated value
|
||
576:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
577:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __USAT(ARG1, ARG2) \
|
||
578:Drivers/CMSIS/Include/cmsis_gcc.h **** __extension__ \
|
||
579:Drivers/CMSIS/Include/cmsis_gcc.h **** ({ \
|
||
580:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t __RES, __ARG1 = (ARG1); \
|
||
581:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("usat %0, %1, %2" : "=r" (__RES) : "I" (ARG2), "r" (__ARG1) : "cc" ); \
|
||
582:Drivers/CMSIS/Include/cmsis_gcc.h **** __RES; \
|
||
583:Drivers/CMSIS/Include/cmsis_gcc.h **** })
|
||
584:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
585:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
586:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
587:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Rotate Right with Extend (32 bit)
|
||
588:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Moves each bit of a bitstring right by one bit.
|
||
589:Drivers/CMSIS/Include/cmsis_gcc.h **** The carry input is shifted in at the left end of the bitstring.
|
||
590:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to rotate
|
||
591:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Rotated value
|
||
592:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
593:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __RRX(uint32_t value)
|
||
594:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
595:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
596:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
597:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("rrx %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) );
|
||
ARM GAS /tmp/ccNYH43h.s page 16
|
||
|
||
|
||
598:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
|
||
599:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
600:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
601:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
602:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
603:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief LDRT Unprivileged (8 bit)
|
||
604:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a Unprivileged LDRT instruction for 8 bit value.
|
||
605:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to data
|
||
606:Drivers/CMSIS/Include/cmsis_gcc.h **** \return value of type uint8_t at (*ptr)
|
||
607:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
608:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint8_t __LDRBT(volatile uint8_t *ptr)
|
||
609:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
610:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
611:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
612:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
|
||
613:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldrbt %0, %1" : "=r" (result) : "Q" (*ptr) );
|
||
614:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
|
||
615:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not
|
||
616:Drivers/CMSIS/Include/cmsis_gcc.h **** accepted by assembler. So has to use following less efficient pattern.
|
||
617:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
618:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldrbt %0, [%1]" : "=r" (result) : "r" (ptr) : "memory" );
|
||
619:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
620:Drivers/CMSIS/Include/cmsis_gcc.h **** return ((uint8_t) result); /* Add explicit type cast here */
|
||
621:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
622:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
623:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
624:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
625:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief LDRT Unprivileged (16 bit)
|
||
626:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a Unprivileged LDRT instruction for 16 bit values.
|
||
627:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to data
|
||
628:Drivers/CMSIS/Include/cmsis_gcc.h **** \return value of type uint16_t at (*ptr)
|
||
629:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
630:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint16_t __LDRHT(volatile uint16_t *ptr)
|
||
631:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
632:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
633:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
634:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
|
||
635:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldrht %0, %1" : "=r" (result) : "Q" (*ptr) );
|
||
636:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
|
||
637:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Prior to GCC 4.8, "Q" will be expanded to [rx, #0] which is not
|
||
638:Drivers/CMSIS/Include/cmsis_gcc.h **** accepted by assembler. So has to use following less efficient pattern.
|
||
639:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
640:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldrht %0, [%1]" : "=r" (result) : "r" (ptr) : "memory" );
|
||
641:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
|
||
642:Drivers/CMSIS/Include/cmsis_gcc.h **** return ((uint16_t) result); /* Add explicit type cast here */
|
||
643:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
644:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
645:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
646:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
647:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief LDRT Unprivileged (32 bit)
|
||
648:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a Unprivileged LDRT instruction for 32 bit values.
|
||
649:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to data
|
||
650:Drivers/CMSIS/Include/cmsis_gcc.h **** \return value of type uint32_t at (*ptr)
|
||
651:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
652:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __LDRT(volatile uint32_t *ptr)
|
||
653:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
654:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
ARM GAS /tmp/ccNYH43h.s page 17
|
||
|
||
|
||
655:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
656:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldrt %0, %1" : "=r" (result) : "Q" (*ptr) );
|
||
657:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
|
||
658:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
659:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
660:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
661:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
662:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief STRT Unprivileged (8 bit)
|
||
663:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a Unprivileged STRT instruction for 8 bit values.
|
||
664:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to store
|
||
665:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to location
|
||
666:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
667:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __STRBT(uint8_t value, volatile uint8_t *ptr)
|
||
668:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
669:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("strbt %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) );
|
||
670:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
671:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
672:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
673:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
674:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief STRT Unprivileged (16 bit)
|
||
675:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a Unprivileged STRT instruction for 16 bit values.
|
||
676:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to store
|
||
677:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to location
|
||
678:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
679:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __STRHT(uint16_t value, volatile uint16_t *ptr)
|
||
680:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
681:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("strht %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) );
|
||
682:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
683:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
684:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
685:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
686:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief STRT Unprivileged (32 bit)
|
||
687:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a Unprivileged STRT instruction for 32 bit values.
|
||
688:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to store
|
||
689:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to location
|
||
690:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
691:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __STRT(uint32_t value, volatile uint32_t *ptr)
|
||
692:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
693:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("strt %1, %0" : "=Q" (*ptr) : "r" (value) );
|
||
694:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
695:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
696:Drivers/CMSIS/Include/cmsis_gcc.h **** #else /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
|
||
697:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
|
||
698:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */
|
||
699:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
700:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
701:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Signed Saturate
|
||
702:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Saturates a signed value.
|
||
703:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to be saturated
|
||
704:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] sat Bit position to saturate to (1..32)
|
||
705:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Saturated value
|
||
706:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
707:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE int32_t __SSAT(int32_t val, uint32_t sat)
|
||
708:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
709:Drivers/CMSIS/Include/cmsis_gcc.h **** if ((sat >= 1U) && (sat <= 32U))
|
||
710:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
711:Drivers/CMSIS/Include/cmsis_gcc.h **** const int32_t max = (int32_t)((1U << (sat - 1U)) - 1U);
|
||
ARM GAS /tmp/ccNYH43h.s page 18
|
||
|
||
|
||
712:Drivers/CMSIS/Include/cmsis_gcc.h **** const int32_t min = -1 - max ;
|
||
713:Drivers/CMSIS/Include/cmsis_gcc.h **** if (val > max)
|
||
714:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
715:Drivers/CMSIS/Include/cmsis_gcc.h **** return max;
|
||
716:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
717:Drivers/CMSIS/Include/cmsis_gcc.h **** else if (val < min)
|
||
718:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
719:Drivers/CMSIS/Include/cmsis_gcc.h **** return min;
|
||
720:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
721:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
722:Drivers/CMSIS/Include/cmsis_gcc.h **** return val;
|
||
723:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
724:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
725:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
726:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Unsigned Saturate
|
||
727:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Saturates an unsigned value.
|
||
728:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to be saturated
|
||
729:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] sat Bit position to saturate to (0..31)
|
||
730:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Saturated value
|
||
731:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
732:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __USAT(int32_t val, uint32_t sat)
|
||
733:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
734:Drivers/CMSIS/Include/cmsis_gcc.h **** if (sat <= 31U)
|
||
735:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
736:Drivers/CMSIS/Include/cmsis_gcc.h **** const uint32_t max = ((1U << sat) - 1U);
|
||
737:Drivers/CMSIS/Include/cmsis_gcc.h **** if (val > (int32_t)max)
|
||
738:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
739:Drivers/CMSIS/Include/cmsis_gcc.h **** return max;
|
||
740:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
741:Drivers/CMSIS/Include/cmsis_gcc.h **** else if (val < 0)
|
||
742:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
743:Drivers/CMSIS/Include/cmsis_gcc.h **** return 0U;
|
||
744:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
745:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
746:Drivers/CMSIS/Include/cmsis_gcc.h **** return (uint32_t)val;
|
||
747:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
748:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
749:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
|
||
750:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
|
||
751:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */
|
||
752:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
753:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
754:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \
|
||
755:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) )
|
||
756:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
757:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Load-Acquire (8 bit)
|
||
758:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a LDAB instruction for 8 bit value.
|
||
759:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to data
|
||
760:Drivers/CMSIS/Include/cmsis_gcc.h **** \return value of type uint8_t at (*ptr)
|
||
761:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
762:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint8_t __LDAB(volatile uint8_t *ptr)
|
||
763:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
764:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
765:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
766:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldab %0, %1" : "=r" (result) : "Q" (*ptr) : "memory" );
|
||
767:Drivers/CMSIS/Include/cmsis_gcc.h **** return ((uint8_t) result);
|
||
768:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
ARM GAS /tmp/ccNYH43h.s page 19
|
||
|
||
|
||
769:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
770:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
771:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
772:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Load-Acquire (16 bit)
|
||
773:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a LDAH instruction for 16 bit values.
|
||
774:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to data
|
||
775:Drivers/CMSIS/Include/cmsis_gcc.h **** \return value of type uint16_t at (*ptr)
|
||
776:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
777:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint16_t __LDAH(volatile uint16_t *ptr)
|
||
778:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
779:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
780:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
781:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldah %0, %1" : "=r" (result) : "Q" (*ptr) : "memory" );
|
||
782:Drivers/CMSIS/Include/cmsis_gcc.h **** return ((uint16_t) result);
|
||
783:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
784:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
785:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
786:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
787:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Load-Acquire (32 bit)
|
||
788:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a LDA instruction for 32 bit values.
|
||
789:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to data
|
||
790:Drivers/CMSIS/Include/cmsis_gcc.h **** \return value of type uint32_t at (*ptr)
|
||
791:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
792:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __LDA(volatile uint32_t *ptr)
|
||
793:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
794:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
795:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
796:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("lda %0, %1" : "=r" (result) : "Q" (*ptr) : "memory" );
|
||
797:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
|
||
798:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
799:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
800:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
801:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
802:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Store-Release (8 bit)
|
||
803:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a STLB instruction for 8 bit values.
|
||
804:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to store
|
||
805:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to location
|
||
806:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
807:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __STLB(uint8_t value, volatile uint8_t *ptr)
|
||
808:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
809:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("stlb %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) : "memory" );
|
||
810:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
811:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
812:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
813:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
814:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Store-Release (16 bit)
|
||
815:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a STLH instruction for 16 bit values.
|
||
816:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to store
|
||
817:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to location
|
||
818:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
819:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __STLH(uint16_t value, volatile uint16_t *ptr)
|
||
820:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
821:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("stlh %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) : "memory" );
|
||
822:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
823:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
824:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
825:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
ARM GAS /tmp/ccNYH43h.s page 20
|
||
|
||
|
||
826:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Store-Release (32 bit)
|
||
827:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a STL instruction for 32 bit values.
|
||
828:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to store
|
||
829:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to location
|
||
830:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
831:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __STL(uint32_t value, volatile uint32_t *ptr)
|
||
832:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
833:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("stl %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) : "memory" );
|
||
834:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
835:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
836:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
837:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
838:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Load-Acquire Exclusive (8 bit)
|
||
839:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a LDAB exclusive instruction for 8 bit value.
|
||
840:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to data
|
||
841:Drivers/CMSIS/Include/cmsis_gcc.h **** \return value of type uint8_t at (*ptr)
|
||
842:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
843:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint8_t __LDAEXB(volatile uint8_t *ptr)
|
||
844:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
845:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
846:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
847:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldaexb %0, %1" : "=r" (result) : "Q" (*ptr) : "memory" );
|
||
848:Drivers/CMSIS/Include/cmsis_gcc.h **** return ((uint8_t) result);
|
||
849:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
850:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
851:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
852:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
853:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Load-Acquire Exclusive (16 bit)
|
||
854:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a LDAH exclusive instruction for 16 bit values.
|
||
855:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to data
|
||
856:Drivers/CMSIS/Include/cmsis_gcc.h **** \return value of type uint16_t at (*ptr)
|
||
857:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
858:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint16_t __LDAEXH(volatile uint16_t *ptr)
|
||
859:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
860:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
861:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
862:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldaexh %0, %1" : "=r" (result) : "Q" (*ptr) : "memory" );
|
||
863:Drivers/CMSIS/Include/cmsis_gcc.h **** return ((uint16_t) result);
|
||
864:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
865:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
866:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
867:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
868:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Load-Acquire Exclusive (32 bit)
|
||
869:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a LDA exclusive instruction for 32 bit values.
|
||
870:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to data
|
||
871:Drivers/CMSIS/Include/cmsis_gcc.h **** \return value of type uint32_t at (*ptr)
|
||
872:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
873:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __LDAEX(volatile uint32_t *ptr)
|
||
874:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
875:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
876:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
877:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("ldaex %0, %1" : "=r" (result) : "Q" (*ptr) : "memory" );
|
||
878:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
|
||
879:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
880:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
881:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
882:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
ARM GAS /tmp/ccNYH43h.s page 21
|
||
|
||
|
||
883:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Store-Release Exclusive (8 bit)
|
||
884:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a STLB exclusive instruction for 8 bit values.
|
||
885:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to store
|
||
886:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to location
|
||
887:Drivers/CMSIS/Include/cmsis_gcc.h **** \return 0 Function succeeded
|
||
888:Drivers/CMSIS/Include/cmsis_gcc.h **** \return 1 Function failed
|
||
889:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
890:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __STLEXB(uint8_t value, volatile uint8_t *ptr)
|
||
891:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
892:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
893:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
894:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("stlexb %0, %2, %1" : "=&r" (result), "=Q" (*ptr) : "r" ((uint32_t)value) : "mem
|
||
895:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
|
||
896:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
897:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
898:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
899:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
900:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Store-Release Exclusive (16 bit)
|
||
901:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a STLH exclusive instruction for 16 bit values.
|
||
902:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to store
|
||
903:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to location
|
||
904:Drivers/CMSIS/Include/cmsis_gcc.h **** \return 0 Function succeeded
|
||
905:Drivers/CMSIS/Include/cmsis_gcc.h **** \return 1 Function failed
|
||
906:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
907:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __STLEXH(uint16_t value, volatile uint16_t *ptr)
|
||
908:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
909:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
910:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
911:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("stlexh %0, %2, %1" : "=&r" (result), "=Q" (*ptr) : "r" ((uint32_t)value) : "mem
|
||
912:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
|
||
913:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
914:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
915:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
916:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
917:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Store-Release Exclusive (32 bit)
|
||
918:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Executes a STL exclusive instruction for 32 bit values.
|
||
919:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] value Value to store
|
||
920:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ptr Pointer to location
|
||
921:Drivers/CMSIS/Include/cmsis_gcc.h **** \return 0 Function succeeded
|
||
922:Drivers/CMSIS/Include/cmsis_gcc.h **** \return 1 Function failed
|
||
923:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
924:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __STLEX(uint32_t value, volatile uint32_t *ptr)
|
||
925:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
926:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
|
||
927:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
928:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("stlex %0, %2, %1" : "=&r" (result), "=Q" (*ptr) : "r" ((uint32_t)value) : "memo
|
||
929:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
|
||
930:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
931:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
932:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif /* ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \
|
||
933:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */
|
||
934:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
935:Drivers/CMSIS/Include/cmsis_gcc.h **** /*@}*/ /* end of group CMSIS_Core_InstructionInterface */
|
||
936:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
937:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
938:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ########################### Core Function Access ########################### */
|
||
939:Drivers/CMSIS/Include/cmsis_gcc.h **** /** \ingroup CMSIS_Core_FunctionInterface
|
||
ARM GAS /tmp/ccNYH43h.s page 22
|
||
|
||
|
||
940:Drivers/CMSIS/Include/cmsis_gcc.h **** \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions
|
||
941:Drivers/CMSIS/Include/cmsis_gcc.h **** @{
|
||
942:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
943:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
944:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
945:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Enable IRQ Interrupts
|
||
946:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Enables IRQ interrupts by clearing special-purpose register PRIMASK.
|
||
947:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes.
|
||
948:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
949:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __enable_irq(void)
|
||
950:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
951:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsie i" : : : "memory");
|
||
952:Drivers/CMSIS/Include/cmsis_gcc.h **** }
|
||
953:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
954:Drivers/CMSIS/Include/cmsis_gcc.h ****
|
||
955:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
|
||
956:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Disable IRQ Interrupts
|
||
957:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Disables IRQ interrupts by setting special-purpose register PRIMASK.
|
||
958:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes.
|
||
959:Drivers/CMSIS/Include/cmsis_gcc.h **** */
|
||
960:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __disable_irq(void)
|
||
82 .loc 2 960 27 view .LVU9
|
||
83 .LBB5:
|
||
961:Drivers/CMSIS/Include/cmsis_gcc.h **** {
|
||
962:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsid i" : : : "memory");
|
||
84 .loc 2 962 3 view .LVU10
|
||
85 .syntax unified
|
||
86 @ 962 "Drivers/CMSIS/Include/cmsis_gcc.h" 1
|
||
87 0000 72B6 cpsid i
|
||
88 @ 0 "" 2
|
||
89 .thumb
|
||
90 .syntax unified
|
||
91 .L6:
|
||
92 .LBE5:
|
||
93 .LBE4:
|
||
181:Src/main.c **** while (1)
|
||
94 .loc 1 181 3 discriminator 1 view .LVU11
|
||
182:Src/main.c **** {
|
||
183:Src/main.c **** }
|
||
95 .loc 1 183 3 discriminator 1 view .LVU12
|
||
181:Src/main.c **** while (1)
|
||
96 .loc 1 181 9 discriminator 1 view .LVU13
|
||
97 0002 FEE7 b .L6
|
||
98 .cfi_endproc
|
||
99 .LFE140:
|
||
101 .section .text.SystemClock_Config,"ax",%progbits
|
||
102 .align 1
|
||
103 .global SystemClock_Config
|
||
104 .syntax unified
|
||
105 .thumb
|
||
106 .thumb_func
|
||
108 SystemClock_Config:
|
||
109 .LFB139:
|
||
125:Src/main.c **** RCC_OscInitTypeDef RCC_OscInitStruct = {0};
|
||
110 .loc 1 125 1 view -0
|
||
111 .cfi_startproc
|
||
112 @ args = 0, pretend = 0, frame = 80
|
||
ARM GAS /tmp/ccNYH43h.s page 23
|
||
|
||
|
||
113 @ frame_needed = 0, uses_anonymous_args = 0
|
||
114 0000 00B5 push {lr}
|
||
115 .LCFI1:
|
||
116 .cfi_def_cfa_offset 4
|
||
117 .cfi_offset 14, -4
|
||
118 0002 95B0 sub sp, sp, #84
|
||
119 .LCFI2:
|
||
120 .cfi_def_cfa_offset 88
|
||
126:Src/main.c **** RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
|
||
121 .loc 1 126 3 view .LVU15
|
||
126:Src/main.c **** RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
|
||
122 .loc 1 126 22 is_stmt 0 view .LVU16
|
||
123 0004 3022 movs r2, #48
|
||
124 0006 0021 movs r1, #0
|
||
125 0008 08A8 add r0, sp, #32
|
||
126 000a FFF7FEFF bl memset
|
||
127 .LVL4:
|
||
127:Src/main.c ****
|
||
128 .loc 1 127 3 is_stmt 1 view .LVU17
|
||
127:Src/main.c ****
|
||
129 .loc 1 127 22 is_stmt 0 view .LVU18
|
||
130 000e 0023 movs r3, #0
|
||
131 0010 0393 str r3, [sp, #12]
|
||
132 0012 0493 str r3, [sp, #16]
|
||
133 0014 0593 str r3, [sp, #20]
|
||
134 0016 0693 str r3, [sp, #24]
|
||
135 0018 0793 str r3, [sp, #28]
|
||
131:Src/main.c **** __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
|
||
136 .loc 1 131 3 is_stmt 1 view .LVU19
|
||
137 .LBB6:
|
||
131:Src/main.c **** __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
|
||
138 .loc 1 131 3 view .LVU20
|
||
139 001a 0193 str r3, [sp, #4]
|
||
131:Src/main.c **** __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
|
||
140 .loc 1 131 3 view .LVU21
|
||
141 001c 224A ldr r2, .L13
|
||
142 001e 116C ldr r1, [r2, #64]
|
||
143 0020 41F08051 orr r1, r1, #268435456
|
||
144 0024 1164 str r1, [r2, #64]
|
||
131:Src/main.c **** __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
|
||
145 .loc 1 131 3 view .LVU22
|
||
146 0026 126C ldr r2, [r2, #64]
|
||
147 0028 02F08052 and r2, r2, #268435456
|
||
148 002c 0192 str r2, [sp, #4]
|
||
131:Src/main.c **** __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
|
||
149 .loc 1 131 3 view .LVU23
|
||
150 002e 019A ldr r2, [sp, #4]
|
||
151 .LBE6:
|
||
131:Src/main.c **** __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
|
||
152 .loc 1 131 3 view .LVU24
|
||
132:Src/main.c ****
|
||
153 .loc 1 132 3 view .LVU25
|
||
154 .LBB7:
|
||
132:Src/main.c ****
|
||
155 .loc 1 132 3 view .LVU26
|
||
156 0030 0293 str r3, [sp, #8]
|
||
132:Src/main.c ****
|
||
ARM GAS /tmp/ccNYH43h.s page 24
|
||
|
||
|
||
157 .loc 1 132 3 view .LVU27
|
||
158 0032 1E4B ldr r3, .L13+4
|
||
159 0034 1A68 ldr r2, [r3]
|
||
160 0036 42F48042 orr r2, r2, #16384
|
||
161 003a 1A60 str r2, [r3]
|
||
132:Src/main.c ****
|
||
162 .loc 1 132 3 view .LVU28
|
||
163 003c 1B68 ldr r3, [r3]
|
||
164 003e 03F48043 and r3, r3, #16384
|
||
165 0042 0293 str r3, [sp, #8]
|
||
132:Src/main.c ****
|
||
166 .loc 1 132 3 view .LVU29
|
||
167 0044 029B ldr r3, [sp, #8]
|
||
168 .LBE7:
|
||
132:Src/main.c ****
|
||
169 .loc 1 132 3 view .LVU30
|
||
137:Src/main.c **** |RCC_OSCILLATORTYPE_LSE;
|
||
170 .loc 1 137 3 view .LVU31
|
||
137:Src/main.c **** |RCC_OSCILLATORTYPE_LSE;
|
||
171 .loc 1 137 36 is_stmt 0 view .LVU32
|
||
172 0046 0D23 movs r3, #13
|
||
173 0048 0893 str r3, [sp, #32]
|
||
139:Src/main.c **** RCC_OscInitStruct.LSEState = RCC_LSE_ON;
|
||
174 .loc 1 139 3 is_stmt 1 view .LVU33
|
||
139:Src/main.c **** RCC_OscInitStruct.LSEState = RCC_LSE_ON;
|
||
175 .loc 1 139 30 is_stmt 0 view .LVU34
|
||
176 004a 4FF48033 mov r3, #65536
|
||
177 004e 0993 str r3, [sp, #36]
|
||
140:Src/main.c **** RCC_OscInitStruct.LSIState = RCC_LSI_ON;
|
||
178 .loc 1 140 3 is_stmt 1 view .LVU35
|
||
140:Src/main.c **** RCC_OscInitStruct.LSIState = RCC_LSI_ON;
|
||
179 .loc 1 140 30 is_stmt 0 view .LVU36
|
||
180 0050 0123 movs r3, #1
|
||
181 0052 0A93 str r3, [sp, #40]
|
||
141:Src/main.c **** RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
|
||
182 .loc 1 141 3 is_stmt 1 view .LVU37
|
||
141:Src/main.c **** RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
|
||
183 .loc 1 141 30 is_stmt 0 view .LVU38
|
||
184 0054 0D93 str r3, [sp, #52]
|
||
142:Src/main.c **** RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
|
||
185 .loc 1 142 3 is_stmt 1 view .LVU39
|
||
142:Src/main.c **** RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
|
||
186 .loc 1 142 34 is_stmt 0 view .LVU40
|
||
187 0056 0223 movs r3, #2
|
||
188 0058 0E93 str r3, [sp, #56]
|
||
143:Src/main.c **** RCC_OscInitStruct.PLL.PLLM = 4;
|
||
189 .loc 1 143 3 is_stmt 1 view .LVU41
|
||
143:Src/main.c **** RCC_OscInitStruct.PLL.PLLM = 4;
|
||
190 .loc 1 143 35 is_stmt 0 view .LVU42
|
||
191 005a 4FF48002 mov r2, #4194304
|
||
192 005e 0F92 str r2, [sp, #60]
|
||
144:Src/main.c **** RCC_OscInitStruct.PLL.PLLN = 168;
|
||
193 .loc 1 144 3 is_stmt 1 view .LVU43
|
||
144:Src/main.c **** RCC_OscInitStruct.PLL.PLLN = 168;
|
||
194 .loc 1 144 30 is_stmt 0 view .LVU44
|
||
195 0060 0422 movs r2, #4
|
||
196 0062 1092 str r2, [sp, #64]
|
||
ARM GAS /tmp/ccNYH43h.s page 25
|
||
|
||
|
||
145:Src/main.c **** RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;
|
||
197 .loc 1 145 3 is_stmt 1 view .LVU45
|
||
145:Src/main.c **** RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;
|
||
198 .loc 1 145 30 is_stmt 0 view .LVU46
|
||
199 0064 A822 movs r2, #168
|
||
200 0066 1192 str r2, [sp, #68]
|
||
146:Src/main.c **** RCC_OscInitStruct.PLL.PLLQ = 7;
|
||
201 .loc 1 146 3 is_stmt 1 view .LVU47
|
||
146:Src/main.c **** RCC_OscInitStruct.PLL.PLLQ = 7;
|
||
202 .loc 1 146 30 is_stmt 0 view .LVU48
|
||
203 0068 1293 str r3, [sp, #72]
|
||
147:Src/main.c **** if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
|
||
204 .loc 1 147 3 is_stmt 1 view .LVU49
|
||
147:Src/main.c **** if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
|
||
205 .loc 1 147 30 is_stmt 0 view .LVU50
|
||
206 006a 0723 movs r3, #7
|
||
207 006c 1393 str r3, [sp, #76]
|
||
148:Src/main.c **** {
|
||
208 .loc 1 148 3 is_stmt 1 view .LVU51
|
||
148:Src/main.c **** {
|
||
209 .loc 1 148 7 is_stmt 0 view .LVU52
|
||
210 006e 08A8 add r0, sp, #32
|
||
211 0070 FFF7FEFF bl HAL_RCC_OscConfig
|
||
212 .LVL5:
|
||
148:Src/main.c **** {
|
||
213 .loc 1 148 6 view .LVU53
|
||
214 0074 98B9 cbnz r0, .L11
|
||
155:Src/main.c **** |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
|
||
215 .loc 1 155 3 is_stmt 1 view .LVU54
|
||
155:Src/main.c **** |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
|
||
216 .loc 1 155 31 is_stmt 0 view .LVU55
|
||
217 0076 0F23 movs r3, #15
|
||
218 0078 0393 str r3, [sp, #12]
|
||
157:Src/main.c **** RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
|
||
219 .loc 1 157 3 is_stmt 1 view .LVU56
|
||
157:Src/main.c **** RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
|
||
220 .loc 1 157 34 is_stmt 0 view .LVU57
|
||
221 007a 0223 movs r3, #2
|
||
222 007c 0493 str r3, [sp, #16]
|
||
158:Src/main.c **** RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV4;
|
||
223 .loc 1 158 3 is_stmt 1 view .LVU58
|
||
158:Src/main.c **** RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV4;
|
||
224 .loc 1 158 35 is_stmt 0 view .LVU59
|
||
225 007e 0023 movs r3, #0
|
||
226 0080 0593 str r3, [sp, #20]
|
||
159:Src/main.c **** RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV2;
|
||
227 .loc 1 159 3 is_stmt 1 view .LVU60
|
||
159:Src/main.c **** RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV2;
|
||
228 .loc 1 159 36 is_stmt 0 view .LVU61
|
||
229 0082 4FF4A053 mov r3, #5120
|
||
230 0086 0693 str r3, [sp, #24]
|
||
160:Src/main.c ****
|
||
231 .loc 1 160 3 is_stmt 1 view .LVU62
|
||
160:Src/main.c ****
|
||
232 .loc 1 160 36 is_stmt 0 view .LVU63
|
||
233 0088 4FF48053 mov r3, #4096
|
||
234 008c 0793 str r3, [sp, #28]
|
||
ARM GAS /tmp/ccNYH43h.s page 26
|
||
|
||
|
||
162:Src/main.c **** {
|
||
235 .loc 1 162 3 is_stmt 1 view .LVU64
|
||
162:Src/main.c **** {
|
||
236 .loc 1 162 7 is_stmt 0 view .LVU65
|
||
237 008e 0521 movs r1, #5
|
||
238 0090 03A8 add r0, sp, #12
|
||
239 0092 FFF7FEFF bl HAL_RCC_ClockConfig
|
||
240 .LVL6:
|
||
162:Src/main.c **** {
|
||
241 .loc 1 162 6 view .LVU66
|
||
242 0096 20B9 cbnz r0, .L12
|
||
166:Src/main.c ****
|
||
243 .loc 1 166 1 view .LVU67
|
||
244 0098 15B0 add sp, sp, #84
|
||
245 .LCFI3:
|
||
246 .cfi_remember_state
|
||
247 .cfi_def_cfa_offset 4
|
||
248 @ sp needed
|
||
249 009a 5DF804FB ldr pc, [sp], #4
|
||
250 .L11:
|
||
251 .LCFI4:
|
||
252 .cfi_restore_state
|
||
150:Src/main.c **** }
|
||
253 .loc 1 150 5 is_stmt 1 view .LVU68
|
||
254 009e FFF7FEFF bl Error_Handler
|
||
255 .LVL7:
|
||
256 .L12:
|
||
164:Src/main.c **** }
|
||
257 .loc 1 164 5 view .LVU69
|
||
258 00a2 FFF7FEFF bl Error_Handler
|
||
259 .LVL8:
|
||
260 .L14:
|
||
261 00a6 00BF .align 2
|
||
262 .L13:
|
||
263 00a8 00380240 .word 1073887232
|
||
264 00ac 00700040 .word 1073770496
|
||
265 .cfi_endproc
|
||
266 .LFE139:
|
||
268 .section .rodata.main.str1.4,"aMS",%progbits,1
|
||
269 .align 2
|
||
270 .LC0:
|
||
271 0000 48656C6C .ascii "Hello ASCII!\015\012\000"
|
||
271 6F204153
|
||
271 43494921
|
||
271 0D0A00
|
||
272 .section .text.main,"ax",%progbits
|
||
273 .align 1
|
||
274 .global main
|
||
275 .syntax unified
|
||
276 .thumb
|
||
277 .thumb_func
|
||
279 main:
|
||
280 .LFB138:
|
||
76:Src/main.c ****
|
||
281 .loc 1 76 1 view -0
|
||
282 .cfi_startproc
|
||
283 @ Volatile: function does not return.
|
||
ARM GAS /tmp/ccNYH43h.s page 27
|
||
|
||
|
||
284 @ args = 0, pretend = 0, frame = 0
|
||
285 @ frame_needed = 0, uses_anonymous_args = 0
|
||
286 0000 08B5 push {r3, lr}
|
||
287 .LCFI5:
|
||
288 .cfi_def_cfa_offset 8
|
||
289 .cfi_offset 3, -8
|
||
290 .cfi_offset 14, -4
|
||
85:Src/main.c ****
|
||
291 .loc 1 85 3 view .LVU71
|
||
292 0002 FFF7FEFF bl HAL_Init
|
||
293 .LVL9:
|
||
92:Src/main.c ****
|
||
294 .loc 1 92 3 view .LVU72
|
||
295 0006 FFF7FEFF bl SystemClock_Config
|
||
296 .LVL10:
|
||
99:Src/main.c **** MX_USART1_UART_Init();
|
||
297 .loc 1 99 3 view .LVU73
|
||
298 000a FFF7FEFF bl MX_GPIO_Init
|
||
299 .LVL11:
|
||
100:Src/main.c **** MX_RTC_Init();
|
||
300 .loc 1 100 3 view .LVU74
|
||
301 000e FFF7FEFF bl MX_USART1_UART_Init
|
||
302 .LVL12:
|
||
101:Src/main.c **** MX_IWDG_Init();
|
||
303 .loc 1 101 3 view .LVU75
|
||
304 0012 FFF7FEFF bl MX_RTC_Init
|
||
305 .LVL13:
|
||
102:Src/main.c **** MX_RNG_Init();
|
||
306 .loc 1 102 3 view .LVU76
|
||
307 0016 FFF7FEFF bl MX_IWDG_Init
|
||
308 .LVL14:
|
||
103:Src/main.c **** MX_TIM13_Init();
|
||
309 .loc 1 103 3 view .LVU77
|
||
310 001a FFF7FEFF bl MX_RNG_Init
|
||
311 .LVL15:
|
||
104:Src/main.c **** MX_WWDG_Init();
|
||
312 .loc 1 104 3 view .LVU78
|
||
313 001e FFF7FEFF bl MX_TIM13_Init
|
||
314 .LVL16:
|
||
105:Src/main.c **** /* USER CODE BEGIN 2 */
|
||
315 .loc 1 105 3 view .LVU79
|
||
316 0022 FFF7FEFF bl MX_WWDG_Init
|
||
317 .LVL17:
|
||
107:Src/main.c **** /* USER CODE END 2 */
|
||
318 .loc 1 107 3 view .LVU80
|
||
319 0026 0248 ldr r0, .L18
|
||
320 0028 FFF7FEFF bl UART1_PrintString
|
||
321 .LVL18:
|
||
322 .L16:
|
||
112:Src/main.c **** {
|
||
323 .loc 1 112 3 discriminator 1 view .LVU81
|
||
116:Src/main.c **** /* USER CODE END 3 */
|
||
324 .loc 1 116 3 discriminator 1 view .LVU82
|
||
112:Src/main.c **** {
|
||
325 .loc 1 112 9 discriminator 1 view .LVU83
|
||
326 002c FEE7 b .L16
|
||
327 .L19:
|
||
ARM GAS /tmp/ccNYH43h.s page 28
|
||
|
||
|
||
328 002e 00BF .align 2
|
||
329 .L18:
|
||
330 0030 00000000 .word .LC0
|
||
331 .cfi_endproc
|
||
332 .LFE138:
|
||
334 .text
|
||
335 .Letext0:
|
||
336 .file 3 "/home/jfen/toolchain/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/machine/_defaul
|
||
337 .file 4 "/home/jfen/toolchain/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/sys/_stdint.h"
|
||
338 .file 5 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f407xx.h"
|
||
339 .file 6 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h"
|
||
340 .file 7 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc_ex.h"
|
||
341 .file 8 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h"
|
||
342 .file 9 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h"
|
||
343 .file 10 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_uart.h"
|
||
344 .file 11 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h"
|
||
345 .file 12 "Inc/gpio.h"
|
||
346 .file 13 "Inc/usart.h"
|
||
347 .file 14 "Inc/rtc.h"
|
||
348 .file 15 "Inc/iwdg.h"
|
||
349 .file 16 "Inc/rng.h"
|
||
350 .file 17 "Inc/tim.h"
|
||
351 .file 18 "Inc/wwdg.h"
|
||
352 .file 19 "/home/jfen/toolchain/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/string.h"
|
||
353 .file 20 "<built-in>"
|
||
ARM GAS /tmp/ccNYH43h.s page 29
|
||
|
||
|
||
DEFINED SYMBOLS
|
||
*ABS*:0000000000000000 main.c
|
||
/tmp/ccNYH43h.s:20 .text.UART1_PrintString:0000000000000000 $t
|
||
/tmp/ccNYH43h.s:26 .text.UART1_PrintString:0000000000000000 UART1_PrintString
|
||
/tmp/ccNYH43h.s:59 .text.UART1_PrintString:0000000000000018 $d
|
||
/tmp/ccNYH43h.s:64 .text.Error_Handler:0000000000000000 $t
|
||
/tmp/ccNYH43h.s:70 .text.Error_Handler:0000000000000000 Error_Handler
|
||
/tmp/ccNYH43h.s:102 .text.SystemClock_Config:0000000000000000 $t
|
||
/tmp/ccNYH43h.s:108 .text.SystemClock_Config:0000000000000000 SystemClock_Config
|
||
/tmp/ccNYH43h.s:263 .text.SystemClock_Config:00000000000000a8 $d
|
||
/tmp/ccNYH43h.s:269 .rodata.main.str1.4:0000000000000000 $d
|
||
/tmp/ccNYH43h.s:273 .text.main:0000000000000000 $t
|
||
/tmp/ccNYH43h.s:279 .text.main:0000000000000000 main
|
||
/tmp/ccNYH43h.s:330 .text.main:0000000000000030 $d
|
||
|
||
UNDEFINED SYMBOLS
|
||
strlen
|
||
HAL_UART_Transmit
|
||
huart1
|
||
memset
|
||
HAL_RCC_OscConfig
|
||
HAL_RCC_ClockConfig
|
||
HAL_Init
|
||
MX_GPIO_Init
|
||
MX_USART1_UART_Init
|
||
MX_RTC_Init
|
||
MX_IWDG_Init
|
||
MX_RNG_Init
|
||
MX_TIM13_Init
|
||
MX_WWDG_Init
|