code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
#!/usr/bin/python import math class Table(object): def __init__(self, table_entry=256, table_range=8): self.table_entry = table_entry self.table_range = table_range pass def sigmoid(self, x): return 1 / (1 + math.exp(-1*x)) def tanh(self, x): return (math.exp(2*x)-1) / (math.exp(2*x)+1) def fp2q7(self, x): x_int = math.floor(x*(2**7)+0.5) if x_int >= 128 : x_int = 127 if x_int < -128 : x_int = -128 if x_int >= 0 : return x_int else : return 0x100 + x_int def fp2q15(self, x): x_int = math.floor(x*(2**15)+0.5) if x_int >= 2**15 : x_int = 2**15-1 if x_int < -1*2**15 : x_int = -1*2**15 if x_int >= 0 : return x_int else : return 0x10000 + x_int def table_gen(self): outfile = open("NNCommonTable.c", "wb") outfile.write("/*\n * Common tables for NN\n *\n *\n *\n *\n */\n\n#include \"arm_math.h\"\n#include \"NNCommonTable.h\"\n\n/*\n * Table for sigmoid\n */\n") for function_type in ["sigmoid", "tanh"]: for data_type in [7, 15]: out_type = "q"+str(data_type)+"_t" act_func = getattr(self, function_type) quan_func = getattr(self, 'fp2q'+str(data_type)) # unified table outfile.write('const %s %sTable_q%d[%d] = {\n' % (out_type, function_type, data_type, self.table_entry) ) for i in range(self.table_entry): # convert into actual value if i < self.table_entry/2: value_q7 = self.table_range * (i) else: value_q7 = self.table_range * (i - self.table_entry) if data_type == 7: #outfile.write('%f, ' % (act_func(float(value_q7)/256))) outfile.write('0x%02x, ' % (quan_func(act_func(float(value_q7)/self.table_entry)))) else: #outfile.write('%f, ' % (act_func(float(value_q7)/256))) outfile.write('0x%04x, ' % (quan_func(act_func(float(value_q7)/self.table_entry)))) if i % 8 == 7: outfile.write("\n") outfile.write("};\n\n") for data_type in [15]: out_type = "q"+str(data_type)+"_t" act_func = getattr(self, function_type) quan_func = getattr(self, 'fp2q'+str(data_type)) # H-L tables outfile.write('const %s %sLTable_q%d[%d] = {\n' % (out_type, function_type, data_type, self.table_entry/2)) for i in range(self.table_entry/2): # convert into actual value, max value is 16*self.table_entry/4 / 4 # which is equivalent to self.table_entry / self.table_entry/2 = 2, i.e., 1/4 of 8 if i < self.table_entry/4: value_q7 = self.table_range * i / 4 else: value_q7 = self.table_range * (i - self.table_entry/2) / 4 if data_type == 7: #outfile.write('%f, ' % (act_func(float(value_q7)/256))) outfile.write('0x%02x, ' % (quan_func(act_func(float(value_q7)/(self.table_entry/2))))) else: #outfile.write('%f, ' % (act_func(float(value_q7)/256))) outfile.write('0x%04x, ' % (quan_func(act_func(float(value_q7)/(self.table_entry/2))))) if i % 8 == 7: outfile.write("\n") outfile.write("};\n\n") outfile.write('const %s %sHTable_q%d[%d] = {\n' % (out_type, function_type, data_type, 3*self.table_entry/4)) for i in range(3 * self.table_entry/4): # convert into actual value, tageting range (2, 8) if i < 3*self.table_entry/8 : value_q7 = self.table_range * ( i + self.table_entry/8 ) else: value_q7 = self.table_range * ( i + self.table_entry/8 - self.table_entry) if data_type == 7: #outfile.write('%f, ' % (act_func(float(value_q7)/256))) outfile.write('0x%02x, ' % (quan_func(act_func(float(value_q7)/self.table_entry)))) else: #outfile.write('%f, ' % (act_func(float(value_q7)/256))) outfile.write('0x%04x, ' % (quan_func(act_func(float(value_q7)/self.table_entry)))) if i % 8 == 7: outfile.write("\n") outfile.write("};\n\n") outfile.close() mytable = Table(table_entry=256, table_range=16) mytable.table_gen()
YifuLiu/AliOS-Things
components/cmsis/NN/Scripts/NNFunctions/table_gen.py
Python
apache-2.0
4,267
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_nn_activations_q15.c * Description: Q15 neural network activation function using direct table look-up * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_common_tables.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup Acti * @{ */ /** * @brief Q15 neural network activation function using direct table look-up * @param[in,out] data pointer to input * @param[in] size number of elements * @param[in] int_width bit-width of the integer part, assume to be smaller than 3 * @param[in] type type of activation functions * @return none. * * @details * * This is the direct table look-up approach. * * Assume here the integer part of the fixed-point is <= 3. * More than 3 just not making much sense, makes no difference with * saturation followed by any of these activation functions. */ void arm_nn_activations_direct_q15(q15_t * data, uint16_t size, uint16_t int_width, arm_nn_activation_type type) { uint16_t i = size; q15_t *pIn = data; q15_t *pOut = data; uint16_t shift_size = 8 + 3 - int_width; uint32_t bit_mask = 0x7FF >> int_width; uint32_t full_frac = bit_mask + 1; const q15_t *lookup_table; switch (type) { case ARM_SIGMOID: lookup_table = sigmoidTable_q15; break; case ARM_TANH: default: lookup_table = tanhTable_q15; break; } while (i) { q15_t out; q15_t in = *pIn++; q15_t frac = (uint32_t) in & bit_mask; q15_t value = lookup_table[__USAT(in >> shift_size, 8)]; q15_t value2 = lookup_table[__USAT(1 + (in >> shift_size), 8)]; /* doing the interpolation here for better accuracy */ out = ((q31_t) (full_frac - frac) * value + (q31_t) value2 * frac) >> shift_size; *pOut++ = out; i--; } } /** * @} end of Acti group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/ActivationFunctions/arm_nn_activations_q15.c
C
apache-2.0
2,930
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_nn_activations_q7.c * Description: Q7 neural network activation function using direct table look-up * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_common_tables.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup Acti * @{ */ /** * @brief Q7 neural network activation function using direct table look-up * @param[in,out] data pointer to input * @param[in] size number of elements * @param[in] int_width bit-width of the integer part, assume to be smaller than 3 * @param[in] type type of activation functions * @return none. * * @details * * This is the direct table look-up approach. * * Assume here the integer part of the fixed-point is <= 3. * More than 3 just not making much sense, makes no difference with * saturation followed by any of these activation functions. */ void arm_nn_activations_direct_q7(q7_t * data, uint16_t size, uint16_t int_width, arm_nn_activation_type type) { uint16_t i = size; q7_t *pIn = data; q7_t *pOut = data; q7_t in; q7_t out; uint16_t shift_size = 3 - int_width; const q7_t *lookup_table; switch (type) { case ARM_SIGMOID: lookup_table = sigmoidTable_q7; break; case ARM_TANH: default: lookup_table = tanhTable_q7; break; } while (i) { in = *pIn++; out = lookup_table[(uint8_t) (in >> shift_size)]; *pOut++ = out; i--; } } /** * @} end of Acti group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/ActivationFunctions/arm_nn_activations_q7.c
C
apache-2.0
2,541
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_relu_q15.c * Description: Q15 version of ReLU * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup Acti * @{ */ /** * @brief Q15 RELU function * @param[in,out] data pointer to input * @param[in] size number of elements * @return none. * * @details * * Optimized relu with QSUB instructions. * */ void arm_relu_q15(q15_t * data, uint16_t size) { #if defined (ARM_MATH_DSP) /* Run the following code for Cortex-M4 and Cortex-M7 */ uint16_t i = size >> 1; q15_t *pIn = data; q15_t *pOut = data; q31_t in; q31_t buf; q31_t mask; while (i) { in = *__SIMD32(pIn)++; /* extract the first bit */ buf = __ROR(in & 0x80008000, 15); /* if MSB=1, mask will be 0xFF, 0x0 otherwise */ mask = __QSUB16(0x00000000, buf); *__SIMD32(pOut)++ = in & (~mask); i--; } if (size & 0x1) { if (*pIn < 0) { *pIn = 0; } pIn++; } #else /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ uint16_t i; for (i = 0; i < size; i++) { if (data[i] < 0) data[i] = 0; } #endif /* ARM_MATH_DSP */ } /** * @} end of Acti group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/ActivationFunctions/arm_relu_q15.c
C
apache-2.0
2,364
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_relu_q7.c * Description: Q7 version of ReLU * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup Acti * @{ */ /** * @brief Q7 RELU function * @param[in,out] data pointer to input * @param[in] size number of elements * @return none. * * @details * * Optimized relu with QSUB instructions. * */ void arm_relu_q7(q7_t * data, uint16_t size) { #if defined (ARM_MATH_DSP) /* Run the following code for Cortex-M4 and Cortex-M7 */ uint16_t i = size >> 2; q7_t *pIn = data; q7_t *pOut = data; q31_t in; q31_t buf; q31_t mask; while (i) { in = *__SIMD32(pIn)++; /* extract the first bit */ buf = __ROR(in & 0x80808080, 7); /* if MSB=1, mask will be 0xFF, 0x0 otherwise */ mask = __QSUB8(0x00000000, buf); *__SIMD32(pOut)++ = in & (~mask); i--; } i = size & 0x3; while (i) { if (*pIn < 0) { *pIn = 0; } pIn++; i--; } #else /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ uint16_t i; for (i = 0; i < size; i++) { if (data[i] < 0) data[i] = 0; } #endif /* ARM_MATH_DSP */ } /** * @} end of Acti group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/ActivationFunctions/arm_relu_q7.c
C
apache-2.0
2,386
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_convolve_1x1_HWC_q7_fast_nonsquare.c * Description: Fast Q7 version of 1x1 convolution (non-square shape) * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup NNConv * @{ */ /** * @brief Fast Q7 version of 1x1 convolution (non-sqaure shape) * @param[in] Im_in pointer to input tensor * @param[in] dim_im_in_x input tensor dimention x * @param[in] dim_im_in_y input tensor dimention y * @param[in] ch_im_in number of input tensor channels * @param[in] wt pointer to kernel weights * @param[in] ch_im_out number of filters, i.e., output tensor channels * @param[in] dim_kernel_x filter kernel size x * @param[in] dim_kernel_y filter kernel size y * @param[in] padding_x padding size x * @param[in] padding_y padding size y * @param[in] stride_x convolution stride x * @param[in] stride_y convolution stride y * @param[in] bias pointer to bias * @param[in] bias_shift amount of left-shift for bias * @param[in] out_shift amount of right-shift for output * @param[in,out] Im_out pointer to output tensor * @param[in] dim_im_out_x output tensor dimension x * @param[in] dim_im_out_y output tensor dimension y * @param[in,out] bufferA pointer to buffer space for input * @param[in,out] bufferB pointer to buffer space for output * @return The function returns either * <code>ARM_MATH_SIZE_MISMATCH</code> or <code>ARM_MATH_SUCCESS</code> based on the outcome of size checking. * * This function is optimized for convolution with 1x1 kernel size (i.e., dim_kernel_x=1 * and dim_kernel_y=1). It can be used for the second half of MobileNets [1] after depthwise * separable convolution. * * This function is the version with full list of optimization tricks, but with * some contraints: * ch_im_in is multiple of 4 * ch_im_out is multiple of 2 * * [1] MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications * https://arxiv.org/abs/1704.04861 */ arm_status arm_convolve_1x1_HWC_q7_fast_nonsquare(const q7_t * Im_in, const uint16_t dim_im_in_x, const uint16_t dim_im_in_y, const uint16_t ch_im_in, const q7_t * wt, const uint16_t ch_im_out, const uint16_t dim_kernel_x, const uint16_t dim_kernel_y, const uint16_t padding_x, const uint16_t padding_y, const uint16_t stride_x, const uint16_t stride_y, const q7_t * bias, const uint16_t bias_shift, const uint16_t out_shift, q7_t * Im_out, const uint16_t dim_im_out_x, const uint16_t dim_im_out_y, q15_t * bufferA, q7_t * bufferB) { #if defined (ARM_MATH_DSP) /* Run the following code for Cortex-M4 and Cortex-M7 */ int16_t i_out_y, i_out_x; int16_t i_ch_out; /* ----------------------- * Here we use bufferA as q15_t internally as computation are done with q15_t level * im2col are done to output in q15_t format from q7_t input */ q15_t *pBuffer = bufferA; q7_t *pOut = Im_out; if (ch_im_in % 4 != 0 || ch_im_out % 2 != 0 || dim_kernel_x != 1 || dim_kernel_y != 1 || padding_x != 0 || padding_y != 0 || stride_x != 1 || stride_y != 1) { /* check if the input dimension meets the constraints */ return ARM_MATH_SIZE_MISMATCH; } for (i_out_y = 0; i_out_y < dim_im_out_y; i_out_y++) { for (i_out_x = 0; i_out_x < dim_im_out_x; i_out_x++) { /* This part implements the im2col function */ arm_q7_to_q15_reordered_no_shift((q7_t *) Im_in + (i_out_y * dim_im_in_x + i_out_x) * ch_im_in, pBuffer, ch_im_in); pBuffer += ch_im_in; if (pBuffer == bufferA + 2 * ch_im_in * dim_kernel_x * dim_kernel_y) { pOut = arm_nn_mat_mult_kernel_q7_q15_reordered(wt, bufferA, ch_im_out, ch_im_in, bias_shift, out_shift, bias, pOut); /* counter reset */ pBuffer = bufferA; } } } /* check if there is left-over for compute */ if (pBuffer != bufferA) { const q7_t *pA = wt; for (i_ch_out = 0; i_ch_out < ch_im_out; i_ch_out++) { q31_t sum = ((q31_t)(bias[i_ch_out]) << bias_shift) + NN_ROUND(out_shift); q15_t *pB = bufferA; /* basically each time it process 4 entries */ uint16_t colCnt = ch_im_in * dim_kernel_x * dim_kernel_y >> 2; while (colCnt) { q31_t inA1, inA2; q31_t inB1, inB2; pA = (const q7_t *)read_and_pad_reordered((void *)pA, &inA1, &inA2); inB1 = *__SIMD32(pB)++; sum = __SMLAD(inA1, inB1, sum); inB2 = *__SIMD32(pB)++; sum = __SMLAD(inA2, inB2, sum); colCnt--; } colCnt = ch_im_in * dim_kernel_y * dim_kernel_x & 0x3; while (colCnt) { q7_t inA1 = *pA++; q15_t inB1 = *pB++; sum += inA1 * inB1; colCnt--; } *pOut = (q7_t) __SSAT((sum >> out_shift), 8); pOut++; } } #else /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ int i, j, k, l, m, n; int conv_out; int in_row, in_col; if (ch_im_in % 4 != 0 || ch_im_out % 2 != 0 || dim_kernel_x != 1 || dim_kernel_y != 1 || padding_x != 0 || padding_y != 0 || stride_x != 1 || stride_y != 1) { /* check if the input dimension meets the constraints */ return ARM_MATH_SIZE_MISMATCH; } for (i = 0; i < ch_im_out; i++) { for (j = 0; j < dim_im_out_y; j++) { for (k = 0; k < dim_im_out_x; k++) { conv_out = ((q31_t)(bias[i]) << bias_shift) + NN_ROUND(out_shift); for (m = 0; m < dim_kernel_y; m++) { for (n = 0; n < dim_kernel_x; n++) { // if-for implementation in_row = stride_y * j + m - padding_y; in_col = stride_x * k + n - padding_x; if (in_row >= 0 && in_col >= 0 && in_row < dim_im_in_y && in_col < dim_im_in_x) { for (l = 0; l < ch_im_in; l++) { conv_out += Im_in[(in_row * dim_im_in_x + in_col) * ch_im_in + l] * wt[i * ch_im_in * dim_kernel_y * dim_kernel_x + (m * dim_kernel_y + n) * ch_im_in + l]; } } } } Im_out[i + (j * dim_im_out_x + k) * ch_im_out] = (q7_t) __SSAT((conv_out >> out_shift), 8); } } } #endif /* ARM_MATH_DSP */ /* Return to application */ return ARM_MATH_SUCCESS; } /** * @} end of NNConv group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/ConvolutionFunctions/arm_convolve_1x1_HWC_q7_fast_nonsquare.c
C
apache-2.0
9,139
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_convolve_HWC_q15_basic.c * Description: Q15 version of convolution * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup NNConv * @{ */ /** * @brief Basic Q15 convolution function * @param[in] Im_in pointer to input tensor * @param[in] dim_im_in input tensor dimention * @param[in] ch_im_in number of input tensor channels * @param[in] wt pointer to kernel weights * @param[in] ch_im_out number of filters, i.e., output tensor channels * @param[in] dim_kernel filter kernel size * @param[in] padding padding sizes * @param[in] stride convolution stride * @param[in] bias pointer to bias * @param[in] bias_shift amount of left-shift for bias * @param[in] out_shift amount of right-shift for output * @param[in,out] Im_out pointer to output tensor * @param[in] dim_im_out output tensor dimension * @param[in,out] bufferA pointer to buffer space for input * @param[in,out] bufferB pointer to buffer space for output * @return The function returns <code>ARM_MATH_SUCCESS</code> * * @details * * <b>Buffer size:</b> * * bufferA size: ch_im_in*dim_kernel*dim_kernel * * bufferB size: 0 * * This basic version is designed to work for any input tensor and weight * dimension. */ arm_status arm_convolve_HWC_q15_basic(const q15_t * Im_in, const uint16_t dim_im_in, const uint16_t ch_im_in, const q15_t * wt, const uint16_t ch_im_out, const uint16_t dim_kernel, const uint16_t padding, const uint16_t stride, const q15_t * bias, const uint16_t bias_shift, const uint16_t out_shift, q15_t * Im_out, const uint16_t dim_im_out, q15_t * bufferA, q7_t * bufferB) { #if defined (ARM_MATH_DSP) /* Run the following code for Cortex-M4 and Cortex-M7 */ int16_t i_out_y, i_out_x, i_ker_y, i_ker_x; uint16_t im2col_out_pixel_index = 0; q15_t *pBuffer = bufferA; q15_t *pOut = Im_out; q15_t *im_buffer = bufferA; const q15_t *pA; int i; /* This part implements the im2col function */ for (i_out_y = 0; i_out_y < dim_im_out; i_out_y++) { for (i_out_x = 0; i_out_x < dim_im_out; i_out_x++) { for (i_ker_y = i_out_y * stride - padding; i_ker_y < i_out_y * stride - padding + dim_kernel; i_ker_y++) { for (i_ker_x = i_out_x * stride - padding; i_ker_x < i_out_x * stride - padding + dim_kernel; i_ker_x++) { if (i_ker_y < 0 || i_ker_y >= dim_im_in || i_ker_x < 0 || i_ker_x >= dim_im_in) { /* Filling 0 for out-of-bound paddings */ /* arm_fill_q15(0, pBuffer, ch_im_in); */ memset(pBuffer, 0, sizeof(q15_t)*ch_im_in); } else { /* arm_copy_q15((q15_t *) Im_in + (i_ker_y * dim_im_in + i_ker_x) * ch_im_in, pBuffer, ch_im_in); */ memcpy(pBuffer, (q15_t *) Im_in + (i_ker_y * dim_im_in + i_ker_x) * ch_im_in, sizeof(q15_t)*ch_im_in); } pBuffer += ch_im_in; } } pA = wt; for (i = 0; i < ch_im_out; i++) { q31_t sum = ((q31_t)bias[i] << bias_shift) + NN_ROUND(out_shift); q15_t *pB = im_buffer; uint16_t colCnt = ch_im_in * dim_kernel * dim_kernel >> 2; while (colCnt) { q31_t inA1 = *__SIMD32(pA)++; q31_t inB1 = *__SIMD32(pB)++; q31_t inA2 = *__SIMD32(pA)++; q31_t inB2 = *__SIMD32(pB)++; sum = __SMLAD(inA1, inB1, sum); sum = __SMLAD(inA2, inB2, sum); colCnt--; } colCnt = ch_im_in * dim_kernel * dim_kernel & 0x3; while (colCnt) { q15_t inA1 = *pA++; q15_t inB1 = *pB++; sum += inA1 * inB1; colCnt--; } *pOut = (q15_t) __SSAT((sum >> out_shift), 16); pOut++; } /* counter reset */ pBuffer = im_buffer; im2col_out_pixel_index++; } } #else /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ uint16_t i, j, k, l, m, n; int conv_out; signed char in_row, in_col; for (i = 0; i < ch_im_out; i++) { for (j = 0; j < dim_im_out; j++) { for (k = 0; k < dim_im_out; k++) { conv_out = ((q31_t)bias[i] << bias_shift) + NN_ROUND(out_shift); for (m = 0; m < dim_kernel; m++) { for (n = 0; n < dim_kernel; n++) { in_row = stride * j + m - padding; in_col = stride * k + n - padding; if (in_row >= 0 && in_col >= 0 && in_row < dim_im_in && in_col < dim_im_in) { for (l = 0; l < ch_im_in; l++) { conv_out += Im_in[(in_row * dim_im_in + in_col) * ch_im_in + l] * wt[i * ch_im_in * dim_kernel * dim_kernel + (m * dim_kernel + n) * ch_im_in + l]; } } } } Im_out[i + (j * dim_im_out + k) * ch_im_out] = (q15_t) __SSAT((conv_out >> out_shift), 16); } } } #endif /* ARM_MATH_DSP */ /* Return to application */ return ARM_MATH_SUCCESS; } /** * @} end of NNConv group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q15_basic.c
C
apache-2.0
7,528
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_convolve_HWC_q15_fast.c * Description: Fast Q15 version of convolution * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup NNConv * @{ */ /** * @brief Fast Q15 convolution function * @param[in] Im_in pointer to input tensor * @param[in] dim_im_in input tensor dimention * @param[in] ch_im_in number of input tensor channels * @param[in] wt pointer to kernel weights * @param[in] ch_im_out number of filters, i.e., output tensor channels * @param[in] dim_kernel filter kernel size * @param[in] padding padding sizes * @param[in] stride convolution stride * @param[in] bias pointer to bias * @param[in] bias_shift amount of left-shift for bias * @param[in] out_shift amount of right-shift for output * @param[in,out] Im_out pointer to output tensor * @param[in] dim_im_out output tensor dimension * @param[in,out] bufferA pointer to buffer space for input * @param[in,out] bufferB pointer to buffer space for output * @return The function returns either * <code>ARM_MATH_SIZE_MISMATCH</code> or <code>ARM_MATH_SUCCESS</code> based on the outcome of size checking. * * @details * * <b>Buffer size:</b> * * bufferA size: 2*ch_im_in*dim_kernel*dim_kernel * * bufferB size: 0 * * <b>Input dimension constraints:</b> * * ch_im_in is multiple of 2 * * ch_im_out is multipe of 2 * */ arm_status arm_convolve_HWC_q15_fast(const q15_t * Im_in, const uint16_t dim_im_in, const uint16_t ch_im_in, const q15_t * wt, const uint16_t ch_im_out, const uint16_t dim_kernel, const uint16_t padding, const uint16_t stride, const q15_t * bias, const uint16_t bias_shift, const uint16_t out_shift, q15_t * Im_out, const uint16_t dim_im_out, q15_t * bufferA, q7_t * bufferB) { #if defined (ARM_MATH_DSP) int16_t i_out_y, i_out_x, i_ker_y, i_ker_x; q15_t *pBuffer = bufferA; q15_t *im_buffer = bufferA; q15_t *pOut = Im_out; if (ch_im_in % 2 != 0 || ch_im_out % 2 != 0) { /* check if the input dimension meets the constraints */ return ARM_MATH_SIZE_MISMATCH; } /* Run the following code for Cortex-M4 and Cortex-M7 */ /* This part implements the im2col function */ for (i_out_y = 0; i_out_y < dim_im_out; i_out_y++) { for (i_out_x = 0; i_out_x < dim_im_out; i_out_x++) { for (i_ker_y = i_out_y * stride - padding; i_ker_y < i_out_y * stride - padding + dim_kernel; i_ker_y++) { for (i_ker_x = i_out_x * stride - padding; i_ker_x < i_out_x * stride - padding + dim_kernel; i_ker_x++) { if (i_ker_y < 0 || i_ker_y >= dim_im_in || i_ker_x < 0 || i_ker_x >= dim_im_in) { /* arm_fill_q15(0, pBuffer, ch_im_in); */ memset(pBuffer, 0, sizeof(q15_t)*ch_im_in); } else { /* arm_copy_q15((q15_t *) Im_in + (i_ker_y * dim_im_in + i_ker_x) * ch_im_in, pBuffer, ch_im_in); */ memcpy(pBuffer, (q15_t *) Im_in + (i_ker_y * dim_im_in + i_ker_x) * ch_im_in, sizeof(q15_t)*ch_im_in); } pBuffer += ch_im_in; } } if (i_out_x & 0x1) { int i; /* initialize the matrix pointers for A */ const q15_t *pA = wt; /* set up the second output pointers */ q15_t *pOut2 = pOut + ch_im_out; /* this loop over rows in A */ for (i = 0; i < ch_im_out; i += 2) { /* setup pointers for B */ q15_t *pB = im_buffer; const q15_t *pB2 = pB + ch_im_in * dim_kernel * dim_kernel; /* aling the second pointer for A */ const q15_t *pA2 = pA + ch_im_in * dim_kernel * dim_kernel; /* init the sum with bias */ q31_t sum = ((q31_t)bias[i] << bias_shift) + NN_ROUND(out_shift); q31_t sum2 = ((q31_t)bias[i] << bias_shift) + NN_ROUND(out_shift); q31_t sum3 = ((q31_t)bias[i + 1] << bias_shift) + NN_ROUND(out_shift); q31_t sum4 = ((q31_t)bias[i + 1] << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = ch_im_in * dim_kernel * dim_kernel >> 1; /* accumulate over the vector */ while (colCnt) { q31_t inA1 = *__SIMD32(pA)++; q31_t inB1 = *__SIMD32(pB)++; q31_t inA2 = *__SIMD32(pA2)++; q31_t inB2 = *__SIMD32(pB2)++; sum = __SMLAD(inA1, inB1, sum); sum2 = __SMLAD(inA1, inB2, sum2); sum3 = __SMLAD(inA2, inB1, sum3); sum4 = __SMLAD(inA2, inB2, sum4); colCnt--; } /* while over colCnt */ colCnt = ch_im_in * dim_kernel * dim_kernel & 0x1; while (colCnt) { q15_t inA1 = *pA++; q15_t inB1 = *pB++; q15_t inA2 = *pA2++; q15_t inB2 = *pB2++; sum += inA1 * inB1; sum2 += inA1 * inB2; sum3 += inA2 * inB1; sum4 += inA2 * inB2; colCnt--; } /* while over colCnt */ *pOut++ = (q15_t) __SSAT(sum >> out_shift, 16); *pOut++ = (q15_t) __SSAT(sum3 >> out_shift, 16); *pOut2++ = (q15_t) __SSAT(sum2 >> out_shift, 16); *pOut2++ = (q15_t) __SSAT(sum4 >> out_shift, 16); /* skip the row computed with A2 */ pA += ch_im_in * dim_kernel * dim_kernel; } /* for over ch_im_out */ pOut += ch_im_out; /* counter reset */ pBuffer = im_buffer; } } } #else /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ uint16_t i, j, k, l, m, n; int conv_out; signed char in_row, in_col; if (ch_im_in % 2 != 0 || ch_im_out % 2 != 0) { /* check if the input dimension meets the constraints */ return ARM_MATH_SIZE_MISMATCH; } for (i = 0; i < ch_im_out; i++) { for (j = 0; j < dim_im_out; j++) { for (k = 0; k < dim_im_out; k++) { conv_out = ((q31_t)bias[i] << bias_shift) + NN_ROUND(out_shift); for (m = 0; m < dim_kernel; m++) { for (n = 0; n < dim_kernel; n++) { in_row = stride * j + m - padding; in_col = stride * k + n - padding; if (in_row >= 0 && in_col >= 0 && in_row < dim_im_in && in_col < dim_im_in) { for (l = 0; l < ch_im_in; l++) { conv_out += Im_in[(in_row * dim_im_in + in_col) * ch_im_in + l] * wt[i * ch_im_in * dim_kernel * dim_kernel + (m * dim_kernel + n) * ch_im_in + l]; } } } } Im_out[i + (j * dim_im_out + k) * ch_im_out] = (q15_t) __SSAT((conv_out >> out_shift), 16); } } } #endif /* ARM_MATH_DSP */ /* Return to application */ return ARM_MATH_SUCCESS; } /** * @} end of NNConv group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q15_fast.c
C
apache-2.0
9,665
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_convolve_HWC_q15_fast.c * Description: Fast Q15 version of convolution * * $Date: 24. May 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup NNConv * @{ */ /** * @brief Fast Q15 convolution function (non-sqaure shape) * @param[in] Im_in pointer to input tensor * @param[in] dim_im_in_x input tensor dimention x * @param[in] dim_im_in_y input tensor dimention y * @param[in] ch_im_in number of input tensor channels * @param[in] wt pointer to kernel weights * @param[in] ch_im_out number of filters, i.e., output tensor channels * @param[in] dim_kernel_x filter kernel size x * @param[in] dim_kernel_y filter kernel size y * @param[in] padding_x padding size x * @param[in] padding_y padding size y * @param[in] stride_x convolution stride x * @param[in] stride_y convolution stride y * @param[in] bias pointer to bias * @param[in] bias_shift amount of left-shift for bias * @param[in] out_shift amount of right-shift for output * @param[in,out] Im_out pointer to output tensor * @param[in] dim_im_out_x output tensor dimension x * @param[in] dim_im_out_y output tensor dimension y * @param[in,out] bufferA pointer to buffer space for input * @param[in,out] bufferB pointer to buffer space for output * @return The function returns either * <code>ARM_MATH_SIZE_MISMATCH</code> or <code>ARM_MATH_SUCCESS</code> based on the outcome of size checking. * * @details * * <b>Buffer size:</b> * * bufferA size: 2*ch_im_in*dim_kernel*dim_kernel * * bufferB size: 0 * * <b>Input dimension constraints:</b> * * ch_im_in is multiple of 2 * * ch_im_out is multipe of 2 * */ arm_status arm_convolve_HWC_q15_fast_nonsquare(const q15_t * Im_in, const uint16_t dim_im_in_x, const uint16_t dim_im_in_y, const uint16_t ch_im_in, const q15_t * wt, const uint16_t ch_im_out, const uint16_t dim_kernel_x, const uint16_t dim_kernel_y, const uint16_t padding_x, const uint16_t padding_y, const uint16_t stride_x, const uint16_t stride_y, const q15_t * bias, const uint16_t bias_shift, const uint16_t out_shift, q15_t * Im_out, const uint16_t dim_im_out_x, const uint16_t dim_im_out_y, q15_t * bufferA, q7_t * bufferB) { #if defined (ARM_MATH_DSP) int16_t i_out_y, i_out_x, i_ker_y, i_ker_x; q15_t *pBuffer = bufferA; q15_t *im_buffer = bufferA; q15_t *pOut = Im_out; if (ch_im_in % 2 != 0 || ch_im_out % 2 != 0) { /* check if the input dimension meets the constraints */ return ARM_MATH_SIZE_MISMATCH; } /* Run the following code for Cortex-M4 and Cortex-M7 */ /* This part implements the im2col function */ for (i_out_y = 0; i_out_y < dim_im_out_y; i_out_y++) { for (i_out_x = 0; i_out_x < dim_im_out_x; i_out_x++) { for (i_ker_y = i_out_y * stride_y - padding_y; i_ker_y < i_out_y * stride_y - padding_y + dim_kernel_y; i_ker_y++) { for (i_ker_x = i_out_x * stride_x - padding_x; i_ker_x < i_out_x * stride_x - padding_x + dim_kernel_x; i_ker_x++) { if (i_ker_y < 0 || i_ker_y >= dim_im_in_y || i_ker_x < 0 || i_ker_x >= dim_im_in_x) { /* arm_fill_q15(0, pBuffer, ch_im_in); */ memset(pBuffer, 0, sizeof(q15_t)*ch_im_in); } else { /* arm_copy_q15((q15_t *) Im_in + (i_ker_y * dim_im_in_x + i_ker_x) * ch_im_in, pBuffer, ch_im_in); */ memcpy(pBuffer, (q15_t *) Im_in + (i_ker_y * dim_im_in_x + i_ker_x) * ch_im_in, sizeof(q15_t)*ch_im_in); } pBuffer += ch_im_in; } } if (i_out_x & 0x1) { int i; /* initialize the matrix pointers for A */ const q15_t *pA = wt; /* set up the second output pointers */ q15_t *pOut2 = pOut + ch_im_out; /* this loop over rows in A */ for (i = 0; i < ch_im_out; i += 2) { /* setup pointers for B */ q15_t *pB = im_buffer; const q15_t *pB2 = pB + ch_im_in * dim_kernel_y * dim_kernel_x; /* aling the second pointer for A */ const q15_t *pA2 = pA + ch_im_in * dim_kernel_y * dim_kernel_x; /* init the sum with bias */ q31_t sum = ((q31_t)bias[i] << bias_shift) + NN_ROUND(out_shift); q31_t sum2 = ((q31_t)bias[i] << bias_shift) + NN_ROUND(out_shift); q31_t sum3 = ((q31_t)bias[i + 1] << bias_shift) + NN_ROUND(out_shift); q31_t sum4 = ((q31_t)bias[i + 1] << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = ch_im_in * dim_kernel_y * dim_kernel_x >> 1; /* accumulate over the vector */ while (colCnt) { q31_t inA1 = *__SIMD32(pA)++; q31_t inB1 = *__SIMD32(pB)++; q31_t inA2 = *__SIMD32(pA2)++; q31_t inB2 = *__SIMD32(pB2)++; sum = __SMLAD(inA1, inB1, sum); sum2 = __SMLAD(inA1, inB2, sum2); sum3 = __SMLAD(inA2, inB1, sum3); sum4 = __SMLAD(inA2, inB2, sum4); colCnt--; } /* while over colCnt */ colCnt = ch_im_in * dim_kernel_y * dim_kernel_x & 0x1; while (colCnt) { q15_t inA1 = *pA++; q15_t inB1 = *pB++; q15_t inA2 = *pA2++; q15_t inB2 = *pB2++; sum += inA1 * inB1; sum2 += inA1 * inB2; sum3 += inA2 * inB1; sum4 += inA2 * inB2; colCnt--; } /* while over colCnt */ *pOut++ = (q15_t) __SSAT(sum >> out_shift, 16); *pOut++ = (q15_t) __SSAT(sum3 >> out_shift, 16); *pOut2++ = (q15_t) __SSAT(sum2 >> out_shift, 16); *pOut2++ = (q15_t) __SSAT(sum4 >> out_shift, 16); /* skip the row computed with A2 */ pA += ch_im_in * dim_kernel_y * dim_kernel_x; } /* for over ch_im_out */ pOut += ch_im_out; /* counter reset */ pBuffer = im_buffer; } } } #else /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ uint16_t i, j, k, l, m, n; int conv_out; signed char in_row, in_col; if (ch_im_in % 2 != 0 || ch_im_out % 2 != 0) { /* check if the input dimension meets the constraints */ return ARM_MATH_SIZE_MISMATCH; } for (i = 0; i < ch_im_out; i++) { for (j = 0; j < dim_im_out_y; j++) { for (k = 0; k < dim_im_out_x; k++) { conv_out = ((q31_t)bias[i] << bias_shift) + NN_ROUND(out_shift); for (m = 0; m < dim_kernel_y; m++) { for (n = 0; n < dim_kernel_x; n++) { in_row = stride_y * j + m - padding_y; in_col = stride_x * k + n - padding_x; if (in_row >= 0 && in_col >= 0 && in_row < dim_im_in_y && in_col < dim_im_in_x) { for (l = 0; l < ch_im_in; l++) { conv_out += Im_in[(in_row * dim_im_in_x + in_col) * ch_im_in + l] * wt[i * ch_im_in * dim_kernel_x * dim_kernel_y + (m * dim_kernel_x + n) * ch_im_in + l]; } } } } Im_out[i + (j * dim_im_out_x + k) * ch_im_out] = (q15_t) __SSAT((conv_out >> out_shift), 16); } } } #endif /* ARM_MATH_DSP */ /* Return to application */ return ARM_MATH_SUCCESS; } /** * @} end of NNConv group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q15_fast_nonsquare.c
C
apache-2.0
10,545
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_convolve_HWC_q7_RGB.c * Description: Q7 version of convolution for RGB image * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup NNConv * @{ */ /** * @brief Q7 convolution function for RGB image * @param[in] Im_in pointer to input tensor * @param[in] dim_im_in input tensor dimention * @param[in] ch_im_in number of input tensor channels * @param[in] wt pointer to kernel weights * @param[in] ch_im_out number of filters, i.e., output tensor channels * @param[in] dim_kernel filter kernel size * @param[in] padding padding sizes * @param[in] stride convolution stride * @param[in] bias pointer to bias * @param[in] bias_shift amount of left-shift for bias * @param[in] out_shift amount of right-shift for output * @param[in,out] Im_out pointer to output tensor * @param[in] dim_im_out output tensor dimension * @param[in,out] bufferA pointer to buffer space for input * @param[in,out] bufferB pointer to buffer space for output * @return The function returns either * <code>ARM_MATH_SIZE_MISMATCH</code> or <code>ARM_MATH_SUCCESS</code> based on the outcome of size checking. * * @details * * <b>Buffer size:</b> * * bufferA size: 2*ch_im_in*dim_kernel*dim_kernel * * bufferB size: 0 * * <b>Input dimension constraints:</b> * * ch_im_in equals 3 * * This kernel is written exclusively for convolution with ch_im_in * equals 3. This applies on the first layer of CNNs which has input * image with RGB format. */ arm_status arm_convolve_HWC_q7_RGB(const q7_t * Im_in, const uint16_t dim_im_in, const uint16_t ch_im_in, const q7_t * wt, const uint16_t ch_im_out, const uint16_t dim_kernel, const uint16_t padding, const uint16_t stride, const q7_t * bias, const uint16_t bias_shift, const uint16_t out_shift, q7_t * Im_out, const uint16_t dim_im_out, q15_t * bufferA, q7_t * bufferB) { #if defined (ARM_MATH_DSP) /* Run the following code for Cortex-M4 and Cortex-M7 */ int16_t i_out_y, i_out_x, i_ker_y, i_ker_x; /* * Here we use bufferA as q15_t internally as computation are done with q15_t level * im2col are done to output in q15_t format from q7_t input */ q15_t *pBuffer = bufferA; q7_t *pOut = Im_out; // check if number of input channels is 3 if (ch_im_in != 3) { return ARM_MATH_SIZE_MISMATCH; } // This part implements the im2col function for (i_out_y = 0; i_out_y < dim_im_out; i_out_y++) { for (i_out_x = 0; i_out_x < dim_im_out; i_out_x++) { for (i_ker_y = i_out_y * stride - padding; i_ker_y < i_out_y * stride - padding + dim_kernel; i_ker_y++) { for (i_ker_x = i_out_x * stride - padding; i_ker_x < i_out_x * stride - padding + dim_kernel; i_ker_x++) { if (i_ker_y < 0 || i_ker_y >= dim_im_in || i_ker_x < 0 || i_ker_x >= dim_im_in) { /* Equivalent to arm_fill_q15(0, pBuffer, ch_im_in) with assumption: ch_im_in = 3 */ *__SIMD32(pBuffer) = 0x0; *(pBuffer + 2) = 0; pBuffer += 3; } else { /* * Equivalent to: * arm_q7_to_q15_no_shift( (q7_t*)Im_in+(i_ker_y*dim_im_in+i_ker_x)*3, pBuffer, 3); */ const q7_t *pPixel = Im_in + (i_ker_y * dim_im_in + i_ker_x) * 3; q31_t buf = *__SIMD32(pPixel); union arm_nnword top; union arm_nnword bottom; top.word = __SXTB16(buf); bottom.word = __SXTB16(__ROR(buf, 8)); #ifndef ARM_MATH_BIG_ENDIAN /* * little-endian, | omit | 3rd | 2nd | 1st | * MSB LSB * top | 3rd | 1st |; bottom | omit | 2nd | * * version 1, need to swap 2nd and 3rd weight * *__SIMD32(pBuffer) = top.word; * *(pBuffer+2) = bottom.half_words[0]; * * version 2, no weight shuffling required */ *pBuffer++ = top.half_words[0]; *__SIMD32(pBuffer) = __PKHBT(bottom.word, top.word, 0); #else /* * big-endian, | 1st | 2nd | 3rd | omit | * MSB LSB * top | 2nd | omit |; bottom | 1st | 3rd | * * version 1, need to swap 2nd and 3rd weight * *__SIMD32(pBuffer) = bottom.word; * *(pBuffer+2) = top.half_words[1]; * * version 2, no weight shuffling required */ *pBuffer++ = bottom.half_words[0]; *__SIMD32(pBuffer) = __PKHTB(top.word, bottom.word, 0); #endif pBuffer += 2; } } } if (pBuffer == bufferA + 2 * 3 * dim_kernel * dim_kernel) { pOut = arm_nn_mat_mult_kernel_q7_q15(wt, bufferA, ch_im_out, 3 * dim_kernel * dim_kernel, bias_shift, out_shift, bias, pOut); /* counter reset */ pBuffer = bufferA; } } } /* left-over because odd number of output pixels */ if (pBuffer != bufferA) { const q7_t *pA = wt; int i; for (i = 0; i < ch_im_out; i++) { q31_t sum = ((q31_t)bias[i] << bias_shift) + NN_ROUND(out_shift); q15_t *pB = bufferA; /* basically each time it process 4 entries */ uint16_t colCnt = 3 * dim_kernel * dim_kernel >> 2; while (colCnt) { q31_t inA1, inA2; q31_t inB1, inB2; pA = (q7_t *) read_and_pad((void *)pA, &inA1, &inA2); inB1 = *__SIMD32(pB)++; sum = __SMLAD(inA1, inB1, sum); inB2 = *__SIMD32(pB)++; sum = __SMLAD(inA2, inB2, sum); colCnt--; } colCnt = 3 * dim_kernel * dim_kernel & 0x3; while (colCnt) { q7_t inA1 = *pA++; q15_t inB1 = *pB++; sum += inA1 * inB1; colCnt--; } *pOut++ = (q7_t) __SSAT((sum >> out_shift), 8); } } #else /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ uint16_t i, j, k, l, m, n; int conv_out; signed char in_row, in_col; // check if number of input channels is 3 if (ch_im_in != 3) { return ARM_MATH_SIZE_MISMATCH; } for (i = 0; i < ch_im_out; i++) { for (j = 0; j < dim_im_out; j++) { for (k = 0; k < dim_im_out; k++) { conv_out = (bias[i] << bias_shift) + NN_ROUND(out_shift); for (m = 0; m < dim_kernel; m++) { for (n = 0; n < dim_kernel; n++) { /* if-for implementation */ in_row = stride * j + m - padding; in_col = stride * k + n - padding; if (in_row >= 0 && in_col >= 0 && in_row < dim_im_in && in_col < dim_im_in) { for (l = 0; l < ch_im_in; l++) { conv_out += Im_in[(in_row * dim_im_in + in_col) * ch_im_in + l] * wt[i * ch_im_in * dim_kernel * dim_kernel + (m * dim_kernel + n) * ch_im_in + l]; } } } } Im_out[i + (j * dim_im_out + k) * ch_im_out] = (q7_t) __SSAT((conv_out >> out_shift), 8); } } } #endif /* ARM_MATH_DSP */ /* Return to application */ return (ARM_MATH_SUCCESS); } /** * @} end of NNConv group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q7_RGB.c
C
apache-2.0
10,247
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_convolve_HWC_q7_basic.c * Description: Q7 version of convolution * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup NNConv * @{ */ /** * @brief Basic Q7 convolution function * @param[in] Im_in pointer to input tensor * @param[in] dim_im_in input tensor dimention * @param[in] ch_im_in number of input tensor channels * @param[in] wt pointer to kernel weights * @param[in] ch_im_out number of filters, i.e., output tensor channels * @param[in] dim_kernel filter kernel size * @param[in] padding padding sizes * @param[in] stride convolution stride * @param[in] bias pointer to bias * @param[in] bias_shift amount of left-shift for bias * @param[in] out_shift amount of right-shift for output * @param[in,out] Im_out pointer to output tensor * @param[in] dim_im_out output tensor dimension * @param[in,out] bufferA pointer to buffer space for input * @param[in,out] bufferB pointer to buffer space for output * @return The function returns <code>ARM_MATH_SUCCESS</code> * * @details * * <b>Buffer size:</b> * * bufferA size: 2*ch_im_in*dim_kernel*dim_kernel * * bufferB size: 0 * * This basic version is designed to work for any input tensor and weight * dimension. */ arm_status arm_convolve_HWC_q7_basic(const q7_t * Im_in, const uint16_t dim_im_in, const uint16_t ch_im_in, const q7_t * wt, const uint16_t ch_im_out, const uint16_t dim_kernel, const uint16_t padding, const uint16_t stride, const q7_t * bias, const uint16_t bias_shift, const uint16_t out_shift, q7_t * Im_out, const uint16_t dim_im_out, q15_t * bufferA, q7_t * bufferB) { #if defined (ARM_MATH_DSP) /* Run the following code for Cortex-M4 and Cortex-M7 */ int16_t i_out_y, i_out_x, i_ker_y, i_ker_x; /* * Here we use bufferA as q15_t internally as computation are done with q15_t level * im2col are done to output in q15_t format from q7_t input */ q15_t *pBuffer = bufferA; q7_t *pOut = Im_out; /* This part implements the im2col function */ for (i_out_y = 0; i_out_y < dim_im_out; i_out_y++) { for (i_out_x = 0; i_out_x < dim_im_out; i_out_x++) { for (i_ker_y = i_out_y * stride - padding; i_ker_y < i_out_y * stride - padding + dim_kernel; i_ker_y++) { for (i_ker_x = i_out_x * stride - padding; i_ker_x < i_out_x * stride - padding + dim_kernel; i_ker_x++) { if (i_ker_y < 0 || i_ker_y >= dim_im_in || i_ker_x < 0 || i_ker_x >= dim_im_in) { /* Filling 0 for out-of-bound paddings */ /* arm_fill_q15(0, pBuffer, ch_im_in); */ memset(pBuffer, 0, sizeof(q15_t)*ch_im_in); } else { /* Copying the pixel data to column */ arm_q7_to_q15_no_shift((q7_t *) Im_in + (i_ker_y * dim_im_in + i_ker_x) * ch_im_in, pBuffer, ch_im_in); } pBuffer += ch_im_in; } } /* Computation is filed for every 2 columns */ if (pBuffer == bufferA + 2 * ch_im_in * dim_kernel * dim_kernel) { pOut = arm_nn_mat_mult_kernel_q7_q15(wt, bufferA, ch_im_out, ch_im_in * dim_kernel * dim_kernel, bias_shift, out_shift, bias, pOut); /* counter reset */ pBuffer = bufferA; } } } /* left-over because odd number of output pixels */ if (pBuffer != bufferA) { const q7_t *pA = wt; int i; for (i = 0; i < ch_im_out; i++) { /* Load the accumulator with bias first */ q31_t sum = ((q31_t)bias[i] << bias_shift) + NN_ROUND(out_shift); /* Point to the beging of the im2col buffer */ q15_t *pB = bufferA; /* Each time it process 4 entries */ uint16_t colCnt = ch_im_in * dim_kernel * dim_kernel >> 2; while (colCnt) { q31_t inA1, inA2; q31_t inB1, inB2; pA = (q7_t *) read_and_pad((void *)pA, &inA1, &inA2); inB1 = *__SIMD32(pB)++; sum = __SMLAD(inA1, inB1, sum); inB2 = *__SIMD32(pB)++; sum = __SMLAD(inA2, inB2, sum); colCnt--; } colCnt = ch_im_in * dim_kernel * dim_kernel & 0x3; while (colCnt) { q7_t inA1 = *pA++; q15_t inB1 = *pB++; sum += inA1 * inB1; colCnt--; } *pOut++ = (q7_t) __SSAT((sum >> out_shift), 8); } } #else /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ uint16_t i, j, k, l, m, n; int conv_out; signed char in_row, in_col; for (i = 0; i < ch_im_out; i++) { for (j = 0; j < dim_im_out; j++) { for (k = 0; k < dim_im_out; k++) { conv_out = ((q31_t)bias[i] << bias_shift) + NN_ROUND(out_shift); for (m = 0; m < dim_kernel; m++) { for (n = 0; n < dim_kernel; n++) { // if-for implementation in_row = stride * j + m - padding; in_col = stride * k + n - padding; if (in_row >= 0 && in_col >= 0 && in_row < dim_im_in && in_col < dim_im_in) { for (l = 0; l < ch_im_in; l++) { conv_out += Im_in[(in_row * dim_im_in + in_col) * ch_im_in + l] * wt[i * ch_im_in * dim_kernel * dim_kernel + (m * dim_kernel + n) * ch_im_in + l]; } } } } Im_out[i + (j * dim_im_out + k) * ch_im_out] = (q7_t) __SSAT((conv_out >> out_shift), 8); } } } #endif /* ARM_MATH_DSP */ /* Return to application */ return ARM_MATH_SUCCESS; } /** * @} end of NNConv group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q7_basic.c
C
apache-2.0
8,242
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_convolve_HWC_q7_basic.c * Description: Q7 version of convolution * * $Date: 13. July 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup NNConv * @{ */ /** * @brief Basic Q7 convolution function (non-sqaure shape) * @param[in] Im_in pointer to input tensor * @param[in] dim_im_in_x input tensor dimention x * @param[in] dim_im_in_y input tensor dimention y * @param[in] ch_im_in number of input tensor channels * @param[in] wt pointer to kernel weights * @param[in] ch_im_out number of filters, i.e., output tensor channels * @param[in] dim_kernel_x filter kernel size x * @param[in] dim_kernel_y filter kernel size y * @param[in] padding_x padding size x * @param[in] padding_y padding size y * @param[in] stride_x convolution stride x * @param[in] stride_y convolution stride y * @param[in] bias pointer to bias * @param[in] bias_shift amount of left-shift for bias * @param[in] out_shift amount of right-shift for output * @param[in,out] Im_out pointer to output tensor * @param[in] dim_im_out_x output tensor dimension x * @param[in] dim_im_out_y output tensor dimension y * @param[in,out] bufferA pointer to buffer space for input * @param[in,out] bufferB pointer to buffer space for output * @return The function returns <code>ARM_MATH_SUCCESS</code> */ arm_status arm_convolve_HWC_q7_basic_nonsquare(const q7_t * Im_in, const uint16_t dim_im_in_x, const uint16_t dim_im_in_y, const uint16_t ch_im_in, const q7_t * wt, const uint16_t ch_im_out, const uint16_t dim_kernel_x, const uint16_t dim_kernel_y, const uint16_t padding_x, const uint16_t padding_y, const uint16_t stride_x, const uint16_t stride_y, const q7_t * bias, const uint16_t bias_shift, const uint16_t out_shift, q7_t * Im_out, const uint16_t dim_im_out_x, const uint16_t dim_im_out_y, q15_t * bufferA, q7_t * bufferB) { #if defined (ARM_MATH_DSP) /* Run the following code for Cortex-M4 and Cortex-M7 */ int16_t i_out_y, i_out_x, i_ker_y, i_ker_x; /* * Here we use bufferA as q15_t internally as computation are done with q15_t level * im2col are done to output in q15_t format from q7_t input */ q15_t *pBuffer = bufferA; q7_t *pOut = Im_out; /* This part implements the im2col function */ for (i_out_y = 0; i_out_y < dim_im_out_y; i_out_y++) { for (i_out_x = 0; i_out_x < dim_im_out_x; i_out_x++) { for (i_ker_y = i_out_y * stride_y - padding_y; i_ker_y < i_out_y * stride_y - padding_y + dim_kernel_y; i_ker_y++) { for (i_ker_x = i_out_x * stride_x - padding_x; i_ker_x < i_out_x * stride_x - padding_x + dim_kernel_x; i_ker_x++) { if (i_ker_y < 0 || i_ker_y >= dim_im_in_y || i_ker_x < 0 || i_ker_x >= dim_im_in_x) { /* Filling 0 for out-of-bound paddings */ /* arm_fill_q15(0, pBuffer, ch_im_in); */ memset(pBuffer, 0, sizeof(q15_t)*ch_im_in); } else { /* Copying the pixel data to column */ arm_q7_to_q15_no_shift((q7_t *) Im_in + (i_ker_y * dim_im_in_x + i_ker_x) * ch_im_in, pBuffer, ch_im_in); } pBuffer += ch_im_in; } } /* Computation is filed for every 2 columns */ if (pBuffer == bufferA + 2 * ch_im_in * dim_kernel_y * dim_kernel_x) { pOut = arm_nn_mat_mult_kernel_q7_q15(wt, bufferA, ch_im_out, ch_im_in * dim_kernel_y * dim_kernel_x, bias_shift, out_shift, bias, pOut); /* counter reset */ pBuffer = bufferA; } } } /* left-over because odd number of output pixels */ if (pBuffer != bufferA) { const q7_t *pA = wt; int i; for (i = 0; i < ch_im_out; i++) { /* Load the accumulator with bias first */ q31_t sum = ((q31_t)bias[i] << bias_shift) + NN_ROUND(out_shift); /* Point to the beging of the im2col buffer */ q15_t *pB = bufferA; /* Each time it process 4 entries */ uint16_t colCnt = ch_im_in * dim_kernel_y * dim_kernel_x >> 2; while (colCnt) { q31_t inA1, inA2; q31_t inB1, inB2; pA = (q7_t *) read_and_pad((void *)pA, &inA1, &inA2); inB1 = *__SIMD32(pB)++; sum = __SMLAD(inA1, inB1, sum); inB2 = *__SIMD32(pB)++; sum = __SMLAD(inA2, inB2, sum); colCnt--; } colCnt = ch_im_in * dim_kernel_y * dim_kernel_x & 0x3; while (colCnt) { q7_t inA1 = *pA++; q15_t inB1 = *pB++; sum += inA1 * inB1; colCnt--; } *pOut++ = (q7_t) __SSAT((sum >> out_shift), 8); } } #else /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ uint16_t i, j, k, l, m, n; int conv_out; signed char in_row, in_col; for (i = 0; i < ch_im_out; i++) { for (j = 0; j < dim_im_out_y; j++) { for (k = 0; k < dim_im_out_x; k++) { conv_out = ((q31_t)bias[i] << bias_shift) + NN_ROUND(out_shift); for (m = 0; m < dim_kernel_y; m++) { for (n = 0; n < dim_kernel_x; n++) { // if-for implementation in_row = stride_y * j + m - padding_y; in_col = stride_x * k + n - padding_x; if (in_row >= 0 && in_col >= 0 && in_row < dim_im_in_y && in_col < dim_im_in_x) { for (l = 0; l < ch_im_in; l++) { conv_out += Im_in[(in_row * dim_im_in_x + in_col) * ch_im_in + l] * wt[i * ch_im_in * dim_kernel_y * dim_kernel_x + (m * dim_kernel_x + n) * ch_im_in + l]; } } } } Im_out[i + (j * dim_im_out_x + k) * ch_im_out] = (q7_t) __SSAT((conv_out >> out_shift), 8); } } } #endif /* ARM_MATH_DSP */ /* Return to application */ return ARM_MATH_SUCCESS; } /** * @} end of NNConv group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q7_basic_nonsquare.c
C
apache-2.0
9,042
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_convolve_HWC_q7_fast.c * Description: Fast Q7 version of convolution * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup NNConv * @{ */ /** * @brief Fast Q7 convolution function * @param[in] Im_in pointer to input tensor * @param[in] dim_im_in input tensor dimention * @param[in] ch_im_in number of input tensor channels * @param[in] wt pointer to kernel weights * @param[in] ch_im_out number of filters, i.e., output tensor channels * @param[in] dim_kernel filter kernel size * @param[in] padding padding sizes * @param[in] stride convolution stride * @param[in] bias pointer to bias * @param[in] bias_shift amount of left-shift for bias * @param[in] out_shift amount of right-shift for output * @param[in,out] Im_out pointer to output tensor * @param[in] dim_im_out output tensor dimension * @param[in,out] bufferA pointer to buffer space for input * @param[in,out] bufferB pointer to buffer space for output * @return The function returns either * <code>ARM_MATH_SIZE_MISMATCH</code> or <code>ARM_MATH_SUCCESS</code> based on the outcome of size checking. * * @details * * <b>Buffer size:</b> * * bufferA size: 2*ch_im_in*dim_kernel*dim_kernel * * bufferB size: 0 * * <b>Input dimension constraints:</b> * * ch_im_in is multiple of 4 ( because of the SIMD32 read and swap ) * * ch_im_out is multipe of 2 ( bacause 2x2 mat_mult kernel ) * * The im2col converts the Q7 tensor input into Q15 column, which is stored in * bufferA. There is reordering happenning during this im2col process with * arm_q7_to_q15_reordered_no_shift. For every four elements, the second and * third elements are swapped. * * The computation kernel arm_nn_mat_mult_kernel_q7_q15_reordered does the * GEMM computation with the reordered columns. * * To speed-up the determination of the padding condition, we split the * computation into 3x3 parts, i.e., {top, mid, bottom} X {left, mid, right}. * This reduces the total number of boundary condition checks and improves * the data copying performance. */ arm_status arm_convolve_HWC_q7_fast(const q7_t * Im_in, const uint16_t dim_im_in, const uint16_t ch_im_in, const q7_t * wt, const uint16_t ch_im_out, const uint16_t dim_kernel, const uint16_t padding, const uint16_t stride, const q7_t * bias, const uint16_t bias_shift, const uint16_t out_shift, q7_t * Im_out, const uint16_t dim_im_out, q15_t * bufferA, q7_t * bufferB) { #if defined (ARM_MATH_DSP) /* Run the following code for Cortex-M4 and Cortex-M7 */ int16_t i_out_y, i_out_x, i_ker_y, i_ker_x; /* * Here we use bufferA as q15_t internally as computation are done with q15_t level * im2col are done to output in q15_t format from q7_t input */ q15_t *pBuffer = bufferA; q7_t *pOut = Im_out; if (ch_im_in % 4 != 0 || ch_im_out % 2 != 0) { /* check if the input dimension meets the constraints */ return ARM_MATH_SIZE_MISMATCH; } /* * Here we split the entire matrix into three regions depending on the padding situation * Top: i_out_y from 0 to padding - 1 * Middle: i_out_y from padding to dim_im_out-padding-1 * Bottom: i_out_y from dim_im_out-padding to dim_im_out-1 */ /* top part */ for (i_out_y = 0; i_out_y < padding; i_out_y++) { for (i_out_x = 0; i_out_x < dim_im_out; i_out_x++) { /* This part implements the im2col function */ for (i_ker_y = i_out_y * stride - padding; i_ker_y < i_out_y * stride - padding + dim_kernel; i_ker_y++) { for (i_ker_x = i_out_x * stride - padding; i_ker_x < i_out_x * stride - padding + dim_kernel; i_ker_x++) { if (i_ker_y < 0 || i_ker_y >= dim_im_in || i_ker_x < 0 || i_ker_x >= dim_im_in) { /* arm_fill_q15(0, pBuffer, ch_im_in); */ memset(pBuffer, 0, sizeof(q15_t)*ch_im_in); } else { arm_q7_to_q15_reordered_no_shift ((q7_t *) Im_in + (i_ker_y * dim_im_in + i_ker_x) * ch_im_in, pBuffer, ch_im_in); } pBuffer += ch_im_in; } } if (pBuffer == bufferA + 2 * ch_im_in * dim_kernel * dim_kernel) { pOut = arm_nn_mat_mult_kernel_q7_q15_reordered(wt, bufferA, ch_im_out, ch_im_in * dim_kernel * dim_kernel, bias_shift, out_shift, bias, pOut); /* counter reset */ pBuffer = bufferA; } } } /* middle part, here we also divide the x into left, mid and right */ for (; i_out_y < dim_im_out - padding; i_out_y++) { /* left part */ for (i_out_x = 0; i_out_x < padding; i_out_x++) { /* This part implements the im2col function */ for (i_ker_y = i_out_y * stride - padding; i_ker_y < i_out_y * stride - padding + dim_kernel; i_ker_y++) { for (i_ker_x = i_out_x * stride - padding; i_ker_x < i_out_x * stride - padding + dim_kernel; i_ker_x++) { if (i_ker_x < 0 || i_ker_x >= dim_im_in) { /* arm_fill_q15(0, pBuffer, ch_im_in); */ memset(pBuffer, 0, sizeof(q15_t)*ch_im_in); } else { arm_q7_to_q15_reordered_no_shift ((q7_t *) Im_in + (i_ker_y * dim_im_in + i_ker_x) * ch_im_in, pBuffer, ch_im_in); } pBuffer += ch_im_in; } } if (pBuffer == bufferA + 2 * ch_im_in * dim_kernel * dim_kernel) { pOut = arm_nn_mat_mult_kernel_q7_q15_reordered(wt, bufferA, ch_im_out, ch_im_in * dim_kernel * dim_kernel, bias_shift, out_shift, bias, pOut); /* counter reset */ pBuffer = bufferA; } } /* mid part */ for (; i_out_x < dim_im_out - padding; i_out_x++) { /* This part implements the im2col function */ for (i_ker_y = i_out_y * stride - padding; i_ker_y < i_out_y * stride - padding + dim_kernel; i_ker_y++) { arm_q7_to_q15_reordered_no_shift((q7_t *) Im_in + (i_ker_y * dim_im_in + i_out_x * stride - padding) * ch_im_in, pBuffer, ch_im_in * dim_kernel); pBuffer += ch_im_in * dim_kernel; } if (pBuffer == bufferA + 2 * ch_im_in * dim_kernel * dim_kernel) { pOut = arm_nn_mat_mult_kernel_q7_q15_reordered(wt, bufferA, ch_im_out, ch_im_in * dim_kernel * dim_kernel, bias_shift, out_shift, bias, pOut); /* counter reset */ pBuffer = bufferA; } } /* right part */ for (; i_out_x < dim_im_out; i_out_x++) { /* This part implements the im2col function */ for (i_ker_y = i_out_y * stride - padding; i_ker_y < i_out_y * stride - padding + dim_kernel; i_ker_y++) { for (i_ker_x = i_out_x * stride - padding; i_ker_x < i_out_x * stride - padding + dim_kernel; i_ker_x++) { if (i_ker_x < 0 || i_ker_x >= dim_im_in) { /* arm_fill_q15(0, pBuffer, ch_im_in); */ memset(pBuffer, 0, sizeof(q15_t)*ch_im_in); } else { arm_q7_to_q15_reordered_no_shift ((q7_t *) Im_in + (i_ker_y * dim_im_in + i_ker_x) * ch_im_in, pBuffer, ch_im_in); } pBuffer += ch_im_in; } } if (pBuffer == bufferA + 2 * ch_im_in * dim_kernel * dim_kernel) { pOut = arm_nn_mat_mult_kernel_q7_q15_reordered(wt, bufferA, ch_im_out, ch_im_in * dim_kernel * dim_kernel, bias_shift, out_shift, bias, pOut); /* counter reset */ pBuffer = bufferA; } } } for (; i_out_y < dim_im_out; i_out_y++) { for (i_out_x = 0; i_out_x < dim_im_out; i_out_x++) { /* This part implements the im2col function */ for (i_ker_y = i_out_y * stride - padding; i_ker_y < i_out_y * stride - padding + dim_kernel; i_ker_y++) { for (i_ker_x = i_out_x * stride - padding; i_ker_x < i_out_x * stride - padding + dim_kernel; i_ker_x++) { if (i_ker_y < 0 || i_ker_y >= dim_im_in || i_ker_x < 0 || i_ker_x >= dim_im_in) { /* arm_fill_q15(0, pBuffer, ch_im_in); */ memset(pBuffer, 0, sizeof(q15_t)*ch_im_in); } else { arm_q7_to_q15_reordered_no_shift ((q7_t *) Im_in + (i_ker_y * dim_im_in + i_ker_x) * ch_im_in, pBuffer, ch_im_in); } pBuffer += ch_im_in; } } if (pBuffer == bufferA + 2 * ch_im_in * dim_kernel * dim_kernel) { pOut = arm_nn_mat_mult_kernel_q7_q15_reordered(wt, bufferA, ch_im_out, ch_im_in * dim_kernel * dim_kernel, bias_shift, out_shift, bias, pOut); /* counter reset */ pBuffer = bufferA; } } } /* check if there is left-over for compute */ if (pBuffer != bufferA) { const q7_t *pA = wt; int i; for (i = 0; i < ch_im_out; i++) { q31_t sum = ((q31_t)bias[i] << bias_shift) + NN_ROUND(out_shift); q15_t *pB = bufferA; /* each time it process 4 entries */ uint16_t colCnt = ch_im_in * dim_kernel * dim_kernel >> 2; while (colCnt) { q31_t inA1, inA2; q31_t inB1, inB2; pA = (q7_t *) read_and_pad_reordered((void *)pA, &inA1, &inA2); inB1 = *__SIMD32(pB)++; sum = __SMLAD(inA1, inB1, sum); inB2 = *__SIMD32(pB)++; sum = __SMLAD(inA2, inB2, sum); colCnt--; } colCnt = ch_im_in * dim_kernel * dim_kernel & 0x3; while (colCnt) { q7_t inA1 = *pA++; q15_t inB1 = *pB++; sum += inA1 * inB1; colCnt--; } *pOut = (q7_t) __SSAT((sum >> out_shift), 8); pOut++; } } #else /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ uint16_t i, j, k, l, m, n; int conv_out; signed char in_row, in_col; if (ch_im_in % 4 != 0 || ch_im_out % 2 != 0) { /* check if the input dimension meets the constraints */ return ARM_MATH_SIZE_MISMATCH; } for (i = 0; i < ch_im_out; i++) { for (j = 0; j < dim_im_out; j++) { for (k = 0; k < dim_im_out; k++) { conv_out = (bias[i] << bias_shift) + NN_ROUND(out_shift); for (m = 0; m < dim_kernel; m++) { for (n = 0; n < dim_kernel; n++) { // if-for implementation in_row = stride * j + m - padding; in_col = stride * k + n - padding; if (in_row >= 0 && in_col >= 0 && in_row < dim_im_in && in_col < dim_im_in) { for (l = 0; l < ch_im_in; l++) { conv_out += Im_in[(in_row * dim_im_in + in_col) * ch_im_in + l] * wt[i * ch_im_in * dim_kernel * dim_kernel + (m * dim_kernel + n) * ch_im_in + l]; } } } } Im_out[i + (j * dim_im_out + k) * ch_im_out] = (q7_t) __SSAT((conv_out >> out_shift), 8); } } } #endif /* ARM_MATH_DSP */ /* Return to application */ return ARM_MATH_SUCCESS; } /** * @} end of NNConv group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q7_fast.c
C
apache-2.0
16,068
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_convolve_HWC_q7_fast_nonsquare.c * Description: Fast Q7 version of convolution (non-sqaure shape) * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup NNConv * @{ */ /** * @brief Fast Q7 convolution function (non-sqaure shape) * @param[in] Im_in pointer to input tensor * @param[in] dim_im_in_x input tensor dimention x * @param[in] dim_im_in_y input tensor dimention y * @param[in] ch_im_in number of input tensor channels * @param[in] wt pointer to kernel weights * @param[in] ch_im_out number of filters, i.e., output tensor channels * @param[in] dim_kernel_x filter kernel size x * @param[in] dim_kernel_y filter kernel size y * @param[in] padding_x padding size x * @param[in] padding_y padding size y * @param[in] stride_x convolution stride x * @param[in] stride_y convolution stride y * @param[in] bias pointer to bias * @param[in] bias_shift amount of left-shift for bias * @param[in] out_shift amount of right-shift for output * @param[in,out] Im_out pointer to output tensor * @param[in] dim_im_out_x output tensor dimension x * @param[in] dim_im_out_y output tensor dimension y * @param[in,out] bufferA pointer to buffer space for input * @param[in,out] bufferB pointer to buffer space for output * @return The function returns either * <code>ARM_MATH_SIZE_MISMATCH</code> or <code>ARM_MATH_SUCCESS</code> based on the outcome of size checking. * * This function is the version with full list of optimization tricks, but with * some contraints: * ch_im_in is multiple of 4 * ch_im_out is multiple of 2 */ arm_status arm_convolve_HWC_q7_fast_nonsquare(const q7_t * Im_in, const uint16_t dim_im_in_x, const uint16_t dim_im_in_y, const uint16_t ch_im_in, const q7_t * wt, const uint16_t ch_im_out, const uint16_t dim_kernel_x, const uint16_t dim_kernel_y, const uint16_t padding_x, const uint16_t padding_y, const uint16_t stride_x, const uint16_t stride_y, const q7_t * bias, const uint16_t bias_shift, const uint16_t out_shift, q7_t * Im_out, const uint16_t dim_im_out_x, const uint16_t dim_im_out_y, q15_t * bufferA, q7_t * bufferB) { #if defined (ARM_MATH_DSP) /* Run the following code for Cortex-M4 and Cortex-M7 */ int16_t i_out_y, i_out_x, i_ker_y, i_ker_x; /* ----------------------- * Here we use bufferA as q15_t internally as computation are done with q15_t level * im2col are done to output in q15_t format from q7_t input */ q15_t *pBuffer = bufferA; q7_t *pOut = Im_out; if (ch_im_in % 4 != 0 || ch_im_out % 2 != 0) { /* check if the input dimension meets the constraints */ return ARM_MATH_SIZE_MISMATCH; } /* * Here we split the entire matrix into three regions depending on the padding situation * Top: i_out_y from 0 to padding - 1 * Middle: i_out_y from padding to dim_im_out-padding-1 * Bottom: i_out_y from dim_im_out-padding to dim_im_out-1 */ /* top part */ for (i_out_y = 0; i_out_y < padding_y; i_out_y++) { for (i_out_x = 0; i_out_x < dim_im_out_x; i_out_x++) { /* This part implements the im2col function */ for (i_ker_y = i_out_y * stride_y - padding_y; i_ker_y < i_out_y * stride_y - padding_y + dim_kernel_y; i_ker_y++) { for (i_ker_x = i_out_x * stride_x - padding_x; i_ker_x < i_out_x * stride_x - padding_x + dim_kernel_x; i_ker_x++) { if (i_ker_y < 0 || i_ker_y >= dim_im_in_y || i_ker_x < 0 || i_ker_x >= dim_im_in_x) { /* arm_fill_q15(0, pBuffer, ch_im_in); */ memset(pBuffer, 0, sizeof(q15_t)*ch_im_in); } else { arm_q7_to_q15_reordered_no_shift((q7_t *) Im_in + (i_ker_y * dim_im_in_x + i_ker_x) * ch_im_in, pBuffer, ch_im_in); } pBuffer += ch_im_in; } } if (pBuffer == bufferA + 2 * ch_im_in * dim_kernel_x * dim_kernel_y) { pOut = arm_nn_mat_mult_kernel_q7_q15_reordered(wt, bufferA, ch_im_out, ch_im_in * dim_kernel_x * dim_kernel_y, bias_shift, out_shift, bias, pOut); /* counter reset */ pBuffer = bufferA; } } } /* middle part, here we also divide the x into left, mid and right */ for (; i_out_y < dim_im_out_y - padding_y; i_out_y++) { /* left part */ for (i_out_x = 0; i_out_x < padding_x; i_out_x++) { /* This part implements the im2col function */ for (i_ker_y = i_out_y * stride_y - padding_y; i_ker_y < i_out_y * stride_y - padding_y + dim_kernel_y; i_ker_y++) { for (i_ker_x = i_out_x * stride_x - padding_x; i_ker_x < i_out_x * stride_x - padding_x + dim_kernel_x; i_ker_x++) { if (i_ker_x < 0 || i_ker_x >= dim_im_in_x) { /* arm_fill_q15(0, pBuffer, ch_im_in); */ memset(pBuffer, 0, sizeof(q15_t)*ch_im_in); } else { arm_q7_to_q15_reordered_no_shift((q7_t *) Im_in + (i_ker_y * dim_im_in_x + i_ker_x) * ch_im_in, pBuffer, ch_im_in); } pBuffer += ch_im_in; } } if (pBuffer == bufferA + 2 * ch_im_in * dim_kernel_x * dim_kernel_y) { pOut = arm_nn_mat_mult_kernel_q7_q15_reordered(wt, bufferA, ch_im_out, ch_im_in * dim_kernel_x * dim_kernel_y, bias_shift, out_shift, bias, pOut); /* counter reset */ pBuffer = bufferA; } } /* mid part */ for (; i_out_x < dim_im_out_x - padding_x; i_out_x++) { /* This part implements the im2col function */ for (i_ker_y = i_out_y * stride_y - padding_y; i_ker_y < i_out_y * stride_y - padding_y + dim_kernel_y; i_ker_y++) { arm_q7_to_q15_reordered_no_shift((q7_t *) Im_in + (i_ker_y * dim_im_in_x + i_out_x * stride_x - padding_x) * ch_im_in, pBuffer, ch_im_in * dim_kernel_x); pBuffer += ch_im_in * dim_kernel_x; } if (pBuffer == bufferA + 2 * ch_im_in * dim_kernel_x * dim_kernel_y) { pOut = arm_nn_mat_mult_kernel_q7_q15_reordered(wt, bufferA, ch_im_out, ch_im_in * dim_kernel_x * dim_kernel_y, bias_shift, out_shift, bias, pOut); /* counter reset */ pBuffer = bufferA; } } /* right part */ for (; i_out_x < dim_im_out_x; i_out_x++) { /* This part implements the im2col function */ for (i_ker_y = i_out_y * stride_y - padding_y; i_ker_y < i_out_y * stride_y - padding_y + dim_kernel_y; i_ker_y++) { for (i_ker_x = i_out_x * stride_x - padding_x; i_ker_x < i_out_x * stride_x - padding_x + dim_kernel_x; i_ker_x++) { if (i_ker_x < 0 || i_ker_x >= dim_im_in_x) { /* arm_fill_q15(0, pBuffer, ch_im_in); */ memset(pBuffer, 0, sizeof(q15_t)*ch_im_in); } else { arm_q7_to_q15_reordered_no_shift((q7_t *) Im_in + (i_ker_y * dim_im_in_x + i_ker_x) * ch_im_in, pBuffer, ch_im_in); } pBuffer += ch_im_in; } } if (pBuffer == bufferA + 2 * ch_im_in * dim_kernel_x * dim_kernel_y) { pOut = arm_nn_mat_mult_kernel_q7_q15_reordered(wt, bufferA, ch_im_out, ch_im_in * dim_kernel_x * dim_kernel_y, bias_shift, out_shift, bias, pOut); /* counter reset */ pBuffer = bufferA; } } } for (; i_out_y < dim_im_out_y; i_out_y++) { for (i_out_x = 0; i_out_x < dim_im_out_x; i_out_x++) { /* This part implements the im2col function */ for (i_ker_y = i_out_y * stride_y - padding_y; i_ker_y < i_out_y * stride_y - padding_y + dim_kernel_y; i_ker_y++) { for (i_ker_x = i_out_x * stride_x - padding_x; i_ker_x < i_out_x * stride_x - padding_x + dim_kernel_x; i_ker_x++) { if (i_ker_y < 0 || i_ker_y >= dim_im_in_y || i_ker_x < 0 || i_ker_x >= dim_im_in_x) { /* arm_fill_q15(0, pBuffer, ch_im_in); */ memset(pBuffer, 0, sizeof(q15_t)*ch_im_in); } else { arm_q7_to_q15_reordered_no_shift((q7_t *) Im_in + (i_ker_y * dim_im_in_x + i_ker_x) * ch_im_in, pBuffer, ch_im_in); } pBuffer += ch_im_in; } } if (pBuffer == bufferA + 2 * ch_im_in * dim_kernel_x * dim_kernel_y) { pOut = arm_nn_mat_mult_kernel_q7_q15_reordered(wt, bufferA, ch_im_out, ch_im_in * dim_kernel_x * dim_kernel_y, bias_shift, out_shift, bias, pOut); /* counter reset */ pBuffer = bufferA; } } } /* check if there is left-over for compute */ if (pBuffer != bufferA) { const q7_t *pA = wt; int i; for (i = 0; i < ch_im_out; i++) { q31_t sum = ((q31_t)(bias[i]) << bias_shift) + NN_ROUND(out_shift); q15_t *pB = bufferA; /* basically each time it process 4 entries */ uint16_t colCnt = ch_im_in * dim_kernel_x * dim_kernel_y >> 2; while (colCnt) { q31_t inA1, inA2; q31_t inB1, inB2; pA = (const q7_t *)read_and_pad_reordered((void *)pA, &inA1, &inA2); inB1 = *__SIMD32(pB)++; sum = __SMLAD(inA1, inB1, sum); inB2 = *__SIMD32(pB)++; sum = __SMLAD(inA2, inB2, sum); colCnt--; } colCnt = (ch_im_in * dim_kernel_y * dim_kernel_x) & 0x3; while (colCnt) { q7_t inA1 = *pA++; q15_t inB1 = *pB++; sum += inA1 * inB1; colCnt--; } *pOut = (q7_t) __SSAT((sum >> out_shift), 8); pOut++; } } #else /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ int i, j, k, l, m, n; int conv_out; int in_row, in_col; if (ch_im_in % 4 != 0 || ch_im_out % 2 != 0) { /* check if the input dimension meets the constraints */ return ARM_MATH_SIZE_MISMATCH; } for (i = 0; i < ch_im_out; i++) { for (j = 0; j < dim_im_out_y; j++) { for (k = 0; k < dim_im_out_x; k++) { conv_out = ((q31_t)(bias[i]) << bias_shift) + NN_ROUND(out_shift); for (m = 0; m < dim_kernel_y; m++) { for (n = 0; n < dim_kernel_x; n++) { /* if-for implementation */ in_row = stride_y * j + m - padding_y; in_col = stride_x * k + n - padding_x; if (in_row >= 0 && in_col >= 0 && in_row < dim_im_in_y && in_col < dim_im_in_x) { for (l = 0; l < ch_im_in; l++) { conv_out += Im_in[(in_row * dim_im_in_x + in_col) * ch_im_in + l] * wt[i * ch_im_in * dim_kernel_y * dim_kernel_x + (m * dim_kernel_x + n) * ch_im_in + l]; } } } } Im_out[i + (j * dim_im_out_x + k) * ch_im_out] = (q7_t) __SSAT((conv_out >> out_shift), 8); } } } #endif /* ARM_MATH_DSP */ /* Return to application */ return ARM_MATH_SUCCESS; } /** * @} end of NNConv group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/ConvolutionFunctions/arm_convolve_HWC_q7_fast_nonsquare.c
C
apache-2.0
15,236
/* * Copyright (C) 2010-2019 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_depthwise_conv_u8_basic_ver1.c * Description: u8 depthwise convolution function * * $Date: June, 2019 * $Revision: V.0.8.0 * * Target : Cortex-M cores with DSP extension * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" #include <stdint.h> #include <stdio.h> #define DILATION_X (1) #define DILATION_Y (1) /** * @ingroup groupNN */ /** * @addtogroup NNConv * @{ */ /** * @brief uint8 depthwise convolution function with asymmetric quantization for even number of channel multiplier * and input channels. Unless specified otherwise, arguments are mandatory. Both square and non-square inputs * are accepted. * * @param[in] input Pointer to input tensor * @param[in] input_x Width of input tensor * @param[in] input_y Height of input tensor * @param[in] input_ch Channels in input tensor * @param[in] kernel Pointer to kernel weights * @param[in] kernel_x Width of kernel * @param[in] kernel_y Height of kernel * @param[in] ch_mult Number of channel multiplier * @param[in] pad_x Padding sizes x * @param[in] pad_y Padding sizes y * @param[in] stride_x Convolution stride along the width * @param[in] stride_y Convolution stride along the height * @param[in] dilation_x Dilation along width. Not used and intended for future enhancement. * @param[in] dilation_y Dilation along height. Not used and intended for future enhancement. * @param[in] bias Pointer to optional bias values. If no bias is * availble, NULL is expected * @param[in] input_offset Input tensor zero offset * @param[in] filter_offset Kernel tensor zero offset * @param[in] output_offset Output tensor zero offset * @param[in,out] output Pointer to output tensor * @param[in] output_x Width of output tensor * @param[in] output_y Height of output tensor * @param[in] output_activation_min Minimum value to clamp the output to. Range : {0, 255} * @param[in] output_activation_max Minimum value to clamp the output to. Range : {0, 255} * @param[in] out_shift Amount of right-shift for output * @param[in] out_mult Output multiplier for requantization * @return The function returns one of the following * <code>ARM_MATH_SIZE_MISMATCH</code> - Not supported dimension of tensors * <code>ARM_MATH_SUCCESS</code> - Successful operation * <code>ARM_MATH_ARGUMENT_ERROR</code> - Implementation not available * * <b> Input constraints</b> * ch_mult is multiple of 2 * kernel_x is multiple of 2 * */ arm_status arm_depthwise_conv_u8_basic_ver1(const uint8_t *input, const uint16_t input_x, const uint16_t input_y, const uint16_t input_ch, const uint8_t *kernel, const uint16_t kernel_x, const uint16_t kernel_y, const int16_t ch_mult, const int16_t pad_x, const int16_t pad_y, const int16_t stride_x, const int16_t stride_y, const int16_t dilation_x, const int16_t dilation_y, const int32_t *bias, const int32_t input_offset, const int32_t filter_offset, const int32_t output_offset, uint8_t *output, const uint16_t output_x, const uint16_t output_y, const int32_t output_activation_min, const int32_t output_activation_max, const int32_t out_shift, const int32_t out_mult) { arm_status status = ARM_MATH_SUCCESS; #if defined (ARM_MATH_DSP) int i_out = 0; (void)dilation_x; (void)dilation_y; const int32_t input_offset_pkd = (input_offset & 0xFFFF) | (input_offset & 0xFFFF) << 16; const int32_t kernel_offset_pkd = (filter_offset & 0xFFFF) | (filter_offset & 0xFFFF) << 16; if (0 != ch_mult % 2 || 0 != kernel_x % 2) { return ARM_MATH_SIZE_MISMATCH; } for (int i_out_y = 0; i_out_y < output_y; i_out_y++) { const int16_t base_idx_y = (i_out_y * stride_y) - pad_y; for (int i_out_x = 0; i_out_x < output_x; i_out_x++) { const int16_t base_idx_x = (i_out_x * stride_x) - pad_x; for (int i_input_ch = 0; i_input_ch < input_ch; i_input_ch++) { for (int i_ch_mult = 0; i_ch_mult < ch_mult; i_ch_mult += 2) { const int idx_out_ch = i_ch_mult + i_input_ch * ch_mult; int32_t acc_0 = 0; int32_t acc_1 = 0; if (NULL != bias) { acc_0 = bias[idx_out_ch]; acc_1 = bias[idx_out_ch + 1]; } for (int i_ker_y = 0; i_ker_y < kernel_y; i_ker_y++) { const int32_t idx_y = base_idx_y + DILATION_Y * i_ker_y; const int32_t y_in_range = (idx_y >= 0) && (idx_y < input_y); for (int i_ker_x = 0; i_ker_x < kernel_x; i_ker_x += 2) { if (1 == y_in_range) { const int32_t idx_x = base_idx_x + DILATION_X * i_ker_x; const int32_t idx_x1 = base_idx_x + DILATION_X * (i_ker_x + 1); /* Range check for first input */ if (idx_x >= 0 && idx_x < input_x) { const int32_t idx_0 = (idx_y * input_x + idx_x) * input_ch + i_input_ch; const int32_t ker_idx_0 = (i_ker_y * kernel_x + i_ker_x) * (input_ch * ch_mult) + idx_out_ch; const int32_t ker_idx_1 = ker_idx_0 + input_ch * ch_mult; int32_t input_pkd = input[idx_0] | (input[idx_0 + input_ch] << 16); int32_t kernel_pkd = kernel[ker_idx_0] | (kernel[ker_idx_1] << 16); input_pkd = __SADD16(input_pkd, input_offset_pkd); kernel_pkd = __SADD16(kernel_pkd, kernel_offset_pkd); /* Range check for second input */ if (idx_x1 >= input_x) { input_pkd &= 0xFFFF; } acc_0 = __SMLAD(input_pkd, kernel_pkd, acc_0); kernel_pkd = kernel[ker_idx_0 + 1] | (kernel[ker_idx_1 + 1] << 16); kernel_pkd = __SADD16(kernel_pkd, kernel_offset_pkd); acc_1 = __SMLAD(input_pkd, kernel_pkd, acc_1); } } } } /* Requantize and clamp output to provided range */ acc_0 = arm_nn_divide_by_power_of_two(arm_nn_sat_doubling_high_mult( acc_0 * (1 << LEFT_SHIFT(out_shift)), out_mult), RIGHT_SHIFT(out_shift)); acc_0 += output_offset; if (output_activation_min > acc_0) { acc_0 = output_activation_min; } if (acc_0 > output_activation_max) { acc_0 = output_activation_max; } output[i_out++] = acc_0; /* Requantize and clamp output to provided range */ acc_1 = arm_nn_divide_by_power_of_two(arm_nn_sat_doubling_high_mult( acc_1 * (1 << LEFT_SHIFT(out_shift)), out_mult), RIGHT_SHIFT(out_shift)); acc_1 += output_offset; if (output_activation_min > acc_1) { acc_1 = output_activation_min; } if (acc_1 > output_activation_max) { acc_1 = output_activation_max; } output[i_out++] = acc_1; } } } } #else /* No available implementation. */ status = ARM_MATH_ARGUMENT_ERROR; #endif return status; } /** * @} end of NNConv group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/ConvolutionFunctions/arm_depthwise_conv_u8_basic_ver1.c
C
apache-2.0
10,503
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_depthwise_separable_conv_HWC_q7.c * Description: Q7 depthwise separable convolution function * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup NNConv * @{ */ /** * @brief Q7 depthwise separable convolution function * @param[in] Im_in pointer to input tensor * @param[in] dim_im_in input tensor dimention * @param[in] ch_im_in number of input tensor channels * @param[in] wt pointer to kernel weights * @param[in] ch_im_out number of filters, i.e., output tensor channels * @param[in] dim_kernel filter kernel size * @param[in] padding padding sizes * @param[in] stride convolution stride * @param[in] bias pointer to bias * @param[in] bias_shift amount of left-shift for bias * @param[in] out_shift amount of right-shift for output * @param[in,out] Im_out pointer to output tensor * @param[in] dim_im_out output tensor dimension * @param[in,out] bufferA pointer to buffer space for input * @param[in,out] bufferB pointer to buffer space for output * @return The function returns either * <code>ARM_MATH_SIZE_MISMATCH</code> or <code>ARM_MATH_SUCCESS</code> based on the outcome of size checking. * * @details * * <b>Buffer size:</b> * * bufferA size: 2*ch_im_in*dim_kernel*dim_kernel * * bufferB size: 0 * * <b>Input dimension constraints:</b> * * ch_im_in equals ch_im_out * * Implementation: * There are 3 nested loop here: * Inner loop: calculate each output value with MAC instruction over an accumulator * Mid loop: loop over different output channel * Outer loop: loop over different output (x, y) */ arm_status arm_depthwise_separable_conv_HWC_q7(const q7_t * Im_in, const uint16_t dim_im_in, const uint16_t ch_im_in, const q7_t * wt, const uint16_t ch_im_out, const uint16_t dim_kernel, const uint16_t padding, const uint16_t stride, const q7_t * bias, const uint16_t bias_shift, const uint16_t out_shift, q7_t * Im_out, const uint16_t dim_im_out, q15_t * bufferA, q7_t * bufferB) { #if defined (ARM_MATH_DSP) /* Run the following code for Cortex-M4 and Cortex-M7 */ int16_t i_out_y, i_out_x; int16_t i_ker_y, i_ker_x; q7_t *colBuffer = (q7_t *) bufferA; q7_t *pBuffer = colBuffer; const q7_t *pBias = bias; q7_t *pOut = Im_out; uint16_t rowCnt; uint16_t row_shift; /* do some checking here, basically ch_im_in == ch_im_out */ if (ch_im_in != ch_im_out) { return ARM_MATH_SIZE_MISMATCH; } for (i_out_y = 0; i_out_y < dim_im_out; i_out_y++) { for (i_out_x = 0; i_out_x < dim_im_out; i_out_x++) { /* we first do im2col here */ for (i_ker_y = i_out_y * stride - padding; i_ker_y < i_out_y * stride - padding + dim_kernel; i_ker_y++) { for (i_ker_x = i_out_x * stride - padding; i_ker_x < i_out_x * stride - padding + dim_kernel; i_ker_x++) { if (i_ker_y < 0 || i_ker_y >= dim_im_in || i_ker_x < 0 || i_ker_x >= dim_im_in) { /* arm_fill_q7(0, pBuffer, ch_im_in); */ memset(pBuffer, 0, ch_im_in); } else { /* arm_copy_q7((q7_t *) Im_in + (i_ker_y * dim_im_in + i_ker_x) * ch_im_in, pBuffer, ch_im_in); */ memcpy(pBuffer, (q7_t *) Im_in + (i_ker_y * dim_im_in + i_ker_x) * ch_im_in, ch_im_in); } pBuffer += ch_im_in; } } /* we will do the computation here for each channel */ rowCnt = ch_im_out >> 2; row_shift = 0; pBias = bias; while (rowCnt) { q31_t sum = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum2 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum3 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum4 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = (dim_kernel * dim_kernel) >> 1; q7_t *pB = colBuffer + row_shift; const q7_t *pA = wt + row_shift; row_shift += 4; #ifdef USE_INTRINSIC #ifndef ARM_MATH_BIG_ENDIAN while (colCnt) { q31_t inA1, inA2, inB1, inB2, opA, opB; inB1 = *__SIMD32(pB); pB += ch_im_in; opB = *__SIMD32(pB); pB += ch_im_in; inB2 = __PKHTB(opB, inB1, 16); inB1 = __PKHBT(inB1, opB, 16); inA1 = *__SIMD32(pA); pA += ch_im_in; opB = *__SIMD32(pA); pA += ch_im_in; inA2 = __PKHTB(opB, inA1, 16); inA1 = __PKHBT(inA1, opB, 16); opA = __SXTB16(inA1); opB = __SXTB16(inB1); sum = __SMLAD(opA, opB, sum); opA = __SXTB16(__ROR(inA1, 8)); opB = __SXTB16(__ROR(inB1, 8)); sum2 = __SMLAD(opA, opB, sum2); opA = __SXTB16(inA2); opB = __SXTB16(inB2); sum3 = __SMLAD(opA, opB, sum3); opA = __SXTB16(__ROR(inA2, 8)); opB = __SXTB16(__ROR(inB2, 8)); sum4 = __SMLAD(opA, opB, sum4); colCnt--; } #else while (colCnt) { q31_t inA1, inA2, inB1, inB2, opA, opB; inB1 = *__SIMD32(pB); pB += ch_im_in; opB = *__SIMD32(pB); pB += ch_im_in; inB2 = __PKHBT(opB, inB1, 16); inB1 = __PKHTB(inB1, opB, 16); inA1 = *__SIMD32(pA); pA += ch_im_in; opB = *__SIMD32(pA); pA += ch_im_in; inA2 = __PKHBT(opB, inA1, 16); inA1 = __PKHTB(inA1, opB, 16); opA = __SXTB16(inA1); opB = __SXTB16(inB1); sum2 = __SMLAD(opA, opB, sum2); opA = __SXTB16(__ROR(inA1, 8)); opB = __SXTB16(__ROR(inB1, 8)); sum = __SMLAD(opA, opB, sum); opA = __SXTB16(inA2); opB = __SXTB16(inB2); sum4 = __SMLAD(opA, opB, sum4); opA = __SXTB16(__ROR(inA2, 8)); opB = __SXTB16(__ROR(inB2, 8)); sum3 = __SMLAD(opA, opB, sum3); colCnt--; } #endif /* ARM_MATH_BIG_ENDIAN */ #else #ifndef ARM_MATH_BIG_ENDIAN /* * r0 r1 r2 r3 r4 r5 * inA1, inA2, inB1, inB2, opA, opB */ asm volatile ("COL_LOOP_%=:\n" "ldr.w r2, [%[pB], #0]\n" "add.w %[pB], %[pB], %[ch_im_in]\n" "ldr.w r5, [%[pB], #0]\n" "add.w %[pB], %[pB], %[ch_im_in]\n" "pkhtb r3, r5, r2, ASR #16\n" "pkhbt r2, r2, r5, LSL #16\n" "ldr.w r0, [%[pA], #0]\n" "add.w %[pA], %[pA], %[ch_im_in]\n" "ldr.w r5, [%[pA], #0]\n" "add.w %[pA], %[pA], %[ch_im_in]\n" "pkhtb r1, r5, r0, ASR #16\n" "pkhbt r0, r0, r5, LSL #16\n" "sxtb16 r4, r0\n" "sxtb16 r5, r2\n" "smlad %[sum], r4, r5, %[sum]\n" "mov.w r4, r0, ror #8\n" "mov.w r5, r2, ror #8\n" "sxtb16 r4, r4\n" "sxtb16 r5, r5\n" "smlad %[sum2], r4, r5, %[sum2]\n" "sxtb16 r4, r1\n" "sxtb16 r5, r3\n" "smlad %[sum3], r4, r5, %[sum3]\n" "mov.w r4, r1, ror #8\n" "mov.w r5, r3, ror #8\n" "sxtb16 r4, r4\n" "sxtb16 r5, r5\n" "smlad %[sum4], r4, r5, %[sum4]\n" "subs %[colCnt], #1\n" "bne COL_LOOP_%=\n":[sum] "+r"(sum),[sum2] "+r"(sum2), [sum3] "+r"(sum3), [sum4] "+r"(sum4),[pB] "+r"(pB), [pA] "+r"(pA):[colCnt] "r"(colCnt),[ch_im_in] "r"(ch_im_in):"r0", "r1", "r2", "r3", "r4", "r5"); #else /* * r0 r1 r2 r3 r4 r5 * inA1, inA2, inB1, inB2, opA, opB */ asm volatile ("COL_LOOP_%=:\n" "ldr.w r2, [%[pB], #0]\n" "add.w %[pB], %[pB], %[ch_im_in]\n" "ldr.w r5, [%[pB], #0]\n" "add.w %[pB], %[pB], %[ch_im_in]\n" "pkhbt r3, r5, r2, LSL #16\n" "pkhtb r2, r2, r5, ASR #16\n" "ldr.w r0, [%[pA], #0]\n" "add.w %[pA], %[pA], %[ch_im_in]\n" "ldr.w r5, [%[pA], #0]\n" "add.w %[pA], %[pA], %[ch_im_in]\n" "pkhbt r1, r5, r0, LSL #16\n" "pkhtb r0, r0, r5, ASR #16\n" "sxtb16 r4, r0\n" "sxtb16 r5, r2\n" "smlad %[sum2], r4, r5, %[sum2]\n" "mov.w r4, r0, ror #8\n" "mov.w r5, r2, ror #8\n" "sxtb16 r4, r4\n" "sxtb16 r5, r5\n" "smlad %[sum], r4, r5, %[sum]\n" "sxtb16 r4, r1\n" "sxtb16 r5, r3\n" "smlad %[sum4], r4, r5, %[sum4]\n" "mov.w r4, r1, ror #8\n" "mov.w r5, r3, ror #8\n" "sxtb16 r4, r4\n" "sxtb16 r5, r5\n" "smlad %[sum3], r4, r5, %[sum3]\n" "subs %[colCnt], #1\n" "bne COL_LOOP_%=\n":[sum] "+r"(sum),[sum2] "+r"(sum2), [sum3] "+r"(sum3), [sum4] "+r"(sum4),[pB] "+r"(pB), [pA] "+r"(pA):[colCnt] "r"(colCnt),[ch_im_in] "r"(ch_im_in):"r0", "r1", "r2", "r3", "r4", "r5"); #endif /* ARM_MATH_BIG_ENDIAN */ #endif /* USE_INTRINSIC */ colCnt = (dim_kernel * dim_kernel) & 0x1; while (colCnt) { union arm_nnword inA, inB; inA.word = *__SIMD32(pA); pA += ch_im_in; inB.word = *__SIMD32(pB); pB += ch_im_in; sum += inA.bytes[0] * inB.bytes[0]; sum2 += inA.bytes[1] * inB.bytes[1]; sum3 += inA.bytes[2] * inB.bytes[2]; sum4 += inA.bytes[3] * inB.bytes[3]; colCnt--; } *pOut++ = (q7_t) __SSAT((sum >> out_shift), 8); *pOut++ = (q7_t) __SSAT((sum2 >> out_shift), 8); *pOut++ = (q7_t) __SSAT((sum3 >> out_shift), 8); *pOut++ = (q7_t) __SSAT((sum4 >> out_shift), 8); rowCnt--; } rowCnt = ch_im_out & 0x3; while (rowCnt) { q7_t *pB = colBuffer + row_shift; const q7_t *pA = wt + row_shift; q31_t sum = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = (dim_kernel * dim_kernel); row_shift += 1; while (colCnt) { q7_t A1 = *pA; q7_t B1 = *pB; pA += ch_im_in; pB += ch_im_in; sum += A1 * B1; colCnt--; } *pOut++ = (q7_t) __SSAT((sum >> out_shift), 8); rowCnt--; } /* clear counter and pointers */ pBuffer = colBuffer; } } #else /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ int i_out_y, i_out_x, i_ch_out, i_ker_x, i_ker_y; int conv_out; /* do some checking here, basically ch_im_in == ch_im_out */ if (ch_im_in != ch_im_out) { return ARM_MATH_SIZE_MISMATCH; } for (i_out_y = 0; i_out_y < dim_im_out; i_out_y++) { for (i_out_x = 0; i_out_x < dim_im_out; i_out_x++) { for (i_ch_out = 0; i_ch_out < ch_im_out; i_ch_out++) { // for each output conv_out = ((q31_t)(bias[i_ch_out]) << bias_shift) + NN_ROUND(out_shift); for (i_ker_y = 0; i_ker_y < dim_kernel; i_ker_y++) { for (i_ker_x = 0; i_ker_x < dim_kernel; i_ker_x++) { int in_row = stride * i_out_y + i_ker_y - padding; int in_col = stride * i_out_x + i_ker_x - padding; if (in_row >= 0 && in_col >= 0 && in_row < dim_im_in && in_col < dim_im_in) { conv_out += Im_in[(in_row * dim_im_in + in_col) * ch_im_in + i_ch_out] * wt[(i_ker_y * dim_kernel + i_ker_x) * ch_im_out + i_ch_out]; } } } Im_out[(i_out_y * dim_im_out + i_out_x) * ch_im_out + i_ch_out] = (q7_t) __SSAT((conv_out >> out_shift), 8); } } } #endif /* ARM_MATH_DSP */ /* Return to application */ return ARM_MATH_SUCCESS; } /** * @} end of NNConv group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/ConvolutionFunctions/arm_depthwise_separable_conv_HWC_q7.c
C
apache-2.0
16,928
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_depthwise_separable_conv_HWC_q7_nonsquare.c * Description: Q7 depthwise separable convolution function (non-square shape) * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup NNConv * @{ */ /** * @brief Q7 depthwise separable convolution function (non-square shape) * @param[in] Im_in pointer to input tensor * @param[in] dim_im_in_x input tensor dimention x * @param[in] dim_im_in_y input tensor dimention y * @param[in] ch_im_in number of input tensor channels * @param[in] wt pointer to kernel weights * @param[in] ch_im_out number of filters, i.e., output tensor channels * @param[in] dim_kernel_x filter kernel size x * @param[in] dim_kernel_y filter kernel size y * @param[in] padding_x padding sizes x * @param[in] padding_y padding sizes y * @param[in] stride_x convolution stride x * @param[in] stride_y convolution stride y * @param[in] bias pointer to bias * @param[in] bias_shift amount of left-shift for bias * @param[in] out_shift amount of right-shift for output * @param[in,out] Im_out pointer to output tensor * @param[in] dim_im_out_x output tensor dimension x * @param[in] dim_im_out_y output tensor dimension y * @param[in,out] bufferA pointer to buffer space for input * @param[in,out] bufferB pointer to buffer space for output * @return The function returns either * <code>ARM_MATH_SIZE_MISMATCH</code> or <code>ARM_MATH_SUCCESS</code> based on the outcome of size checking. * * This function is the version with full list of optimization tricks, but with * some contraints: * ch_im_in is multiple of 2 * ch_im_out is multiple of 2 */ arm_status arm_depthwise_separable_conv_HWC_q7_nonsquare(const q7_t * Im_in, const uint16_t dim_im_in_x, const uint16_t dim_im_in_y, const uint16_t ch_im_in, const q7_t * wt, const uint16_t ch_im_out, const uint16_t dim_kernel_x, const uint16_t dim_kernel_y, const uint16_t padding_x, const uint16_t padding_y, const uint16_t stride_x, const uint16_t stride_y, const q7_t * bias, const uint16_t bias_shift, const uint16_t out_shift, q7_t * Im_out, const uint16_t dim_im_out_x, const uint16_t dim_im_out_y, q15_t * bufferA, q7_t * bufferB) { #if defined (ARM_MATH_DSP) /* Run the following code for Cortex-M4 and Cortex-M7 */ /* * Implementation: * There are 3 nested loop here: * Inner loop: calculate each output value with MAC instruction over an accumulator * Mid loop: loop over different output channel * Outer loop: loop over different output (x, y) * */ int16_t i_out_y, i_out_x; int16_t i_ker_y, i_ker_x; q7_t *colBuffer = (q7_t *) bufferA; q7_t *pBuffer = colBuffer; const q7_t *pBias = bias; q7_t *pOut = Im_out; uint16_t rowCnt; uint16_t row_shift; /* do some checking here, basically ch_im_in == ch_im_out */ if (ch_im_in != ch_im_out) { return ARM_MATH_SIZE_MISMATCH; } for (i_out_y = 0; i_out_y < dim_im_out_y; i_out_y++) { for (i_out_x = 0; i_out_x < dim_im_out_x; i_out_x++) { /* we first do im2col here */ for (i_ker_y = i_out_y * stride_y - padding_y; i_ker_y < i_out_y * stride_y - padding_y + dim_kernel_y; i_ker_y++) { for (i_ker_x = i_out_x * stride_x - padding_x; i_ker_x < i_out_x * stride_x - padding_x + dim_kernel_x; i_ker_x++) { if (i_ker_y < 0 || i_ker_y >= dim_im_in_y || i_ker_x < 0 || i_ker_x >= dim_im_in_x) { /* arm_fill_q7(0, pBuffer, ch_im_in); */ memset(pBuffer, 0, ch_im_in); } else { /* arm_copy_q7((q7_t *) Im_in + (i_ker_y * dim_im_in_x + i_ker_x) * ch_im_in, pBuffer, ch_im_in); */ memcpy(pBuffer, (q7_t *) Im_in + (i_ker_y * dim_im_in_x + i_ker_x) * ch_im_in, ch_im_in); } pBuffer += ch_im_in; } } /* we will do the computation here for each channel */ rowCnt = ch_im_out >> 2; row_shift = 0; pBias = bias; while (rowCnt) { q31_t sum = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum2 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum3 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum4 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = (dim_kernel_x * dim_kernel_y) >> 1; q7_t *pB = colBuffer + row_shift; const q7_t *pA = wt + row_shift; row_shift += 4; #ifdef USE_INTRINSIC #ifndef ARM_MATH_BIG_ENDIAN while (colCnt) { q31_t inA1, inA2, inB1, inB2, opA, opB; inB1 = *__SIMD32(pB); pB += ch_im_in; opB = *__SIMD32(pB); pB += ch_im_in; inB2 = __PKHTB(opB, inB1, 16); inB1 = __PKHBT(inB1, opB, 16); inA1 = *__SIMD32(pA); pA += ch_im_in; opB = *__SIMD32(pA); pA += ch_im_in; inA2 = __PKHTB(opB, inA1, 16); inA1 = __PKHBT(inA1, opB, 16); opA = __SXTB16(inA1); opB = __SXTB16(inB1); sum = __SMLAD(opA, opB, sum); opA = __SXTB16(__ROR(inA1, 8)); opB = __SXTB16(__ROR(inB1, 8)); sum2 = __SMLAD(opA, opB, sum2); opA = __SXTB16(inA2); opB = __SXTB16(inB2); sum3 = __SMLAD(opA, opB, sum3); opA = __SXTB16(__ROR(inA2, 8)); opB = __SXTB16(__ROR(inB2, 8)); sum4 = __SMLAD(opA, opB, sum4); colCnt--; } #else while (colCnt) { q31_t inA1, inA2, inB1, inB2, opA, opB; inB1 = *__SIMD32(pB); pB += ch_im_in; opB = *__SIMD32(pB); pB += ch_im_in; inB2 = __PKHBT(opB, inB1, 16); inB1 = __PKHTB(inB1, opB, 16); inA1 = *__SIMD32(pA); pA += ch_im_in; opB = *__SIMD32(pA); pA += ch_im_in; inA2 = __PKHBT(opB, inA1, 16); inA1 = __PKHTB(inA1, opB, 16); opA = __SXTB16(inA1); opB = __SXTB16(inB1); sum2 = __SMLAD(opA, opB, sum2); opA = __SXTB16(__ROR(inA1, 8)); opB = __SXTB16(__ROR(inB1, 8)); sum = __SMLAD(opA, opB, sum); opA = __SXTB16(inA2); opB = __SXTB16(inB2); sum4 = __SMLAD(opA, opB, sum4); opA = __SXTB16(__ROR(inA2, 8)); opB = __SXTB16(__ROR(inB2, 8)); sum3 = __SMLAD(opA, opB, sum3); colCnt--; } #endif /* ARM_MATH_BIG_ENDIAN */ #else #ifndef ARM_MATH_BIG_ENDIAN // r0 r1 r2 r3 r4 r5 // inA1, inA2, inB1, inB2, opA, opB asm volatile ("COL_LOOP:\n" "ldr.w r2, [%[pB], #0]\n" "add.w %[pB], %[pB], %[ch_im_in]\n" "ldr.w r5, [%[pB], #0]\n" "add.w %[pB], %[pB], %[ch_im_in]\n" "pkhtb r3, r5, r2, ASR #16\n" "pkhbt r2, r2, r5, LSL #16\n" "ldr.w r0, [%[pA], #0]\n" "add.w %[pA], %[pA], %[ch_im_in]\n" "ldr.w r5, [%[pA], #0]\n" "add.w %[pA], %[pA], %[ch_im_in]\n" "pkhtb r1, r5, r0, ASR #16\n" "pkhbt r0, r0, r5, LSL #16\n" "sxtb16 r4, r0\n" "sxtb16 r5, r2\n" "smlad %[sum], r4, r5, %[sum]\n" "mov.w r4, r0, ror #8\n" "mov.w r5, r2, ror #8\n" "sxtb16 r4, r4\n" "sxtb16 r5, r5\n" "smlad %[sum2], r4, r5, %[sum2]\n" "sxtb16 r4, r1\n" "sxtb16 r5, r3\n" "smlad %[sum3], r4, r5, %[sum3]\n" "mov.w r4, r1, ror #8\n" "mov.w r5, r3, ror #8\n" "sxtb16 r4, r4\n" "sxtb16 r5, r5\n" "smlad %[sum4], r4, r5, %[sum4]\n" "subs %[colCnt], #1\n" "bne COL_LOOP\n":[sum] "+r"(sum),[sum2] "+r"(sum2),[sum3] "+r"(sum3), [sum4] "+r"(sum4),[pB] "+r"(pB),[pA] "+r"(pA):[colCnt] "r"(colCnt), [ch_im_in] "r"(ch_im_in):"r0", "r1", "r2", "r3", "r4", "r5"); #else // r0 r1 r2 r3 r4 r5 // inA1, inA2, inB1, inB2, opA, opB asm volatile ("COL_LOOP:\n" "ldr.w r2, [%[pB], #0]\n" "add.w %[pB], %[pB], %[ch_im_in]\n" "ldr.w r5, [%[pB], #0]\n" "add.w %[pB], %[pB], %[ch_im_in]\n" "pkhbt r3, r5, r2, LSL #16\n" "pkhtb r2, r2, r5, ASR #16\n" "ldr.w r0, [%[pA], #0]\n" "add.w %[pA], %[pA], %[ch_im_in]\n" "ldr.w r5, [%[pA], #0]\n" "add.w %[pA], %[pA], %[ch_im_in]\n" "pkhbt r1, r5, r0, LSL #16\n" "pkhtb r0, r0, r5, ASR #16\n" "sxtb16 r4, r0\n" "sxtb16 r5, r2\n" "smlad %[sum2], r4, r5, %[sum2]\n" "mov.w r4, r0, ror #8\n" "mov.w r5, r2, ror #8\n" "sxtb16 r4, r4\n" "sxtb16 r5, r5\n" "smlad %[sum], r4, r5, %[sum]\n" "sxtb16 r4, r1\n" "sxtb16 r5, r3\n" "smlad %[sum4], r4, r5, %[sum4]\n" "mov.w r4, r1, ror #8\n" "mov.w r5, r3, ror #8\n" "sxtb16 r4, r4\n" "sxtb16 r5, r5\n" "smlad %[sum3], r4, r5, %[sum3]\n" "subs %[colCnt], #1\n" "bne COL_LOOP\n":[sum] "+r"(sum),[sum2] "+r"(sum2),[sum3] "+r"(sum3), [sum4] "+r"(sum4),[pB] "+r"(pB),[pA] "+r"(pA):[colCnt] "r"(colCnt), [ch_im_in] "r"(ch_im_in):"r0", "r1", "r2", "r3", "r4", "r5"); #endif /*ARM_MATH_BIG_ENDIAN */ #endif /* USE_INTRINSIC */ colCnt = (dim_kernel_x * dim_kernel_y) & 0x1; while (colCnt) { union arm_nnword inA, inB; inA.word = *__SIMD32(pA); pA += ch_im_in; inB.word = *__SIMD32(pB); pB += ch_im_in; sum += inA.bytes[0] * inB.bytes[0]; sum2 += inA.bytes[1] * inB.bytes[1]; sum3 += inA.bytes[2] * inB.bytes[2]; sum4 += inA.bytes[3] * inB.bytes[3]; colCnt--; } *pOut++ = (q7_t) __SSAT((sum >> out_shift), 8); *pOut++ = (q7_t) __SSAT((sum2 >> out_shift), 8); *pOut++ = (q7_t) __SSAT((sum3 >> out_shift), 8); *pOut++ = (q7_t) __SSAT((sum4 >> out_shift), 8); rowCnt--; } rowCnt = ch_im_out & 0x3; while (rowCnt) { q7_t *pB = colBuffer + row_shift; const q7_t *pA = wt + row_shift; q31_t sum = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = (dim_kernel_x * dim_kernel_y); row_shift += 1; while (colCnt) { q7_t A1 = *pA; q7_t B1 = *pB; pA += ch_im_in; pB += ch_im_in; sum += A1 * B1; colCnt--; } *pOut++ = (q7_t) __SSAT((sum >> out_shift), 8); rowCnt--; } // clear counter and pointers pBuffer = colBuffer; } } #else /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ int i_out_y, i_out_x, i_ch_out; int i_ker_y, i_ker_x; /* do some checking here, basically ch_im_in == ch_im_out */ if (ch_im_in != ch_im_out) { return ARM_MATH_SIZE_MISMATCH; } for (i_out_y = 0; i_out_y < dim_im_out_y; i_out_y++) { for (i_out_x = 0; i_out_x < dim_im_out_x; i_out_x++) { for (i_ch_out = 0; i_ch_out < ch_im_out; i_ch_out++) { // for each output int conv_out = ((q31_t)(bias[i_ch_out]) << bias_shift) + NN_ROUND(out_shift); for (i_ker_y = 0; i_ker_y < dim_kernel_y; i_ker_y++) { for (i_ker_x = 0; i_ker_x < dim_kernel_x; i_ker_x++) { int in_row = stride_y * i_out_y + i_ker_y - padding_y; int in_col = stride_x * i_out_x + i_ker_x - padding_x; if (in_row >= 0 && in_col >= 0 && in_row < dim_im_in_y && in_col < dim_im_in_x) { conv_out += Im_in[(in_row * dim_im_in_x + in_col) * ch_im_in + i_ch_out] * wt[(i_ker_y * dim_kernel_x + i_ker_x) * ch_im_out + i_ch_out]; } } } Im_out[(i_out_y * dim_im_out_x + i_out_x) * ch_im_out + i_ch_out] = (q7_t) __SSAT((conv_out >> out_shift), 8); } } } #endif /* ARM_MATH_DSP */ /* Return to application */ return ARM_MATH_SUCCESS; } /** * @} end of NNConv group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/ConvolutionFunctions/arm_depthwise_separable_conv_HWC_q7_nonsquare.c
C
apache-2.0
17,558
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_nn_mat_mult_kernel_q7_q15.c * Description: Matrix-multiplication function for convolution * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @brief Matrix-multiplication function for convolution * @param[in] pA pointer to operand A * @param[in] pInBuffer pointer to operand B, always conssists of 2 vectors * @param[in] ch_im_out numRow of A * @param[in] numCol_A numCol of A * @param[in] bias_shift amount of left-shift for bias * @param[in] out_shift amount of right-shift for output * @param[in] bias the bias * @param[in,out] pOut pointer to output * @return The function returns the incremented output pointer * * @details * * This function does the matrix multiplication with weight matrix * and 2 columns from im2col. */ q7_t *arm_nn_mat_mult_kernel_q7_q15(const q7_t * pA, const q15_t * pInBuffer, const uint16_t ch_im_out, const uint16_t numCol_A, const uint16_t bias_shift, const uint16_t out_shift, const q7_t * bias, q7_t * pOut) { #if defined (ARM_MATH_DSP) /* set up the second output pointers */ q7_t *pOut2 = pOut + ch_im_out; const q7_t *pBias = bias; uint16_t rowCnt = ch_im_out >> 1; /* this loop over rows in A */ while (rowCnt) { /* setup pointers for B */ const q15_t *pB = pInBuffer; const q15_t *pB2 = pB + numCol_A; /* align the second pointer for A */ const q7_t *pA2 = pA + numCol_A; /* init the sum with bias */ q31_t sum = ((q31_t)(*pBias) << bias_shift) + NN_ROUND(out_shift); q31_t sum2 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum3 = ((q31_t)(*pBias) << bias_shift) + NN_ROUND(out_shift); q31_t sum4 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = numCol_A >> 2; /* accumulate over the vector */ while (colCnt) { q31_t inA11, inA12, inA21, inA22; q31_t inB1 = *__SIMD32(pB)++; q31_t inB2 = *__SIMD32(pB2)++; pA = (q7_t *) read_and_pad((void *)pA, &inA11, &inA12); pA2 = (q7_t *) read_and_pad((void *)pA2, &inA21, &inA22); sum = __SMLAD(inA11, inB1, sum); sum2 = __SMLAD(inA11, inB2, sum2); sum3 = __SMLAD(inA21, inB1, sum3); sum4 = __SMLAD(inA21, inB2, sum4); inB1 = *__SIMD32(pB)++; inB2 = *__SIMD32(pB2)++; sum = __SMLAD(inA12, inB1, sum); sum2 = __SMLAD(inA12, inB2, sum2); sum3 = __SMLAD(inA22, inB1, sum3); sum4 = __SMLAD(inA22, inB2, sum4); colCnt--; } /* while over colCnt */ colCnt = numCol_A & 0x3; while (colCnt) { q7_t inA1 = *pA++; q15_t inB1 = *pB++; q7_t inA2 = *pA2++; q15_t inB2 = *pB2++; sum += inA1 * inB1; sum2 += inA1 * inB2; sum3 += inA2 * inB1; sum4 += inA2 * inB2; colCnt--; } /* while over colCnt */ *pOut++ = (q7_t) __SSAT((sum >> out_shift), 8); *pOut++ = (q7_t) __SSAT((sum3 >> out_shift), 8); *pOut2++ = (q7_t) __SSAT((sum2 >> out_shift), 8); *pOut2++ = (q7_t) __SSAT((sum4 >> out_shift), 8); /* skip the row computed with A2 */ pA += numCol_A; rowCnt--; } /* for over ch_im_out */ /* compute left-over row if any */ if (ch_im_out & 0x1) { /* setup pointers for B */ const q15_t *pB = pInBuffer; const q15_t *pB2 = pB + numCol_A; /* load the bias */ q31_t sum = ((q31_t)(*pBias) << bias_shift) + NN_ROUND(out_shift); q31_t sum2 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = numCol_A >> 2; while (colCnt) { q31_t inA11, inA12; q31_t inB1 = *__SIMD32(pB)++; q31_t inB2 = *__SIMD32(pB2)++; pA = (q7_t *) read_and_pad((void *)pA, &inA11, &inA12); sum = __SMLAD(inA11, inB1, sum); sum2 = __SMLAD(inA11, inB2, sum2); inB1 = *__SIMD32(pB)++; inB2 = *__SIMD32(pB2)++; sum = __SMLAD(inA12, inB1, sum); sum2 = __SMLAD(inA12, inB2, sum2); colCnt--; } colCnt = numCol_A & 0x3; while (colCnt) { q7_t inA1 = *pA++; q15_t inB1 = *pB++; q15_t inB2 = *pB2++; sum += inA1 * inB1; sum2 += inA1 * inB2; colCnt--; } *pOut++ = (q7_t) __SSAT((sum >> out_shift), 8); *pOut2++ = (q7_t) __SSAT((sum2 >> out_shift), 8); } pOut += ch_im_out; /* return the new output pointer with offset */ return pOut; #else /* To be completed */ return NULL; #endif /* ARM_MATH_DSP */ }
YifuLiu/AliOS-Things
components/cmsis/NN/Source/ConvolutionFunctions/arm_nn_mat_mult_kernel_q7_q15.c
C
apache-2.0
6,408
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_nn_mat_mult_kernel_q7_q15_reordered.c * Description: Matrix-multiplication function for convolution with reordered columns * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * -------------------------------------------------------------------- */ #include "arm_nnfunctions.h" #include "arm_math.h" /** * @brief Matrix-multiplication function for convolution with reordered columns * @param[in] pA pointer to operand A * @param[in] pInBuffer pointer to operand B, always conssists of 2 vectors * @param[in] ch_im_out numRow of A * @param[in] numCol_A numCol of A * @param[in] bias_shift amount of left-shift for bias * @param[in] out_shift amount of right-shift for output * @param[in] bias the bias * @param[in,out] pOut pointer to output * @return The function returns the incremented output pointer * * @details * * This function assumes that data in pInBuffer are reordered */ q7_t *arm_nn_mat_mult_kernel_q7_q15_reordered(const q7_t * pA, const q15_t * pInBuffer, const uint16_t ch_im_out, const uint16_t numCol_A, const uint16_t bias_shift, const uint16_t out_shift, const q7_t * bias, q7_t * pOut) { #if defined (ARM_MATH_DSP) /* set up the second output pointers */ q7_t *pOut2 = pOut + ch_im_out; int i; /* this loop over rows in A */ for (i = 0; i < ch_im_out; i += 2) { /* setup pointers for B */ const q15_t *pB = pInBuffer; const q15_t *pB2 = pB + numCol_A; /* align the second pointer for A */ const q7_t *pA2 = pA + numCol_A; /* init the sum with bias */ q31_t sum = ((q31_t)(bias[i]) << bias_shift) + NN_ROUND(out_shift); q31_t sum2 = ((q31_t)(bias[i]) << bias_shift) + NN_ROUND(out_shift); q31_t sum3 = ((q31_t)(bias[i + 1]) << bias_shift) + NN_ROUND(out_shift); q31_t sum4 = ((q31_t)(bias[i + 1]) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = numCol_A >> 2; /* accumulate over the vector */ while (colCnt) { q31_t inA11, inA12, inA21, inA22; q31_t inB1 = *__SIMD32(pB)++; q31_t inB2 = *__SIMD32(pB2)++; pA = (q7_t *) read_and_pad_reordered((void *)pA, &inA11, &inA12); pA2 = (q7_t *) read_and_pad_reordered((void *)pA2, &inA21, &inA22); sum = __SMLAD(inA11, inB1, sum); sum2 = __SMLAD(inA11, inB2, sum2); sum3 = __SMLAD(inA21, inB1, sum3); sum4 = __SMLAD(inA21, inB2, sum4); inB1 = *__SIMD32(pB)++; inB2 = *__SIMD32(pB2)++; sum = __SMLAD(inA12, inB1, sum); sum2 = __SMLAD(inA12, inB2, sum2); sum3 = __SMLAD(inA22, inB1, sum3); sum4 = __SMLAD(inA22, inB2, sum4); colCnt--; } /* while over colCnt */ colCnt = numCol_A & 0x3; while (colCnt) { q7_t inA1 = *pA++; q15_t inB1 = *pB++; q7_t inA2 = *pA2++; q15_t inB2 = *pB2++; sum += inA1 * inB1; sum2 += inA1 * inB2; sum3 += inA2 * inB1; sum4 += inA2 * inB2; colCnt--; } /* while over colCnt */ *pOut++ = (q7_t) __SSAT((sum >> out_shift), 8); *pOut++ = (q7_t) __SSAT((sum3 >> out_shift), 8); *pOut2++ = (q7_t) __SSAT((sum2 >> out_shift), 8); *pOut2++ = (q7_t) __SSAT((sum4 >> out_shift), 8); /* skip the row computed with A2 */ pA += numCol_A; } /* for over ch_im_out */ pOut += ch_im_out; /* return the new output pointer with offset */ return pOut; #else /* To be completed */ return NULL; #endif /* ARM_MATH_DSP */ }
YifuLiu/AliOS-Things
components/cmsis/NN/Source/ConvolutionFunctions/arm_nn_mat_mult_kernel_q7_q15_reordered.c
C
apache-2.0
5,149
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_fully_connected_mat_q7_vec_q15.c * Description: Mixed Q15-Q7 fully-connected layer function * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup FC * @{ */ /** * @brief Mixed Q15-Q7 fully-connected layer function * @param[in] pV pointer to input vector * @param[in] pM pointer to matrix weights * @param[in] dim_vec length of the vector * @param[in] num_of_rows number of rows in weight matrix * @param[in] bias_shift amount of left-shift for bias * @param[in] out_shift amount of right-shift for output * @param[in] bias pointer to bias * @param[in,out] pOut pointer to output vector * @param[in,out] vec_buffer pointer to buffer space for input * @return The function returns <code>ARM_MATH_SUCCESS</code> * * @details * * <b>Buffer size:</b> * * vec_buffer size: 0 * * Q7_Q15 version of the fully connected layer * * Weights are in q7_t and Activations are in q15_t * */ arm_status arm_fully_connected_mat_q7_vec_q15(const q15_t * pV, const q7_t * pM, const uint16_t dim_vec, const uint16_t num_of_rows, const uint16_t bias_shift, const uint16_t out_shift, const q7_t * bias, q15_t * pOut, q15_t * vec_buffer) { #if defined (ARM_MATH_DSP) /* Run the following code for Cortex-M4 and Cortex-M7 */ const q7_t *pB = pM; const q7_t *pB2; q15_t *pO = pOut; const q7_t *pBias = bias; const q15_t *pA = pV; uint16_t rowCnt = num_of_rows >> 1; while (rowCnt) { q31_t sum = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum2 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = dim_vec >> 2; pA = pV; pB2 = pB + dim_vec; while (colCnt) { q31_t inV, inM11, inM12, inM21, inM22; pB = (q7_t *) read_and_pad((void *)pB, &inM11, &inM12); pB2 = (q7_t *) read_and_pad((void *)pB2, &inM21, &inM22); inV = *__SIMD32(pA)++; sum = __SMLAD(inV, inM11, sum); sum2 = __SMLAD(inV, inM21, sum2); inV = *__SIMD32(pA)++; sum = __SMLAD(inV, inM12, sum); sum2 = __SMLAD(inV, inM22, sum2); colCnt--; } colCnt = dim_vec & 0x3; while (colCnt) { q15_t inV = *pA++; q7_t inM = *pB++; q7_t inM2 = *pB2++; sum += inV * inM; sum2 += inV * inM2; colCnt--; } /* while over colCnt */ *pO++ = (q15_t) (__SSAT((sum >> out_shift), 16)); *pO++ = (q15_t) (__SSAT((sum2 >> out_shift), 16)); /*adjust the pointers and counters */ pB += dim_vec; rowCnt--; } /* left-over part of the rows */ rowCnt = num_of_rows & 0x1; while (rowCnt) { q31_t sum = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = dim_vec >> 2; pA = pV; while (colCnt) { q31_t inV1, inV2, inM11, inM12; pB = (q7_t *) read_and_pad((void *)pB, &inM11, &inM12); inV1 = *__SIMD32(pA)++; sum = __SMLAD(inV1, inM11, sum); inV2 = *__SIMD32(pA)++; sum = __SMLAD(inV2, inM12, sum); colCnt--; } /* left-over of the vector */ colCnt = dim_vec & 0x3; while (colCnt) { q15_t inV = *pA++; q7_t inM = *pB++; sum += inV * inM; colCnt--; } *pO++ = (q15_t) (__SSAT((sum >> out_shift), 16)); rowCnt--; } #else int i, j; /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ for (i = 0; i < num_of_rows; i++) { int ip_out = ((q31_t)(bias[i]) << bias_shift) + NN_ROUND(out_shift); for (j = 0; j < dim_vec; j++) { ip_out += pV[j] * pM[i * dim_vec + j]; } pOut[i] = (q15_t) __SSAT((ip_out >> out_shift), 16); } #endif /* ARM_MATH_DSP */ /* Return to ARM_MATH_SUCCESS */ return (ARM_MATH_SUCCESS); } /** * @} end of FC group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/FullyConnectedFunctions/arm_fully_connected_mat_q7_vec_q15.c
C
apache-2.0
5,649
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_fully_connected_mat_q7_vec_q15_opt.c * Description: Mixed Q15-Q7 opt fully-connected layer function * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup FC * @{ */ /** * @brief Mixed Q15-Q7 opt fully-connected layer function * @param[in] pV pointer to input vector * @param[in] pM pointer to matrix weights * @param[in] dim_vec length of the vector * @param[in] num_of_rows number of rows in weight matrix * @param[in] bias_shift amount of left-shift for bias * @param[in] out_shift amount of right-shift for output * @param[in] bias pointer to bias * @param[in,out] pOut pointer to output vector * @param[in,out] vec_buffer pointer to buffer space for input * @return The function returns <code>ARM_MATH_SUCCESS</code> * * @details * * <b>Buffer size:</b> * * vec_buffer size: 0 * * Q7_Q15 version of the fully connected layer * * Weights are in q7_t and Activations are in q15_t * * Limitation: x4 version requires weight reordering to work * * Here we use only one pointer to read 4 rows in the weight * matrix. So if the original q7_t matrix looks like this: * * | a11 | a12 | a13 | a14 | a15 | a16 | a17 | * * | a21 | a22 | a23 | a24 | a25 | a26 | a27 | * * | a31 | a32 | a33 | a34 | a35 | a36 | a37 | * * | a41 | a42 | a43 | a44 | a45 | a46 | a47 | * * | a51 | a52 | a53 | a54 | a55 | a56 | a57 | * * | a61 | a62 | a63 | a64 | a65 | a66 | a67 | * * We operates on multiple-of-4 rows, so the first four rows becomes * * | a11 | a21 | a12 | a22 | a31 | a41 | a32 | a42 | * * | a13 | a23 | a14 | a24 | a33 | a43 | a34 | a44 | * * | a15 | a25 | a16 | a26 | a35 | a45 | a36 | a46 | * * The column left over will be in-order. * which is: * | a17 | a27 | a37 | a47 | * * For the left-over rows, we do 1x1 computation, so the data remains * as its original order. * * So the stored weight matrix looks like this: * * | a11 | a21 | a12 | a22 | a31 | a41 | * * | a32 | a42 | a13 | a23 | a14 | a24 | * * | a33 | a43 | a34 | a44 | a15 | a25 | * * | a16 | a26 | a35 | a45 | a36 | a46 | * * | a17 | a27 | a37 | a47 | a51 | a52 | * * | a53 | a54 | a55 | a56 | a57 | a61 | * * | a62 | a63 | a64 | a65 | a66 | a67 | * */ arm_status arm_fully_connected_mat_q7_vec_q15_opt(const q15_t * pV, const q7_t * pM, const uint16_t dim_vec, const uint16_t num_of_rows, const uint16_t bias_shift, const uint16_t out_shift, const q7_t * bias, q15_t * pOut, q15_t * vec_buffer) { #if defined (ARM_MATH_DSP) /* Run the following code for Cortex-M4 and Cortex-M7 */ const q7_t *pB = pM; q15_t *pO = pOut; const q7_t *pBias = bias; const q15_t *pA = pV; uint16_t rowCnt = num_of_rows >> 2; while (rowCnt) { q31_t sum = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum2 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum3 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum4 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = dim_vec >> 1; pA = pV; #ifdef USE_INTRINSIC #ifndef ARM_MATH_BIG_ENDIAN while (colCnt) { q31_t inM11, inM12, inM13, inM14; q31_t inV; inV = *__SIMD32(pA)++; inM11 = *__SIMD32(pB)++; inM12 = __SXTB16(__ROR(inM11, 8)); inM11 = __SXTB16(inM11); sum = __SMLAD(inM11, inV, sum); sum2 = __SMLAD(inM12, inV, sum2); inM13 = *__SIMD32(pB)++; inM14 = __SXTB16(__ROR(inM13, 8)); inM13 = __SXTB16(inM13); sum3 = __SMLAD(inM13, inV, sum3); sum4 = __SMLAD(inM14, inV, sum4); colCnt--; } #else while (colCnt) { q31_t inM11, inM12, inM13, inM14; q31_t inV; inV = *__SIMD32(pA)++; inM11 = *__SIMD32(pB)++; inM12 = __SXTB16(__ROR(inM11, 8)); inM11 = __SXTB16(inM11); sum = __SMLAD(inM12, inV, sum); sum2 = __SMLAD(inM11, inV, sum2); inM13 = *__SIMD32(pB)++; inM14 = __SXTB16(__ROR(inM13, 8)); inM13 = __SXTB16(inM13); sum3 = __SMLAD(inM14, inV, sum3); sum4 = __SMLAD(inM13, inV, sum4); colCnt--; } #endif /* ARM_MATH_BIG_ENDIAN */ #else /* * register needed: * loop counter: colCnt * accumulators: sum, sum2, sum3, sum4 * pointers: pB, pA * weight data: inM11, inM12, inM13, inM14 * activation data: inV */ #ifndef ARM_MATH_BIG_ENDIAN asm volatile ("COL_LOOP_%=:\n" "ldr.w r4, [%[pA]], #4\n" "ldr.w r1, [%[pB]], #8\n" "mov.w r0, r1, ror #8\n" "sxtb16 r0, r0\n" "sxtb16 r1, r1\n" "smlad %[sum], r4, r1, %[sum]\n" "smlad %[sum2], r4, r0, %[sum2]\n" "ldr.w r3, [%[pB], #-4]\n" "mov.w r2, r3, ror #8\n" "sxtb16 r2, r2\n" "sxtb16 r3, r3\n" "smlad %[sum3], r4, r3, %[sum3]\n" "smlad %[sum4], r4, r2, %[sum4]\n" "subs %[colCnt], #1\n" "bne COL_LOOP_%=\n":[sum] "+r"(sum), [sum2] "+r"(sum2),[sum3] "+r"(sum3), [sum4] "+r"(sum4),[pB] "+r"(pB),[pA] "+r"(pA):[colCnt] "r"(colCnt):"r0", "r1", "r2", "r3", "r4"); #else asm volatile ("COL_LOOP_%=:\n" "ldr.w r4, [%[pA]], #4\n" "ldr.w r1, [%[pB]], #8\n" "mov.w r0, r1, ror #8\n" "sxtb16 r0, r0\n" "sxtb16 r1, r1\n" "smlad %[sum], r4, r0, %[sum]\n" "smlad %[sum2], r4, r1, %[sum2]\n" "ldr.w r3, [%[pB], #-4]\n" "mov.w r2, r3, ror #8\n" "sxtb16 r2, r2\n" "sxtb16 r3, r3\n" "smlad %[sum3], r4, r2, %[sum3]\n" "smlad %[sum4], r4, r3, %[sum4]\n" "subs %[colCnt], #1\n" "bne COL_LOOP_%=\n":[sum] "+r"(sum), [sum2] "+r"(sum2),[sum3] "+r"(sum3), [sum4] "+r"(sum4),[pB] "+r"(pB),[pA] "+r"(pA):[colCnt] "r"(colCnt):"r0", "r1", "r2", "r3", "r4"); #endif /* ARM_MATH_BIG_ENDIAN */ #endif /* USE_INTRINSIC */ colCnt = dim_vec & 0x1; while (colCnt) { q15_t inV = *pA++; q7_t inM = *pB++; q7_t inM2 = *pB++; q7_t inM3 = *pB++; q7_t inM4 = *pB++; sum += inV * inM; sum2 += inV * inM2; sum3 += inV * inM3; sum4 += inV * inM4; colCnt--; } /* while over colCnt */ *pO++ = (q15_t) (__SSAT((sum >> out_shift), 16)); *pO++ = (q15_t) (__SSAT((sum2 >> out_shift), 16)); *pO++ = (q15_t) (__SSAT((sum3 >> out_shift), 16)); *pO++ = (q15_t) (__SSAT((sum4 >> out_shift), 16)); /* adjust the pointers and counters */ rowCnt--; } /* left-over part of the rows */ rowCnt = num_of_rows & 0x3; while (rowCnt) { q31_t sum = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = dim_vec >> 2; pA = pV; while (colCnt) { q31_t inV1, inV2, inM11, inM12; pB = (q7_t *) read_and_pad((void *)pB, &inM11, &inM12); inV1 = *__SIMD32(pA)++; sum = __SMLAD(inV1, inM11, sum); inV2 = *__SIMD32(pA)++; sum = __SMLAD(inV2, inM12, sum); colCnt--; } /* left-over of the vector */ colCnt = dim_vec & 0x3; while (colCnt) { q15_t inV = *pA++; q7_t inM = *pB++; sum += inV * inM; colCnt--; } *pO++ = (q15_t) (__SSAT((sum >> out_shift), 16)); rowCnt--; } #else /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ uint16_t rowCnt = num_of_rows >> 2; const q7_t *pB = pM; const q15_t *pA; q15_t *pO = pOut; const q7_t *pBias = bias; while (rowCnt) { q31_t sum = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum2 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum3 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum4 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = dim_vec >> 1; pA = pV; while (colCnt) { q15_t inA1 = *pA++; q15_t inA2 = *pA++; q7_t inB1 = *pB++; q7_t inB3 = *pB++; q7_t inB2 = *pB++; q7_t inB4 = *pB++; sum += inA1 * inB1 + inA2 * inB2; sum2 += inA1 * inB3 + inA2 * inB4; inB1 = *pB++; inB3 = *pB++; inB2 = *pB++; inB4 = *pB++; sum3 += inA1 * inB1 + inA2 * inB2; sum4 += inA1 * inB3 + inA2 * inB4; colCnt--; } colCnt = dim_vec & 0x1; while (colCnt) { q15_t inA = *pA++; q7_t inB = *pB++; sum += inA * inB; inB = *pB++; sum2 += inA * inB; inB = *pB++; sum3 += inA * inB; inB = *pB++; sum4 += inA * inB; colCnt--; } *pO++ = (q15_t) __SSAT((sum >> out_shift), 16); *pO++ = (q15_t) __SSAT((sum2 >> out_shift), 16); *pO++ = (q15_t) __SSAT((sum3 >> out_shift), 16); *pO++ = (q15_t) __SSAT((sum4 >> out_shift), 16); rowCnt--; } rowCnt = num_of_rows & 0x3; while (rowCnt) { int ip_out = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); int j; pA = pV; for (j = 0; j < dim_vec; j++) { q15_t inA = *pA++; q7_t inB = *pB++; ip_out += inA * inB; } *pO++ = (q15_t) __SSAT((ip_out >> out_shift), 16); rowCnt--; } #endif /* ARM_MATH_DSP */ /* Return to ARM_MATH_SUCCESS */ return (ARM_MATH_SUCCESS); } /** * @} end of FC group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/FullyConnectedFunctions/arm_fully_connected_mat_q7_vec_q15_opt.c
C
apache-2.0
12,277
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_fully_connected_q15.c * Description: Q15 basic fully-connected layer function * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup FC * @{ */ /** * @brief Q15 opt fully-connected layer function * @param[in] pV pointer to input vector * @param[in] pM pointer to matrix weights * @param[in] dim_vec length of the vector * @param[in] num_of_rows number of rows in weight matrix * @param[in] bias_shift amount of left-shift for bias * @param[in] out_shift amount of right-shift for output * @param[in] bias pointer to bias * @param[in,out] pOut pointer to output vector * @param[in,out] vec_buffer pointer to buffer space for input * @return The function returns <code>ARM_MATH_SUCCESS</code> * * * @details * * <b>Buffer size:</b> * * vec_buffer size: 0 * */ arm_status arm_fully_connected_q15(const q15_t * pV, const q15_t * pM, const uint16_t dim_vec, const uint16_t num_of_rows, const uint16_t bias_shift, const uint16_t out_shift, const q15_t * bias, q15_t * pOut, q15_t * vec_buffer) { #if defined (ARM_MATH_DSP) /* Run the following code for Cortex-M4 and Cortex-M7 */ const q15_t *pB = pM; const q15_t *pB2 = pB + dim_vec; q15_t *pO = pOut; const q15_t *pA; const q15_t *pBias = bias; uint16_t rowCnt = num_of_rows >> 1; /* this loop loops over different output */ while (rowCnt) { q31_t sum = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum2 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = dim_vec >> 2; pA = pV; pB2 = pB + dim_vec; while (colCnt) { q31_t inV1, inM1, inM2; inV1 = *__SIMD32(pA)++; inM1 = *__SIMD32(pB)++; sum = __SMLAD(inV1, inM1, sum); inM2 = *__SIMD32(pB2)++; sum2 = __SMLAD(inV1, inM2, sum2); inV1 = *__SIMD32(pA)++; inM1 = *__SIMD32(pB)++; sum = __SMLAD(inV1, inM1, sum); inM2 = *__SIMD32(pB2)++; sum2 = __SMLAD(inV1, inM2, sum2); colCnt--; } colCnt = dim_vec & 0x3; while (colCnt) { q15_t inV = *pA++; q15_t inM = *pB++; q15_t inM2 = *pB2++; sum += inV * inM; sum2 += inV * inM2; colCnt--; } /* while over colCnt */ *pO++ = (q15_t) (__SSAT((sum >> out_shift), 16)); *pO++ = (q15_t) (__SSAT((sum2>> out_shift), 16)); /* adjust the pointers and counters */ pB = pB + dim_vec; rowCnt --; } rowCnt = num_of_rows & 0x1; while (rowCnt) { q31_t sum = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = dim_vec >> 2; pA = pV; while (colCnt) { q31_t inV1, inM1; inV1 = *__SIMD32(pA)++; inM1 = *__SIMD32(pB)++; sum = __SMLAD(inV1, inM1, sum); inV1 = *__SIMD32(pA)++; inM1 = *__SIMD32(pB)++; sum = __SMLAD(inV1, inM1, sum); colCnt--; } /* left-over of the vector */ colCnt = dim_vec & 0x3; while(colCnt) { q15_t inV = *pA++; q15_t inM = *pB++; sum += inV * inM; colCnt--; } *pO++ = (q15_t) (__SSAT((sum >> out_shift), 16)); rowCnt --; } #else int i, j; /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ for (i = 0; i < num_of_rows; i++) { int ip_out = ((q31_t)(bias[i]) << bias_shift) + NN_ROUND(out_shift); for (j = 0; j < dim_vec; j++) { ip_out += pV[j] * pM[i * dim_vec + j]; } pOut[i] = (q15_t) __SSAT((ip_out >> out_shift), 16); } #endif /* ARM_MATH_DSP */ /* Return to application */ return (ARM_MATH_SUCCESS); } /** * @} end of FC group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/FullyConnectedFunctions/arm_fully_connected_q15.c
C
apache-2.0
5,405
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_fully_connected_q15_opt.c * Description: Q15 opt fully-connected layer function * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup FC * @{ */ /** * @brief Q15 opt fully-connected layer function * @param[in] pV pointer to input vector * @param[in] pM pointer to matrix weights * @param[in] dim_vec length of the vector * @param[in] num_of_rows number of rows in weight matrix * @param[in] bias_shift amount of left-shift for bias * @param[in] out_shift amount of right-shift for output * @param[in] bias pointer to bias * @param[in,out] pOut pointer to output vector * @param[in,out] vec_buffer pointer to buffer space for input * @return The function returns <code>ARM_MATH_SUCCESS</code> * * * @details * * <b>Buffer size:</b> * * vec_buffer size: 0 * * Here we use only one pointer to read 4 rows in the weight * matrix. So if the original matrix looks like this: * * | a11 | a12 | a13 | * * | a21 | a22 | a23 | * * | a31 | a32 | a33 | * * | a41 | a42 | a43 | * * | a51 | a52 | a53 | * * | a61 | a62 | a63 | * * We operates on multiple-of-4 rows, so the first four rows becomes * * | a11 | a12 | a21 | a22 | a31 | a32 | a41 | a42 | * * | a13 | a23 | a33 | a43 | * * Remaining rows are kept the same original order. * * So the stored weight matrix looks like this: * * * | a11 | a12 | a21 | a22 | a31 | a32 | a41 | a42 | * * | a13 | a23 | a33 | a43 | a51 | a52 | a53 | a61 | * * | a62 | a63 | */ arm_status arm_fully_connected_q15_opt(const q15_t * pV, const q15_t * pM, const uint16_t dim_vec, const uint16_t num_of_rows, const uint16_t bias_shift, const uint16_t out_shift, const q15_t * bias, q15_t * pOut, q15_t * vec_buffer) { #if defined (ARM_MATH_DSP) /* Run the following code for Cortex-M4 and Cortex-M7 */ const q15_t *pB = pM; q15_t *pO = pOut; const q15_t *pBias = bias; const q15_t *pA = pV; uint16_t rowCnt = num_of_rows >> 2; while (rowCnt) { q31_t sum = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum2 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum3 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum4 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = dim_vec >> 1; pA = pV; #ifdef USE_INTRINSIC while (colCnt) { q31_t inM11, inM12, inM13, inM14; q31_t inV; inV = *__SIMD32(pA)++; inM11 = *__SIMD32(pB)++; sum = __SMLAD(inV, inM11, sum); inM12 = *__SIMD32(pB)++; sum2 = __SMLAD(inV, inM12, sum2); inM13 = *__SIMD32(pB)++; sum3 = __SMLAD(inV, inM13, sum3); inM14 = *__SIMD32(pB)++; sum4 = __SMLAD(inV, inM14, sum4); colCnt--; } #else /* * register needed: * loop counter: colCnt * accumulators: sum, sum2, sum3, sum4 * pointers: pB, pA * weight data: inM11, inM12, inM13, inM14 * activation data: inV */ asm volatile ("COL_LOOP_%=:\n" "ldr.w r4, [%[pA]], #4\n" "ldr.w r0, [%[pB]], #16\n" "smlad %[sum], r4, r0, %[sum]\n" "ldr.w r1, [%[pB] , #-12]\n" "smlad %[sum2], r4, r1, %[sum2]\n" "ldr.w r2, [%[pB] , #-8]\n" "smlad %[sum3], r4, r2, %[sum3]\n" "ldr.w r3, [%[pB] , #-4]\n" "smlad %[sum4], r4, r3, %[sum4]\n" "subs %[colCnt], #1\n" "bne COL_LOOP_%=\n":[sum] "+r"(sum), [sum2] "+r"(sum2),[sum3] "+r"(sum3), [sum4] "+r"(sum4),[pB] "+r"(pB),[pA] "+r"(pA):[colCnt] "r"(colCnt):"r0", "r1", "r2", "r3", "r4"); #endif /* USE_INTRINSIC */ colCnt = dim_vec & 0x1; while (colCnt) { q15_t inV = *pA++; q15_t inM = *pB++; q15_t inM2 = *pB++; q15_t inM3 = *pB++; q15_t inM4 = *pB++; sum += inV * inM; sum2 += inV * inM2; sum3 += inV * inM3; sum4 += inV * inM4; colCnt--; } /* while over colCnt */ *pO++ = (q15_t) (__SSAT((sum >> out_shift), 16)); *pO++ = (q15_t) (__SSAT((sum2 >> out_shift), 16)); *pO++ = (q15_t) (__SSAT((sum3 >> out_shift), 16)); *pO++ = (q15_t) (__SSAT((sum4 >> out_shift), 16)); /* adjust the pointers and counters */ rowCnt--; } /* left-over part of the rows */ rowCnt = num_of_rows & 0x3; while (rowCnt) { q31_t sum = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = dim_vec >> 2; pA = pV; while (colCnt) { q31_t inV1, inV2, inM1, inM2; inM1 = *__SIMD32(pB)++; inV1 = *__SIMD32(pA)++; sum = __SMLAD(inV1, inM1, sum); inM2 = *__SIMD32(pB)++; inV2 = *__SIMD32(pA)++; sum = __SMLAD(inV2, inM2, sum); colCnt--; } /* left-over of the vector */ colCnt = dim_vec & 0x3; while (colCnt) { q15_t inV = *pA++; q15_t inM = *pB++; sum += inV * inM; colCnt--; } *pO++ = (q15_t) (__SSAT((sum >> out_shift), 16)); rowCnt--; } #else /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ uint16_t rowCnt = num_of_rows >> 2; const q15_t *pB = pM; const q15_t *pA; q15_t *pO = pOut; const q15_t *pBias = bias; while (rowCnt) { q31_t sum = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum2 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum3 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum4 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = dim_vec >> 1; pA = pV; while (colCnt) { q15_t inA1 = *pA++; q15_t inA2 = *pA++; q15_t inB1 = *pB++; q15_t inB2 = *pB++; sum += inA1 * inB1 + inA2 * inB2; inB1 = *pB++; inB2 = *pB++; sum2 += inA1 * inB1 + inA2 * inB2; inB1 = *pB++; inB2 = *pB++; sum3 += inA1 * inB1 + inA2 * inB2; inB1 = *pB++; inB2 = *pB++; sum4 += inA1 * inB1 + inA2 * inB2; colCnt--; } colCnt = dim_vec & 0x1; while (colCnt) { q15_t inA = *pA++; q15_t inB = *pB++; sum += inA * inB; inB = *pB++; sum2 += inA * inB; inB = *pB++; sum3 += inA * inB; inB = *pB++; sum4 += inA * inB; colCnt--; } *pO++ = (q15_t) __SSAT((sum >> out_shift), 16); *pO++ = (q15_t) __SSAT((sum2 >> out_shift), 16); *pO++ = (q15_t) __SSAT((sum3 >> out_shift), 16); *pO++ = (q15_t) __SSAT((sum4 >> out_shift), 16); rowCnt--; } rowCnt = num_of_rows & 0x3; while (rowCnt) { int ip_out = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); int j; pA = pV; for (j = 0; j < dim_vec; j++) { q15_t inA = *pA++; q15_t inB = *pB++; ip_out += inA * inB; } *pO++ = (q15_t) __SSAT((ip_out >> out_shift), 16); rowCnt--; } #endif /* ARM_MATH_DSP */ /* Return to ARM_MATH_SUCCESS */ return (ARM_MATH_SUCCESS); } /** * @} end of FC group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/FullyConnectedFunctions/arm_fully_connected_q15_opt.c
C
apache-2.0
9,516
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_fully_connected_q7.c * Description: Q7 basic fully-connected layer function * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup FC * @{ */ /** * @brief Q7 basic fully-connected layer function * @param[in] pV pointer to input vector * @param[in] pM pointer to matrix weights * @param[in] dim_vec length of the vector * @param[in] num_of_rows number of rows in weight matrix * @param[in] bias_shift amount of left-shift for bias * @param[in] out_shift amount of right-shift for output * @param[in] bias pointer to bias * @param[in,out] pOut pointer to output vector * @param[in,out] vec_buffer pointer to buffer space for input * @return The function returns <code>ARM_MATH_SUCCESS</code> * * @details * * <b>Buffer size:</b> * * vec_buffer size: dim_vec * * This basic function is designed to work with regular weight * matrix without interleaving. * */ arm_status arm_fully_connected_q7(const q7_t * pV, const q7_t * pM, const uint16_t dim_vec, const uint16_t num_of_rows, const uint16_t bias_shift, const uint16_t out_shift, const q7_t * bias, q7_t * pOut, q15_t * vec_buffer) { #if defined (ARM_MATH_DSP) /* Run the following code for Cortex-M4 and Cortex-M7 */ const q7_t *pB = pM; const q7_t *pB2; q7_t *pO = pOut; const q7_t *pBias = bias; q15_t *pA; uint16_t rowCnt = num_of_rows >> 1; /* expand the vector into the buffer */ arm_q7_to_q15_reordered_no_shift(pV, vec_buffer, dim_vec); while (rowCnt) { q31_t sum = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum2 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = dim_vec >> 2; pA = vec_buffer; pB2 = pB + dim_vec; while (colCnt) { q31_t inV, inM11, inM12, inM21, inM22; pB = (q7_t *) read_and_pad_reordered((void *)pB, &inM11, &inM12); pB2 = (q7_t *) read_and_pad_reordered((void *)pB2, &inM21, &inM22); inV = *__SIMD32(pA)++; sum = __SMLAD(inV, inM11, sum); sum2 = __SMLAD(inV, inM21, sum2); inV = *__SIMD32(pA)++; sum = __SMLAD(inV, inM12, sum); sum2 = __SMLAD(inV, inM22, sum2); colCnt--; } colCnt = dim_vec & 0x3; while (colCnt) { q7_t inV = *pA++; q15_t inM = *pB++; q15_t inM2 = *pB2++; sum += inV * inM; sum2 += inV * inM2; colCnt--; } /* while over colCnt */ *pO++ = (q7_t) (__SSAT((sum >> out_shift), 8)); *pO++ = (q7_t) (__SSAT((sum2 >> out_shift), 8)); /* adjust the pointers and counters */ pB += dim_vec; rowCnt--; } /* left-over part of the rows */ rowCnt = num_of_rows & 0x1; while (rowCnt) { uint16_t colCnt = dim_vec >> 2; q31_t sum = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); pA = vec_buffer; while (colCnt) { q31_t inV1, inV2, inM11, inM12; pB = (q7_t *) read_and_pad_reordered((void *)pB, &inM11, &inM12); inV1 = *__SIMD32(pA)++; sum = __SMLAD(inV1, inM11, sum); inV2 = *__SIMD32(pA)++; sum = __SMLAD(inV2, inM12, sum); colCnt--; } /* left-over of the vector */ colCnt = dim_vec & 0x3; while (colCnt) { q7_t inV = *pA++; q15_t inM = *pB++; sum += inV * inM; colCnt--; } *pO++ = (q7_t) (__SSAT((sum >> out_shift), 8)); rowCnt--; } #else int i, j; /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ for (i = 0; i < num_of_rows; i++) { int ip_out = ((q31_t)(bias[i]) << bias_shift) + NN_ROUND(out_shift); for (j = 0; j < dim_vec; j++) { ip_out += pV[j] * pM[i * dim_vec + j]; } pOut[i] = (q7_t) __SSAT((ip_out >> out_shift), 8); } #endif /* ARM_MATH_DSP */ /* Return to ARM_MATH_SUCCESS */ return (ARM_MATH_SUCCESS); } /** * @} end of FC group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/FullyConnectedFunctions/arm_fully_connected_q7.c
C
apache-2.0
5,581
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_fully_connected_q7_opt.c * Description: Q7 basic fully-connected layer function * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup FC * @{ */ /** * @brief Q7 opt fully-connected layer function * @param[in] pV pointer to input vector * @param[in] pM pointer to matrix weights * @param[in] dim_vec length of the vector * @param[in] num_of_rows number of rows in weight matrix * @param[in] bias_shift amount of left-shift for bias * @param[in] out_shift amount of right-shift for output * @param[in] bias pointer to bias * @param[in,out] pOut pointer to output vector * @param[in,out] vec_buffer pointer to buffer space for input * @return The function returns <code>ARM_MATH_SUCCESS</code> * * @details * * <b>Buffer size:</b> * * vec_buffer size: dim_vec * * This opt function is designed to work with interleaved weight * matrix. The vector input is assumed in q7_t format, we call * arm_q7_to_q15_no_shift_shuffle function to expand into * q15_t format with certain weight re-ordering, refer to the function * comments for more details. * Here we use only one pointer to read 4 rows in the weight * matrix. So if the original q7_t matrix looks like this: * * | a11 | a12 | a13 | a14 | a15 | a16 | a17 | * * | a21 | a22 | a23 | a24 | a25 | a26 | a27 | * * | a31 | a32 | a33 | a34 | a35 | a36 | a37 | * * | a41 | a42 | a43 | a44 | a45 | a46 | a47 | * * | a51 | a52 | a53 | a54 | a55 | a56 | a57 | * * | a61 | a62 | a63 | a64 | a65 | a66 | a67 | * * * We operates on multiple-of-4 rows, so the first four rows becomes * * | a11 | a21 | a13 | a23 | a31 | a41 | a33 | a43 | * * | a12 | a22 | a14 | a24 | a32 | a42 | a34 | a44 | * * | a15 | a25 | a35 | a45 | a16 | a26 | a36 | a46 | * * So within the kernel, we first read the re-ordered vector in as: * * | b1 | b3 | and | b2 | b4 | * * the four q31_t weights will look like * * | a11 | a13 |, | a21 | a23 |, | a31 | a33 |, | a41 | a43 | * * | a12 | a14 |, | a22 | a24 |, | a32 | a34 |, | a42 | a44 | * * The column left over will be in-order. * which is: * * | a17 | a27 | a37 | a47 | * * For the left-over rows, we do 1x1 computation, so the data remains * as its original order. * * So the stored weight matrix looks like this: * * | a11 | a21 | a13 | a23 | a31 | a41 | * * | a33 | a43 | a12 | a22 | a14 | a24 | * * | a32 | a42 | a34 | a44 | a15 | a25 | * * | a35 | a45 | a16 | a26 | a36 | a46 | * * | a17 | a27 | a37 | a47 | a51 | a52 | * * | a53 | a54 | a55 | a56 | a57 | a61 | * * | a62 | a63 | a64 | a65 | a66 | a67 | * * */ arm_status arm_fully_connected_q7_opt(const q7_t * pV, const q7_t * pM, const uint16_t dim_vec, const uint16_t num_of_rows, const uint16_t bias_shift, const uint16_t out_shift, const q7_t * bias, q7_t * pOut, q15_t * vec_buffer) { #if defined (ARM_MATH_DSP) /* Run the following code for Cortex-M4 and Cortex-M7 */ const q7_t *pB = pM; q7_t *pO = pOut; const q7_t *pBias = bias; q15_t *pA; uint16_t rowCnt = num_of_rows >> 2; arm_q7_to_q15_reordered_no_shift(pV, vec_buffer, dim_vec); while (rowCnt) { q31_t sum = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum2 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum3 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum4 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = dim_vec >> 2; pA = vec_buffer; #ifdef USE_INTRINSIC #ifndef ARM_MATH_BIG_ENDIAN while (colCnt) { q31_t inM11, inM12, inM13, inM14; q31_t inV; inV = *__SIMD32(pA)++; inM11 = *__SIMD32(pB)++; inM12 = __SXTB16(__ROR(inM11, 8)); inM11 = __SXTB16(inM11); sum = __SMLAD(inM11, inV, sum); sum2 = __SMLAD(inM12, inV, sum2); inM13 = *__SIMD32(pB)++; inM14 = __SXTB16(__ROR(inM13, 8)); inM13 = __SXTB16(inM13); sum3 = __SMLAD(inM13, inV, sum3); sum4 = __SMLAD(inM14, inV, sum4); inV = *__SIMD32(pA)++; inM11 = *__SIMD32(pB)++; inM12 = __SXTB16(__ROR(inM11, 8)); inM11 = __SXTB16(inM11); sum = __SMLAD(inM11, inV, sum); sum2 = __SMLAD(inM12, inV, sum2); inM13 = *__SIMD32(pB)++; inM14 = __SXTB16(__ROR(inM13, 8)); inM13 = __SXTB16(inM13); sum3 = __SMLAD(inM13, inV, sum3); sum4 = __SMLAD(inM14, inV, sum4); colCnt--; } #else while (colCnt) { q31_t inM11, inM12, inM13, inM14; q31_t inV; inV = *__SIMD32(pA)++; inM11 = *__SIMD32(pB)++; inM12 = __SXTB16(__ROR(inM11, 8)); inM11 = __SXTB16(inM11); sum = __SMLAD(inM12, inV, sum); sum2 = __SMLAD(inM11, inV, sum2); inM13 = *__SIMD32(pB)++; inM14 = __SXTB16(__ROR(inM13, 8)); inM13 = __SXTB16(inM13); sum3 = __SMLAD(inM14, inV, sum3); sum4 = __SMLAD(inM13, inV, sum4); inV = *__SIMD32(pA)++; inM11 = *__SIMD32(pB)++; inM12 = __SXTB16(__ROR(inM11, 8)); inM11 = __SXTB16(inM11); sum = __SMLAD(inM12, inV, sum); sum2 = __SMLAD(inM11, inV, sum2); inM13 = *__SIMD32(pB)++; inM14 = __SXTB16(__ROR(inM13, 8)); inM13 = __SXTB16(inM13); sum3 = __SMLAD(inM14, inV, sum3); sum4 = __SMLAD(inM13, inV, sum4); colCnt--; } #endif /* ARM_MATH_BIG_ENDIAN */ #else /* * register needed: * loop counter: colCnt * accumulators: sum, sum2, sum3, sum4 * pointers: pB, pA * weight data: inM11, inM12, inM13, inM14 * activation data: inV */ #ifndef ARM_MATH_BIG_ENDIAN asm volatile ("COL_LOOP_%=:\n" "ldr.w r4, [%[pA]], #8\n" "ldr.w r1, [%[pB]], #16\n" "mov.w r0, r1, ror #8\n" "sxtb16 r0, r0\n" "sxtb16 r1, r1\n" "smlad %[sum], r4, r1, %[sum]\n" "smlad %[sum2], r4, r0, %[sum2]\n" "ldr.w r3, [%[pB], #-12]\n" "mov.w r2, r3, ror #8\n" "sxtb16 r2, r2\n" "sxtb16 r3, r3\n" "smlad %[sum3], r4, r3, %[sum3]\n" "smlad %[sum4], r4, r2, %[sum4]\n" "ldr.w r4, [%[pA], #-4]\n" "ldr.w r1, [%[pB], #-8]\n" "mov.w r0, r1, ror #8\n" "sxtb16 r0, r0\n" "sxtb16 r1, r1\n" "smlad %[sum], r4, r1, %[sum]\n" "smlad %[sum2], r4, r0, %[sum2]\n" "ldr.w r3, [%[pB], #-4]\n" "mov.w r2, r3, ror #8\n" "sxtb16 r2, r2\n" "sxtb16 r3, r3\n" "smlad %[sum3], r4, r3, %[sum3]\n" "smlad %[sum4], r4, r2, %[sum4]\n" "subs %[colCnt], #1\n" "bne COL_LOOP_%=\n":[sum] "+r"(sum), [sum2] "+r"(sum2),[sum3] "+r"(sum3), [sum4] "+r"(sum4),[pB] "+r"(pB),[pA] "+r"(pA):[colCnt] "r"(colCnt):"r0", "r1", "r2", "r3", "r4"); #else asm volatile ("COL_LOOP_%=:\n" "ldr.w r4, [%[pA]], #8\n" "ldr.w r1, [%[pB]], #16\n" "mov.w r0, r1, ror #8\n" "sxtb16 r0, r0\n" "sxtb16 r1, r1\n" "smlad %[sum], r4, r0, %[sum]\n" "smlad %[sum2], r4, r1, %[sum2]\n" "ldr.w r3, [%[pB], #-12]\n" "mov.w r2, r3, ror #8\n" "sxtb16 r2, r2\n" "sxtb16 r3, r3\n" "smlad %[sum3], r4, r2, %[sum3]\n" "smlad %[sum4], r4, r3, %[sum4]\n" "ldr.w r4, [%[pA], #-4]\n" "ldr.w r1, [%[pB], #-8]\n" "mov.w r0, r1, ror #8\n" "sxtb16 r0, r0\n" "sxtb16 r1, r1\n" "smlad %[sum], r4, r0, %[sum]\n" "smlad %[sum2], r4, r1, %[sum2]\n" "ldr.w r3, [%[pB], #-4]\n" "mov.w r2, r3, ror #8\n" "sxtb16 r2, r2\n" "sxtb16 r3, r3\n" "smlad %[sum3], r4, r2, %[sum3]\n" "smlad %[sum4], r4, r3, %[sum4]\n" "subs %[colCnt], #1\n" "bne COL_LOOP_%=\n":[sum] "+r"(sum), [sum2] "+r"(sum2),[sum3] "+r"(sum3), [sum4] "+r"(sum4),[pB] "+r"(pB),[pA] "+r"(pA):[colCnt] "r"(colCnt):"r0", "r1", "r2", "r3", "r4"); #endif /* ARM_MATH_BIG_ENDIAN */ #endif /* USE_INTRINSIC */ colCnt = dim_vec & 0x3; while (colCnt) { q15_t inV = *pA++; q7_t inM = *pB++; q7_t inM2 = *pB++; q7_t inM3 = *pB++; q7_t inM4 = *pB++; sum += inV * inM; sum2 += inV * inM2; sum3 += inV * inM3; sum4 += inV * inM4; colCnt--; } /* while over colCnt */ *pO++ = (q7_t) (__SSAT((sum >> out_shift), 8)); *pO++ = (q7_t) (__SSAT((sum2 >> out_shift), 8)); *pO++ = (q7_t) (__SSAT((sum3 >> out_shift), 8)); *pO++ = (q7_t) (__SSAT((sum4 >> out_shift), 8)); /* adjust the pointers and counters */ rowCnt--; } /* left-over part of the rows */ rowCnt = num_of_rows & 0x3; while (rowCnt) { q31_t sum = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = dim_vec >> 2; pA = vec_buffer; while (colCnt) { q31_t inV1, inV2, inM11, inM12; pB = (q7_t *) read_and_pad_reordered((void *)pB, &inM11, &inM12); inV1 = *__SIMD32(pA)++; sum = __SMLAD(inV1, inM11, sum); inV2 = *__SIMD32(pA)++; sum = __SMLAD(inV2, inM12, sum); colCnt--; } /* left-over of the vector */ colCnt = dim_vec & 0x3; while (colCnt) { q15_t inV = *pA++; q7_t inM = *pB++; sum += inV * inM; colCnt--; } *pO++ = (q7_t) (__SSAT((sum >> out_shift), 8)); rowCnt--; } #else /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ uint16_t rowCnt = num_of_rows >> 2; const q7_t *pB = pM; const q7_t *pA; q7_t *pO = pOut; const q7_t *pBias = bias; while (rowCnt) { q31_t sum = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum2 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum3 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); q31_t sum4 = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); uint16_t colCnt = dim_vec >> 2; pA = pV; while (colCnt) { q7_t inA1 = *pA++; q7_t inA3 = *pA++; q7_t inA2 = *pA++; q7_t inA4 = *pA++; q7_t inB1 = *pB++; q7_t inB3 = *pB++; q7_t inB2 = *pB++; q7_t inB4 = *pB++; sum += inA1 * inB1 + inA2 * inB2; sum2 += inA1 * inB3 + inA2 * inB4; inB1 = *pB++; inB3 = *pB++; inB2 = *pB++; inB4 = *pB++; sum3 += inA1 * inB1 + inA2 * inB2; sum4 += inA1 * inB3 + inA2 * inB4; inB1 = *pB++; inB3 = *pB++; inB2 = *pB++; inB4 = *pB++; sum += inA3 * inB1 + inA4 * inB2; sum2 += inA3 * inB3 + inA4 * inB4; inB1 = *pB++; inB3 = *pB++; inB2 = *pB++; inB4 = *pB++; sum3 += inA3 * inB1 + inA4 * inB2; sum4 += inA3 * inB3 + inA4 * inB4; colCnt--; } colCnt = dim_vec & 0x3; while (colCnt) { q7_t inA = *pA++; q7_t inB = *pB++; sum += inA * inB; inB = *pB++; sum2 += inA * inB; inB = *pB++; sum3 += inA * inB; inB = *pB++; sum4 += inA * inB; colCnt--; } *pO++ = (q7_t) __SSAT((sum >> out_shift), 8); *pO++ = (q7_t) __SSAT((sum2 >> out_shift), 8); *pO++ = (q7_t) __SSAT((sum3 >> out_shift), 8); *pO++ = (q7_t) __SSAT((sum4 >> out_shift), 8); rowCnt--; } rowCnt = num_of_rows & 0x3; while (rowCnt) { int ip_out = ((q31_t)(*pBias++) << bias_shift) + NN_ROUND(out_shift); int j; pA = pV; for (j = 0; j < dim_vec; j++) { q7_t inA = *pA++; q7_t inB = *pB++; ip_out += inA * inB; } *pO++ = (q7_t) __SSAT((ip_out >> out_shift), 8); rowCnt--; } #endif /* ARM_MATH_DSP */ /* Return to ARM_MATH_SUCCESS */ return (ARM_MATH_SUCCESS); } /** * @} end of FC group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/FullyConnectedFunctions/arm_fully_connected_q7_opt.c
C
apache-2.0
15,406
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_nn_mult_q15.c * Description: Q15 vector multiplication with variable output shifts * * $Date: 13. July 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_nnfunctions.h" /** * @ingroup groupSupport */ /** * @addtogroup NNBasicMath * @{ */ /** * @brief Q7 vector multiplication with variable output shifts * @param[in] *pSrcA pointer to the first input vector * @param[in] *pSrcB pointer to the second input vector * @param[out] *pDst pointer to the output vector * @param[in] out_shift amount of right-shift for output * @param[in] blockSize number of samples in each vector * @return none. * * <b>Scaling and Overflow Behavior:</b> * \par * The function uses saturating arithmetic. * Results outside of the allowable Q15 range [0x8000 0x7FFF] will be saturated. */ void arm_nn_mult_q15( q15_t * pSrcA, q15_t * pSrcB, q15_t * pDst, const uint16_t out_shift, uint32_t blockSize) { uint32_t blkCnt; /* loop counters */ #if defined (ARM_MATH_DSP) /* Run the below code for Cortex-M4 and Cortex-M3 */ q31_t inA1, inA2, inB1, inB2; /* temporary input variables */ q15_t out1, out2, out3, out4; /* temporary output variables */ q31_t mul1, mul2, mul3, mul4; /* temporary variables */ /* loop Unrolling */ blkCnt = blockSize >> 2U; /* First part of the processing with loop unrolling. Compute 4 outputs at a time. ** a second loop below computes the remaining 1 to 3 samples. */ while (blkCnt > 0U) { /* read two samples at a time from sourceA */ inA1 = *__SIMD32(pSrcA)++; /* read two samples at a time from sourceB */ inB1 = *__SIMD32(pSrcB)++; /* read two samples at a time from sourceA */ inA2 = *__SIMD32(pSrcA)++; /* read two samples at a time from sourceB */ inB2 = *__SIMD32(pSrcB)++; /* multiply mul = sourceA * sourceB */ mul1 = (q31_t) ((q15_t) (inA1 >> 16) * (q15_t) (inB1 >> 16)); mul2 = (q31_t) ((q15_t) inA1 * (q15_t) inB1); mul3 = (q31_t) ((q15_t) (inA2 >> 16) * (q15_t) (inB2 >> 16)); mul4 = (q31_t) ((q15_t) inA2 * (q15_t) inB2); /* saturate result to 16 bit */ out1 = (q15_t) __SSAT((mul1 + NN_ROUND(out_shift)) >> out_shift, 16); out2 = (q15_t) __SSAT((mul2 + NN_ROUND(out_shift)) >> out_shift, 16); out3 = (q15_t) __SSAT((mul3 + NN_ROUND(out_shift)) >> out_shift, 16); out4 = (q15_t) __SSAT((mul4 + NN_ROUND(out_shift)) >> out_shift, 16); /* store the result */ #ifndef ARM_MATH_BIG_ENDIAN *__SIMD32(pDst)++ = __PKHBT(out2, out1, 16); *__SIMD32(pDst)++ = __PKHBT(out4, out3, 16); #else *__SIMD32(pDst)++ = __PKHBT(out2, out1, 16); *__SIMD32(pDst)++ = __PKHBT(out4, out3, 16); #endif /* #ifndef ARM_MATH_BIG_ENDIAN */ /* Decrement the blockSize loop counter */ blkCnt--; } /* If the blockSize is not a multiple of 4, compute any remaining output samples here. ** No loop unrolling is used. */ blkCnt = blockSize % 0x4U; #else /* Run the below code for Cortex-M0 */ /* Initialize blkCnt with number of samples */ blkCnt = blockSize; #endif /* #if defined (ARM_MATH_DSP) */ while (blkCnt > 0U) { /* C = A * B */ /* Multiply the inputs and store the result in the destination buffer */ *pDst++ = (q15_t) __SSAT((((q31_t) (*pSrcA++) * (*pSrcB++) + NN_ROUND(out_shift)) >> out_shift), 16); /* Decrement the blockSize loop counter */ blkCnt--; } } /** * @} end of NNBasicMath group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/NNSupportFunctions/arm_nn_mult_q15.c
C
apache-2.0
4,493
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_nn_mult_q7.c * Description: Q7 vector multiplication with variable output shifts * * $Date: 13. July 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_nnfunctions.h" /** * @ingroup groupSupport */ /** * @addtogroup NNBasicMath * @{ */ /** * @brief Q7 vector multiplication with variable output shifts * @param[in] *pSrcA pointer to the first input vector * @param[in] *pSrcB pointer to the second input vector * @param[out] *pDst pointer to the output vector * @param[in] out_shift amount of right-shift for output * @param[in] blockSize number of samples in each vector * @return none. * * <b>Scaling and Overflow Behavior:</b> * \par * The function uses saturating arithmetic. * Results outside of the allowable Q7 range [0x80 0x7F] will be saturated. */ void arm_nn_mult_q7( q7_t * pSrcA, q7_t * pSrcB, q7_t * pDst, const uint16_t out_shift, uint32_t blockSize) { uint32_t blkCnt; /* loop counters */ #if defined (ARM_MATH_DSP) /* Run the below code for Cortex-M4 and Cortex-M3 */ q7_t out1, out2, out3, out4; /* Temporary variables to store the product */ /* loop Unrolling */ blkCnt = blockSize >> 2U; /* First part of the processing with loop unrolling. Compute 4 outputs at a time. ** a second loop below computes the remaining 1 to 3 samples. */ while (blkCnt > 0U) { /* C = A * B */ /* Multiply the inputs and store the results in temporary variables */ out1 = (q7_t) __SSAT((((q15_t) (*pSrcA++) * (*pSrcB++) + NN_ROUND(out_shift)) >> out_shift), 8); out2 = (q7_t) __SSAT((((q15_t) (*pSrcA++) * (*pSrcB++) + NN_ROUND(out_shift)) >> out_shift), 8); out3 = (q7_t) __SSAT((((q15_t) (*pSrcA++) * (*pSrcB++) + NN_ROUND(out_shift)) >> out_shift), 8); out4 = (q7_t) __SSAT((((q15_t) (*pSrcA++) * (*pSrcB++) + NN_ROUND(out_shift)) >> out_shift), 8); /* Store the results of 4 inputs in the destination buffer in single cycle by packing */ *__SIMD32(pDst)++ = __PACKq7(out1, out2, out3, out4); /* Decrement the blockSize loop counter */ blkCnt--; } /* If the blockSize is not a multiple of 4, compute any remaining output samples here. ** No loop unrolling is used. */ blkCnt = blockSize % 0x4U; #else /* Run the below code for Cortex-M0 */ /* Initialize blkCnt with number of samples */ blkCnt = blockSize; #endif /* #if defined (ARM_MATH_DSP) */ while (blkCnt > 0U) { /* C = A * B */ /* Multiply the inputs and store the result in the destination buffer */ *pDst++ = (q7_t) __SSAT((((q15_t) (*pSrcA++) * (*pSrcB++) + NN_ROUND(out_shift)) >> out_shift), 8); /* Decrement the blockSize loop counter */ blkCnt--; } } /** * @} end of NNBasicMath group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/NNSupportFunctions/arm_nn_mult_q7.c
C
apache-2.0
3,751
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_nntables.c * Description: Converts the elements of the Q7 vector to Q15 vector without left-shift * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_nnsupportfunctions.h" /** * @brief tables for various activation functions * * This file include the declaration of common tables. * Most of them are used for activation functions * * Assumption: * Unified table: input is 3.x format, i.e, range of [-8, 8) * sigmoid(8) = 0.9996646498695336 * tanh(8) = 0.9999997749296758 * The accuracy here should be good enough * * 2-stage HL table: * * The entire input range is divided into two parts: * * Low range table: 0x000x xxxx or 0x111x xxxx * table entry will be the binary number excluding the first * two digits, i.e., 0x0x xxxx or 0x1x xxxx * * * * High range table 0x0010 0000 -- 0x0111 1111 * 0x1000 0000 -- 0x1101 1111 * * For positive numbers, table entry will be * 0x0010 0000 -- 0x0111 1111 minus 0x0010 0000 * i.e., 0x0000 0000 - 0x0101 11111 * * same thing for the negative numbers, table entry will be * 0x1000 0000 -- 0x1101 1111 minux 0x0010 0000 * i.e., 0x0110 0000 - 0x1011 1111 */ const q7_t sigmoidTable_q7[256] = { 0x40, 0x42, 0x44, 0x46, 0x48, 0x4a, 0x4c, 0x4e, 0x50, 0x52, 0x53, 0x55, 0x57, 0x59, 0x5a, 0x5c, 0x5e, 0x5f, 0x61, 0x62, 0x63, 0x65, 0x66, 0x67, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 0x70, 0x71, 0x72, 0x72, 0x73, 0x74, 0x74, 0x75, 0x76, 0x76, 0x77, 0x77, 0x78, 0x78, 0x79, 0x79, 0x7a, 0x7a, 0x7a, 0x7b, 0x7b, 0x7b, 0x7c, 0x7c, 0x7c, 0x7c, 0x7c, 0x7d, 0x7d, 0x7d, 0x7d, 0x7d, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x03, 0x03, 0x03, 0x03, 0x03, 0x04, 0x04, 0x04, 0x04, 0x04, 0x05, 0x05, 0x05, 0x06, 0x06, 0x06, 0x07, 0x07, 0x08, 0x08, 0x09, 0x09, 0x0a, 0x0a, 0x0b, 0x0c, 0x0c, 0x0d, 0x0e, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x19, 0x1a, 0x1b, 0x1d, 0x1e, 0x1f, 0x21, 0x22, 0x24, 0x26, 0x27, 0x29, 0x2b, 0x2d, 0x2e, 0x30, 0x32, 0x34, 0x36, 0x38, 0x3a, 0x3c, 0x3e, }; const q15_t sigmoidTable_q15[256] = { 0x4000, 0x4200, 0x43ff, 0x45fc, 0x47f5, 0x49eb, 0x4bdc, 0x4dc8, 0x4fad, 0x518a, 0x5360, 0x552c, 0x56ef, 0x58a8, 0x5a57, 0x5bfb, 0x5d93, 0x5f20, 0x60a1, 0x6216, 0x637f, 0x64db, 0x662b, 0x676f, 0x68a6, 0x69d2, 0x6af1, 0x6c05, 0x6d0d, 0x6e09, 0x6efb, 0x6fe2, 0x70be, 0x7190, 0x7258, 0x7316, 0x73cc, 0x7478, 0x751b, 0x75b7, 0x764a, 0x76d6, 0x775b, 0x77d8, 0x784f, 0x78c0, 0x792a, 0x798f, 0x79ee, 0x7a48, 0x7a9d, 0x7aed, 0x7b39, 0x7b80, 0x7bc4, 0x7c03, 0x7c3f, 0x7c78, 0x7cad, 0x7ce0, 0x7d0f, 0x7d3c, 0x7d66, 0x7d8d, 0x7db3, 0x7dd6, 0x7df7, 0x7e16, 0x7e33, 0x7e4f, 0x7e69, 0x7e81, 0x7e98, 0x7eae, 0x7ec2, 0x7ed5, 0x7ee7, 0x7ef8, 0x7f08, 0x7f17, 0x7f25, 0x7f32, 0x7f3e, 0x7f4a, 0x7f55, 0x7f5f, 0x7f69, 0x7f72, 0x7f7b, 0x7f83, 0x7f8a, 0x7f91, 0x7f98, 0x7f9e, 0x7fa4, 0x7faa, 0x7faf, 0x7fb4, 0x7fb8, 0x7fbd, 0x7fc1, 0x7fc5, 0x7fc8, 0x7fcc, 0x7fcf, 0x7fd2, 0x7fd5, 0x7fd7, 0x7fda, 0x7fdc, 0x7fde, 0x7fe0, 0x7fe2, 0x7fe4, 0x7fe6, 0x7fe7, 0x7fe9, 0x7fea, 0x7feb, 0x7fed, 0x7fee, 0x7fef, 0x7ff0, 0x7ff1, 0x7ff2, 0x7ff3, 0x7ff4, 0x7ff4, 0x000b, 0x000c, 0x000c, 0x000d, 0x000e, 0x000f, 0x0010, 0x0011, 0x0012, 0x0013, 0x0015, 0x0016, 0x0017, 0x0019, 0x001a, 0x001c, 0x001e, 0x0020, 0x0022, 0x0024, 0x0026, 0x0029, 0x002b, 0x002e, 0x0031, 0x0034, 0x0038, 0x003b, 0x003f, 0x0043, 0x0048, 0x004c, 0x0051, 0x0056, 0x005c, 0x0062, 0x0068, 0x006f, 0x0076, 0x007d, 0x0085, 0x008e, 0x0097, 0x00a1, 0x00ab, 0x00b6, 0x00c2, 0x00ce, 0x00db, 0x00e9, 0x00f8, 0x0108, 0x0119, 0x012b, 0x013e, 0x0152, 0x0168, 0x017f, 0x0197, 0x01b1, 0x01cd, 0x01ea, 0x0209, 0x022a, 0x024d, 0x0273, 0x029a, 0x02c4, 0x02f1, 0x0320, 0x0353, 0x0388, 0x03c1, 0x03fd, 0x043c, 0x0480, 0x04c7, 0x0513, 0x0563, 0x05b8, 0x0612, 0x0671, 0x06d6, 0x0740, 0x07b1, 0x0828, 0x08a5, 0x092a, 0x09b6, 0x0a49, 0x0ae5, 0x0b88, 0x0c34, 0x0cea, 0x0da8, 0x0e70, 0x0f42, 0x101e, 0x1105, 0x11f7, 0x12f3, 0x13fb, 0x150f, 0x162e, 0x175a, 0x1891, 0x19d5, 0x1b25, 0x1c81, 0x1dea, 0x1f5f, 0x20e0, 0x226d, 0x2405, 0x25a9, 0x2758, 0x2911, 0x2ad4, 0x2ca0, 0x2e76, 0x3053, 0x3238, 0x3424, 0x3615, 0x380b, 0x3a04, 0x3c01, 0x3e00, }; const q15_t sigmoidLTable_q15[128] = { 0x4000, 0x4100, 0x4200, 0x42ff, 0x43ff, 0x44fd, 0x45fc, 0x46f9, 0x47f5, 0x48f1, 0x49eb, 0x4ae5, 0x4bdc, 0x4cd3, 0x4dc8, 0x4ebb, 0x4fad, 0x509c, 0x518a, 0x5276, 0x5360, 0x5447, 0x552c, 0x560f, 0x56ef, 0x57cd, 0x58a8, 0x5981, 0x5a57, 0x5b2a, 0x5bfb, 0x5cc9, 0x5d93, 0x5e5b, 0x5f20, 0x5fe2, 0x60a1, 0x615d, 0x6216, 0x62cc, 0x637f, 0x642e, 0x64db, 0x6584, 0x662b, 0x66ce, 0x676f, 0x680c, 0x68a6, 0x693d, 0x69d2, 0x6a63, 0x6af1, 0x6b7c, 0x6c05, 0x6c8a, 0x6d0d, 0x6d8d, 0x6e09, 0x6e84, 0x6efb, 0x6f70, 0x6fe2, 0x7051, 0x0f42, 0x0faf, 0x101e, 0x1090, 0x1105, 0x117c, 0x11f7, 0x1273, 0x12f3, 0x1376, 0x13fb, 0x1484, 0x150f, 0x159d, 0x162e, 0x16c3, 0x175a, 0x17f4, 0x1891, 0x1932, 0x19d5, 0x1a7c, 0x1b25, 0x1bd2, 0x1c81, 0x1d34, 0x1dea, 0x1ea3, 0x1f5f, 0x201e, 0x20e0, 0x21a5, 0x226d, 0x2337, 0x2405, 0x24d6, 0x25a9, 0x267f, 0x2758, 0x2833, 0x2911, 0x29f1, 0x2ad4, 0x2bb9, 0x2ca0, 0x2d8a, 0x2e76, 0x2f64, 0x3053, 0x3145, 0x3238, 0x332d, 0x3424, 0x351b, 0x3615, 0x370f, 0x380b, 0x3907, 0x3a04, 0x3b03, 0x3c01, 0x3d01, 0x3e00, 0x3f00, }; const q15_t sigmoidHTable_q15[192] = { 0x70be, 0x7190, 0x7258, 0x7316, 0x73cc, 0x7478, 0x751b, 0x75b7, 0x764a, 0x76d6, 0x775b, 0x77d8, 0x784f, 0x78c0, 0x792a, 0x798f, 0x79ee, 0x7a48, 0x7a9d, 0x7aed, 0x7b39, 0x7b80, 0x7bc4, 0x7c03, 0x7c3f, 0x7c78, 0x7cad, 0x7ce0, 0x7d0f, 0x7d3c, 0x7d66, 0x7d8d, 0x7db3, 0x7dd6, 0x7df7, 0x7e16, 0x7e33, 0x7e4f, 0x7e69, 0x7e81, 0x7e98, 0x7eae, 0x7ec2, 0x7ed5, 0x7ee7, 0x7ef8, 0x7f08, 0x7f17, 0x7f25, 0x7f32, 0x7f3e, 0x7f4a, 0x7f55, 0x7f5f, 0x7f69, 0x7f72, 0x7f7b, 0x7f83, 0x7f8a, 0x7f91, 0x7f98, 0x7f9e, 0x7fa4, 0x7faa, 0x7faf, 0x7fb4, 0x7fb8, 0x7fbd, 0x7fc1, 0x7fc5, 0x7fc8, 0x7fcc, 0x7fcf, 0x7fd2, 0x7fd5, 0x7fd7, 0x7fda, 0x7fdc, 0x7fde, 0x7fe0, 0x7fe2, 0x7fe4, 0x7fe6, 0x7fe7, 0x7fe9, 0x7fea, 0x7feb, 0x7fed, 0x7fee, 0x7fef, 0x7ff0, 0x7ff1, 0x7ff2, 0x7ff3, 0x7ff4, 0x7ff4, 0x000b, 0x000c, 0x000c, 0x000d, 0x000e, 0x000f, 0x0010, 0x0011, 0x0012, 0x0013, 0x0015, 0x0016, 0x0017, 0x0019, 0x001a, 0x001c, 0x001e, 0x0020, 0x0022, 0x0024, 0x0026, 0x0029, 0x002b, 0x002e, 0x0031, 0x0034, 0x0038, 0x003b, 0x003f, 0x0043, 0x0048, 0x004c, 0x0051, 0x0056, 0x005c, 0x0062, 0x0068, 0x006f, 0x0076, 0x007d, 0x0085, 0x008e, 0x0097, 0x00a1, 0x00ab, 0x00b6, 0x00c2, 0x00ce, 0x00db, 0x00e9, 0x00f8, 0x0108, 0x0119, 0x012b, 0x013e, 0x0152, 0x0168, 0x017f, 0x0197, 0x01b1, 0x01cd, 0x01ea, 0x0209, 0x022a, 0x024d, 0x0273, 0x029a, 0x02c4, 0x02f1, 0x0320, 0x0353, 0x0388, 0x03c1, 0x03fd, 0x043c, 0x0480, 0x04c7, 0x0513, 0x0563, 0x05b8, 0x0612, 0x0671, 0x06d6, 0x0740, 0x07b1, 0x0828, 0x08a5, 0x092a, 0x09b6, 0x0a49, 0x0ae5, 0x0b88, 0x0c34, 0x0cea, 0x0da8, 0x0e70, }; const q7_t tanhTable_q7[256] = { 0x00, 0x08, 0x10, 0x18, 0x1f, 0x27, 0x2e, 0x35, 0x3b, 0x41, 0x47, 0x4c, 0x51, 0x56, 0x5a, 0x5e, 0x61, 0x65, 0x68, 0x6a, 0x6d, 0x6f, 0x71, 0x72, 0x74, 0x75, 0x76, 0x78, 0x78, 0x79, 0x7a, 0x7b, 0x7b, 0x7c, 0x7c, 0x7d, 0x7d, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x82, 0x82, 0x82, 0x82, 0x82, 0x83, 0x83, 0x84, 0x84, 0x85, 0x85, 0x86, 0x87, 0x88, 0x88, 0x8a, 0x8b, 0x8c, 0x8e, 0x8f, 0x91, 0x93, 0x96, 0x98, 0x9b, 0x9f, 0xa2, 0xa6, 0xaa, 0xaf, 0xb4, 0xb9, 0xbf, 0xc5, 0xcb, 0xd2, 0xd9, 0xe1, 0xe8, 0xf0, 0xf8, }; const q15_t tanhTable_q15[256] = { 0x0000, 0x07fd, 0x0feb, 0x17b9, 0x1f59, 0x26bf, 0x2ddf, 0x34ae, 0x3b27, 0x4142, 0x46fd, 0x4c56, 0x514d, 0x55e2, 0x5a1a, 0x5df6, 0x617c, 0x64b0, 0x6797, 0x6a37, 0x6c95, 0x6eb5, 0x709e, 0x7254, 0x73dc, 0x753a, 0x7672, 0x7788, 0x787f, 0x795b, 0x7a1e, 0x7acb, 0x7b65, 0x7bee, 0x7c66, 0x7cd1, 0x7d30, 0x7d84, 0x7dce, 0x7e0f, 0x7e49, 0x7e7d, 0x7eaa, 0x7ed2, 0x7ef5, 0x7f14, 0x7f30, 0x7f48, 0x7f5e, 0x7f71, 0x7f82, 0x7f91, 0x7f9e, 0x7fa9, 0x7fb3, 0x7fbc, 0x7fc4, 0x7fcb, 0x7fd1, 0x7fd7, 0x7fdc, 0x7fe0, 0x7fe4, 0x7fe7, 0x7fea, 0x7fed, 0x7fef, 0x7ff1, 0x7ff3, 0x7ff4, 0x7ff6, 0x7ff7, 0x7ff8, 0x7ff9, 0x7ffa, 0x7ffa, 0x7ffb, 0x7ffc, 0x7ffc, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8002, 0x8002, 0x8002, 0x8002, 0x8003, 0x8003, 0x8003, 0x8004, 0x8004, 0x8005, 0x8006, 0x8006, 0x8007, 0x8008, 0x8009, 0x800a, 0x800c, 0x800d, 0x800f, 0x8011, 0x8013, 0x8016, 0x8019, 0x801c, 0x8020, 0x8024, 0x8029, 0x802f, 0x8035, 0x803c, 0x8044, 0x804d, 0x8057, 0x8062, 0x806f, 0x807e, 0x808f, 0x80a2, 0x80b8, 0x80d0, 0x80ec, 0x810b, 0x812e, 0x8156, 0x8183, 0x81b7, 0x81f1, 0x8232, 0x827c, 0x82d0, 0x832f, 0x839a, 0x8412, 0x849b, 0x8535, 0x85e2, 0x86a5, 0x8781, 0x8878, 0x898e, 0x8ac6, 0x8c24, 0x8dac, 0x8f62, 0x914b, 0x936b, 0x95c9, 0x9869, 0x9b50, 0x9e84, 0xa20a, 0xa5e6, 0xaa1e, 0xaeb3, 0xb3aa, 0xb903, 0xbebe, 0xc4d9, 0xcb52, 0xd221, 0xd941, 0xe0a7, 0xe847, 0xf015, 0xf803, }; const q15_t tanhLTable_q15[128] = { 0x0000, 0x0400, 0x07fd, 0x0bf7, 0x0feb, 0x13d7, 0x17b9, 0x1b90, 0x1f59, 0x2314, 0x26bf, 0x2a58, 0x2ddf, 0x3151, 0x34ae, 0x37f6, 0x3b27, 0x3e40, 0x4142, 0x442c, 0x46fd, 0x49b6, 0x4c56, 0x4edd, 0x514d, 0x53a3, 0x55e2, 0x580a, 0x5a1a, 0x5c13, 0x5df6, 0x5fc4, 0x617c, 0x6320, 0x64b0, 0x662d, 0x6797, 0x68f0, 0x6a37, 0x6b6e, 0x6c95, 0x6dac, 0x6eb5, 0x6fb0, 0x709e, 0x717f, 0x7254, 0x731e, 0x73dc, 0x7490, 0x753a, 0x75da, 0x7672, 0x7701, 0x7788, 0x7807, 0x787f, 0x78f0, 0x795b, 0x79bf, 0x7a1e, 0x7a77, 0x7acb, 0x7b1b, 0x849b, 0x84e5, 0x8535, 0x8589, 0x85e2, 0x8641, 0x86a5, 0x8710, 0x8781, 0x87f9, 0x8878, 0x88ff, 0x898e, 0x8a26, 0x8ac6, 0x8b70, 0x8c24, 0x8ce2, 0x8dac, 0x8e81, 0x8f62, 0x9050, 0x914b, 0x9254, 0x936b, 0x9492, 0x95c9, 0x9710, 0x9869, 0x99d3, 0x9b50, 0x9ce0, 0x9e84, 0xa03c, 0xa20a, 0xa3ed, 0xa5e6, 0xa7f6, 0xaa1e, 0xac5d, 0xaeb3, 0xb123, 0xb3aa, 0xb64a, 0xb903, 0xbbd4, 0xbebe, 0xc1c0, 0xc4d9, 0xc80a, 0xcb52, 0xceaf, 0xd221, 0xd5a8, 0xd941, 0xdcec, 0xe0a7, 0xe470, 0xe847, 0xec29, 0xf015, 0xf409, 0xf803, 0xfc00, }; const q15_t tanhHTable_q15[192] = { 0x7b65, 0x7bee, 0x7c66, 0x7cd1, 0x7d30, 0x7d84, 0x7dce, 0x7e0f, 0x7e49, 0x7e7d, 0x7eaa, 0x7ed2, 0x7ef5, 0x7f14, 0x7f30, 0x7f48, 0x7f5e, 0x7f71, 0x7f82, 0x7f91, 0x7f9e, 0x7fa9, 0x7fb3, 0x7fbc, 0x7fc4, 0x7fcb, 0x7fd1, 0x7fd7, 0x7fdc, 0x7fe0, 0x7fe4, 0x7fe7, 0x7fea, 0x7fed, 0x7fef, 0x7ff1, 0x7ff3, 0x7ff4, 0x7ff6, 0x7ff7, 0x7ff8, 0x7ff9, 0x7ffa, 0x7ffa, 0x7ffb, 0x7ffc, 0x7ffc, 0x7ffd, 0x7ffd, 0x7ffd, 0x7ffe, 0x7ffe, 0x7ffe, 0x7ffe, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8002, 0x8002, 0x8002, 0x8002, 0x8003, 0x8003, 0x8003, 0x8004, 0x8004, 0x8005, 0x8006, 0x8006, 0x8007, 0x8008, 0x8009, 0x800a, 0x800c, 0x800d, 0x800f, 0x8011, 0x8013, 0x8016, 0x8019, 0x801c, 0x8020, 0x8024, 0x8029, 0x802f, 0x8035, 0x803c, 0x8044, 0x804d, 0x8057, 0x8062, 0x806f, 0x807e, 0x808f, 0x80a2, 0x80b8, 0x80d0, 0x80ec, 0x810b, 0x812e, 0x8156, 0x8183, 0x81b7, 0x81f1, 0x8232, 0x827c, 0x82d0, 0x832f, 0x839a, 0x8412, };
YifuLiu/AliOS-Things
components/cmsis/NN/Source/NNSupportFunctions/arm_nntables.c
C
apache-2.0
15,539
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_q7_to_q15_no_shift.c * Description: Converts the elements of the Q7 vector to Q15 vector without left-shift * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_nnsupportfunctions.h" /** * @ingroup groupSupport */ /** * @addtogroup nndata_convert * @{ */ /** * @brief Converts the elements of the Q7 vector to Q15 vector without left-shift * @param[in] *pSrc points to the Q7 input vector * @param[out] *pDst points to the Q15 output vector * @param[in] blockSize length of the input vector * @return none. * * \par Description: * * The equation used for the conversion process is: * * <pre> * pDst[n] = (q15_t) pSrc[n]; 0 <= n < blockSize. * </pre> * */ void arm_q7_to_q15_no_shift(const q7_t * pSrc, q15_t * pDst, uint32_t blockSize) { const q7_t *pIn = pSrc; /* Src pointer */ uint32_t blkCnt; /* loop counter */ #ifndef ARM_MATH_CM0_FAMILY q31_t in; q31_t in1, in2; q31_t out1, out2; /* Run the below code for Cortex-M4 and Cortex-M3 */ /*loop Unrolling */ blkCnt = blockSize >> 2u; /* First part of the processing with loop unrolling. Compute 4 outputs at a time. ** a second loop below computes the remaining 1 to 3 samples. */ while (blkCnt > 0u) { /* C = (q15_t) A << 8 */ /* convert from q7 to q15 and then store the results in the destination buffer */ in = *__SIMD32(pIn)++; /* rotatate in by 8 and extend two q7_t values to q15_t values */ in1 = __SXTB16(__ROR(in, 8)); /* extend remainig two q7_t values to q15_t values */ in2 = __SXTB16(in); #ifndef ARM_MATH_BIG_ENDIAN out2 = __PKHTB(in1, in2, 16); out1 = __PKHBT(in2, in1, 16); #else out1 = __PKHTB(in1, in2, 16); out2 = __PKHBT(in2, in1, 16); #endif *__SIMD32(pDst)++ = out1; *__SIMD32(pDst)++ = out2; /* Decrement the loop counter */ blkCnt--; } /* If the blockSize is not a multiple of 4, compute any remaining output samples here. ** No loop unrolling is used. */ blkCnt = blockSize % 0x4u; #else /* Run the below code for Cortex-M0 */ /* Loop over blockSize number of values */ blkCnt = blockSize; #endif /* #ifndef ARM_MATH_CM0_FAMILY */ while (blkCnt > 0u) { /* C = (q15_t) A << 8 */ /* convert from q7 to q15 and then store the results in the destination buffer */ *pDst++ = (q15_t) * pIn++; /* Decrement the loop counter */ blkCnt--; } } /** * @} end of nndata_convert group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/NNSupportFunctions/arm_q7_to_q15_no_shift.c
C
apache-2.0
3,658
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_q7_to_q15_reordered_no_shift.c * Description: Converts the elements of the Q7 vector to reordered Q15 vector without left-shift * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_nnsupportfunctions.h" /** * @ingroup groupSupport */ /** * @addtogroup nndata_convert * @{ */ /** * @brief Converts the elements of the Q7 vector to reordered Q15 vector without left-shift * @param[in] *pSrc points to the Q7 input vector * @param[out] *pDst points to the Q15 output vector * @param[in] blockSize length of the input vector * @return none. * * @details * * This function does the q7 to q15 expansion with re-ordering * * <pre> * | A1 | A2 | A3 | A4 | * * 0 7 8 15 16 23 24 31 * </pre> * * is converted into: * * <pre> * | A1 | A3 | and | A2 | A4 | * * 0 15 16 31 0 15 16 31 * </pre> * * * This looks strange but is natural considering how sign-extension is done at * assembly level. * * The expansion of other other oprand will follow the same rule so that the end * results are the same. * * The tail (i.e., last (N % 4) elements) will still be in original order. * */ void arm_q7_to_q15_reordered_no_shift(const q7_t * pSrc, q15_t * pDst, uint32_t blockSize) { const q7_t *pIn = pSrc; /* Src pointer */ uint32_t blkCnt; /* loop counter */ #ifndef ARM_MATH_CM0_FAMILY q31_t in; q31_t in1, in2; /* Run the below code for Cortex-M4 and Cortex-M3 */ /*loop Unrolling */ blkCnt = blockSize >> 2u; /* First part of the processing with loop unrolling. Compute 4 outputs at a time. ** a second loop below computes the remaining 1 to 3 samples. */ while (blkCnt > 0u) { /* C = (q15_t) A << 8 */ /* convert from q7 to q15 and then store the results in the destination buffer */ in = *__SIMD32(pIn)++; /* rotatate in by 8 and extend two q7_t values to q15_t values */ in1 = __SXTB16(__ROR(in, 8)); /* extend remainig two q7_t values to q15_t values */ in2 = __SXTB16(in); #ifndef ARM_MATH_BIG_ENDIAN *__SIMD32(pDst)++ = in2; *__SIMD32(pDst)++ = in1; #else *__SIMD32(pDst)++ = in1; *__SIMD32(pDst)++ = in2; #endif /* Decrement the loop counter */ blkCnt--; } /* If the blockSize is not a multiple of 4, compute any remaining output samples here. ** No loop unrolling is used. */ blkCnt = blockSize % 0x4u; #else /* Run the below code for Cortex-M0 */ /* Loop over blockSize number of values */ blkCnt = blockSize; #endif /* #ifndef ARM_MATH_CM0_FAMILY */ while (blkCnt > 0u) { /* C = (q15_t) A << 8 */ /* convert from q7 to q15 and then store the results in the destination buffer */ *pDst++ = (q15_t) * pIn++; /* Decrement the loop counter */ blkCnt--; } } /** * @} end of q7_to_x group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/NNSupportFunctions/arm_q7_to_q15_reordered_no_shift.c
C
apache-2.0
4,137
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_pool_q7_HWC.c * Description: Pooling function implementations * * $Date: 17. January 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" #if defined (ARM_MATH_DSP) /** * @brief A few utility functions used by pooling functions * * */ static void buffer_scale_back_q15_to_q7(q15_t * buffer, q7_t * target, uint16_t length, uint16_t scale) { int i; for (i = 0; i < length; i++) { target[i] = (q7_t) (buffer[i] / scale); } } static void compare_and_replace_if_larger_q7(q7_t * base, // base data const q7_t * target, // compare target const uint16_t length // data length ) { q7_t *pIn = base; const q7_t *pCom = target; union arm_nnword in; union arm_nnword com; uint16_t cnt = length >> 2; while (cnt > 0u) { in.word = *__SIMD32(pIn); com.word = *__SIMD32(pCom)++; // if version if (com.bytes[0] > in.bytes[0]) in.bytes[0] = com.bytes[0]; if (com.bytes[1] > in.bytes[1]) in.bytes[1] = com.bytes[1]; if (com.bytes[2] > in.bytes[2]) in.bytes[2] = com.bytes[2]; if (com.bytes[3] > in.bytes[3]) in.bytes[3] = com.bytes[3]; *__SIMD32(pIn)++ = in.word; cnt--; } cnt = length & 0x3; while (cnt > 0u) { if (*pCom > *pIn) { *pIn = *pCom; } pIn++; pCom++; cnt--; } } static void accumulate_q7_to_q15(q15_t * base, q7_t * target, const uint16_t length) { q15_t *pCnt = base; q7_t *pV = target; q31_t v1, v2, vo1, vo2; uint16_t cnt = length >> 2; q31_t in; while (cnt > 0u) { q31_t value = *__SIMD32(pV)++; v1 = __SXTB16(__ROR(value, 8)); v2 = __SXTB16(value); #ifndef ARM_MATH_BIG_ENDIAN vo2 = __PKHTB(v1, v2, 16); vo1 = __PKHBT(v2, v1, 16); #else vo1 = __PKHTB(v1, v2, 16); vo2 = __PKHBT(v2, v1, 16); #endif in = *__SIMD32(pCnt); *__SIMD32(pCnt)++ = __QADD16(vo1, in); in = *__SIMD32(pCnt); *__SIMD32(pCnt)++ = __QADD16(vo2, in); cnt--; } cnt = length & 0x3; while (cnt > 0u) { *pCnt++ += *pV++; cnt--; } } #endif // ARM_MATH_DSP /** * @ingroup groupNN */ /** * @addtogroup Pooling * @{ */ /** * @brief Q7 max pooling function * @param[in, out] Im_in pointer to input tensor * @param[in] dim_im_in input tensor dimention * @param[in] ch_im_in number of input tensor channels * @param[in] dim_kernel filter kernel size * @param[in] padding padding sizes * @param[in] stride convolution stride * @param[in] dim_im_out output tensor dimension * @param[in,out] bufferA pointer to buffer space for input * @param[in,out] Im_out pointer to output tensor * @return none. * * @details * * <b>Buffer size:</b> * * bufferA size: 0 * * The pooling function is implemented as split x-pooling then * y-pooling. * * This pooling function is input-destructive. Input data is undefined * after calling this function. * */ void arm_maxpool_q7_HWC(q7_t * Im_in, const uint16_t dim_im_in, const uint16_t ch_im_in, const uint16_t dim_kernel, const uint16_t padding, const uint16_t stride, const uint16_t dim_im_out, q7_t * bufferA, q7_t * Im_out) { #if defined (ARM_MATH_DSP) /* Run the following code for Cortex-M4 and Cortex-M7 */ int16_t i_x, i_y; /* first does the pooling along x axis */ for (i_y = 0; i_y < dim_im_in; i_y++) { for (i_x = 0; i_x < dim_im_out; i_x++) { /* for each output pixel */ q7_t *target = Im_in + (i_y * dim_im_in + i_x) * ch_im_in; q7_t *win_start; q7_t *win_stop; if (i_x * stride - padding < 0) { win_start = target; } else { win_start = Im_in + (i_y * dim_im_in + i_x * stride - padding) * ch_im_in; } if (i_x * stride - padding + dim_kernel >= dim_im_in) { win_stop = Im_in + (i_y * dim_im_in + dim_im_in) * ch_im_in; } else { win_stop = Im_in + (i_y * dim_im_in + i_x * stride - padding + dim_kernel) * ch_im_in; } /* first step is to copy over initial data */ /* arm_copy_q7(win_start, target, ch_im_in); */ memmove(target, win_start, ch_im_in); /* start the max operation from the second part */ win_start += ch_im_in; for (; win_start < win_stop; win_start += ch_im_in) { compare_and_replace_if_larger_q7(target, win_start, ch_im_in); } } } /* then does the pooling along y axis */ for (i_y = 0; i_y < dim_im_out; i_y++) { /* for each output row */ q7_t *target = Im_out + i_y * dim_im_out * ch_im_in; q7_t *row_start; q7_t *row_end; /* setting the starting row */ if (i_y * stride - padding < 0) { row_start = Im_in; } else { row_start = Im_in + (i_y * stride - padding) * dim_im_in * ch_im_in; } /* setting the stopping row */ if (i_y * stride - padding + dim_kernel >= dim_im_in) { row_end = Im_in + dim_im_in * dim_im_in * ch_im_in; } else { row_end = Im_in + (i_y * stride - padding + dim_kernel) * dim_im_in * ch_im_in; } /* copy over the first row */ /* arm_copy_q7(row_start, target, dim_im_out * ch_im_in); */ memmove(target, row_start, dim_im_out * ch_im_in); /* move over to next row */ row_start += ch_im_in * dim_im_in; for (; row_start < row_end; row_start += dim_im_in * ch_im_in) { compare_and_replace_if_larger_q7(target, row_start, dim_im_out * ch_im_in); } } #else /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ int16_t i_ch_in, i_x, i_y; int16_t k_x, k_y; for (i_ch_in = 0; i_ch_in < ch_im_in; i_ch_in++) { for (i_y = 0; i_y < dim_im_out; i_y++) { for (i_x = 0; i_x < dim_im_out; i_x++) { int max = -129; for (k_y = i_y * stride - padding; k_y < i_y * stride - padding + dim_kernel; k_y++) { for (k_x = i_x * stride - padding; k_x < i_x * stride - padding + dim_kernel; k_x++) { if (k_y >= 0 && k_x >= 0 && k_y < dim_im_in && k_x < dim_im_in) { if (Im_in[i_ch_in + ch_im_in * (k_x + k_y * dim_im_in)] > max) { max = Im_in[i_ch_in + ch_im_in * (k_x + k_y * dim_im_in)]; } } } } Im_out[i_ch_in + ch_im_in * (i_x + i_y * dim_im_out)] = max; } } } #endif /* ARM_MATH_DSP */ } /** * @brief Q7 average pooling function * @param[in,out] Im_in pointer to input tensor * @param[in] dim_im_in input tensor dimention * @param[in] ch_im_in number of input tensor channels * @param[in] dim_kernel filter kernel size * @param[in] padding padding sizes * @param[in] stride convolution stride * @param[in] dim_im_out output tensor dimension * @param[in,out] bufferA pointer to buffer space for input * @param[in,out] Im_out pointer to output tensor * @return none. * * @details * * <b>Buffer size:</b> * * bufferA size: 2*dim_im_out*ch_im_in * * The pooling function is implemented as split x-pooling then * y-pooling. * * This pooling function is input-destructive. Input data is undefined * after calling this function. * */ void arm_avepool_q7_HWC(q7_t * Im_in, const uint16_t dim_im_in, const uint16_t ch_im_in, const uint16_t dim_kernel, const uint16_t padding, const uint16_t stride, const uint16_t dim_im_out, q7_t * bufferA, q7_t * Im_out) { #if defined (ARM_MATH_DSP) /* Run the following code for Cortex-M4 and Cortex-M7 */ q15_t *buffer = (q15_t *) bufferA; int16_t i_x, i_y; int16_t count = 0; /* first does the pooling along x axis */ for (i_y = 0; i_y < dim_im_in; i_y++) { for (i_x = 0; i_x < dim_im_out; i_x++) { /* for each output pixel */ q7_t *target = Im_in + (i_y * dim_im_in + i_x) * ch_im_in; q7_t *win_start; q7_t *win_stop; if (i_x * stride - padding < 0) { win_start = target; } else { win_start = Im_in + (i_y * dim_im_in + i_x * stride - padding) * ch_im_in; } if (i_x * stride - padding + dim_kernel >= dim_im_in) { win_stop = Im_in + (i_y * dim_im_in + dim_im_in) * ch_im_in; } else { win_stop = Im_in + (i_y * dim_im_in + i_x * stride - padding + dim_kernel) * ch_im_in; } /* first step is to copy over initial data */ arm_q7_to_q15_no_shift(win_start, buffer, ch_im_in); count = 1; /* start the max operation from the second part */ win_start += ch_im_in; for (; win_start < win_stop; win_start += ch_im_in) { accumulate_q7_to_q15(buffer, win_start, ch_im_in); count++; } buffer_scale_back_q15_to_q7(buffer, target, ch_im_in, count); } } /* then does the pooling along y axis */ for (i_y = 0; i_y < dim_im_out; i_y++) { /* for each output row */ q7_t *target = Im_out + i_y * dim_im_out * ch_im_in; q7_t *row_start; q7_t *row_end; /* setting the starting row */ if (i_y * stride - padding < 0) { row_start = Im_in; } else { row_start = Im_in + (i_y * stride - padding) * dim_im_in * ch_im_in; } /* setting the stopping row */ if (i_y * stride - padding + dim_kernel >= dim_im_in) { row_end = Im_in + dim_im_in * dim_im_in * ch_im_in; } else { row_end = Im_in + (i_y * stride - padding + dim_kernel) * dim_im_in * ch_im_in; } /* copy over the first row */ arm_q7_to_q15_no_shift(row_start, buffer, dim_im_out * ch_im_in); count = 1; /* move over to next row */ row_start += ch_im_in * dim_im_in; for (; row_start < row_end; row_start += dim_im_in * ch_im_in) { accumulate_q7_to_q15(buffer, row_start, dim_im_out * ch_im_in); count++; } buffer_scale_back_q15_to_q7(buffer, target, dim_im_out * ch_im_in, count); } #else /* Run the following code as reference implementation for Cortex-M0 and Cortex-M3 */ int16_t i_ch_in, i_x, i_y; int16_t k_x, k_y; for (i_ch_in = 0; i_ch_in < ch_im_in; i_ch_in++) { for (i_y = 0; i_y < dim_im_out; i_y++) { for (i_x = 0; i_x < dim_im_out; i_x++) { int sum = 0; int count = 0; for (k_y = i_y * stride - padding; k_y < i_y * stride - padding + dim_kernel; k_y++) { for (k_x = i_x * stride - padding; k_x < i_x * stride - padding + dim_kernel; k_x++) { if (k_y >= 0 && k_x >= 0 && k_y < dim_im_in && k_x < dim_im_in) { sum += Im_in[i_ch_in + ch_im_in * (k_x + k_y * dim_im_in)]; count++; } } } Im_out[i_ch_in + ch_im_in * (i_x + i_y * dim_im_out)] = sum / count; } } } #endif /* ARM_MATH_DSP */ } /** * @} end of Pooling group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/PoolingFunctions/arm_pool_q7_HWC.c
C
apache-2.0
13,708
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_softmax_q15.c * Description: Q15 softmax function * * $Date: 20. February 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup Softmax * @{ */ /** * @brief Q15 softmax function * @param[in] vec_in pointer to input vector * @param[in] dim_vec input vector dimention * @param[out] p_out pointer to output vector * @return none. * * @details * * Here, instead of typical e based softmax, we use * 2-based softmax, i.e.,: * * y_i = 2^(x_i) / sum(2^x_j) * * The relative output will be different here. * But mathematically, the gradient will be the same * with a log(2) scaling factor. * */ void arm_softmax_q15(const q15_t * vec_in, const uint16_t dim_vec, q15_t * p_out) { q31_t sum; int16_t i; uint8_t shift; q31_t base; base = -1 * 0x100000; for (i = 0; i < dim_vec; i++) { if (vec_in[i] > base) { base = vec_in[i]; } } /* we ignore really small values * anyway, they will be 0 after shrinking * to q15_t */ base = base - 16; sum = 0; for (i = 0; i < dim_vec; i++) { if (vec_in[i] > base) { shift = (uint8_t)__USAT(vec_in[i] - base, 5); sum += 0x1 << shift; } } /* This is effectively (0x1 << 32) / sum */ int64_t div_base = 0x100000000LL; int output_base = (int32_t)(div_base / sum); /* Final confidence will be output_base >> ( 17 - (vec_in[i] - base) ) * so 32768 (0x1<<15) -> 100% confidence when sum = 0x1 << 16, output_base = 0x1 << 16 * and vec_in[i]-base = 16 */ for (i = 0; i < dim_vec; i++) { if (vec_in[i] > base) { /* Here minimum value of 17+base-vec[i] will be 1 */ shift = (uint8_t)__USAT(17+base-vec_in[i], 5); p_out[i] = (q15_t) __SSAT((output_base >> shift), 16); } else { p_out[i] = 0; } } } /** * @} end of Softmax group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/SoftmaxFunctions/arm_softmax_q15.c
C
apache-2.0
3,060
/* * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* ---------------------------------------------------------------------- * Project: CMSIS NN Library * Title: arm_softmax_q7.c * Description: Q7 softmax function * * $Date: 20. February 2018 * $Revision: V.1.0.0 * * Target Processor: Cortex-M cores * * -------------------------------------------------------------------- */ #include "arm_math.h" #include "arm_nnfunctions.h" /** * @ingroup groupNN */ /** * @addtogroup Softmax * @{ */ /** * @brief Q7 softmax function * @param[in] vec_in pointer to input vector * @param[in] dim_vec input vector dimention * @param[out] p_out pointer to output vector * @return none. * * @details * * Here, instead of typical natural logarithm e based softmax, we use * 2-based softmax here, i.e.,: * * y_i = 2^(x_i) / sum(2^x_j) * * The relative output will be different here. * But mathematically, the gradient will be the same * with a log(2) scaling factor. * */ void arm_softmax_q7(const q7_t * vec_in, const uint16_t dim_vec, q7_t * p_out) { q31_t sum; int16_t i; uint8_t shift; q15_t base; base = -257; /* We first search for the maximum */ for (i = 0; i < dim_vec; i++) { if (vec_in[i] > base) { base = vec_in[i]; } } /* * So the base is set to max-8, meaning * that we ignore really small values. * anyway, they will be 0 after shrinking to q7_t. */ base = base - 8; sum = 0; for (i = 0; i < dim_vec; i++) { if (vec_in[i] > base) { shift = (uint8_t)__USAT(vec_in[i] - base, 5); sum += 0x1 << shift; } } /* This is effectively (0x1 << 20) / sum */ int output_base = 0x100000 / sum; /* * Final confidence will be output_base >> ( 13 - (vec_in[i] - base) ) * so 128 (0x1<<7) -> 100% confidence when sum = 0x1 << 8, output_base = 0x1 << 12 * and vec_in[i]-base = 8 */ for (i = 0; i < dim_vec; i++) { if (vec_in[i] > base) { /* Here minimum value of 13+base-vec_in[i] will be 5 */ shift = (uint8_t)__USAT(13+base-vec_in[i], 5); p_out[i] = (q7_t) __SSAT((output_base >> shift), 8); } else { p_out[i] = 0; } } } /** * @} end of Softmax group */
YifuLiu/AliOS-Things
components/cmsis/NN/Source/SoftmaxFunctions/arm_softmax_q7.c
C
apache-2.0
3,111
/* ---------------------------------------------------------------------- * $Date: 5. February 2013 * $Revision: V1.02 * * Project: CMSIS-RTOS API * Title: cmsis_os.h template header file * * Version 0.02 * Initial Proposal Phase * Version 0.03 * osKernelStart added, optional feature: main started as thread * osSemaphores have standard behavior * osTimerCreate does not start the timer, added osTimerStart * osThreadPass is renamed to osThreadYield * Version 1.01 * Support for C++ interface * - const attribute removed from the osXxxxDef_t typedef's * - const attribute added to the osXxxxDef macros * Added: osTimerDelete, osMutexDelete, osSemaphoreDelete * Added: osKernelInitialize * Version 1.02 * Control functions for short timeouts in microsecond resolution: * Added: osKernelSysTick, osKernelSysTickFrequency, osKernelSysTickMicroSec * Removed: osSignalGet *---------------------------------------------------------------------------- * * Copyright (c) 2013-2017 ARM LIMITED * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *---------------------------------------------------------------------------*/ #ifndef _CMSIS_OS_H #define _CMSIS_OS_H /// \note MUST REMAIN UNCHANGED: \b osCMSIS identifies the CMSIS-RTOS API version. #define osCMSIS 0x10002 ///< API version (main [31:16] .sub [15:0]) /// \note CAN BE CHANGED: \b osCMSIS_KERNEL identifies the underlying RTOS kernel and version number. #define osCMSIS_KERNEL 0x10000 ///< RTOS identification and version (main [31:16] .sub [15:0]) /// \note MUST REMAIN UNCHANGED: \b osKernelSystemId shall be consistent in every CMSIS-RTOS. #define osKernelSystemId "KERNEL V1.00" ///< RTOS identification string /// \note MUST REMAIN UNCHANGED: \b osFeature_xxx shall be consistent in every CMSIS-RTOS. #define osFeature_MainThread 1 ///< main thread 1=main can be thread, 0=not available #define osFeature_Pool 1 ///< Memory Pools: 1=available, 0=not available #define osFeature_MailQ 1 ///< Mail Queues: 1=available, 0=not available #define osFeature_MessageQ 1 ///< Message Queues: 1=available, 0=not available #define osFeature_Signals 8 ///< maximum number of Signal Flags available per thread #define osFeature_Semaphore 30 ///< maximum count for \ref osSemaphoreCreate function #define osFeature_Wait 1 ///< osWait function: 1=available, 0=not available #define osFeature_SysTick 1 ///< osKernelSysTick functions: 1=available, 0=not available #include <stdint.h> #include <stddef.h> #ifdef __cplusplus extern "C" { #endif // ==== Enumeration, structures, defines ==== /// Priority used for thread control. /// \note MUST REMAIN UNCHANGED: \b osPriority shall be consistent in every CMSIS-RTOS. typedef enum { osPriorityIdle = -3, ///< priority: idle (lowest) osPriorityLow = -2, ///< priority: low osPriorityBelowNormal = -1, ///< priority: below normal osPriorityNormal = 0, ///< priority: normal (default) osPriorityAboveNormal = +1, ///< priority: above normal osPriorityHigh = +2, ///< priority: high osPriorityRealtime = +3, ///< priority: realtime (highest) osPriorityError = 0x84 ///< system cannot determine priority or thread has illegal priority } osPriority; /// Timeout value. /// \note MUST REMAIN UNCHANGED: \b osWaitForever shall be consistent in every CMSIS-RTOS. #define osWaitForever 0xFFFFFFFF ///< wait forever timeout value /// Status code values returned by CMSIS-RTOS functions. /// \note MUST REMAIN UNCHANGED: \b osStatus shall be consistent in every CMSIS-RTOS. typedef enum { osOK = 0, ///< function completed; no error or event occurred. osEventSignal = 0x08, ///< function completed; signal event occurred. osEventMessage = 0x10, ///< function completed; message event occurred. osEventMail = 0x20, ///< function completed; mail event occurred. osEventTimeout = 0x40, ///< function completed; timeout occurred. osErrorParameter = 0x80, ///< parameter error: a mandatory parameter was missing or specified an incorrect object. osErrorResource = 0x81, ///< resource not available: a specified resource was not available. osErrorTimeoutResource = 0xC1, ///< resource not available within given time: a specified resource was not available within the timeout period. osErrorISR = 0x82, ///< not allowed in ISR context: the function cannot be called from interrupt service routines. osErrorISRRecursive = 0x83, ///< function called multiple times from ISR with same object. osErrorPriority = 0x84, ///< system cannot determine priority or thread has illegal priority. osErrorNoMemory = 0x85, ///< system is out of memory: it was impossible to allocate or reserve memory for the operation. osErrorValue = 0x86, ///< value of a parameter is out of range. osErrorOS = 0xFF, ///< unspecified RTOS error: run-time error but no other error message fits. os_status_reserved = 0x7FFFFFFF ///< prevent from enum down-size compiler optimization. } osStatus; /// Timer type value for the timer definition. /// \note MUST REMAIN UNCHANGED: \b os_timer_type shall be consistent in every CMSIS-RTOS. typedef enum { osTimerOnce = 0, ///< one-shot timer osTimerPeriodic = 1 ///< repeating timer } os_timer_type; /// Entry point of a thread. /// \note MUST REMAIN UNCHANGED: \b os_pthread shall be consistent in every CMSIS-RTOS. typedef void (*os_pthread) (void const *argument); /// Entry point of a timer call back function. /// \note MUST REMAIN UNCHANGED: \b os_ptimer shall be consistent in every CMSIS-RTOS. typedef void (*os_ptimer) (void const *argument); // >>> the following data type definitions may shall adapted towards a specific RTOS /// Thread ID identifies the thread (pointer to a thread control block). /// \note CAN BE CHANGED: \b os_thread_cb is implementation specific in every CMSIS-RTOS. typedef struct os_thread_cb *osThreadId; /// Timer ID identifies the timer (pointer to a timer control block). /// \note CAN BE CHANGED: \b os_timer_cb is implementation specific in every CMSIS-RTOS. typedef struct os_timer_cb *osTimerId; /// Mutex ID identifies the mutex (pointer to a mutex control block). /// \note CAN BE CHANGED: \b os_mutex_cb is implementation specific in every CMSIS-RTOS. typedef struct os_mutex_cb *osMutexId; /// Semaphore ID identifies the semaphore (pointer to a semaphore control block). /// \note CAN BE CHANGED: \b os_semaphore_cb is implementation specific in every CMSIS-RTOS. typedef struct os_semaphore_cb *osSemaphoreId; /// Pool ID identifies the memory pool (pointer to a memory pool control block). /// \note CAN BE CHANGED: \b os_pool_cb is implementation specific in every CMSIS-RTOS. typedef struct os_pool_cb *osPoolId; /// Message ID identifies the message queue (pointer to a message queue control block). /// \note CAN BE CHANGED: \b os_messageQ_cb is implementation specific in every CMSIS-RTOS. typedef struct os_messageQ_cb *osMessageQId; /// Mail ID identifies the mail queue (pointer to a mail queue control block). /// \note CAN BE CHANGED: \b os_mailQ_cb is implementation specific in every CMSIS-RTOS. typedef struct os_mailQ_cb *osMailQId; /// Thread Definition structure contains startup information of a thread. /// \note CAN BE CHANGED: \b os_thread_def is implementation specific in every CMSIS-RTOS. typedef struct os_thread_def { os_pthread pthread; ///< start address of thread function osPriority tpriority; ///< initial thread priority uint32_t instances; ///< maximum number of instances of that thread function uint32_t stacksize; ///< stack size requirements in bytes; 0 is default stack size } osThreadDef_t; /// Timer Definition structure contains timer parameters. /// \note CAN BE CHANGED: \b os_timer_def is implementation specific in every CMSIS-RTOS. typedef struct os_timer_def { os_ptimer ptimer; ///< start address of a timer function } osTimerDef_t; /// Mutex Definition structure contains setup information for a mutex. /// \note CAN BE CHANGED: \b os_mutex_def is implementation specific in every CMSIS-RTOS. typedef struct os_mutex_def { uint32_t dummy; ///< dummy value. } osMutexDef_t; /// Semaphore Definition structure contains setup information for a semaphore. /// \note CAN BE CHANGED: \b os_semaphore_def is implementation specific in every CMSIS-RTOS. typedef struct os_semaphore_def { uint32_t dummy; ///< dummy value. } osSemaphoreDef_t; /// Definition structure for memory block allocation. /// \note CAN BE CHANGED: \b os_pool_def is implementation specific in every CMSIS-RTOS. typedef struct os_pool_def { uint32_t pool_sz; ///< number of items (elements) in the pool uint32_t item_sz; ///< size of an item void *pool; ///< pointer to memory for pool } osPoolDef_t; /// Definition structure for message queue. /// \note CAN BE CHANGED: \b os_messageQ_def is implementation specific in every CMSIS-RTOS. typedef struct os_messageQ_def { uint32_t queue_sz; ///< number of elements in the queue uint32_t item_sz; ///< size of an item void *pool; ///< memory array for messages } osMessageQDef_t; /// Definition structure for mail queue. /// \note CAN BE CHANGED: \b os_mailQ_def is implementation specific in every CMSIS-RTOS. typedef struct os_mailQ_def { uint32_t queue_sz; ///< number of elements in the queue uint32_t item_sz; ///< size of an item void *pool; ///< memory array for mail } osMailQDef_t; /// Event structure contains detailed information about an event. /// \note MUST REMAIN UNCHANGED: \b os_event shall be consistent in every CMSIS-RTOS. /// However the struct may be extended at the end. typedef struct { osStatus status; ///< status code: event or error information union { uint32_t v; ///< message as 32-bit value void *p; ///< message or mail as void pointer int32_t signals; ///< signal flags } value; ///< event value union { osMailQId mail_id; ///< mail id obtained by \ref osMailCreate osMessageQId message_id; ///< message id obtained by \ref osMessageCreate } def; ///< event definition } osEvent; // ==== Kernel Control Functions ==== /// Initialize the RTOS Kernel for creating objects. /// \return status code that indicates the execution status of the function. /// \note MUST REMAIN UNCHANGED: \b osKernelInitialize shall be consistent in every CMSIS-RTOS. osStatus osKernelInitialize (void); /// Start the RTOS Kernel. /// \return status code that indicates the execution status of the function. /// \note MUST REMAIN UNCHANGED: \b osKernelStart shall be consistent in every CMSIS-RTOS. osStatus osKernelStart (void); /// Check if the RTOS kernel is already started. /// \note MUST REMAIN UNCHANGED: \b osKernelRunning shall be consistent in every CMSIS-RTOS. /// \return 0 RTOS is not started, 1 RTOS is started. int32_t osKernelRunning(void); #if (defined (osFeature_SysTick) && (osFeature_SysTick != 0)) // System Timer available /// Get the RTOS kernel system timer counter /// \note MUST REMAIN UNCHANGED: \b osKernelSysTick shall be consistent in every CMSIS-RTOS. /// \return RTOS kernel system timer as 32-bit value uint32_t osKernelSysTick (void); /// The RTOS kernel system timer frequency in Hz /// \note Reflects the system timer setting and is typically defined in a configuration file. #define osKernelSysTickFrequency 100000000 /// Convert a microseconds value to a RTOS kernel system timer value. /// \param microsec time value in microseconds. /// \return time value normalized to the \ref osKernelSysTickFrequency #define osKernelSysTickMicroSec(microsec) (((uint64_t)microsec * (osKernelSysTickFrequency)) / 1000000) #endif // System Timer available // ==== Thread Management ==== /// Create a Thread Definition with function, priority, and stack requirements. /// \param name name of the thread function. /// \param priority initial priority of the thread function. /// \param instances number of possible thread instances. /// \param stacksz stack size (in bytes) requirements for the thread function. /// \note CAN BE CHANGED: The parameters to \b osThreadDef shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #if defined (osObjectsExternal) // object is external #define osThreadDef(name, priority, instances, stacksz) \ extern const osThreadDef_t os_thread_def_##name #else // define the object #define osThreadDef(name, priority, instances, stacksz) \ const osThreadDef_t os_thread_def_##name = \ { (name), (priority), (instances), (stacksz) } #endif /// Access a Thread definition. /// \param name name of the thread definition object. /// \note CAN BE CHANGED: The parameter to \b osThread shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #define osThread(name) \ &os_thread_def_##name /// Create a thread and add it to Active Threads and set it to state READY. /// \param[in] thread_def thread definition referenced with \ref osThread. /// \param[in] argument pointer that is passed to the thread function as start argument. /// \return thread ID for reference by other functions or NULL in case of error. /// \note MUST REMAIN UNCHANGED: \b osThreadCreate shall be consistent in every CMSIS-RTOS. osThreadId osThreadCreate (const osThreadDef_t *thread_def, void *argument); /// Return the thread ID of the current running thread. /// \return thread ID for reference by other functions or NULL in case of error. /// \note MUST REMAIN UNCHANGED: \b osThreadGetId shall be consistent in every CMSIS-RTOS. osThreadId osThreadGetId (void); /// Terminate execution of a thread and remove it from Active Threads. /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. /// \return status code that indicates the execution status of the function. /// \note MUST REMAIN UNCHANGED: \b osThreadTerminate shall be consistent in every CMSIS-RTOS. osStatus osThreadTerminate (osThreadId thread_id); /// Pass control to next thread that is in state \b READY. /// \return status code that indicates the execution status of the function. /// \note MUST REMAIN UNCHANGED: \b osThreadYield shall be consistent in every CMSIS-RTOS. osStatus osThreadYield (void); /// Change priority of an active thread. /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. /// \param[in] priority new priority value for the thread function. /// \return status code that indicates the execution status of the function. /// \note MUST REMAIN UNCHANGED: \b osThreadSetPriority shall be consistent in every CMSIS-RTOS. osStatus osThreadSetPriority (osThreadId thread_id, osPriority priority); /// Get current priority of an active thread. /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. /// \return current priority value of the thread function. /// \note MUST REMAIN UNCHANGED: \b osThreadGetPriority shall be consistent in every CMSIS-RTOS. osPriority osThreadGetPriority (osThreadId thread_id); // ==== Generic Wait Functions ==== /// Wait for Timeout (Time Delay). /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue "time delay" value /// \return status code that indicates the execution status of the function. osStatus osDelay (uint32_t millisec); #if (defined (osFeature_Wait) && (osFeature_Wait != 0)) // Generic Wait available /// Wait for Signal, Message, Mail, or Timeout. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out /// \return event that contains signal, message, or mail information or error code. /// \note MUST REMAIN UNCHANGED: \b osWait shall be consistent in every CMSIS-RTOS. osEvent osWait (uint32_t millisec); #endif // Generic Wait available // ==== Timer Management Functions ==== /// Define a Timer object. /// \param name name of the timer object. /// \param function name of the timer call back function. /// \note CAN BE CHANGED: The parameter to \b osTimerDef shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #if defined (osObjectsExternal) // object is external #define osTimerDef(name, function) \ extern const osTimerDef_t os_timer_def_##name #else // define the object #define osTimerDef(name, function) \ const osTimerDef_t os_timer_def_##name = \ { (function) } #endif /// Access a Timer definition. /// \param name name of the timer object. /// \note CAN BE CHANGED: The parameter to \b osTimer shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #define osTimer(name) \ &os_timer_def_##name /// Create a timer. /// \param[in] timer_def timer object referenced with \ref osTimer. /// \param[in] type osTimerOnce for one-shot or osTimerPeriodic for periodic behavior. /// \param[in] argument argument to the timer call back function. /// \return timer ID for reference by other functions or NULL in case of error. /// \note MUST REMAIN UNCHANGED: \b osTimerCreate shall be consistent in every CMSIS-RTOS. osTimerId osTimerCreate (const osTimerDef_t *timer_def, os_timer_type type, void *argument); /// Start or restart a timer. /// \param[in] timer_id timer ID obtained by \ref osTimerCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue "time delay" value of the timer. /// \return status code that indicates the execution status of the function. /// \note MUST REMAIN UNCHANGED: \b osTimerStart shall be consistent in every CMSIS-RTOS. osStatus osTimerStart (osTimerId timer_id, uint32_t millisec); /// Stop the timer. /// \param[in] timer_id timer ID obtained by \ref osTimerCreate. /// \return status code that indicates the execution status of the function. /// \note MUST REMAIN UNCHANGED: \b osTimerStop shall be consistent in every CMSIS-RTOS. osStatus osTimerStop (osTimerId timer_id); /// Delete a timer that was created by \ref osTimerCreate. /// \param[in] timer_id timer ID obtained by \ref osTimerCreate. /// \return status code that indicates the execution status of the function. /// \note MUST REMAIN UNCHANGED: \b osTimerDelete shall be consistent in every CMSIS-RTOS. osStatus osTimerDelete (osTimerId timer_id); // ==== Signal Management ==== /// Set the specified Signal Flags of an active thread. /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. /// \param[in] signals specifies the signal flags of the thread that should be set. /// \return previous signal flags of the specified thread or 0x80000000 in case of incorrect parameters. /// \note MUST REMAIN UNCHANGED: \b osSignalSet shall be consistent in every CMSIS-RTOS. int32_t osSignalSet (osThreadId thread_id, int32_t signals); /// Clear the specified Signal Flags of an active thread. /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. /// \param[in] signals specifies the signal flags of the thread that shall be cleared. /// \return previous signal flags of the specified thread or 0x80000000 in case of incorrect parameters or call from ISR. /// \note MUST REMAIN UNCHANGED: \b osSignalClear shall be consistent in every CMSIS-RTOS. int32_t osSignalClear (osThreadId thread_id, int32_t signals); /// Wait for one or more Signal Flags to become signaled for the current \b RUNNING thread. /// \param[in] signals wait until all specified signal flags set or 0 for any single signal flag. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return event flag information or error code. /// \note MUST REMAIN UNCHANGED: \b osSignalWait shall be consistent in every CMSIS-RTOS. osEvent osSignalWait (int32_t signals, uint32_t millisec); // ==== Mutex Management ==== /// Define a Mutex. /// \param name name of the mutex object. /// \note CAN BE CHANGED: The parameter to \b osMutexDef shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #if defined (osObjectsExternal) // object is external #define osMutexDef(name) \ extern const osMutexDef_t os_mutex_def_##name #else // define the object #define osMutexDef(name) \ const osMutexDef_t os_mutex_def_##name = { 0 } #endif /// Access a Mutex definition. /// \param name name of the mutex object. /// \note CAN BE CHANGED: The parameter to \b osMutex shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #define osMutex(name) \ &os_mutex_def_##name /// Create and Initialize a Mutex object. /// \param[in] mutex_def mutex definition referenced with \ref osMutex. /// \return mutex ID for reference by other functions or NULL in case of error. /// \note MUST REMAIN UNCHANGED: \b osMutexCreate shall be consistent in every CMSIS-RTOS. osMutexId osMutexCreate (const osMutexDef_t *mutex_def); /// Wait until a Mutex becomes available. /// \param[in] mutex_id mutex ID obtained by \ref osMutexCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return status code that indicates the execution status of the function. /// \note MUST REMAIN UNCHANGED: \b osMutexWait shall be consistent in every CMSIS-RTOS. osStatus osMutexWait (osMutexId mutex_id, uint32_t millisec); /// Release a Mutex that was obtained by \ref osMutexWait. /// \param[in] mutex_id mutex ID obtained by \ref osMutexCreate. /// \return status code that indicates the execution status of the function. /// \note MUST REMAIN UNCHANGED: \b osMutexRelease shall be consistent in every CMSIS-RTOS. osStatus osMutexRelease (osMutexId mutex_id); /// Delete a Mutex that was created by \ref osMutexCreate. /// \param[in] mutex_id mutex ID obtained by \ref osMutexCreate. /// \return status code that indicates the execution status of the function. /// \note MUST REMAIN UNCHANGED: \b osMutexDelete shall be consistent in every CMSIS-RTOS. osStatus osMutexDelete (osMutexId mutex_id); // ==== Semaphore Management Functions ==== #if (defined (osFeature_Semaphore) && (osFeature_Semaphore != 0)) // Semaphore available /// Define a Semaphore object. /// \param name name of the semaphore object. /// \note CAN BE CHANGED: The parameter to \b osSemaphoreDef shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #if defined (osObjectsExternal) // object is external #define osSemaphoreDef(name) \ extern const osSemaphoreDef_t os_semaphore_def_##name #else // define the object #define osSemaphoreDef(name) \ const osSemaphoreDef_t os_semaphore_def_##name = { 0 } #endif /// Access a Semaphore definition. /// \param name name of the semaphore object. /// \note CAN BE CHANGED: The parameter to \b osSemaphore shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #define osSemaphore(name) \ &os_semaphore_def_##name /// Create and Initialize a Semaphore object used for managing resources. /// \param[in] semaphore_def semaphore definition referenced with \ref osSemaphore. /// \param[in] count number of available resources. /// \return semaphore ID for reference by other functions or NULL in case of error. /// \note MUST REMAIN UNCHANGED: \b osSemaphoreCreate shall be consistent in every CMSIS-RTOS. osSemaphoreId osSemaphoreCreate (const osSemaphoreDef_t *semaphore_def, int32_t count); /// Wait until a Semaphore token becomes available. /// \param[in] semaphore_id semaphore object referenced with \ref osSemaphoreCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return number of available tokens, or -1 in case of incorrect parameters. /// \note MUST REMAIN UNCHANGED: \b osSemaphoreWait shall be consistent in every CMSIS-RTOS. int32_t osSemaphoreWait (osSemaphoreId semaphore_id, uint32_t millisec); /// Release a Semaphore token. /// \param[in] semaphore_id semaphore object referenced with \ref osSemaphoreCreate. /// \return status code that indicates the execution status of the function. /// \note MUST REMAIN UNCHANGED: \b osSemaphoreRelease shall be consistent in every CMSIS-RTOS. osStatus osSemaphoreRelease (osSemaphoreId semaphore_id); /// Delete a Semaphore that was created by \ref osSemaphoreCreate. /// \param[in] semaphore_id semaphore object referenced with \ref osSemaphoreCreate. /// \return status code that indicates the execution status of the function. /// \note MUST REMAIN UNCHANGED: \b osSemaphoreDelete shall be consistent in every CMSIS-RTOS. osStatus osSemaphoreDelete (osSemaphoreId semaphore_id); #endif // Semaphore available // ==== Memory Pool Management Functions ==== #if (defined (osFeature_Pool) && (osFeature_Pool != 0)) // Memory Pool Management available /// \brief Define a Memory Pool. /// \param name name of the memory pool. /// \param no maximum number of blocks (objects) in the memory pool. /// \param type data type of a single block (object). /// \note CAN BE CHANGED: The parameter to \b osPoolDef shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #if defined (osObjectsExternal) // object is external #define osPoolDef(name, no, type) \ extern const osPoolDef_t os_pool_def_##name #else // define the object #define osPoolDef(name, no, type) \ const osPoolDef_t os_pool_def_##name = \ { (no), sizeof(type), NULL } #endif /// \brief Access a Memory Pool definition. /// \param name name of the memory pool /// \note CAN BE CHANGED: The parameter to \b osPool shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #define osPool(name) \ &os_pool_def_##name /// Create and Initialize a memory pool. /// \param[in] pool_def memory pool definition referenced with \ref osPool. /// \return memory pool ID for reference by other functions or NULL in case of error. /// \note MUST REMAIN UNCHANGED: \b osPoolCreate shall be consistent in every CMSIS-RTOS. osPoolId osPoolCreate (const osPoolDef_t *pool_def); /// Allocate a memory block from a memory pool. /// \param[in] pool_id memory pool ID obtain referenced with \ref osPoolCreate. /// \return address of the allocated memory block or NULL in case of no memory available. /// \note MUST REMAIN UNCHANGED: \b osPoolAlloc shall be consistent in every CMSIS-RTOS. void *osPoolAlloc (osPoolId pool_id); /// Allocate a memory block from a memory pool and set memory block to zero. /// \param[in] pool_id memory pool ID obtain referenced with \ref osPoolCreate. /// \return address of the allocated memory block or NULL in case of no memory available. /// \note MUST REMAIN UNCHANGED: \b osPoolCAlloc shall be consistent in every CMSIS-RTOS. void *osPoolCAlloc (osPoolId pool_id); /// Return an allocated memory block back to a specific memory pool. /// \param[in] pool_id memory pool ID obtain referenced with \ref osPoolCreate. /// \param[in] block address of the allocated memory block that is returned to the memory pool. /// \return status code that indicates the execution status of the function. /// \note MUST REMAIN UNCHANGED: \b osPoolFree shall be consistent in every CMSIS-RTOS. osStatus osPoolFree (osPoolId pool_id, void *block); #endif // Memory Pool Management available // ==== Message Queue Management Functions ==== #if (defined (osFeature_MessageQ) && (osFeature_MessageQ != 0)) // Message Queues available /// \brief Create a Message Queue Definition. /// \param name name of the queue. /// \param queue_sz maximum number of messages in the queue. /// \param type data type of a single message element (for debugger). /// \note CAN BE CHANGED: The parameter to \b osMessageQDef shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #if defined (osObjectsExternal) // object is external #define osMessageQDef(name, queue_sz, type) \ extern const osMessageQDef_t os_messageQ_def_##name #else // define the object #define osMessageQDef(name, queue_sz, type) \ const osMessageQDef_t os_messageQ_def_##name = \ { (queue_sz), sizeof (type) } #endif /// \brief Access a Message Queue Definition. /// \param name name of the queue /// \note CAN BE CHANGED: The parameter to \b osMessageQ shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #define osMessageQ(name) \ &os_messageQ_def_##name /// Create and Initialize a Message Queue. /// \param[in] queue_def queue definition referenced with \ref osMessageQ. /// \param[in] thread_id thread ID (obtained by \ref osThreadCreate or \ref osThreadGetId) or NULL. /// \return message queue ID for reference by other functions or NULL in case of error. /// \note MUST REMAIN UNCHANGED: \b osMessageCreate shall be consistent in every CMSIS-RTOS. osMessageQId osMessageCreate (const osMessageQDef_t *queue_def, osThreadId thread_id); /// Put a Message to a Queue. /// \param[in] queue_id message queue ID obtained with \ref osMessageCreate. /// \param[in] info message information. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return status code that indicates the execution status of the function. /// \note MUST REMAIN UNCHANGED: \b osMessagePut shall be consistent in every CMSIS-RTOS. osStatus osMessagePut (osMessageQId queue_id, uint32_t info, uint32_t millisec); /// Get a Message or Wait for a Message from a Queue. /// \param[in] queue_id message queue ID obtained with \ref osMessageCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return event information that includes status code. /// \note MUST REMAIN UNCHANGED: \b osMessageGet shall be consistent in every CMSIS-RTOS. osEvent osMessageGet (osMessageQId queue_id, uint32_t millisec); #endif // Message Queues available // ==== Mail Queue Management Functions ==== #if (defined (osFeature_MailQ) && (osFeature_MailQ != 0)) // Mail Queues available /// \brief Create a Mail Queue Definition. /// \param name name of the queue /// \param queue_sz maximum number of messages in queue /// \param type data type of a single message element /// \note CAN BE CHANGED: The parameter to \b osMailQDef shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #if defined (osObjectsExternal) // object is external #define osMailQDef(name, queue_sz, type) \ extern const osMailQDef_t os_mailQ_def_##name #else // define the object #define osMailQDef(name, queue_sz, type) \ const osMailQDef_t os_mailQ_def_##name = \ { (queue_sz), sizeof (type) } #endif /// \brief Access a Mail Queue Definition. /// \param name name of the queue /// \note CAN BE CHANGED: The parameter to \b osMailQ shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #define osMailQ(name) \ &os_mailQ_def_##name /// Create and Initialize mail queue. /// \param[in] queue_def reference to the mail queue definition obtain with \ref osMailQ /// \param[in] thread_id thread ID (obtained by \ref osThreadCreate or \ref osThreadGetId) or NULL. /// \return mail queue ID for reference by other functions or NULL in case of error. /// \note MUST REMAIN UNCHANGED: \b osMailCreate shall be consistent in every CMSIS-RTOS. osMailQId osMailCreate (const osMailQDef_t *queue_def, osThreadId thread_id); /// Allocate a memory block from a mail. /// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out /// \return pointer to memory block that can be filled with mail or NULL in case of error. /// \note MUST REMAIN UNCHANGED: \b osMailAlloc shall be consistent in every CMSIS-RTOS. void *osMailAlloc (osMailQId queue_id, uint32_t millisec); /// Allocate a memory block from a mail and set memory block to zero. /// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out /// \return pointer to memory block that can be filled with mail or NULL in case of error. /// \note MUST REMAIN UNCHANGED: \b osMailCAlloc shall be consistent in every CMSIS-RTOS. void *osMailCAlloc (osMailQId queue_id, uint32_t millisec); /// Put a mail to a queue. /// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. /// \param[in] mail memory block previously allocated with \ref osMailAlloc or \ref osMailCAlloc. /// \return status code that indicates the execution status of the function. /// \note MUST REMAIN UNCHANGED: \b osMailPut shall be consistent in every CMSIS-RTOS. osStatus osMailPut (osMailQId queue_id, void *mail); /// Get a mail from a queue. /// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out /// \return event that contains mail information or error code. /// \note MUST REMAIN UNCHANGED: \b osMailGet shall be consistent in every CMSIS-RTOS. osEvent osMailGet (osMailQId queue_id, uint32_t millisec); /// Free a memory block from a mail. /// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. /// \param[in] mail pointer to the memory block that was obtained with \ref osMailGet. /// \return status code that indicates the execution status of the function. /// \note MUST REMAIN UNCHANGED: \b osMailFree shall be consistent in every CMSIS-RTOS. osStatus osMailFree (osMailQId queue_id, void *mail); #endif // Mail Queues available #ifdef __cplusplus } #endif #endif // _CMSIS_OS_H
YifuLiu/AliOS-Things
components/cmsis/RTOS/Template/cmsis_os.h
C
apache-2.0
36,172
/* * Copyright (c) 2013-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * ---------------------------------------------------------------------- * * $Date: 18. June 2018 * $Revision: V2.1.3 * * Project: CMSIS-RTOS2 API * Title: cmsis_os2.h header file * * Version 2.1.3 * Additional functions allowed to be called from Interrupt Service Routines: * - osThreadGetId * Version 2.1.2 * Additional functions allowed to be called from Interrupt Service Routines: * - osKernelGetInfo, osKernelGetState * Version 2.1.1 * Additional functions allowed to be called from Interrupt Service Routines: * - osKernelGetTickCount, osKernelGetTickFreq * Changed Kernel Tick type to uint32_t: * - updated: osKernelGetTickCount, osDelayUntil * Version 2.1.0 * Support for critical and uncritical sections (nesting safe): * - updated: osKernelLock, osKernelUnlock * - added: osKernelRestoreLock * Updated Thread and Event Flags: * - changed flags parameter and return type from int32_t to uint32_t * Version 2.0.0 * Initial Release *---------------------------------------------------------------------------*/ #ifndef CMSIS_OS2_H_ #define CMSIS_OS2_H_ #ifndef __NO_RETURN #if defined(__CC_ARM) #define __NO_RETURN __declspec(noreturn) #elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #define __NO_RETURN __attribute__((__noreturn__)) #elif defined(__GNUC__) #define __NO_RETURN __attribute__((__noreturn__)) #elif defined(__ICCARM__) #define __NO_RETURN __noreturn #else #define __NO_RETURN #endif #endif #include <stdint.h> #include <stddef.h> #ifdef __cplusplus extern "C" { #endif // ==== Enumerations, structures, defines ==== /// Version information. typedef struct { uint32_t api; ///< API version (major.minor.rev: mmnnnrrrr dec). uint32_t kernel; ///< Kernel version (major.minor.rev: mmnnnrrrr dec). } osVersion_t; /// Kernel state. typedef enum { osKernelInactive = 0, ///< Inactive. osKernelReady = 1, ///< Ready. osKernelRunning = 2, ///< Running. osKernelLocked = 3, ///< Locked. osKernelSuspended = 4, ///< Suspended. osKernelError = -1, ///< Error. osKernelReserved = 0x7FFFFFFFU ///< Prevents enum down-size compiler optimization. } osKernelState_t; /// Thread state. typedef enum { osThreadInactive = 0, ///< Inactive. osThreadReady = 1, ///< Ready. osThreadRunning = 2, ///< Running. osThreadBlocked = 3, ///< Blocked. osThreadTerminated = 4, ///< Terminated. osThreadError = -1, ///< Error. osThreadReserved = 0x7FFFFFFF ///< Prevents enum down-size compiler optimization. } osThreadState_t; /// Priority values. typedef enum { osPriorityNone = 0, ///< No priority (not initialized). osPriorityIdle = 1, ///< Reserved for Idle thread. osPriorityLow = 8, ///< Priority: low osPriorityLow1 = 8+1, ///< Priority: low + 1 osPriorityLow2 = 8+2, ///< Priority: low + 2 osPriorityLow3 = 8+3, ///< Priority: low + 3 osPriorityLow4 = 8+4, ///< Priority: low + 4 osPriorityLow5 = 8+5, ///< Priority: low + 5 osPriorityLow6 = 8+6, ///< Priority: low + 6 osPriorityLow7 = 8+7, ///< Priority: low + 7 osPriorityBelowNormal = 16, ///< Priority: below normal osPriorityBelowNormal1 = 16+1, ///< Priority: below normal + 1 osPriorityBelowNormal2 = 16+2, ///< Priority: below normal + 2 osPriorityBelowNormal3 = 16+3, ///< Priority: below normal + 3 osPriorityBelowNormal4 = 16+4, ///< Priority: below normal + 4 osPriorityBelowNormal5 = 16+5, ///< Priority: below normal + 5 osPriorityBelowNormal6 = 16+6, ///< Priority: below normal + 6 osPriorityBelowNormal7 = 16+7, ///< Priority: below normal + 7 osPriorityNormal = 24, ///< Priority: normal osPriorityNormal1 = 24+1, ///< Priority: normal + 1 osPriorityNormal2 = 24+2, ///< Priority: normal + 2 osPriorityNormal3 = 24+3, ///< Priority: normal + 3 osPriorityNormal4 = 24+4, ///< Priority: normal + 4 osPriorityNormal5 = 24+5, ///< Priority: normal + 5 osPriorityNormal6 = 24+6, ///< Priority: normal + 6 osPriorityNormal7 = 24+7, ///< Priority: normal + 7 osPriorityAboveNormal = 32, ///< Priority: above normal osPriorityAboveNormal1 = 32+1, ///< Priority: above normal + 1 osPriorityAboveNormal2 = 32+2, ///< Priority: above normal + 2 osPriorityAboveNormal3 = 32+3, ///< Priority: above normal + 3 osPriorityAboveNormal4 = 32+4, ///< Priority: above normal + 4 osPriorityAboveNormal5 = 32+5, ///< Priority: above normal + 5 osPriorityAboveNormal6 = 32+6, ///< Priority: above normal + 6 osPriorityAboveNormal7 = 32+7, ///< Priority: above normal + 7 osPriorityHigh = 40, ///< Priority: high osPriorityHigh1 = 40+1, ///< Priority: high + 1 osPriorityHigh2 = 40+2, ///< Priority: high + 2 osPriorityHigh3 = 40+3, ///< Priority: high + 3 osPriorityHigh4 = 40+4, ///< Priority: high + 4 osPriorityHigh5 = 40+5, ///< Priority: high + 5 osPriorityHigh6 = 40+6, ///< Priority: high + 6 osPriorityHigh7 = 40+7, ///< Priority: high + 7 osPriorityRealtime = 48, ///< Priority: realtime osPriorityRealtime1 = 48+1, ///< Priority: realtime + 1 osPriorityRealtime2 = 48+2, ///< Priority: realtime + 2 osPriorityRealtime3 = 48+3, ///< Priority: realtime + 3 osPriorityRealtime4 = 48+4, ///< Priority: realtime + 4 osPriorityRealtime5 = 48+5, ///< Priority: realtime + 5 osPriorityRealtime6 = 48+6, ///< Priority: realtime + 6 osPriorityRealtime7 = 48+7, ///< Priority: realtime + 7 osPriorityISR = 56, ///< Reserved for ISR deferred thread. osPriorityError = -1, ///< System cannot determine priority or illegal priority. osPriorityReserved = 0x7FFFFFFF ///< Prevents enum down-size compiler optimization. } osPriority_t; /// Entry point of a thread. typedef void (*osThreadFunc_t) (void *argument); /// Timer callback function. typedef void (*osTimerFunc_t) (void *argument); /// Timer type. typedef enum { osTimerOnce = 0, ///< One-shot timer. osTimerPeriodic = 1 ///< Repeating timer. } osTimerType_t; // Timeout value. #define osWaitForever 0xFFFFFFFFU ///< Wait forever timeout value. // Flags options (\ref osThreadFlagsWait and \ref osEventFlagsWait). #define osFlagsWaitAny 0x00000000U ///< Wait for any flag (default). #define osFlagsWaitAll 0x00000001U ///< Wait for all flags. #define osFlagsNoClear 0x00000002U ///< Do not clear flags which have been specified to wait for. // Flags errors (returned by osThreadFlagsXxxx and osEventFlagsXxxx). #define osFlagsError 0x80000000U ///< Error indicator. #define osFlagsErrorUnknown 0xFFFFFFFFU ///< osError (-1). #define osFlagsErrorTimeout 0xFFFFFFFEU ///< osErrorTimeout (-2). #define osFlagsErrorResource 0xFFFFFFFDU ///< osErrorResource (-3). #define osFlagsErrorParameter 0xFFFFFFFCU ///< osErrorParameter (-4). #define osFlagsErrorISR 0xFFFFFFFAU ///< osErrorISR (-6). // Thread attributes (attr_bits in \ref osThreadAttr_t). #define osThreadDetached 0x00000000U ///< Thread created in detached mode (default) #define osThreadJoinable 0x00000001U ///< Thread created in joinable mode // Mutex attributes (attr_bits in \ref osMutexAttr_t). #define osMutexRecursive 0x00000001U ///< Recursive mutex. #define osMutexPrioInherit 0x00000002U ///< Priority inherit protocol. #define osMutexRobust 0x00000008U ///< Robust mutex. /// Status code values returned by CMSIS-RTOS functions. typedef enum { osOK = 0, ///< Operation completed successfully. osError = -1, ///< Unspecified RTOS error: run-time error but no other error message fits. osErrorTimeout = -2, ///< Operation not completed within the timeout period. osErrorResource = -3, ///< Resource not available. osErrorParameter = -4, ///< Parameter error. osErrorNoMemory = -5, ///< System is out of memory: it was impossible to allocate or reserve memory for the operation. osErrorISR = -6, ///< Not allowed in ISR context: the function cannot be called from interrupt service routines. osStatusReserved = 0x7FFFFFFF ///< Prevents enum down-size compiler optimization. } osStatus_t; /// \details Thread ID identifies the thread. typedef void *osThreadId_t; /// \details Timer ID identifies the timer. typedef void *osTimerId_t; /// \details Event Flags ID identifies the event flags. typedef void *osEventFlagsId_t; /// \details Mutex ID identifies the mutex. typedef void *osMutexId_t; /// \details Semaphore ID identifies the semaphore. typedef void *osSemaphoreId_t; /// \details Memory Pool ID identifies the memory pool. typedef void *osMemoryPoolId_t; /// \details Message Queue ID identifies the message queue. typedef void *osMessageQueueId_t; #ifndef TZ_MODULEID_T #define TZ_MODULEID_T /// \details Data type that identifies secure software modules called by a process. typedef uint32_t TZ_ModuleId_t; #endif /// Attributes structure for thread. typedef struct { const char *name; ///< name of the thread uint32_t attr_bits; ///< attribute bits void *cb_mem; ///< memory for control block uint32_t cb_size; ///< size of provided memory for control block void *stack_mem; ///< memory for stack uint32_t stack_size; ///< size of stack osPriority_t priority; ///< initial thread priority (default: osPriorityNormal) TZ_ModuleId_t tz_module; ///< TrustZone module identifier uint32_t reserved; ///< reserved (must be 0) } osThreadAttr_t; /// Attributes structure for timer. typedef struct { const char *name; ///< name of the timer uint32_t attr_bits; ///< attribute bits void *cb_mem; ///< memory for control block uint32_t cb_size; ///< size of provided memory for control block } osTimerAttr_t; /// Attributes structure for event flags. typedef struct { const char *name; ///< name of the event flags uint32_t attr_bits; ///< attribute bits void *cb_mem; ///< memory for control block uint32_t cb_size; ///< size of provided memory for control block } osEventFlagsAttr_t; /// Attributes structure for mutex. typedef struct { const char *name; ///< name of the mutex uint32_t attr_bits; ///< attribute bits void *cb_mem; ///< memory for control block uint32_t cb_size; ///< size of provided memory for control block } osMutexAttr_t; /// Attributes structure for semaphore. typedef struct { const char *name; ///< name of the semaphore uint32_t attr_bits; ///< attribute bits void *cb_mem; ///< memory for control block uint32_t cb_size; ///< size of provided memory for control block } osSemaphoreAttr_t; /// Attributes structure for memory pool. typedef struct { const char *name; ///< name of the memory pool uint32_t attr_bits; ///< attribute bits void *cb_mem; ///< memory for control block uint32_t cb_size; ///< size of provided memory for control block void *mp_mem; ///< memory for data storage uint32_t mp_size; ///< size of provided memory for data storage } osMemoryPoolAttr_t; /// Attributes structure for message queue. typedef struct { const char *name; ///< name of the message queue uint32_t attr_bits; ///< attribute bits void *cb_mem; ///< memory for control block uint32_t cb_size; ///< size of provided memory for control block void *mq_mem; ///< memory for data storage uint32_t mq_size; ///< size of provided memory for data storage } osMessageQueueAttr_t; // ==== Kernel Management Functions ==== /// Initialize the RTOS Kernel. /// \return status code that indicates the execution status of the function. osStatus_t osKernelInitialize (void); /// Get RTOS Kernel Information. /// \param[out] version pointer to buffer for retrieving version information. /// \param[out] id_buf pointer to buffer for retrieving kernel identification string. /// \param[in] id_size size of buffer for kernel identification string. /// \return status code that indicates the execution status of the function. osStatus_t osKernelGetInfo (osVersion_t *version, char *id_buf, uint32_t id_size); /// Get the current RTOS Kernel state. /// \return current RTOS Kernel state. osKernelState_t osKernelGetState (void); /// Start the RTOS Kernel scheduler. /// \return status code that indicates the execution status of the function. osStatus_t osKernelStart (void); /// Lock the RTOS Kernel scheduler. /// \return previous lock state (1 - locked, 0 - not locked, error code if negative). int32_t osKernelLock (void); /// Unlock the RTOS Kernel scheduler. /// \return previous lock state (1 - locked, 0 - not locked, error code if negative). int32_t osKernelUnlock (void); /// Restore the RTOS Kernel scheduler lock state. /// \param[in] lock lock state obtained by \ref osKernelLock or \ref osKernelUnlock. /// \return new lock state (1 - locked, 0 - not locked, error code if negative). int32_t osKernelRestoreLock (int32_t lock); /// Suspend the RTOS Kernel scheduler. /// \return time in ticks, for how long the system can sleep or power-down. uint32_t osKernelSuspend (void); /// Resume the RTOS Kernel scheduler. /// \param[in] sleep_ticks time in ticks for how long the system was in sleep or power-down mode. void osKernelResume (uint32_t sleep_ticks); /// Get the RTOS kernel tick count. /// \return RTOS kernel current tick count. uint32_t osKernelGetTickCount (void); /// Get the RTOS kernel tick frequency. /// \return frequency of the kernel tick in hertz, i.e. kernel ticks per second. uint32_t osKernelGetTickFreq (void); /// Get the RTOS kernel system timer count. /// \return RTOS kernel current system timer count as 32-bit value. uint32_t osKernelGetSysTimerCount (void); /// Get the RTOS kernel system timer frequency. /// \return frequency of the system timer in hertz, i.e. timer ticks per second. uint32_t osKernelGetSysTimerFreq (void); // ==== Thread Management Functions ==== /// Create a thread and add it to Active Threads. /// \param[in] func thread function. /// \param[in] argument pointer that is passed to the thread function as start argument. /// \param[in] attr thread attributes; NULL: default values. /// \return thread ID for reference by other functions or NULL in case of error. osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAttr_t *attr); /// Get name of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return name as null-terminated string. const char *osThreadGetName (osThreadId_t thread_id); /// Return the thread ID of the current running thread. /// \return thread ID for reference by other functions or NULL in case of error. osThreadId_t osThreadGetId (void); /// Get current thread state of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return current thread state of the specified thread. osThreadState_t osThreadGetState (osThreadId_t thread_id); /// Get stack size of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return stack size in bytes. uint32_t osThreadGetStackSize (osThreadId_t thread_id); /// Get available stack space of a thread based on stack watermark recording during execution. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return remaining stack space in bytes. uint32_t osThreadGetStackSpace (osThreadId_t thread_id); /// Change priority of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \param[in] priority new priority value for the thread function. /// \return status code that indicates the execution status of the function. osStatus_t osThreadSetPriority (osThreadId_t thread_id, osPriority_t priority); /// Get current priority of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return current priority value of the specified thread. osPriority_t osThreadGetPriority (osThreadId_t thread_id); /// Pass control to next thread that is in state \b READY. /// \return status code that indicates the execution status of the function. osStatus_t osThreadYield (void); /// Suspend execution of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return status code that indicates the execution status of the function. osStatus_t osThreadSuspend (osThreadId_t thread_id); /// Resume execution of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return status code that indicates the execution status of the function. osStatus_t osThreadResume (osThreadId_t thread_id); /// Detach a thread (thread storage can be reclaimed when thread terminates). /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return status code that indicates the execution status of the function. osStatus_t osThreadDetach (osThreadId_t thread_id); /// Wait for specified thread to terminate. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return status code that indicates the execution status of the function. osStatus_t osThreadJoin (osThreadId_t thread_id); /// Terminate execution of current running thread. __NO_RETURN void osThreadExit (void); /// Terminate execution of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \return status code that indicates the execution status of the function. osStatus_t osThreadTerminate (osThreadId_t thread_id); /// Get number of active threads. /// \return number of active threads. uint32_t osThreadGetCount (void); /// Enumerate active threads. /// \param[out] thread_array pointer to array for retrieving thread IDs. /// \param[in] array_items maximum number of items in array for retrieving thread IDs. /// \return number of enumerated threads. uint32_t osThreadEnumerate (osThreadId_t *thread_array, uint32_t array_items); // ==== Thread Flags Functions ==== /// Set the specified Thread Flags of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadNew or \ref osThreadGetId. /// \param[in] flags specifies the flags of the thread that shall be set. /// \return thread flags after setting or error code if highest bit set. uint32_t osThreadFlagsSet (osThreadId_t thread_id, uint32_t flags); /// Clear the specified Thread Flags of current running thread. /// \param[in] flags specifies the flags of the thread that shall be cleared. /// \return thread flags before clearing or error code if highest bit set. uint32_t osThreadFlagsClear (uint32_t flags); /// Get the current Thread Flags of current running thread. /// \return current thread flags. uint32_t osThreadFlagsGet (void); /// Wait for one or more Thread Flags of the current running thread to become signaled. /// \param[in] flags specifies the flags to wait for. /// \param[in] options specifies flags options (osFlagsXxxx). /// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return thread flags before clearing or error code if highest bit set. uint32_t osThreadFlagsWait (uint32_t flags, uint32_t options, uint32_t timeout); // ==== Generic Wait Functions ==== /// Wait for Timeout (Time Delay). /// \param[in] ticks \ref CMSIS_RTOS_TimeOutValue "time ticks" value /// \return status code that indicates the execution status of the function. osStatus_t osDelay (uint32_t ticks); /// Wait until specified time. /// \param[in] ticks absolute time in ticks /// \return status code that indicates the execution status of the function. osStatus_t osDelayUntil (uint32_t ticks); // ==== Timer Management Functions ==== /// Create and Initialize a timer. /// \param[in] func function pointer to callback function. /// \param[in] type \ref osTimerOnce for one-shot or \ref osTimerPeriodic for periodic behavior. /// \param[in] argument argument to the timer callback function. /// \param[in] attr timer attributes; NULL: default values. /// \return timer ID for reference by other functions or NULL in case of error. osTimerId_t osTimerNew (osTimerFunc_t func, osTimerType_t type, void *argument, const osTimerAttr_t *attr); /// Get name of a timer. /// \param[in] timer_id timer ID obtained by \ref osTimerNew. /// \return name as null-terminated string. const char *osTimerGetName (osTimerId_t timer_id); /// Start or restart a timer. /// \param[in] timer_id timer ID obtained by \ref osTimerNew. /// \param[in] ticks \ref CMSIS_RTOS_TimeOutValue "time ticks" value of the timer. /// \return status code that indicates the execution status of the function. osStatus_t osTimerStart (osTimerId_t timer_id, uint32_t ticks); /// Stop a timer. /// \param[in] timer_id timer ID obtained by \ref osTimerNew. /// \return status code that indicates the execution status of the function. osStatus_t osTimerStop (osTimerId_t timer_id); /// Check if a timer is running. /// \param[in] timer_id timer ID obtained by \ref osTimerNew. /// \return 0 not running, 1 running. uint32_t osTimerIsRunning (osTimerId_t timer_id); /// Delete a timer. /// \param[in] timer_id timer ID obtained by \ref osTimerNew. /// \return status code that indicates the execution status of the function. osStatus_t osTimerDelete (osTimerId_t timer_id); // ==== Event Flags Management Functions ==== /// Create and Initialize an Event Flags object. /// \param[in] attr event flags attributes; NULL: default values. /// \return event flags ID for reference by other functions or NULL in case of error. osEventFlagsId_t osEventFlagsNew (const osEventFlagsAttr_t *attr); /// Get name of an Event Flags object. /// \param[in] ef_id event flags ID obtained by \ref osEventFlagsNew. /// \return name as null-terminated string. const char *osEventFlagsGetName (osEventFlagsId_t ef_id); /// Set the specified Event Flags. /// \param[in] ef_id event flags ID obtained by \ref osEventFlagsNew. /// \param[in] flags specifies the flags that shall be set. /// \return event flags after setting or error code if highest bit set. uint32_t osEventFlagsSet (osEventFlagsId_t ef_id, uint32_t flags); /// Clear the specified Event Flags. /// \param[in] ef_id event flags ID obtained by \ref osEventFlagsNew. /// \param[in] flags specifies the flags that shall be cleared. /// \return event flags before clearing or error code if highest bit set. uint32_t osEventFlagsClear (osEventFlagsId_t ef_id, uint32_t flags); /// Get the current Event Flags. /// \param[in] ef_id event flags ID obtained by \ref osEventFlagsNew. /// \return current event flags. uint32_t osEventFlagsGet (osEventFlagsId_t ef_id); /// Wait for one or more Event Flags to become signaled. /// \param[in] ef_id event flags ID obtained by \ref osEventFlagsNew. /// \param[in] flags specifies the flags to wait for. /// \param[in] options specifies flags options (osFlagsXxxx). /// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return event flags before clearing or error code if highest bit set. uint32_t osEventFlagsWait (osEventFlagsId_t ef_id, uint32_t flags, uint32_t options, uint32_t timeout); /// Delete an Event Flags object. /// \param[in] ef_id event flags ID obtained by \ref osEventFlagsNew. /// \return status code that indicates the execution status of the function. osStatus_t osEventFlagsDelete (osEventFlagsId_t ef_id); // ==== Mutex Management Functions ==== /// Create and Initialize a Mutex object. /// \param[in] attr mutex attributes; NULL: default values. /// \return mutex ID for reference by other functions or NULL in case of error. osMutexId_t osMutexNew (const osMutexAttr_t *attr); /// Get name of a Mutex object. /// \param[in] mutex_id mutex ID obtained by \ref osMutexNew. /// \return name as null-terminated string. const char *osMutexGetName (osMutexId_t mutex_id); /// Acquire a Mutex or timeout if it is locked. /// \param[in] mutex_id mutex ID obtained by \ref osMutexNew. /// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return status code that indicates the execution status of the function. osStatus_t osMutexAcquire (osMutexId_t mutex_id, uint32_t timeout); /// Release a Mutex that was acquired by \ref osMutexAcquire. /// \param[in] mutex_id mutex ID obtained by \ref osMutexNew. /// \return status code that indicates the execution status of the function. osStatus_t osMutexRelease (osMutexId_t mutex_id); /// Get Thread which owns a Mutex object. /// \param[in] mutex_id mutex ID obtained by \ref osMutexNew. /// \return thread ID of owner thread or NULL when mutex was not acquired. osThreadId_t osMutexGetOwner (osMutexId_t mutex_id); /// Delete a Mutex object. /// \param[in] mutex_id mutex ID obtained by \ref osMutexNew. /// \return status code that indicates the execution status of the function. osStatus_t osMutexDelete (osMutexId_t mutex_id); // ==== Semaphore Management Functions ==== /// Create and Initialize a Semaphore object. /// \param[in] max_count maximum number of available tokens. /// \param[in] initial_count initial number of available tokens. /// \param[in] attr semaphore attributes; NULL: default values. /// \return semaphore ID for reference by other functions or NULL in case of error. osSemaphoreId_t osSemaphoreNew (uint32_t max_count, uint32_t initial_count, const osSemaphoreAttr_t *attr); /// Get name of a Semaphore object. /// \param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew. /// \return name as null-terminated string. const char *osSemaphoreGetName (osSemaphoreId_t semaphore_id); /// Acquire a Semaphore token or timeout if no tokens are available. /// \param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew. /// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return status code that indicates the execution status of the function. osStatus_t osSemaphoreAcquire (osSemaphoreId_t semaphore_id, uint32_t timeout); /// Release a Semaphore token up to the initial maximum count. /// \param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew. /// \return status code that indicates the execution status of the function. osStatus_t osSemaphoreRelease (osSemaphoreId_t semaphore_id); /// Get current Semaphore token count. /// \param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew. /// \return number of tokens available. uint32_t osSemaphoreGetCount (osSemaphoreId_t semaphore_id); /// Delete a Semaphore object. /// \param[in] semaphore_id semaphore ID obtained by \ref osSemaphoreNew. /// \return status code that indicates the execution status of the function. osStatus_t osSemaphoreDelete (osSemaphoreId_t semaphore_id); // ==== Memory Pool Management Functions ==== /// Create and Initialize a Memory Pool object. /// \param[in] block_count maximum number of memory blocks in memory pool. /// \param[in] block_size memory block size in bytes. /// \param[in] attr memory pool attributes; NULL: default values. /// \return memory pool ID for reference by other functions or NULL in case of error. osMemoryPoolId_t osMemoryPoolNew (uint32_t block_count, uint32_t block_size, const osMemoryPoolAttr_t *attr); /// Get name of a Memory Pool object. /// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. /// \return name as null-terminated string. const char *osMemoryPoolGetName (osMemoryPoolId_t mp_id); /// Allocate a memory block from a Memory Pool. /// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. /// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return address of the allocated memory block or NULL in case of no memory is available. void *osMemoryPoolAlloc (osMemoryPoolId_t mp_id, uint32_t timeout); /// Return an allocated memory block back to a Memory Pool. /// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. /// \param[in] block address of the allocated memory block to be returned to the memory pool. /// \return status code that indicates the execution status of the function. osStatus_t osMemoryPoolFree (osMemoryPoolId_t mp_id, void *block); /// Get maximum number of memory blocks in a Memory Pool. /// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. /// \return maximum number of memory blocks. uint32_t osMemoryPoolGetCapacity (osMemoryPoolId_t mp_id); /// Get memory block size in a Memory Pool. /// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. /// \return memory block size in bytes. uint32_t osMemoryPoolGetBlockSize (osMemoryPoolId_t mp_id); /// Get number of memory blocks used in a Memory Pool. /// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. /// \return number of memory blocks used. uint32_t osMemoryPoolGetCount (osMemoryPoolId_t mp_id); /// Get number of memory blocks available in a Memory Pool. /// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. /// \return number of memory blocks available. uint32_t osMemoryPoolGetSpace (osMemoryPoolId_t mp_id); /// Delete a Memory Pool object. /// \param[in] mp_id memory pool ID obtained by \ref osMemoryPoolNew. /// \return status code that indicates the execution status of the function. osStatus_t osMemoryPoolDelete (osMemoryPoolId_t mp_id); // ==== Message Queue Management Functions ==== /// Create and Initialize a Message Queue object. /// \param[in] msg_count maximum number of messages in queue. /// \param[in] msg_size maximum message size in bytes. /// \param[in] attr message queue attributes; NULL: default values. /// \return message queue ID for reference by other functions or NULL in case of error. osMessageQueueId_t osMessageQueueNew (uint32_t msg_count, uint32_t msg_size, const osMessageQueueAttr_t *attr); /// Get name of a Message Queue object. /// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. /// \return name as null-terminated string. const char *osMessageQueueGetName (osMessageQueueId_t mq_id); /// Put a Message into a Queue or timeout if Queue is full. /// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. /// \param[in] msg_ptr pointer to buffer with message to put into a queue. /// \param[in] msg_prio message priority. /// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return status code that indicates the execution status of the function. osStatus_t osMessageQueuePut (osMessageQueueId_t mq_id, const void *msg_ptr, uint8_t msg_prio, uint32_t timeout); /// Get a Message from a Queue or timeout if Queue is empty. /// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. /// \param[out] msg_ptr pointer to buffer for message to get from a queue. /// \param[out] msg_prio pointer to buffer for message priority or NULL. /// \param[in] timeout \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return status code that indicates the execution status of the function. osStatus_t osMessageQueueGet (osMessageQueueId_t mq_id, void *msg_ptr, uint8_t *msg_prio, uint32_t timeout); /// Get maximum number of messages in a Message Queue. /// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. /// \return maximum number of messages. uint32_t osMessageQueueGetCapacity (osMessageQueueId_t mq_id); /// Get maximum message size in a Memory Pool. /// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. /// \return maximum message size in bytes. uint32_t osMessageQueueGetMsgSize (osMessageQueueId_t mq_id); /// Get number of queued messages in a Message Queue. /// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. /// \return number of queued messages. uint32_t osMessageQueueGetCount (osMessageQueueId_t mq_id); /// Get number of available slots for messages in a Message Queue. /// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. /// \return number of available slots for messages. uint32_t osMessageQueueGetSpace (osMessageQueueId_t mq_id); /// Reset a Message Queue to initial empty state. /// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. /// \return status code that indicates the execution status of the function. osStatus_t osMessageQueueReset (osMessageQueueId_t mq_id); /// Delete a Message Queue object. /// \param[in] mq_id message queue ID obtained by \ref osMessageQueueNew. /// \return status code that indicates the execution status of the function. osStatus_t osMessageQueueDelete (osMessageQueueId_t mq_id); #ifdef __cplusplus } #endif #endif // CMSIS_OS2_H_
YifuLiu/AliOS-Things
components/cmsis/RTOS2/Include/cmsis_os2.h
C
apache-2.0
35,974
/**************************************************************************//** * @file os_tick.h * @brief CMSIS OS Tick header file * @version V1.0.1 * @date 24. November 2017 ******************************************************************************/ /* * Copyright (c) 2017-2017 ARM Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef OS_TICK_H #define OS_TICK_H #include <stdint.h> /// IRQ Handler. #ifndef IRQHANDLER_T #define IRQHANDLER_T typedef void (*IRQHandler_t) (void); #endif /// Setup OS Tick timer to generate periodic RTOS Kernel Ticks /// \param[in] freq tick frequency in Hz /// \param[in] handler tick IRQ handler /// \return 0 on success, -1 on error. int32_t OS_Tick_Setup (uint32_t freq, IRQHandler_t handler); /// Enable OS Tick timer interrupt void OS_Tick_Enable (void); /// Disable OS Tick timer interrupt void OS_Tick_Disable (void); /// Acknowledge execution of OS Tick timer interrupt void OS_Tick_AcknowledgeIRQ (void); /// Get OS Tick timer IRQ number /// \return OS Tick IRQ number int32_t OS_Tick_GetIRQn (void); /// Get OS Tick timer clock frequency /// \return OS Tick timer clock frequency in Hz uint32_t OS_Tick_GetClock (void); /// Get OS Tick timer interval reload value /// \return OS Tick timer interval reload value uint32_t OS_Tick_GetInterval (void); /// Get OS Tick timer counter value /// \return OS Tick timer counter value uint32_t OS_Tick_GetCount (void); /// Get OS Tick timer overflow status /// \return OS Tick overflow status (1 - overflow, 0 - no overflow). uint32_t OS_Tick_GetOverflow (void); #endif /* OS_TICK_H */
YifuLiu/AliOS-Things
components/cmsis/RTOS2/Include/os_tick.h
C
apache-2.0
2,218
/**************************************************************************//** * @file os_systick.c * @brief CMSIS OS Tick SysTick implementation * @version V1.0.1 * @date 24. November 2017 ******************************************************************************/ /* * Copyright (c) 2017-2017 ARM Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "os_tick.h" //lint -emacro((923,9078),SCB,SysTick) "cast from unsigned long to pointer" #include "RTE_Components.h" #include CMSIS_device_header #ifdef SysTick #ifndef SYSTICK_IRQ_PRIORITY #define SYSTICK_IRQ_PRIORITY 0xFFU #endif static uint8_t PendST; // Setup OS Tick. __WEAK int32_t OS_Tick_Setup (uint32_t freq, IRQHandler_t handler) { uint32_t load; (void)handler; if (freq == 0U) { //lint -e{904} "Return statement before end of function" return (-1); } load = (SystemCoreClock / freq) - 1U; if (load > 0x00FFFFFFU) { //lint -e{904} "Return statement before end of function" return (-1); } // Set SysTick Interrupt Priority #if ((defined(__ARM_ARCH_8M_MAIN__) && (__ARM_ARCH_8M_MAIN__ != 0)) || \ (defined(__CORTEX_M) && (__CORTEX_M == 7U))) SCB->SHPR[11] = SYSTICK_IRQ_PRIORITY; #elif (defined(__ARM_ARCH_8M_BASE__) && (__ARM_ARCH_8M_BASE__ != 0)) SCB->SHPR[1] |= ((uint32_t)SYSTICK_IRQ_PRIORITY << 24); #elif ((defined(__ARM_ARCH_7M__) && (__ARM_ARCH_7M__ != 0)) || \ (defined(__ARM_ARCH_7EM__) && (__ARM_ARCH_7EM__ != 0))) SCB->SHP[11] = SYSTICK_IRQ_PRIORITY; #elif (defined(__ARM_ARCH_6M__) && (__ARM_ARCH_6M__ != 0)) SCB->SHP[1] |= ((uint32_t)SYSTICK_IRQ_PRIORITY << 24); #else #error "Unknown ARM Core!" #endif SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_TICKINT_Msk; SysTick->LOAD = load; SysTick->VAL = 0U; PendST = 0U; return (0); } /// Enable OS Tick. __WEAK void OS_Tick_Enable (void) { if (PendST != 0U) { PendST = 0U; SCB->ICSR = SCB_ICSR_PENDSTSET_Msk; } SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk; } /// Disable OS Tick. __WEAK void OS_Tick_Disable (void) { SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk; if ((SCB->ICSR & SCB_ICSR_PENDSTSET_Msk) != 0U) { SCB->ICSR = SCB_ICSR_PENDSTCLR_Msk; PendST = 1U; } } // Acknowledge OS Tick IRQ. __WEAK void OS_Tick_AcknowledgeIRQ (void) { (void)SysTick->CTRL; } // Get OS Tick IRQ number. __WEAK int32_t OS_Tick_GetIRQn (void) { return ((int32_t)SysTick_IRQn); } // Get OS Tick clock. __WEAK uint32_t OS_Tick_GetClock (void) { return (SystemCoreClock); } // Get OS Tick interval. __WEAK uint32_t OS_Tick_GetInterval (void) { return (SysTick->LOAD + 1U); } // Get OS Tick count value. __WEAK uint32_t OS_Tick_GetCount (void) { uint32_t load = SysTick->LOAD; return (load - SysTick->VAL); } // Get OS Tick overflow status. __WEAK uint32_t OS_Tick_GetOverflow (void) { return ((SysTick->CTRL >> 16) & 1U); } #endif // SysTick
YifuLiu/AliOS-Things
components/cmsis/RTOS2/Source/os_systick.c
C
apache-2.0
3,541
/**************************************************************************//** * @file os_tick_gtim.c * @brief CMSIS OS Tick implementation for Generic Timer * @version V1.0.1 * @date 24. November 2017 ******************************************************************************/ /* * Copyright (c) 2017 ARM Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "os_tick.h" #include "irq_ctrl.h" #include "RTE_Components.h" #include CMSIS_device_header #ifndef GTIM_IRQ_PRIORITY #define GTIM_IRQ_PRIORITY 0xFFU #endif #ifndef GTIM_IRQ_NUM #define GTIM_IRQ_NUM SecurePhyTimer_IRQn #endif // Timer interrupt pending flag static uint8_t GTIM_PendIRQ; // Timer tick frequency static uint32_t GTIM_Clock; // Timer load value static uint32_t GTIM_Load; // Setup OS Tick. int32_t OS_Tick_Setup (uint32_t freq, IRQHandler_t handler) { uint32_t prio, bits; if (freq == 0U) { return (-1); } GTIM_PendIRQ = 0U; // Get timer clock #ifdef SCTR_BASE GTIM_Clock = *(uint32_t*)(SCTR_BASE+0x20); #else // FVP REFCLK CNTControl 100MHz GTIM_Clock = 100000000UL; #endif PL1_SetCounterFrequency(GTIM_Clock); // Calculate load value GTIM_Load = (GTIM_Clock / freq) - 1U; // Disable Generic Timer and set load value PL1_SetControl(0U); PL1_SetLoadValue(GTIM_Load); // Disable corresponding IRQ IRQ_Disable(GTIM_IRQ_NUM); IRQ_ClearPending(GTIM_IRQ_NUM); // Determine number of implemented priority bits IRQ_SetPriority(GTIM_IRQ_NUM, 0xFFU); prio = IRQ_GetPriority(GTIM_IRQ_NUM); // At least bits [7:4] must be implemented if ((prio & 0xF0U) == 0U) { return (-1); } for (bits = 0; bits < 4; bits++) { if ((prio & 0x01) != 0) { break; } prio >>= 1; } // Adjust configured priority to the number of implemented priority bits prio = (GTIM_IRQ_PRIORITY << bits) & 0xFFUL; // Set Private Timer interrupt priority IRQ_SetPriority(GTIM_IRQ_NUM, prio-1U); // Set edge-triggered IRQ IRQ_SetMode(GTIM_IRQ_NUM, IRQ_MODE_TRIG_EDGE); // Register tick interrupt handler function IRQ_SetHandler(GTIM_IRQ_NUM, handler); // Enable corresponding interrupt IRQ_Enable(GTIM_IRQ_NUM); // Enable system counter and timer control #ifdef SCTR_BASE *(uint32_t*)SCTR_BASE |= 3U; #endif // Enable timer control PL1_SetControl(1U); return (0); } /// Enable OS Tick. void OS_Tick_Enable (void) { uint32_t ctrl; // Set pending interrupt if flag set if (GTIM_PendIRQ != 0U) { GTIM_PendIRQ = 0U; IRQ_SetPending (GTIM_IRQ_NUM); } // Start the Private Timer ctrl = PL1_GetControl(); // Set bit: Timer enable ctrl |= 1U; PL1_SetControl(ctrl); } /// Disable OS Tick. void OS_Tick_Disable (void) { uint32_t ctrl; // Stop the Private Timer ctrl = PL1_GetControl(); // Clear bit: Timer enable ctrl &= ~1U; PL1_SetControl(ctrl); // Remember pending interrupt flag if (IRQ_GetPending(GTIM_IRQ_NUM) != 0) { IRQ_ClearPending(GTIM_IRQ_NUM); GTIM_PendIRQ = 1U; } } // Acknowledge OS Tick IRQ. void OS_Tick_AcknowledgeIRQ (void) { IRQ_ClearPending (GTIM_IRQ_NUM); PL1_SetLoadValue(GTIM_Load); } // Get OS Tick IRQ number. int32_t OS_Tick_GetIRQn (void) { return (GTIM_IRQ_NUM); } // Get OS Tick clock. uint32_t OS_Tick_GetClock (void) { return (GTIM_Clock); } // Get OS Tick interval. uint32_t OS_Tick_GetInterval (void) { return (GTIM_Load + 1U); } // Get OS Tick count value. uint32_t OS_Tick_GetCount (void) { return (GTIM_Load - PL1_GetCurrentValue()); } // Get OS Tick overflow status. uint32_t OS_Tick_GetOverflow (void) { CNTP_CTL_Type cntp_ctl; cntp_ctl.w = PL1_GetControl(); return (cntp_ctl.b.ISTATUS); }
YifuLiu/AliOS-Things
components/cmsis/RTOS2/Source/os_tick_gtim.c
C
apache-2.0
4,282
/**************************************************************************//** * @file os_tick_ptim.c * @brief CMSIS OS Tick implementation for Private Timer * @version V1.0.2 * @date 02. March 2018 ******************************************************************************/ /* * Copyright (c) 2017-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "RTE_Components.h" #include CMSIS_device_header #if defined(PTIM) #include "os_tick.h" #include "irq_ctrl.h" #ifndef PTIM_IRQ_PRIORITY #define PTIM_IRQ_PRIORITY 0xFFU #endif static uint8_t PTIM_PendIRQ; // Timer interrupt pending flag // Setup OS Tick. int32_t OS_Tick_Setup (uint32_t freq, IRQHandler_t handler) { uint32_t load; uint32_t prio; uint32_t bits; if (freq == 0U) { return (-1); } PTIM_PendIRQ = 0U; // Private Timer runs with the system frequency load = (SystemCoreClock / freq) - 1U; // Disable Private Timer and set load value PTIM_SetControl (0U); PTIM_SetLoadValue (load); // Disable corresponding IRQ IRQ_Disable (PrivTimer_IRQn); IRQ_ClearPending(PrivTimer_IRQn); // Determine number of implemented priority bits IRQ_SetPriority (PrivTimer_IRQn, 0xFFU); prio = IRQ_GetPriority (PrivTimer_IRQn); // At least bits [7:4] must be implemented if ((prio & 0xF0U) == 0U) { return (-1); } for (bits = 0; bits < 4; bits++) { if ((prio & 0x01) != 0) { break; } prio >>= 1; } // Adjust configured priority to the number of implemented priority bits prio = (PTIM_IRQ_PRIORITY << bits) & 0xFFUL; // Set Private Timer interrupt priority IRQ_SetPriority(PrivTimer_IRQn, prio-1U); // Set edge-triggered IRQ IRQ_SetMode(PrivTimer_IRQn, IRQ_MODE_TRIG_EDGE); // Register tick interrupt handler function IRQ_SetHandler(PrivTimer_IRQn, handler); // Enable corresponding interrupt IRQ_Enable (PrivTimer_IRQn); // Set bits: IRQ enable and Auto reload PTIM_SetControl (0x06U); return (0); } /// Enable OS Tick. void OS_Tick_Enable (void) { uint32_t ctrl; // Set pending interrupt if flag set if (PTIM_PendIRQ != 0U) { PTIM_PendIRQ = 0U; IRQ_SetPending (PrivTimer_IRQn); } // Start the Private Timer ctrl = PTIM_GetControl(); // Set bit: Timer enable ctrl |= 1U; PTIM_SetControl (ctrl); } /// Disable OS Tick. void OS_Tick_Disable (void) { uint32_t ctrl; // Stop the Private Timer ctrl = PTIM_GetControl(); // Clear bit: Timer enable ctrl &= ~1U; PTIM_SetControl (ctrl); // Remember pending interrupt flag if (IRQ_GetPending(PrivTimer_IRQn) != 0) { IRQ_ClearPending (PrivTimer_IRQn); PTIM_PendIRQ = 1U; } } // Acknowledge OS Tick IRQ. void OS_Tick_AcknowledgeIRQ (void) { PTIM_ClearEventFlag(); } // Get OS Tick IRQ number. int32_t OS_Tick_GetIRQn (void) { return (PrivTimer_IRQn); } // Get OS Tick clock. uint32_t OS_Tick_GetClock (void) { return (SystemCoreClock); } // Get OS Tick interval. uint32_t OS_Tick_GetInterval (void) { return (PTIM_GetLoadValue() + 1U); } // Get OS Tick count value. uint32_t OS_Tick_GetCount (void) { uint32_t load = PTIM_GetLoadValue(); return (load - PTIM_GetCurrentValue()); } // Get OS Tick overflow status. uint32_t OS_Tick_GetOverflow (void) { return (PTIM->ISR & 1); } #endif // PTIM
YifuLiu/AliOS-Things
components/cmsis/RTOS2/Source/os_tick_ptim.c
C
apache-2.0
3,900
/* * Copyright (c) 2013-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * ---------------------------------------------------------------------- * * $Date: 18. June 2018 * $Revision: V2.1.3 * * Project: CMSIS-RTOS API * Title: cmsis_os.h template header file * * Version 0.02 * Initial Proposal Phase * Version 0.03 * osKernelStart added, optional feature: main started as thread * osSemaphores have standard behavior * osTimerCreate does not start the timer, added osTimerStart * osThreadPass is renamed to osThreadYield * Version 1.01 * Support for C++ interface * - const attribute removed from the osXxxxDef_t typedefs * - const attribute added to the osXxxxDef macros * Added: osTimerDelete, osMutexDelete, osSemaphoreDelete * Added: osKernelInitialize * Version 1.02 * Control functions for short timeouts in microsecond resolution: * Added: osKernelSysTick, osKernelSysTickFrequency, osKernelSysTickMicroSec * Removed: osSignalGet * Version 2.0.0 * OS objects creation without macros (dynamic creation and resource allocation): * - added: osXxxxNew functions which replace osXxxxCreate * - added: osXxxxAttr_t structures * - deprecated: osXxxxCreate functions, osXxxxDef_t structures * - deprecated: osXxxxDef and osXxxx macros * osStatus codes simplified and renamed to osStatus_t * osEvent return structure deprecated * Kernel: * - added: osKernelInfo_t and osKernelGetInfo * - added: osKernelState_t and osKernelGetState (replaces osKernelRunning) * - added: osKernelLock, osKernelUnlock * - added: osKernelSuspend, osKernelResume * - added: osKernelGetTickCount, osKernelGetTickFreq * - renamed osKernelSysTick to osKernelGetSysTimerCount * - replaced osKernelSysTickFrequency with osKernelGetSysTimerFreq * - deprecated osKernelSysTickMicroSec * Thread: * - extended number of thread priorities * - renamed osPrioriry to osPrioriry_t * - replaced osThreadCreate with osThreadNew * - added: osThreadGetName * - added: osThreadState_t and osThreadGetState * - added: osThreadGetStackSize, osThreadGetStackSpace * - added: osThreadSuspend, osThreadResume * - added: osThreadJoin, osThreadDetach, osThreadExit * - added: osThreadGetCount, osThreadEnumerate * - added: Thread Flags (moved from Signals) * Signals: * - renamed osSignals to osThreadFlags (moved to Thread Flags) * - changed return value of Set/Clear/Wait functions * - Clear function limited to current running thread * - extended Wait function (options) * - added: osThreadFlagsGet * Event Flags: * - added new independent object for handling Event Flags * Delay and Wait functions: * - added: osDelayUntil * - deprecated: osWait * Timer: * - replaced osTimerCreate with osTimerNew * - added: osTimerGetName, osTimerIsRunning * Mutex: * - extended: attributes (Recursive, Priority Inherit, Robust) * - replaced osMutexCreate with osMutexNew * - renamed osMutexWait to osMutexAcquire * - added: osMutexGetName, osMutexGetOwner * Semaphore: * - extended: maximum and initial token count * - replaced osSemaphoreCreate with osSemaphoreNew * - renamed osSemaphoreWait to osSemaphoreAcquire (changed return value) * - added: osSemaphoreGetName, osSemaphoreGetCount * Memory Pool: * - using osMemoryPool prefix instead of osPool * - replaced osPoolCreate with osMemoryPoolNew * - extended osMemoryPoolAlloc (timeout) * - added: osMemoryPoolGetName * - added: osMemoryPoolGetCapacity, osMemoryPoolGetBlockSize * - added: osMemoryPoolGetCount, osMemoryPoolGetSpace * - added: osMemoryPoolDelete * - deprecated: osPoolCAlloc * Message Queue: * - extended: fixed size message instead of a single 32-bit value * - using osMessageQueue prefix instead of osMessage * - replaced osMessageCreate with osMessageQueueNew * - updated: osMessageQueuePut, osMessageQueueGet * - added: osMessageQueueGetName * - added: osMessageQueueGetCapacity, osMessageQueueGetMsgSize * - added: osMessageQueueGetCount, osMessageQueueGetSpace * - added: osMessageQueueReset, osMessageQueueDelete * Mail Queue: * - deprecated (superseded by extended Message Queue functionality) * Version 2.1.0 * Support for critical and uncritical sections (nesting safe): * - updated: osKernelLock, osKernelUnlock * - added: osKernelRestoreLock * Updated Thread and Event Flags: * - changed flags parameter and return type from int32_t to uint32_t * Version 2.1.1 * Additional functions allowed to be called from Interrupt Service Routines: * - osKernelGetTickCount, osKernelGetTickFreq * Changed Kernel Tick type to uint32_t: * - updated: osKernelGetTickCount, osDelayUntil * Version 2.1.2 * Additional functions allowed to be called from Interrupt Service Routines: * - osKernelGetInfo, osKernelGetState * Version 2.1.3 * Additional functions allowed to be called from Interrupt Service Routines: * - osThreadGetId *---------------------------------------------------------------------------*/ #ifndef CMSIS_OS_H_ #define CMSIS_OS_H_ /// \b osCMSIS identifies the CMSIS-RTOS API version. #define osCMSIS 0x20001U ///< API version (main[31:16].sub[15:0]) /// \note CAN BE CHANGED: \b osCMSIS_KERNEL identifies the underlying RTOS kernel and version number. #define osCMSIS_KERNEL 0x10000U ///< RTOS identification and version (main[31:16].sub[15:0]) /// \note CAN BE CHANGED: \b osKernelSystemId identifies the underlying RTOS kernel. #define osKernelSystemId "KERNEL V1.0" ///< RTOS identification string /// \note CAN BE CHANGED: \b osFeature_xxx identifies RTOS features. #define osFeature_MainThread 0 ///< main thread 1=main can be thread, 0=not available #define osFeature_Signals 16U ///< maximum number of Signal Flags available per thread #define osFeature_Semaphore 65535U ///< maximum count for \ref osSemaphoreCreate function #define osFeature_Wait 0 ///< osWait function: 1=available, 0=not available #define osFeature_SysTick 1 ///< osKernelSysTick functions: 1=available, 0=not available #define osFeature_Pool 1 ///< Memory Pools: 1=available, 0=not available #define osFeature_MessageQ 1 ///< Message Queues: 1=available, 0=not available #define osFeature_MailQ 1 ///< Mail Queues: 1=available, 0=not available #if (osCMSIS >= 0x20000U) #include "cmsis_os2.h" #else #include <stdint.h> #include <stddef.h> #endif #ifdef __cplusplus extern "C" { #endif // ==== Enumerations, structures, defines ==== /// Priority values. #if (osCMSIS < 0x20000U) typedef enum { osPriorityIdle = -3, ///< Priority: idle (lowest) osPriorityLow = -2, ///< Priority: low osPriorityBelowNormal = -1, ///< Priority: below normal osPriorityNormal = 0, ///< Priority: normal (default) osPriorityAboveNormal = +1, ///< Priority: above normal osPriorityHigh = +2, ///< Priority: high osPriorityRealtime = +3, ///< Priority: realtime (highest) osPriorityError = 0x84, ///< System cannot determine priority or illegal priority. osPriorityReserved = 0x7FFFFFFF ///< Prevents enum down-size compiler optimization. } osPriority; #else #define osPriority osPriority_t #endif /// Entry point of a thread. typedef void (*os_pthread) (void const *argument); /// Entry point of a timer call back function. typedef void (*os_ptimer) (void const *argument); /// Timer type. #if (osCMSIS < 0x20000U) typedef enum { osTimerOnce = 0, ///< One-shot timer. osTimerPeriodic = 1 ///< Repeating timer. } os_timer_type; #else #define os_timer_type osTimerType_t #endif /// Timeout value. #define osWaitForever 0xFFFFFFFFU ///< Wait forever timeout value. /// Status code values returned by CMSIS-RTOS functions. #if (osCMSIS < 0x20000U) typedef enum { osOK = 0, ///< Function completed; no error or event occurred. osEventSignal = 0x08, ///< Function completed; signal event occurred. osEventMessage = 0x10, ///< Function completed; message event occurred. osEventMail = 0x20, ///< Function completed; mail event occurred. osEventTimeout = 0x40, ///< Function completed; timeout occurred. osErrorParameter = 0x80, ///< Parameter error: a mandatory parameter was missing or specified an incorrect object. osErrorResource = 0x81, ///< Resource not available: a specified resource was not available. osErrorTimeoutResource = 0xC1, ///< Resource not available within given time: a specified resource was not available within the timeout period. osErrorISR = 0x82, ///< Not allowed in ISR context: the function cannot be called from interrupt service routines. osErrorISRRecursive = 0x83, ///< Function called multiple times from ISR with same object. osErrorPriority = 0x84, ///< System cannot determine priority or thread has illegal priority. osErrorNoMemory = 0x85, ///< System is out of memory: it was impossible to allocate or reserve memory for the operation. osErrorValue = 0x86, ///< Value of a parameter is out of range. osErrorOS = 0xFF, ///< Unspecified RTOS error: run-time error but no other error message fits. osStatusReserved = 0x7FFFFFFF ///< Prevents enum down-size compiler optimization. } osStatus; #else typedef int32_t osStatus; #define osEventSignal (0x08) #define osEventMessage (0x10) #define osEventMail (0x20) #define osEventTimeout (0x40) #define osErrorOS osError #define osErrorTimeoutResource osErrorTimeout #define osErrorISRRecursive (-126) #define osErrorValue (-127) #define osErrorPriority (-128) #endif // >>> the following data type definitions may be adapted towards a specific RTOS /// Thread ID identifies the thread. /// \note CAN BE CHANGED: \b implementation specific in every CMSIS-RTOS. #if (osCMSIS < 0x20000U) typedef void *osThreadId; #else #define osThreadId osThreadId_t #endif /// Timer ID identifies the timer. /// \note CAN BE CHANGED: \b implementation specific in every CMSIS-RTOS. #if (osCMSIS < 0x20000U) typedef void *osTimerId; #else #define osTimerId osTimerId_t #endif /// Mutex ID identifies the mutex. /// \note CAN BE CHANGED: \b implementation specific in every CMSIS-RTOS. #if (osCMSIS < 0x20000U) typedef void *osMutexId; #else #define osMutexId osMutexId_t #endif /// Semaphore ID identifies the semaphore. /// \note CAN BE CHANGED: \b implementation specific in every CMSIS-RTOS. #if (osCMSIS < 0x20000U) typedef void *osSemaphoreId; #else #define osSemaphoreId osSemaphoreId_t #endif /// Pool ID identifies the memory pool. /// \note CAN BE CHANGED: \b implementation specific in every CMSIS-RTOS. typedef void *osPoolId; /// Message ID identifies the message queue. /// \note CAN BE CHANGED: \b implementation specific in every CMSIS-RTOS. typedef void *osMessageQId; /// Mail ID identifies the mail queue. /// \note CAN BE CHANGED: \b implementation specific in every CMSIS-RTOS. typedef void *osMailQId; /// Thread Definition structure contains startup information of a thread. /// \note CAN BE CHANGED: \b os_thread_def is implementation specific in every CMSIS-RTOS. #if (osCMSIS < 0x20000U) typedef struct os_thread_def { os_pthread pthread; ///< start address of thread function osPriority tpriority; ///< initial thread priority uint32_t instances; ///< maximum number of instances of that thread function uint32_t stacksize; ///< stack size requirements in bytes; 0 is default stack size } osThreadDef_t; #else typedef struct os_thread_def { os_pthread pthread; ///< start address of thread function osThreadAttr_t attr; ///< thread attributes } osThreadDef_t; #endif /// Timer Definition structure contains timer parameters. /// \note CAN BE CHANGED: \b os_timer_def is implementation specific in every CMSIS-RTOS. #if (osCMSIS < 0x20000U) typedef struct os_timer_def { os_ptimer ptimer; ///< start address of a timer function } osTimerDef_t; #else typedef struct os_timer_def { os_ptimer ptimer; ///< start address of a timer function osTimerAttr_t attr; ///< timer attributes } osTimerDef_t; #endif /// Mutex Definition structure contains setup information for a mutex. /// \note CAN BE CHANGED: \b os_mutex_def is implementation specific in every CMSIS-RTOS. #if (osCMSIS < 0x20000U) typedef struct os_mutex_def { uint32_t dummy; ///< dummy value } osMutexDef_t; #else #define osMutexDef_t osMutexAttr_t #endif /// Semaphore Definition structure contains setup information for a semaphore. /// \note CAN BE CHANGED: \b os_semaphore_def is implementation specific in every CMSIS-RTOS. #if (osCMSIS < 0x20000U) typedef struct os_semaphore_def { uint32_t dummy; ///< dummy value } osSemaphoreDef_t; #else #define osSemaphoreDef_t osSemaphoreAttr_t #endif /// Definition structure for memory block allocation. /// \note CAN BE CHANGED: \b os_pool_def is implementation specific in every CMSIS-RTOS. #if (osCMSIS < 0x20000U) typedef struct os_pool_def { uint32_t pool_sz; ///< number of items (elements) in the pool uint32_t item_sz; ///< size of an item void *pool; ///< pointer to memory for pool } osPoolDef_t; #else typedef struct os_pool_def { uint32_t pool_sz; ///< number of items (elements) in the pool uint32_t item_sz; ///< size of an item osMemoryPoolAttr_t attr; ///< memory pool attributes } osPoolDef_t; #endif /// Definition structure for message queue. /// \note CAN BE CHANGED: \b os_messageQ_def is implementation specific in every CMSIS-RTOS. #if (osCMSIS < 0x20000U) typedef struct os_messageQ_def { uint32_t queue_sz; ///< number of elements in the queue void *pool; ///< memory array for messages } osMessageQDef_t; #else typedef struct os_messageQ_def { uint32_t queue_sz; ///< number of elements in the queue osMessageQueueAttr_t attr; ///< message queue attributes } osMessageQDef_t; #endif /// Definition structure for mail queue. /// \note CAN BE CHANGED: \b os_mailQ_def is implementation specific in every CMSIS-RTOS. #if (osCMSIS < 0x20000U) typedef struct os_mailQ_def { uint32_t queue_sz; ///< number of elements in the queue uint32_t item_sz; ///< size of an item void *pool; ///< memory array for mail } osMailQDef_t; #else typedef struct os_mailQ_def { uint32_t queue_sz; ///< number of elements in the queue uint32_t item_sz; ///< size of an item void *mail; ///< pointer to mail osMemoryPoolAttr_t mp_attr; ///< memory pool attributes osMessageQueueAttr_t mq_attr; ///< message queue attributes } osMailQDef_t; #endif /// Event structure contains detailed information about an event. typedef struct { osStatus status; ///< status code: event or error information union { uint32_t v; ///< message as 32-bit value void *p; ///< message or mail as void pointer int32_t signals; ///< signal flags } value; ///< event value union { osMailQId mail_id; ///< mail id obtained by \ref osMailCreate osMessageQId message_id; ///< message id obtained by \ref osMessageCreate } def; ///< event definition } osEvent; // ==== Kernel Management Functions ==== /// Initialize the RTOS Kernel for creating objects. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osKernelInitialize (void); #endif /// Start the RTOS Kernel scheduler. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osKernelStart (void); #endif /// Check if the RTOS kernel is already started. /// \return 0 RTOS is not started, 1 RTOS is started. #if (osCMSIS < 0x20000U) int32_t osKernelRunning(void); #endif #if (defined(osFeature_SysTick) && (osFeature_SysTick != 0)) // System Timer available /// Get the RTOS kernel system timer counter. /// \return RTOS kernel system timer as 32-bit value #if (osCMSIS < 0x20000U) uint32_t osKernelSysTick (void); #else #define osKernelSysTick osKernelGetSysTimerCount #endif /// The RTOS kernel system timer frequency in Hz. /// \note Reflects the system timer setting and is typically defined in a configuration file. #if (osCMSIS < 0x20000U) #define osKernelSysTickFrequency 100000000 #endif /// Convert a microseconds value to a RTOS kernel system timer value. /// \param microsec time value in microseconds. /// \return time value normalized to the \ref osKernelSysTickFrequency #if (osCMSIS < 0x20000U) #define osKernelSysTickMicroSec(microsec) (((uint64_t)microsec * (osKernelSysTickFrequency)) / 1000000) #else #define osKernelSysTickMicroSec(microsec) (((uint64_t)microsec * osKernelGetSysTimerFreq()) / 1000000) #endif #endif // System Timer available // ==== Thread Management Functions ==== /// Create a Thread Definition with function, priority, and stack requirements. /// \param name name of the thread function. /// \param priority initial priority of the thread function. /// \param instances number of possible thread instances. /// \param stacksz stack size (in bytes) requirements for the thread function. /// \note CAN BE CHANGED: The parameters to \b osThreadDef shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #if defined (osObjectsExternal) // object is external #define osThreadDef(name, priority, instances, stacksz) \ extern const osThreadDef_t os_thread_def_##name #else // define the object #if (osCMSIS < 0x20000U) #define osThreadDef(name, priority, instances, stacksz) \ const osThreadDef_t os_thread_def_##name = \ { (name), (priority), (instances), (stacksz) } #else #define osThreadDef(name, priority, instances, stacksz) \ const osThreadDef_t os_thread_def_##name = \ { (name), \ { NULL, osThreadDetached, NULL, 0U, NULL, 8*((stacksz+7)/8), (priority), 0U, 0U } } #endif #endif /// Access a Thread definition. /// \param name name of the thread definition object. /// \note CAN BE CHANGED: The parameter to \b osThread shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #define osThread(name) \ &os_thread_def_##name /// Create a thread and add it to Active Threads and set it to state READY. /// \param[in] thread_def thread definition referenced with \ref osThread. /// \param[in] argument pointer that is passed to the thread function as start argument. /// \return thread ID for reference by other functions or NULL in case of error. osThreadId osThreadCreate (const osThreadDef_t *thread_def, void *argument); /// Return the thread ID of the current running thread. /// \return thread ID for reference by other functions or NULL in case of error. #if (osCMSIS < 0x20000U) osThreadId osThreadGetId (void); #endif /// Change priority of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. /// \param[in] priority new priority value for the thread function. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osThreadSetPriority (osThreadId thread_id, osPriority priority); #endif /// Get current priority of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. /// \return current priority value of the specified thread. #if (osCMSIS < 0x20000U) osPriority osThreadGetPriority (osThreadId thread_id); #endif /// Pass control to next thread that is in state \b READY. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osThreadYield (void); #endif /// Terminate execution of a thread. /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osThreadTerminate (osThreadId thread_id); #endif // ==== Signal Management ==== /// Set the specified Signal Flags of an active thread. /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. /// \param[in] signals specifies the signal flags of the thread that should be set. /// \return previous signal flags of the specified thread or 0x80000000 in case of incorrect parameters. int32_t osSignalSet (osThreadId thread_id, int32_t signals); /// Clear the specified Signal Flags of an active thread. /// \param[in] thread_id thread ID obtained by \ref osThreadCreate or \ref osThreadGetId. /// \param[in] signals specifies the signal flags of the thread that shall be cleared. /// \return previous signal flags of the specified thread or 0x80000000 in case of incorrect parameters or call from ISR. int32_t osSignalClear (osThreadId thread_id, int32_t signals); /// Wait for one or more Signal Flags to become signaled for the current \b RUNNING thread. /// \param[in] signals wait until all specified signal flags set or 0 for any single signal flag. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return event flag information or error code. osEvent osSignalWait (int32_t signals, uint32_t millisec); // ==== Generic Wait Functions ==== /// Wait for Timeout (Time Delay). /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue "time delay" value /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osDelay (uint32_t millisec); #endif #if (defined (osFeature_Wait) && (osFeature_Wait != 0)) // Generic Wait available /// Wait for Signal, Message, Mail, or Timeout. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out /// \return event that contains signal, message, or mail information or error code. osEvent osWait (uint32_t millisec); #endif // Generic Wait available // ==== Timer Management Functions ==== /// Define a Timer object. /// \param name name of the timer object. /// \param function name of the timer call back function. /// \note CAN BE CHANGED: The parameter to \b osTimerDef shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #if defined (osObjectsExternal) // object is external #define osTimerDef(name, function) \ extern const osTimerDef_t os_timer_def_##name #else // define the object #if (osCMSIS < 0x20000U) #define osTimerDef(name, function) \ const osTimerDef_t os_timer_def_##name = { (function) } #else #define osTimerDef(name, function) \ const osTimerDef_t os_timer_def_##name = \ { (function), { NULL, 0U, NULL, 0U } } #endif #endif /// Access a Timer definition. /// \param name name of the timer object. /// \note CAN BE CHANGED: The parameter to \b osTimer shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #define osTimer(name) \ &os_timer_def_##name /// Create and Initialize a timer. /// \param[in] timer_def timer object referenced with \ref osTimer. /// \param[in] type osTimerOnce for one-shot or osTimerPeriodic for periodic behavior. /// \param[in] argument argument to the timer call back function. /// \return timer ID for reference by other functions or NULL in case of error. osTimerId osTimerCreate (const osTimerDef_t *timer_def, os_timer_type type, void *argument); /// Start or restart a timer. /// \param[in] timer_id timer ID obtained by \ref osTimerCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue "time delay" value of the timer. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osTimerStart (osTimerId timer_id, uint32_t millisec); #endif /// Stop a timer. /// \param[in] timer_id timer ID obtained by \ref osTimerCreate. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osTimerStop (osTimerId timer_id); #endif /// Delete a timer. /// \param[in] timer_id timer ID obtained by \ref osTimerCreate. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osTimerDelete (osTimerId timer_id); #endif // ==== Mutex Management Functions ==== /// Define a Mutex. /// \param name name of the mutex object. /// \note CAN BE CHANGED: The parameter to \b osMutexDef shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #if defined (osObjectsExternal) // object is external #define osMutexDef(name) \ extern const osMutexDef_t os_mutex_def_##name #else // define the object #if (osCMSIS < 0x20000U) #define osMutexDef(name) \ const osMutexDef_t os_mutex_def_##name = { 0 } #else #define osMutexDef(name) \ const osMutexDef_t os_mutex_def_##name = \ { NULL, osMutexRecursive | osMutexPrioInherit | osMutexRobust, NULL, 0U } #endif #endif /// Access a Mutex definition. /// \param name name of the mutex object. /// \note CAN BE CHANGED: The parameter to \b osMutex shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #define osMutex(name) \ &os_mutex_def_##name /// Create and Initialize a Mutex object. /// \param[in] mutex_def mutex definition referenced with \ref osMutex. /// \return mutex ID for reference by other functions or NULL in case of error. osMutexId osMutexCreate (const osMutexDef_t *mutex_def); /// Wait until a Mutex becomes available. /// \param[in] mutex_id mutex ID obtained by \ref osMutexCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osMutexWait (osMutexId mutex_id, uint32_t millisec); #else #define osMutexWait osMutexAcquire #endif /// Release a Mutex that was obtained by \ref osMutexWait. /// \param[in] mutex_id mutex ID obtained by \ref osMutexCreate. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osMutexRelease (osMutexId mutex_id); #endif /// Delete a Mutex object. /// \param[in] mutex_id mutex ID obtained by \ref osMutexCreate. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osMutexDelete (osMutexId mutex_id); #endif // ==== Semaphore Management Functions ==== #if (defined (osFeature_Semaphore) && (osFeature_Semaphore != 0U)) // Semaphore available /// Define a Semaphore object. /// \param name name of the semaphore object. /// \note CAN BE CHANGED: The parameter to \b osSemaphoreDef shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #if defined (osObjectsExternal) // object is external #define osSemaphoreDef(name) \ extern const osSemaphoreDef_t os_semaphore_def_##name #else // define the object #if (osCMSIS < 0x20000U) #define osSemaphoreDef(name) \ const osSemaphoreDef_t os_semaphore_def_##name = { 0 } #else #define osSemaphoreDef(name) \ const osSemaphoreDef_t os_semaphore_def_##name = \ { NULL, 0U, NULL, 0U } #endif #endif /// Access a Semaphore definition. /// \param name name of the semaphore object. /// \note CAN BE CHANGED: The parameter to \b osSemaphore shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #define osSemaphore(name) \ &os_semaphore_def_##name /// Create and Initialize a Semaphore object. /// \param[in] semaphore_def semaphore definition referenced with \ref osSemaphore. /// \param[in] count maximum and initial number of available tokens. /// \return semaphore ID for reference by other functions or NULL in case of error. osSemaphoreId osSemaphoreCreate (const osSemaphoreDef_t *semaphore_def, int32_t count); /// Wait until a Semaphore token becomes available. /// \param[in] semaphore_id semaphore object referenced with \ref osSemaphoreCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return number of available tokens, or -1 in case of incorrect parameters. int32_t osSemaphoreWait (osSemaphoreId semaphore_id, uint32_t millisec); /// Release a Semaphore token. /// \param[in] semaphore_id semaphore object referenced with \ref osSemaphoreCreate. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osSemaphoreRelease (osSemaphoreId semaphore_id); #endif /// Delete a Semaphore object. /// \param[in] semaphore_id semaphore object referenced with \ref osSemaphoreCreate. /// \return status code that indicates the execution status of the function. #if (osCMSIS < 0x20000U) osStatus osSemaphoreDelete (osSemaphoreId semaphore_id); #endif #endif // Semaphore available // ==== Memory Pool Management Functions ==== #if (defined(osFeature_Pool) && (osFeature_Pool != 0)) // Memory Pool available /// \brief Define a Memory Pool. /// \param name name of the memory pool. /// \param no maximum number of blocks (objects) in the memory pool. /// \param type data type of a single block (object). /// \note CAN BE CHANGED: The parameter to \b osPoolDef shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #if defined (osObjectsExternal) // object is external #define osPoolDef(name, no, type) \ extern const osPoolDef_t os_pool_def_##name #else // define the object #if (osCMSIS < 0x20000U) #define osPoolDef(name, no, type) \ const osPoolDef_t os_pool_def_##name = \ { (no), sizeof(type), NULL } #else #define osPoolDef(name, no, type) \ const osPoolDef_t os_pool_def_##name = \ { (no), sizeof(type), { NULL, 0U, NULL, 0U, NULL, 0U } } #endif #endif /// \brief Access a Memory Pool definition. /// \param name name of the memory pool /// \note CAN BE CHANGED: The parameter to \b osPool shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #define osPool(name) \ &os_pool_def_##name /// Create and Initialize a Memory Pool object. /// \param[in] pool_def memory pool definition referenced with \ref osPool. /// \return memory pool ID for reference by other functions or NULL in case of error. osPoolId osPoolCreate (const osPoolDef_t *pool_def); /// Allocate a memory block from a Memory Pool. /// \param[in] pool_id memory pool ID obtain referenced with \ref osPoolCreate. /// \return address of the allocated memory block or NULL in case of no memory available. void *osPoolAlloc (osPoolId pool_id); /// Allocate a memory block from a Memory Pool and set memory block to zero. /// \param[in] pool_id memory pool ID obtain referenced with \ref osPoolCreate. /// \return address of the allocated memory block or NULL in case of no memory available. void *osPoolCAlloc (osPoolId pool_id); /// Return an allocated memory block back to a Memory Pool. /// \param[in] pool_id memory pool ID obtain referenced with \ref osPoolCreate. /// \param[in] block address of the allocated memory block to be returned to the memory pool. /// \return status code that indicates the execution status of the function. osStatus osPoolFree (osPoolId pool_id, void *block); #endif // Memory Pool available // ==== Message Queue Management Functions ==== #if (defined(osFeature_MessageQ) && (osFeature_MessageQ != 0)) // Message Queue available /// \brief Create a Message Queue Definition. /// \param name name of the queue. /// \param queue_sz maximum number of messages in the queue. /// \param type data type of a single message element (for debugger). /// \note CAN BE CHANGED: The parameter to \b osMessageQDef shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #if defined (osObjectsExternal) // object is external #define osMessageQDef(name, queue_sz, type) \ extern const osMessageQDef_t os_messageQ_def_##name #else // define the object #if (osCMSIS < 0x20000U) #define osMessageQDef(name, queue_sz, type) \ const osMessageQDef_t os_messageQ_def_##name = \ { (queue_sz), NULL } #else #define osMessageQDef(name, queue_sz, type) \ const osMessageQDef_t os_messageQ_def_##name = \ { (queue_sz), { NULL, 0U, NULL, 0U, NULL, 0U } } #endif #endif /// \brief Access a Message Queue Definition. /// \param name name of the queue /// \note CAN BE CHANGED: The parameter to \b osMessageQ shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #define osMessageQ(name) \ &os_messageQ_def_##name /// Create and Initialize a Message Queue object. /// \param[in] queue_def message queue definition referenced with \ref osMessageQ. /// \param[in] thread_id thread ID (obtained by \ref osThreadCreate or \ref osThreadGetId) or NULL. /// \return message queue ID for reference by other functions or NULL in case of error. osMessageQId osMessageCreate (const osMessageQDef_t *queue_def, osThreadId thread_id); /// Put a Message to a Queue. /// \param[in] queue_id message queue ID obtained with \ref osMessageCreate. /// \param[in] info message information. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return status code that indicates the execution status of the function. osStatus osMessagePut (osMessageQId queue_id, uint32_t info, uint32_t millisec); /// Get a Message from a Queue or timeout if Queue is empty. /// \param[in] queue_id message queue ID obtained with \ref osMessageCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return event information that includes status code. osEvent osMessageGet (osMessageQId queue_id, uint32_t millisec); #endif // Message Queue available // ==== Mail Queue Management Functions ==== #if (defined(osFeature_MailQ) && (osFeature_MailQ != 0)) // Mail Queue available /// \brief Create a Mail Queue Definition. /// \param name name of the queue. /// \param queue_sz maximum number of mails in the queue. /// \param type data type of a single mail element. /// \note CAN BE CHANGED: The parameter to \b osMailQDef shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #if defined (osObjectsExternal) // object is external #define osMailQDef(name, queue_sz, type) \ extern const osMailQDef_t os_mailQ_def_##name #else // define the object #if (osCMSIS < 0x20000U) #define osMailQDef(name, queue_sz, type) \ const osMailQDef_t os_mailQ_def_##name = \ { (queue_sz), sizeof(type), NULL } #else #define osMailQDef(name, queue_sz, type) \ static void *os_mail_p_##name[2]; \ const osMailQDef_t os_mailQ_def_##name = \ { (queue_sz), sizeof(type), (&os_mail_p_##name), \ { NULL, 0U, NULL, 0U, NULL, 0U }, \ { NULL, 0U, NULL, 0U, NULL, 0U } } #endif #endif /// \brief Access a Mail Queue Definition. /// \param name name of the queue /// \note CAN BE CHANGED: The parameter to \b osMailQ shall be consistent but the /// macro body is implementation specific in every CMSIS-RTOS. #define osMailQ(name) \ &os_mailQ_def_##name /// Create and Initialize a Mail Queue object. /// \param[in] queue_def mail queue definition referenced with \ref osMailQ. /// \param[in] thread_id thread ID (obtained by \ref osThreadCreate or \ref osThreadGetId) or NULL. /// \return mail queue ID for reference by other functions or NULL in case of error. osMailQId osMailCreate (const osMailQDef_t *queue_def, osThreadId thread_id); /// Allocate a memory block for mail from a mail memory pool. /// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out /// \return pointer to memory block that can be filled with mail or NULL in case of error. void *osMailAlloc (osMailQId queue_id, uint32_t millisec); /// Allocate a memory block for mail from a mail memory pool and set memory block to zero. /// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out /// \return pointer to memory block that can be filled with mail or NULL in case of error. void *osMailCAlloc (osMailQId queue_id, uint32_t millisec); /// Put a Mail into a Queue. /// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. /// \param[in] mail pointer to memory with mail to put into a queue. /// \return status code that indicates the execution status of the function. osStatus osMailPut (osMailQId queue_id, const void *mail); /// Get a Mail from a Queue or timeout if Queue is empty. /// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. /// \param[in] millisec \ref CMSIS_RTOS_TimeOutValue or 0 in case of no time-out. /// \return event information that includes status code. osEvent osMailGet (osMailQId queue_id, uint32_t millisec); /// Free a memory block by returning it to a mail memory pool. /// \param[in] queue_id mail queue ID obtained with \ref osMailCreate. /// \param[in] mail pointer to memory block that was obtained with \ref osMailGet. /// \return status code that indicates the execution status of the function. osStatus osMailFree (osMailQId queue_id, void *mail); #endif // Mail Queue available #ifdef __cplusplus } #endif #endif // CMSIS_OS_H_
YifuLiu/AliOS-Things
components/cmsis/RTOS2/Template/cmsis_os.h
C
apache-2.0
40,078
/* * Copyright (c) 2013-2017 ARM Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * ---------------------------------------------------------------------- * * $Date: 10. January 2017 * $Revision: V1.2 * * Project: CMSIS-RTOS API V1 * Title: cmsis_os_v1.c V1 module file *---------------------------------------------------------------------------*/ #include <string.h> #include "cmsis_os.h" #if (osCMSIS >= 0x20000U) // Thread osThreadId osThreadCreate (const osThreadDef_t *thread_def, void *argument) { if (thread_def == NULL) { return (osThreadId)NULL; } return osThreadNew((osThreadFunc_t)thread_def->pthread, argument, &thread_def->attr); } // Signals #define SignalMask ((1U<<osFeature_Signals)-1U) int32_t osSignalSet (osThreadId thread_id, int32_t signals) { uint32_t flags; flags = osThreadFlagsSet(thread_id, (uint32_t)signals); if ((flags & 0x80000000U) != 0U) { return ((int32_t)0x80000000U); } return ((int32_t)(flags & ~((uint32_t)signals))); } int32_t osSignalClear (osThreadId thread_id, int32_t signals) { uint32_t flags; if (thread_id != osThreadGetId()) { return ((int32_t)0x80000000U); } flags = osThreadFlagsClear((uint32_t)signals); if ((flags & 0x80000000U) != 0U) { return ((int32_t)0x80000000U); } return ((int32_t)flags); } osEvent osSignalWait (int32_t signals, uint32_t millisec) { osEvent event; uint32_t flags; if (signals != 0) { flags = osThreadFlagsWait((uint32_t)signals, osFlagsWaitAll, millisec); } else { flags = osThreadFlagsWait(SignalMask, osFlagsWaitAny, millisec); } if ((flags > 0U) && (flags < 0x80000000U)) { event.status = osEventSignal; event.value.signals = (int32_t)flags; } else { switch ((int32_t)flags) { case osErrorResource: event.status = osOK; break; case osErrorTimeout: event.status = osEventTimeout; break; case osErrorParameter: event.status = osErrorValue; break; default: event.status = (osStatus)flags; break; } } return event; } // Timer osTimerId osTimerCreate (const osTimerDef_t *timer_def, os_timer_type type, void *argument) { if (timer_def == NULL) { return (osTimerId)NULL; } return osTimerNew((osTimerFunc_t)timer_def->ptimer, type, argument, &timer_def->attr); } // Mutex osMutexId osMutexCreate (const osMutexDef_t *mutex_def) { if (mutex_def == NULL) { return (osMutexId)NULL; } return osMutexNew(mutex_def); } // Semaphore #if (defined (osFeature_Semaphore) && (osFeature_Semaphore != 0U)) osSemaphoreId osSemaphoreCreate (const osSemaphoreDef_t *semaphore_def, int32_t count) { if (semaphore_def == NULL) { return (osSemaphoreId)NULL; } return osSemaphoreNew((uint32_t)count, (uint32_t)count, semaphore_def); } int32_t osSemaphoreWait (osSemaphoreId semaphore_id, uint32_t millisec) { osStatus_t status; uint32_t count; status = osSemaphoreAcquire(semaphore_id, millisec); switch (status) { case osOK: count = osSemaphoreGetCount(semaphore_id); return ((int32_t)count + 1); case osErrorResource: case osErrorTimeout: return 0; default: break; } return -1; } #endif // Semaphore // Memory Pool #if (defined(osFeature_Pool) && (osFeature_Pool != 0)) osPoolId osPoolCreate (const osPoolDef_t *pool_def) { if (pool_def == NULL) { return (osPoolId)NULL; } return ((osPoolId)(osMemoryPoolNew(pool_def->pool_sz, pool_def->item_sz, &pool_def->attr))); } void *osPoolAlloc (osPoolId pool_id) { return osMemoryPoolAlloc((osMemoryPoolId_t)pool_id, 0U); } void *osPoolCAlloc (osPoolId pool_id) { void *block; uint32_t block_size; block_size = osMemoryPoolGetBlockSize((osMemoryPoolId_t)pool_id); if (block_size == 0U) { return NULL; } block = osMemoryPoolAlloc((osMemoryPoolId_t)pool_id, 0U); if (block != NULL) { memset(block, 0, block_size); } return block; } osStatus osPoolFree (osPoolId pool_id, void *block) { return osMemoryPoolFree((osMemoryPoolId_t)pool_id, block); } #endif // Memory Pool // Message Queue #if (defined(osFeature_MessageQ) && (osFeature_MessageQ != 0)) osMessageQId osMessageCreate (const osMessageQDef_t *queue_def, osThreadId thread_id) { (void)thread_id; if (queue_def == NULL) { return (osMessageQId)NULL; } return ((osMessageQId)(osMessageQueueNew(queue_def->queue_sz, sizeof(uint32_t), &queue_def->attr))); } osStatus osMessagePut (osMessageQId queue_id, uint32_t info, uint32_t millisec) { return osMessageQueuePut((osMessageQueueId_t)queue_id, &info, 0U, millisec); } osEvent osMessageGet (osMessageQId queue_id, uint32_t millisec) { osStatus_t status; osEvent event; uint32_t message; status = osMessageQueueGet((osMessageQueueId_t)queue_id, &message, NULL, millisec); switch (status) { case osOK: event.status = osEventMessage; event.value.v = message; break; case osErrorResource: event.status = osOK; break; case osErrorTimeout: event.status = osEventTimeout; break; default: event.status = status; break; } return event; } #endif // Message Queue // Mail Queue #if (defined(osFeature_MailQ) && (osFeature_MailQ != 0)) typedef struct os_mail_queue_s { osMemoryPoolId_t mp_id; osMessageQueueId_t mq_id; } os_mail_queue_t; osMailQId osMailCreate (const osMailQDef_t *queue_def, osThreadId thread_id) { os_mail_queue_t *ptr; (void)thread_id; if (queue_def == NULL) { return (osMailQId)NULL; } ptr = queue_def->mail; if (ptr == NULL) { return (osMailQId)NULL; } ptr->mp_id = osMemoryPoolNew (queue_def->queue_sz, queue_def->item_sz, &queue_def->mp_attr); ptr->mq_id = osMessageQueueNew(queue_def->queue_sz, sizeof(void *), &queue_def->mq_attr); if ((ptr->mp_id == (osMemoryPoolId_t)NULL) || (ptr->mq_id == (osMessageQueueId_t)NULL)) { if (ptr->mp_id != (osMemoryPoolId_t)NULL) { osMemoryPoolDelete(ptr->mp_id); } if (ptr->mq_id != (osMessageQueueId_t)NULL) { osMessageQueueDelete(ptr->mq_id); } return (osMailQId)NULL; } return (osMailQId)ptr; } void *osMailAlloc (osMailQId queue_id, uint32_t millisec) { os_mail_queue_t *ptr = (os_mail_queue_t *)queue_id; if (ptr == NULL) { return NULL; } return osMemoryPoolAlloc(ptr->mp_id, millisec); } void *osMailCAlloc (osMailQId queue_id, uint32_t millisec) { os_mail_queue_t *ptr = (os_mail_queue_t *)queue_id; void *block; uint32_t block_size; if (ptr == NULL) { return NULL; } block_size = osMemoryPoolGetBlockSize(ptr->mp_id); if (block_size == 0U) { return NULL; } block = osMemoryPoolAlloc(ptr->mp_id, millisec); if (block != NULL) { memset(block, 0, block_size); } return block; } osStatus osMailPut (osMailQId queue_id, const void *mail) { os_mail_queue_t *ptr = (os_mail_queue_t *)queue_id; if (ptr == NULL) { return osErrorParameter; } if (mail == NULL) { return osErrorValue; } return osMessageQueuePut(ptr->mq_id, &mail, 0U, 0U); } osEvent osMailGet (osMailQId queue_id, uint32_t millisec) { os_mail_queue_t *ptr = (os_mail_queue_t *)queue_id; osStatus_t status; osEvent event; void *mail; if (ptr == NULL) { event.status = osErrorParameter; return event; } status = osMessageQueueGet(ptr->mq_id, &mail, NULL, millisec); switch (status) { case osOK: event.status = osEventMail; event.value.p = mail; break; case osErrorResource: event.status = osOK; break; case osErrorTimeout: event.status = osEventTimeout; break; default: event.status = status; break; } return event; } osStatus osMailFree (osMailQId queue_id, void *mail) { os_mail_queue_t *ptr = (os_mail_queue_t *)queue_id; if (ptr == NULL) { return osErrorParameter; } if (mail == NULL) { return osErrorValue; } return osMemoryPoolFree(ptr->mp_id, mail); } #endif // Mail Queue #endif // osCMSIS
YifuLiu/AliOS-Things
components/cmsis/RTOS2/Template/cmsis_os1.c
C
apache-2.0
8,700
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Data Structures</title> <title>CMSIS-Core (Cortex-M): Data Structures</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li> <li><a href="functions.html"><span>Data&#160;Fields</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('annotated.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="headertitle"> <div class="title">Data Structures</div> </div> </div><!--header--> <div class="contents"> <div class="textblock">Here are the data structures with brief descriptions:</div><div class="directory"> <table class="directory"> <tr id="row_0_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="unionAPSR__Type.html" target="_self">APSR_Type</a></td><td class="desc">Union type to access the Application Program Status Register (APSR) </td></tr> <tr id="row_1_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structARM__MPU__Region__t.html" target="_self">ARM_MPU_Region_t</a></td><td class="desc">Setup information of a single MPU Region </td></tr> <tr id="row_2_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="unionCONTROL__Type.html" target="_self">CONTROL_Type</a></td><td class="desc">Union type to access the Control Registers (CONTROL) </td></tr> <tr id="row_3_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structCoreDebug__Type.html" target="_self">CoreDebug_Type</a></td><td class="desc">Structure type to access the Core Debug Register (CoreDebug) </td></tr> <tr id="row_4_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structDWT__Type.html" target="_self">DWT_Type</a></td><td class="desc">Structure type to access the Data Watchpoint and Trace Register (DWT) </td></tr> <tr id="row_5_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structFPU__Type.html" target="_self">FPU_Type</a></td><td class="desc">Structure type to access the Floating Point Unit (FPU) </td></tr> <tr id="row_6_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="unionIPSR__Type.html" target="_self">IPSR_Type</a></td><td class="desc">Union type to access the Interrupt Program Status Register (IPSR) </td></tr> <tr id="row_7_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structITM__Type.html" target="_self">ITM_Type</a></td><td class="desc">Structure type to access the Instrumentation Trace Macrocell Register (ITM) </td></tr> <tr id="row_8_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structMPU__Type.html" target="_self">MPU_Type</a></td><td class="desc">Structure type to access the Memory Protection Unit (MPU) </td></tr> <tr id="row_9_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structNVIC__Type.html" target="_self">NVIC_Type</a></td><td class="desc">Structure type to access the Nested Vectored Interrupt Controller (NVIC) </td></tr> <tr id="row_10_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structSCB__Type.html" target="_self">SCB_Type</a></td><td class="desc">Structure type to access the System Control Block (SCB) </td></tr> <tr id="row_11_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structSCnSCB__Type.html" target="_self">SCnSCB_Type</a></td><td class="desc">Structure type to access the System Control and ID Register not in the SCB </td></tr> <tr id="row_12_" class="even"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structSysTick__Type.html" target="_self">SysTick_Type</a></td><td class="desc">Structure type to access the System Timer (SysTick) </td></tr> <tr id="row_13_"><td class="entry"><img src="ftv2node.png" alt="o" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="structTPI__Type.html" target="_self">TPI_Type</a></td><td class="desc">Structure type to access the Trace Port Interface Register (TPI) </td></tr> <tr id="row_14_" class="even"><td class="entry"><img src="ftv2lastnode.png" alt="\" width="16" height="22" /><img src="ftv2cl.png" alt="C" width="24" height="22" /><a class="el" href="unionxPSR__Type.html" target="_self">xPSR_Type</a></td><td class="desc">Union type to access the Special-Purpose Program Status Registers (xPSR) </td></tr> </table> </div><!-- directory --> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/annotated.html
HTML
apache-2.0
11,185
var annotated = [ [ "APSR_Type", "unionAPSR__Type.html", "unionAPSR__Type" ], [ "ARM_MPU_Region_t", "structARM__MPU__Region__t.html", "structARM__MPU__Region__t" ], [ "CONTROL_Type", "unionCONTROL__Type.html", "unionCONTROL__Type" ], [ "CoreDebug_Type", "structCoreDebug__Type.html", "structCoreDebug__Type" ], [ "DWT_Type", "structDWT__Type.html", "structDWT__Type" ], [ "FPU_Type", "structFPU__Type.html", "structFPU__Type" ], [ "IPSR_Type", "unionIPSR__Type.html", "unionIPSR__Type" ], [ "ITM_Type", "structITM__Type.html", "structITM__Type" ], [ "MPU_Type", "structMPU__Type.html", "structMPU__Type" ], [ "NVIC_Type", "structNVIC__Type.html", "structNVIC__Type" ], [ "SCB_Type", "structSCB__Type.html", "structSCB__Type" ], [ "SCnSCB_Type", "structSCnSCB__Type.html", "structSCnSCB__Type" ], [ "SysTick_Type", "structSysTick__Type.html", "structSysTick__Type" ], [ "TPI_Type", "structTPI__Type.html", "structTPI__Type" ], [ "xPSR_Type", "unionxPSR__Type.html", "unionxPSR__Type" ] ];
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/annotated.js
JavaScript
apache-2.0
1,047
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Data Structure Index</title> <title>CMSIS-Core (Cortex-M): Data Structure Index</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li> <li><a href="functions.html"><span>Data&#160;Fields</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('classes.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="headertitle"> <div class="title">Data Structure Index</div> </div> </div><!--header--> <div class="contents"> <div class="qindex"><a class="qindex" href="#letter_A">A</a>&#160;|&#160;<a class="qindex" href="#letter_C">C</a>&#160;|&#160;<a class="qindex" href="#letter_D">D</a>&#160;|&#160;<a class="qindex" href="#letter_F">F</a>&#160;|&#160;<a class="qindex" href="#letter_I">I</a>&#160;|&#160;<a class="qindex" href="#letter_M">M</a>&#160;|&#160;<a class="qindex" href="#letter_N">N</a>&#160;|&#160;<a class="qindex" href="#letter_S">S</a>&#160;|&#160;<a class="qindex" href="#letter_T">T</a>&#160;|&#160;<a class="qindex" href="#letter_X">X</a></div> <table style="margin: 10px; white-space: nowrap;" align="center" width="95%" border="0" cellspacing="0" cellpadding="0"> <tr><td rowspan="2" valign="bottom"><a name="letter_A"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;A&#160;&#160;</div></td></tr></table> </td><td valign="top"><a class="el" href="structCoreDebug__Type.html">CoreDebug_Type</a>&#160;&#160;&#160;</td><td rowspan="2" valign="bottom"><a name="letter_I"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;I&#160;&#160;</div></td></tr></table> </td><td rowspan="2" valign="bottom"><a name="letter_N"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;N&#160;&#160;</div></td></tr></table> </td><td valign="top"><a class="el" href="structSysTick__Type.html">SysTick_Type</a>&#160;&#160;&#160;</td></tr> <tr><td rowspan="2" valign="bottom"><a name="letter_D"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;D&#160;&#160;</div></td></tr></table> </td><td rowspan="2" valign="bottom"><a name="letter_T"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;T&#160;&#160;</div></td></tr></table> </td></tr> <tr><td valign="top"><a class="el" href="unionAPSR__Type.html">APSR_Type</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="unionIPSR__Type.html">IPSR_Type</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="structNVIC__Type.html">NVIC_Type</a>&#160;&#160;&#160;</td></tr> <tr><td valign="top"><a class="el" href="structARM__MPU__Region__t.html">ARM_MPU_Region_t</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="structDWT__Type.html">DWT_Type</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="structITM__Type.html">ITM_Type</a>&#160;&#160;&#160;</td><td rowspan="2" valign="bottom"><a name="letter_S"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;S&#160;&#160;</div></td></tr></table> </td><td valign="top"><a class="el" href="structTPI__Type.html">TPI_Type</a>&#160;&#160;&#160;</td></tr> <tr><td rowspan="2" valign="bottom"><a name="letter_C"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;C&#160;&#160;</div></td></tr></table> </td><td rowspan="2" valign="bottom"><a name="letter_F"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;F&#160;&#160;</div></td></tr></table> </td><td rowspan="2" valign="bottom"><a name="letter_M"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;M&#160;&#160;</div></td></tr></table> </td><td rowspan="2" valign="bottom"><a name="letter_x"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;x&#160;&#160;</div></td></tr></table> </td></tr> <tr><td valign="top"><a class="el" href="structSCB__Type.html">SCB_Type</a>&#160;&#160;&#160;</td></tr> <tr><td valign="top"><a class="el" href="unionCONTROL__Type.html">CONTROL_Type</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="structFPU__Type.html">FPU_Type</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="structMPU__Type.html">MPU_Type</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="structSCnSCB__Type.html">SCnSCB_Type</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="unionxPSR__Type.html">xPSR_Type</a>&#160;&#160;&#160;</td></tr> <tr><td></td><td></td><td></td><td></td><td></td></tr> </table> <div class="qindex"><a class="qindex" href="#letter_A">A</a>&#160;|&#160;<a class="qindex" href="#letter_C">C</a>&#160;|&#160;<a class="qindex" href="#letter_D">D</a>&#160;|&#160;<a class="qindex" href="#letter_F">F</a>&#160;|&#160;<a class="qindex" href="#letter_I">I</a>&#160;|&#160;<a class="qindex" href="#letter_M">M</a>&#160;|&#160;<a class="qindex" href="#letter_N">N</a>&#160;|&#160;<a class="qindex" href="#letter_S">S</a>&#160;|&#160;<a class="qindex" href="#letter_T">T</a>&#160;|&#160;<a class="qindex" href="#letter_X">X</a></div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/classes.html
HTML
apache-2.0
10,834
/* The standard CSS for doxygen */ body, table, div, p, dl { font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif; font-size: 13px; line-height: 1.3; } /* CMSIS styles */ .style1 { text-align: center; } .style2 { color: #0000FF; font-weight: normal; } .style3 { text-align: left; } .style4 { color: #008000; } .style5 { color: #0000FF; } .style6 { color: #000000; font-style:italic; } .mand { color: #0000FF; } .opt { color: #008000; } .cond { color: #990000; } .choice { background-color:#F7F9D0; } .seq { background-color:#C9DECB; } .group1 { background-color:#F8F1F1; } .group2 { background-color:#DCEDEA; } ul ul { list-style-type: disc; } ul ul ul { list-style-type: disc; } ul.hierarchy { color: green; } em { color: #000000; font-style:italic; } /* CMSIS Tables */ table.cmtab1 { padding: 4px; border-collapse: collapse; border: 1px solid #A3B4D7; text-align: justify; width:70%; } th.cmtab1 { background: #EBEFF6; font-weight: bold; height: 28px; } td.cmtab1 { padding:1px; text-align: left; } table.cmtable { border-collapse:collapse; text-align: justify; } table.cmtable td, table.cmtable th { border: 1px solid #2D4068; padding: 3px 7px 2px; } table.cmtable th { background-color: #EBEFF6; font-size: 110%; padding-bottom: 4px; padding-top: 5px; text-align:left; } td.MonoTxt { font-family:"Arial monospaced for SAP"; } td.XML-Token { azimuth: 180; font-style:italic; color:Maroon; z-index:20; } span.XML-Token { azimuth: 180; font-style:italic; color:Maroon; z-index:20; } span.h2 { font-size: 120%; font-weight: bold; } div.new { background-color:#ccffcc; /* light green */ } div.mod { background-color:#ffe6cc; /* light amber */ } div.del { background-color:#ffcccc; /* light red */ } /* @group Heading Levels */ h1 { font-size: 150%; } .title { font-size: 150%; font-weight: bold; margin: 10px 2px; } h2 { font-size: 120%; } h3 { font-size: 100%; } h1, h2, h3, h4, h5, h6 { -webkit-transition: text-shadow 0.5s linear; -moz-transition: text-shadow 0.5s linear; -ms-transition: text-shadow 0.5s linear; -o-transition: text-shadow 0.5s linear; transition: text-shadow 0.5s linear; margin-right: 15px; } h1.glow, h2.glow, h3.glow, h4.glow, h5.glow, h6.glow { text-shadow: 0 0 15px cyan; } dt { font-weight: bold; } div.multicol { -moz-column-gap: 1em; -webkit-column-gap: 1em; -moz-column-count: 3; -webkit-column-count: 3; } p.startli, p.startdd, p.starttd { margin-top: 2px; } p.endli { margin-bottom: 0px; } p.enddd { margin-bottom: 4px; } p.endtd { margin-bottom: 2px; } /* @end */ caption { font-weight: bold; } span.legend { font-size: 70%; text-align: center; } h3.version { font-size: 90%; text-align: center; } div.qindex, div.navtab{ background-color: #EBEFF6; border: 1px solid #A2B4D8; text-align: center; } div.qindex, div.navpath { width: 100%; line-height: 140%; } div.navtab { margin-right: 15px; } /* @group Link Styling */ a { color: #3A568E; font-weight: normal; text-decoration: none; } .contents a:visited { color: #4464A5; } a:hover { text-decoration: underline; } a.qindex { font-weight: bold; } a.qindexHL { font-weight: bold; background-color: #9AAED5; color: #ffffff; border: 1px double #849CCC; } .contents a.qindexHL:visited { color: #ffffff; } a.el { font-weight: bold; } a.elRef { } a.code, a.code:visited { color: #4665A2; } a.codeRef, a.codeRef:visited { color: #4665A2; } /* @end */ dl.el { margin-left: -1cm; } pre.fragment { border: 1px solid #C4CFE5; background-color: #FBFCFD; padding: 4px 6px; margin: 4px 8px 4px 2px; overflow: auto; word-wrap: break-word; font-size: 9pt; line-height: 125%; font-family: monospace, fixed; font-size: 105%; } div.fragment { padding: 4px; margin: 4px; background-color: #FBFCFD; border: 1px solid #C3CFE6; } div.line { font-family: monospace, fixed; font-size: 13px; line-height: 1.0; text-wrap: unrestricted; white-space: -moz-pre-wrap; /* Moz */ white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ white-space: pre-wrap; /* CSS3 */ word-wrap: break-word; /* IE 5.5+ */ text-indent: -53px; padding-left: 53px; padding-bottom: 0px; margin: 0px; } span.lineno { padding-right: 4px; text-align: right; border-right: 2px solid #0F0; background-color: #E8E8E8; white-space: pre; } span.lineno a { background-color: #D8D8D8; } span.lineno a:hover { background-color: #C8C8C8; } div.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px; padding: 0.2em; border: solid thin #333; border-radius: 0.5em; -webkit-border-radius: .5em; -moz-border-radius: .5em; box-shadow: 2px 2px 3px #999; -webkit-box-shadow: 2px 2px 3px #999; -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#000),color-stop(0.3, #444)); background-image: -moz-linear-gradient(center top, #eee 0%, #444 40%, #000); } div.groupHeader { margin-left: 16px; margin-top: 12px; font-weight: bold; } div.groupText { margin-left: 16px; font-style: italic; } body { background-color: white; color: black; margin: 0; } div.contents { margin-top: 10px; margin-left: 12px; margin-right: 8px; } td.indexkey { background-color: #EBEFF6; font-weight: bold; border: 1px solid #C3CFE6; margin: 2px 0px 2px 0; padding: 2px 10px; white-space: nowrap; vertical-align: top; } td.indexvalue { background-color: #EBEFF6; border: 1px solid #C3CFE6; padding: 2px 10px; margin: 2px 0px; } tr.memlist { background-color: #EDF1F7; } p.formulaDsp { text-align: center; } img.formulaDsp { } img.formulaInl { vertical-align: middle; } div.center { text-align: center; margin-top: 0px; margin-bottom: 0px; padding: 0px; } div.center img { border: 0px; } address.footer { text-align: right; padding-right: 12px; } img.footer { border: 0px; vertical-align: middle; } /* @group Code Colorization */ span.keyword { color: #008000 } span.keywordtype { color: #604020 } span.keywordflow { color: #e08000 } span.comment { color: #800000 } span.preprocessor { color: #806020 } span.stringliteral { color: #002080 } span.charliteral { color: #008080 } span.vhdldigit { color: #ff00ff } span.vhdlchar { color: #000000 } span.vhdlkeyword { color: #700070 } span.vhdllogic { color: #ff0000 } blockquote { background-color: #F7F8FB; border-left: 2px solid #9AAED5; margin: 0 24px 0 4px; padding: 0 12px 0 16px; } /* @end */ /* .search { color: #003399; font-weight: bold; } form.search { margin-bottom: 0px; margin-top: 0px; } input.search { font-size: 75%; color: #000080; font-weight: normal; background-color: #e8eef2; } */ td.tiny { font-size: 75%; } .dirtab { padding: 4px; border-collapse: collapse; border: 1px solid #A2B4D8; } th.dirtab { background: #EBEFF6; font-weight: bold; } hr { height: 0px; border: none; border-top: 1px solid #4769AD; } hr.footer { height: 1px; } /* @group Member Descriptions */ table.memberdecls { border-spacing: 0px; padding: 0px; } .memberdecls td { -webkit-transition-property: background-color, box-shadow; -webkit-transition-duration: 0.5s; -moz-transition-property: background-color, box-shadow; -moz-transition-duration: 0.5s; -ms-transition-property: background-color, box-shadow; -ms-transition-duration: 0.5s; -o-transition-property: background-color, box-shadow; -o-transition-duration: 0.5s; transition-property: background-color, box-shadow; transition-duration: 0.5s; } .memberdecls td.glow { background-color: cyan; box-shadow: 0 0 15px cyan; } .mdescLeft, .mdescRight, .memItemLeft, .memItemRight, .memTemplItemLeft, .memTemplItemRight, .memTemplParams { background-color: #F9FAFC; border: none; margin: 4px; padding: 1px 0 0 8px; } .mdescLeft, .mdescRight { padding: 0px 8px 4px 8px; color: #555; } .memItemLeft, .memItemRight, .memTemplParams { border-top: 1px solid #C3CFE6; } .memItemLeft, .memTemplItemLeft { white-space: nowrap; } .memItemRight { width: 100%; } .memTemplParams { color: #4464A5; white-space: nowrap; } /* @end */ /* @group Member Details */ /* Styles for detailed member documentation */ .memtemplate { font-size: 80%; color: #4464A5; font-weight: normal; margin-left: 9px; } .memnav { background-color: #EBEFF6; border: 1px solid #A2B4D8; text-align: center; margin: 2px; margin-right: 15px; padding: 2px; } .mempage { width: 100%; } .memitem { padding: 0; margin-bottom: 10px; margin-right: 5px; -webkit-transition: box-shadow 0.5s linear; -moz-transition: box-shadow 0.5s linear; -ms-transition: box-shadow 0.5s linear; -o-transition: box-shadow 0.5s linear; transition: box-shadow 0.5s linear; } .memitem.glow { box-shadow: 0 0 15px cyan; } .memname { font-weight: bold; margin-left: 6px; } .memname td { vertical-align: bottom; } .memproto, dl.reflist dt { border-top: 1px solid #A7B8DA; border-left: 1px solid #A7B8DA; border-right: 1px solid #A7B8DA; padding: 6px 0px 6px 0px; color: #233456; font-weight: bold; text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); background-image:url('nav_f.png'); background-repeat:repeat-x; background-color: #E2E7F3; /* opera specific markup */ box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); border-top-right-radius: 4px; border-top-left-radius: 4px; /* firefox specific markup */ -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; -moz-border-radius-topright: 4px; -moz-border-radius-topleft: 4px; /* webkit specific markup */ -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); -webkit-border-top-right-radius: 4px; -webkit-border-top-left-radius: 4px; } .memdoc, dl.reflist dd { border-bottom: 1px solid #A7B8DA; border-left: 1px solid #A7B8DA; border-right: 1px solid #A7B8DA; padding: 6px 10px 2px 10px; background-color: #FBFCFD; border-top-width: 0; background-image:url('nav_g.png'); background-repeat:repeat-x; background-color: #FFFFFF; /* opera specific markup */ border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); /* firefox specific markup */ -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; /* webkit specific markup */ -webkit-border-bottom-left-radius: 4px; -webkit-border-bottom-right-radius: 4px; -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); } dl.reflist dt { padding: 5px; } dl.reflist dd { margin: 0px 0px 10px 0px; padding: 5px; } .paramkey { text-align: right; } .paramtype { white-space: nowrap; } .paramname { color: #602020; white-space: nowrap; } .paramname em { font-style: normal; } .params, .retval, .exception, .tparams { margin-left: 0px; padding-left: 0px; } .params .paramname, .retval .paramname { font-weight: bold; vertical-align: top; } .params .paramtype { font-style: italic; vertical-align: top; } .params .paramdir { font-family: "courier new",courier,monospace; vertical-align: top; } table.mlabels { border-spacing: 0px; } td.mlabels-left { width: 100%; padding: 0px; } td.mlabels-right { vertical-align: bottom; padding: 0px; white-space: nowrap; } span.mlabels { margin-left: 8px; } span.mlabel { background-color: #708CC4; border-top:1px solid #5072B7; border-left:1px solid #5072B7; border-right:1px solid #C3CFE6; border-bottom:1px solid #C3CFE6; text-shadow: none; color: white; margin-right: 4px; padding: 2px 3px; border-radius: 3px; font-size: 7pt; white-space: nowrap; } /* @end */ /* these are for tree view when not used as main index */ div.directory { margin: 10px 0px; border-top: 1px solid #A8B8D9; border-bottom: 1px solid #A8B8D9; width: 100%; } .directory table { border-collapse:collapse; } .directory td { margin: 0px; padding: 0px; vertical-align: top; } .directory td.entry { white-space: nowrap; padding-right: 6px; } .directory td.entry a { outline:none; } .directory td.desc { width: 100%; padding-left: 6px; padding-right: 6px; border-left: 1px solid rgba(0,0,0,0.05); } .directory tr.even { padding-left: 6px; background-color: #F7F8FB; } .directory img { vertical-align: -30%; } .directory .levels { white-space: nowrap; width: 100%; text-align: right; font-size: 9pt; } .directory .levels span { cursor: pointer; padding-left: 2px; padding-right: 2px; color: #3A568E; } div.dynheader { margin-top: 8px; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } address { font-style: normal; color: #293C63; } table.doxtable { border-collapse:collapse; margin-top: 4px; margin-bottom: 4px; } table.doxtable td, table.doxtable th { border: 1px solid #2B4069; padding: 3px 7px 2px; } table.doxtable th { background-color: #EBEFF6; color: #000000; font-size: 110%; padding-bottom: 4px; padding-top: 5px; } table.fieldtable { width: 100%; margin-bottom: 10px; border: 1px solid #A7B8DA; border-spacing: 0px; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; -webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); } .fieldtable td, .fieldtable th { padding: 3px 7px 2px; } .fieldtable td.fieldtype, .fieldtable td.fieldname { white-space: nowrap; border-right: 1px solid #A7B8DA; border-bottom: 1px solid #A7B8DA; vertical-align: top; } .fieldtable td.fielddoc { border-bottom: 1px solid #A7B8DA; width: 100%; } .fieldtable tr:last-child td { border-bottom: none; } .fieldtable th { background-image:url('nav_f.png'); background-repeat:repeat-x; background-color: #E2E7F3; font-size: 90%; color: #233456; padding-bottom: 4px; padding-top: 5px; text-align:left; -moz-border-radius-topleft: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom: 1px solid #A7B8DA; } .tabsearch { top: 0px; left: 10px; height: 36px; background-image: url('tab_b.png'); z-index: 101; overflow: hidden; font-size: 13px; } .navpath ul { font-size: 11px; background-image:url('tab_b.png'); background-repeat:repeat-x; height:30px; line-height:30px; color:#889FCE; border:solid 1px #C1CDE5; overflow:hidden; margin:0px; padding:0px; } .navpath li { list-style-type:none; float:left; padding-left:10px; padding-right:15px; background-image:url('bc_s.png'); background-repeat:no-repeat; background-position:right; color:#344D7E; } .navpath li.navelem a { height:32px; display:block; text-decoration: none; outline: none; } .navpath li.navelem a:hover { color:#6583BF; } .navpath li.footer { list-style-type:none; float:right; padding-left:10px; padding-right:15px; background-image:none; background-repeat:no-repeat; background-position:right; color:#344D7E; font-size: 8pt; } div.summary { float: right; font-size: 8pt; padding-right: 5px; width: 50%; text-align: right; } div.summary a { white-space: nowrap; } div.ingroups { margin-left: 5px; font-size: 8pt; padding-left: 5px; width: 50%; text-align: left; } div.ingroups a { white-space: nowrap; } div.header { background-image:url('nav_h.png'); background-repeat:repeat-x; background-color: #F9FAFC; margin: 0px; border-bottom: 1px solid #C3CFE6; } div.headertitle { padding: 5px 5px 5px 7px; } dl { padding: 0 0 0 10px; } /* dl.note, dl.warning, dl.attention, dl.pre, dl.post, dl.invariant, dl.deprecated, dl.todo, dl.test, dl.bug */ dl.section { margin-left: 0px; padding-left: 0px; } dl.note { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #D0C000; } dl.warning, dl.attention { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #FF0000; } dl.pre, dl.post, dl.invariant { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #00D000; } dl.deprecated { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #505050; } dl.todo { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #00C0E0; } dl.test { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #3030E0; } dl.bug { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #C08050; } dl.section dd { margin-bottom: 6px; } #projectlogo { text-align: center; vertical-align: bottom; border-collapse: separate; } #projectlogo img { border: 0px none; } #projectname { font: 300% Tahoma, Arial,sans-serif; margin: 0px; padding: 2px 0px; } #projectbrief { font: 120% Tahoma, Arial,sans-serif; margin: 0px; padding: 0px; } #projectnumber { font: 50% Tahoma, Arial,sans-serif; margin: 0px; padding: 0px; } #titlearea { padding: 0px; margin: 0px; width: 100%; border-bottom: 1px solid #5072B7; } .image { text-align: left; } .dotgraph { text-align: center; } .mscgraph { text-align: center; } .caption { font-weight: bold; } div.zoom { border: 1px solid #8EA4D0; } dl.citelist { margin-bottom:50px; } dl.citelist dt { color:#314877; float:left; font-weight:bold; margin-right:10px; padding:5px; } dl.citelist dd { margin:2px 0; padding:5px 0; } div.toc { padding: 14px 25px; background-color: #F4F6FA; border: 1px solid #D7DFEE; border-radius: 7px 7px 7px 7px; float: right; height: auto; margin: 0 20px 10px 10px; width: 200px; } div.toc li { background: url("bdwn.png") no-repeat scroll 0 5px transparent; font: 10px/1.2 Verdana,DejaVu Sans,Geneva,sans-serif; margin-top: 5px; padding-left: 10px; padding-top: 2px; } div.toc h3 { font: bold 12px/1.2 Arial,FreeSans,sans-serif; color: #4464A5; border-bottom: 0 none; margin: 0; } div.toc ul { list-style: none outside none; border: medium none; padding: 0px; } div.toc li.level1 { margin-left: 0px; } div.toc li.level2 { margin-left: 15px; } div.toc li.level3 { margin-left: 30px; } div.toc li.level4 { margin-left: 45px; } .inherit_header { font-weight: bold; color: gray; cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .inherit_header td { padding: 6px 0px 2px 5px; } .inherit { display: none; } tr.heading h2 { margin-top: 12px; margin-bottom: 4px; } @media print { #top { display: none; } #side-nav { display: none; } #nav-path { display: none; } body { overflow:visible; } h1, h2, h3, h4, h5, h6 { page-break-after: avoid; } .summary { display: none; } .memitem { page-break-inside: avoid; } #doc-content { margin-left:0 !important; height:auto !important; width:auto !important; overflow:inherit; display:inline; } }
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/cmsis.css
CSS
apache-2.0
20,795
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>MISRA-C Deviations</title> <title>CMSIS-Core (Cortex-M): MISRA-C Deviations</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li class="current"><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('coreMISRA_Exceptions_pg.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="headertitle"> <div class="title">MISRA-C Deviations </div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><p>CMSIS-Core (Cortex-M) uses the common coding rules for CMSIS components that are documented under <a href="../../General/html/index.html"><b>Introduction</b></a> . </p> </div></div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:25 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/coreMISRA_Exceptions_pg.html
HTML
apache-2.0
6,182
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Revision History of CMSIS-Core (Cortex-M)</title> <title>CMSIS-Core (Cortex-M): Revision History of CMSIS-Core (Cortex-M)</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li class="current"><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('core_revisionHistory.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="headertitle"> <div class="title">Revision History of CMSIS-Core (Cortex-M) </div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><table class="cmtable" summary="Revision History"> <tr> <th>Version </th><th>Description </th></tr> <tr> <td>V5.3.0 </td><td>Added: Provisions for compiler-independent C startup code. </td></tr> <tr> <td>V5.2.1 </td><td>Fixed: Compilation issue in cmsis_armclang_ltm.h introduced in 5.2.0 </td></tr> <tr> <td>V5.2.0 </td><td>Added: Cortex-M35P support.<br/> Added: Cortex-M1 support.<br/> Added: Armv8.1 architecture support.<br/> Added: <a class="el" href="group__compiler__conntrol__gr.html#ga378ac21329d33f561f90265eef89f564">__RESTRICT</a> and <a class="el" href="group__compiler__conntrol__gr.html#gab904513442afdf77d4f8c74f23cbb040">__STATIC_FORCEINLINE</a> compiler control macros. </td></tr> <tr> <td>V5.1.2 </td><td>Removed using get/set built-ins FPSCR in GCC &gt;= 7.2 due to shortcomings.<br/> Added __NO_RETURN to __NVIC_SystemReset() to silence compiler warnings.<br/> Added support for Cortex-M1 (beta). <br/> Removed usage of register keyword. <br/> Added defines for EXC_RETURN, FNC_RETURN and integrity signature values. <br/> Enhanced MPUv7 API with defines for memory access attributes. </td></tr> <tr> <td>V5.1.1 </td><td>Aligned MSPLIM and PSPLIM access functions along supported compilers. </td></tr> <tr> <td>V5.1.0 </td><td>Added MPU Functions for ARMv8-M for Cortex-M23/M33.<br/> Moved __SSAT and __USAT intrinsics to CMSIS-Core.<br/> Aligned __REV, __REV16 and __REVSH intrinsics along supported compilers. </td></tr> <tr> <td>V5.0.2 </td><td>Added macros <a class="el" href="group__compiler__conntrol__gr.html#gabe8693a7200e573101551d49a1772fb9">__UNALIGNED_UINT16_READ</a>, <a class="el" href="group__compiler__conntrol__gr.html#gadb9cd73446f7e11e92383cd327a23407">__UNALIGNED_UINT16_WRITE</a>.<br/> Added macros <a class="el" href="group__compiler__conntrol__gr.html#ga254322c344d954c9f829719a50a88e87">__UNALIGNED_UINT32_READ</a>, <a class="el" href="group__compiler__conntrol__gr.html#gabb2180285c417aa9120a360c51f64b4b">__UNALIGNED_UINT32_WRITE</a>.<br/> Deprecated macro <a class="el" href="group__compiler__conntrol__gr.html#ga27fd2ec6767ca1ab66d36b5cc0103268">__UNALIGNED_UINT32</a>.<br/> Changed <a class="el" href="group__version__control__gr.html">Version Control</a> macros to be core agnostic. <br/> Added <a class="el" href="group__mpu__functions.html">MPU Functions for Armv6-M/v7-M</a> for Cortex-M0+/M3/M4/M7. </td></tr> <tr> <td>V5.0.1 </td><td>Added: macro <a class="el" href="group__compiler__conntrol__gr.html#ga4dbb70fab85207c27b581ecb6532b314">__PACKED_STRUCT</a>. <br/> Added: uVisor support. <br/> </td></tr> <tr> <td>V5.00 </td><td>Added: Cortex-M23, Cortex-M33 support.<br/> Added: macro __SAU_PRESENT with __SAU_REGION_PRESENT. <br/> Replaced: macro __SAU_PRESENT with __SAU_REGION_PRESENT. <br/> Reworked: SAU register and functions. <br/> Added: macro <a class="el" href="group__compiler__conntrol__gr.html#ga0c58caa5a273e2c21924509a45f8b849">__ALIGNED</a>. <br/> Updated: function <a class="el" href="group__Icache__functions__m7.html#gaf9e7c6c8e16ada1f95e5bf5a03505b68">SCB_EnableICache</a>. <br/> Added: cmsis_compiler.h with compiler specific CMSIS macros, functions, instructions. <br/> Added: macro <a class="el" href="group__compiler__conntrol__gr.html#gabe8996d3d985ee1529475443cc635bf1">__PACKED</a>. <br/> Updated: compiler specific include files. <br/> Updated: core dependant include files. <br/> Removed: deprecated files core_cmfunc.h, core_cminstr.h, core_cmsimd.h. </td></tr> <tr> <td>V5.00<br/> Beta 6 </td><td>Added: SCB_CFSR register bit definitions. <br/> Added: function <a class="el" href="group__NVIC__gr.html#ga72f102d31af0ee4aa7a6fb7a180840f3">NVIC_GetEnableIRQ</a>. <br/> Updated: core instruction macros <a class="el" href="group__intrinsic__CPU__gr.html#gac71fad9f0a91980fecafcb450ee0a63e">__NOP</a>, <a class="el" href="group__intrinsic__CPU__gr.html#gaed91dfbf3d7d7b7fba8d912fcbeaad88">__WFI</a>, <a class="el" href="group__intrinsic__CPU__gr.html#gad3efec76c3bfa2b8528ded530386c563">__WFE</a>, <a class="el" href="group__intrinsic__CPU__gr.html#ga3c34da7eb16496ae2668a5b95fa441e7">__SEV</a> for toolchain GCC. </td></tr> <tr> <td>V5.00<br/> Beta 5 </td><td>Moved: DSP libraries from CMSIS/DSP/Lib to CMSIS/Lib. <br/> Added: DSP libraries build projects to CMSIS pack. </td></tr> <tr> <td>V5.00<br/> Beta 4 </td><td>Updated: ARMv8M device files. <br/> Corrected: ARMv8MBL interrupts. <br/> Reworked: NVIC functions. </td></tr> <tr> <td>V5.00<br/> Beta 2 </td><td>Changed: ARMv8M SAU regions to 8. <br/> Changed: moved function <a class="el" href="group__sau__trustzone__functions.html#ga6093bc5939ea8924fbcfdffb8f0553f1">TZ_SAU_Setup</a> to file partition_&lt;device&gt;.h. <br/> Changed: license under Apache-2.0. <br/> Added: check if macro is defined before use. <br/> Corrected: function <a class="el" href="group__Dcache__functions__m7.html#ga6468170f90d270caab8116e7a4f0b5fe">SCB_DisableDCache</a>. <br/> Corrected: macros <a class="el" href="group__peripheral__gr.html#ga286e3b913dbd236c7f48ea70c8821f4e">_VAL2FLD</a>, <a class="el" href="group__peripheral__gr.html#ga139b6e261c981f014f386927ca4a8444">_FLD2VAL</a>. <br/> Added: NVIC function virtualization with macros <a class="el" href="group__NVIC__gr.html#gadc48b4ed09386aab48fa6b9c96d9034c">CMSIS_NVIC_VIRTUAL</a> and <a class="el" href="group__NVIC__gr.html#gad01d3aa220b50ef141b06c93888b268d">CMSIS_VECTAB_VIRTUAL</a>. </td></tr> <tr> <td>V5.00<br/> Beta 1 </td><td>Renamed: cmsis_armcc_V6.h to cmsis_armclang.h.<br/> Renamed: core_*.h to lower case.<br/> Added: function <a class="el" href="group__fpu__functions.html#ga6bcad99ce80a0e7e4ddc6f2379081756">SCB_GetFPUType</a> to all CMSIS cores.<br/> Added: ARMv8-M support. </td></tr> <tr> <td>V4.30 </td><td>Corrected: DoxyGen function parameter comments.<br/> Corrected: IAR toolchain: removed for <a class="el" href="group__NVIC__gr.html#ga1b47d17e90b6a03e7bd1ec6a0d549b46">NVIC_SystemReset</a> the attribute(noreturn).<br/> Corrected: GCC toolchain: suppressed irrelevant compiler warnings.<br/> Added: Support files for Arm Compiler v6 (cmsis_armcc_v6.h). </td></tr> <tr> <td>V4.20 </td><td>Corrected: MISRA-C:2004 violations. <br/> Corrected: predefined macro for TI CCS Compiler. <br/> Corrected: function <a class="el" href="group__intrinsic__SIMD__gr.html#ga15d8899a173effb8ad8c7268da32b60e">__SHADD16</a> in arm_math.h. <br/> Updated: cache functions for Cortex-M7. <br/> Added: macros <a class="el" href="group__peripheral__gr.html#ga286e3b913dbd236c7f48ea70c8821f4e">_VAL2FLD</a>, <a class="el" href="group__peripheral__gr.html#ga139b6e261c981f014f386927ca4a8444">_FLD2VAL</a> to core_*.h. <br/> Updated: functions <a class="el" href="group__intrinsic__SIMD__gr.html#ga87618799672e1511e33964bc71467eb3">__QASX</a>, <a class="el" href="group__intrinsic__SIMD__gr.html#gab41eb2b17512ab01d476fc9d5bd19520">__QSAX</a>, <a class="el" href="group__intrinsic__SIMD__gr.html#gae0a649035f67627464fd80e7218c89d5">__SHASX</a>, <a class="el" href="group__intrinsic__SIMD__gr.html#gafadbd89c36b5addcf1ca10dd392db3e9">__SHSAX</a>. <br/> Corrected: potential bug in function <a class="el" href="group__intrinsic__SIMD__gr.html#ga15d8899a173effb8ad8c7268da32b60e">__SHADD16</a>. </td></tr> <tr> <td>V4.10 </td><td>Corrected: MISRA-C:2004 violations. <br/> Corrected: intrinsic functions <a class="el" href="group__intrinsic__CPU__gr.html#gacb2a8ca6eae1ba4b31161578b720c199">__DSB</a>, <a class="el" href="group__intrinsic__CPU__gr.html#gab1c9b393641dc2d397b3408fdbe72b96">__DMB</a>, <a class="el" href="group__intrinsic__CPU__gr.html#ga93c09b4709394d81977300d5f84950e5">__ISB</a>. <br/> Corrected: register definitions for ITCMCR register. <br/> Corrected: register definitions for <a class="el" href="unionCONTROL__Type.html">CONTROL_Type</a> register. <br/> Added: functions <a class="el" href="group__fpu__functions.html#ga6bcad99ce80a0e7e4ddc6f2379081756">SCB_GetFPUType</a>, <a class="el" href="group__Dcache__functions__m7.html#ga503ef7ef58c0773defd15a82f6336c09">SCB_InvalidateDCache_by_Addr</a> to core_cm7.h. <br/> Added: register definitions for <a class="el" href="unionAPSR__Type.html">APSR_Type</a>, <a class="el" href="unionIPSR__Type.html">IPSR_Type</a>, <a class="el" href="unionxPSR__Type.html">xPSR_Type</a> register. <br/> Added: <a class="el" href="group__Core__Register__gr.html#ga62fa63d39cf22df348857d5f44ab64d9">__set_BASEPRI_MAX</a> function to core_cmFunc.h. <br/> Added: intrinsic functions <a class="el" href="group__intrinsic__CPU__gr.html#gad6f9f297f6b91a995ee199fbc796b863">__RBIT</a>, <a class="el" href="group__intrinsic__CPU__gr.html#ga90884c591ac5d73d6069334eba9d6c02">__CLZ</a> for Cortex-M0/CortexM0+. <br/> </td></tr> <tr> <td>V4.00 </td><td>Added: Cortex-M7 support.<br/> Added: intrinsic functions for <a class="el" href="group__intrinsic__CPU__gr.html#gac09134f1bf9c49db07282001afcc9380">__RRX</a>, <a class="el" href="group__intrinsic__CPU__gr.html#ga9464d75db32846aa8295c3c3adfacb41">__LDRBT</a>, <a class="el" href="group__intrinsic__CPU__gr.html#gaa762b8bc5634ce38cb14d62a6b2aee32">__LDRHT</a>, <a class="el" href="group__intrinsic__CPU__gr.html#ga616504f5da979ba8a073d428d6e8d5c7">__LDRT</a>, <a class="el" href="group__intrinsic__CPU__gr.html#gad41aa59c92c0a165b7f98428d3320cd5">__STRBT</a>, <a class="el" href="group__intrinsic__CPU__gr.html#ga2b5d93b8e461755b1072a03df3f1722e">__STRHT</a>, and <a class="el" href="group__intrinsic__CPU__gr.html#ga625bc4ac0b1d50de9bcd13d9f050030e">__STRT</a> <br/> </td></tr> <tr> <td>V3.40 </td><td>Corrected: C++ include guard settings.<br/> </td></tr> <tr> <td>V3.30 </td><td>Added: COSMIC tool chain support.<br/> Corrected: GCC __SMLALDX instruction intrinsic for Cortex-M4.<br/> Corrected: GCC __SMLALD instruction intrinsic for Cortex-M4.<br/> Corrected: GCC/CLang warnings.<br/> </td></tr> <tr> <td>V3.20 </td><td>Added: <a class="el" href="group__intrinsic__CPU__gr.html#ga92f5621626711931da71eaa8bf301af7">__BKPT</a> instruction intrinsic.<br/> Added: <a class="el" href="group__intrinsic__SIMD__gr.html#gaea60757232f740ec6b09980eebb614ff">__SMMLA</a> instruction intrinsic for Cortex-M4.<br/> Corrected: <a class="el" href="group__ITM__Debug__gr.html#gaaa7c716331f74d644bf6bf25cd3392d1">ITM_SendChar</a>.<br/> Corrected: <a class="el" href="group__Core__Register__gr.html#ga0f98dfbd252b89d12564472dbeba9c27">__enable_irq</a>, <a class="el" href="group__Core__Register__gr.html#gaeb8e5f7564a8ea23678fe3c987b04013">__disable_irq</a> and inline assembly for GCC Compiler.<br/> Corrected: <a class="el" href="group__NVIC__gr.html#gab18fb9f6c5f4c70fdd73047f0f7c8395">NVIC_GetPriority</a> and VTOR_TBLOFF for Cortex-M0/M0+, SC000. <br/> Corrected: rework of in-line assembly functions to remove potential compiler warnings.<br/> </td></tr> <tr> <td>V3.01 </td><td>Added support for Cortex-M0+ processor.<br/> </td></tr> <tr> <td>V3.00 </td><td>Added support for GNU GCC ARM Embedded Compiler. <br/> Added function <a class="el" href="group__intrinsic__CPU__gr.html#gaf66beb577bb9d90424c3d1d7f684c024">__ROR</a>.<br/> Added <a class="el" href="regMap_pg.html">Register Mapping</a> for TPIU, DWT. <br/> Added support for <a class="el" href="device_h_pg.html#core_config_sect">SC000 and SC300 processors</a>.<br/> Corrected <a class="el" href="group__ITM__Debug__gr.html#gaaa7c716331f74d644bf6bf25cd3392d1">ITM_SendChar</a> function. <br/> Corrected the functions <a class="el" href="group__intrinsic__CPU__gr.html#gaab6482d1f59f59e2b6b7efc1af391c99">__STREXB</a>, <a class="el" href="group__intrinsic__CPU__gr.html#ga0a354bdf71caa52f081a4a54e84c8d2a">__STREXH</a>, <a class="el" href="group__intrinsic__CPU__gr.html#ga335deaaa7991490e1450cb7d1e4c5197">__STREXW</a> for the GNU GCC compiler section. <br/> Documentation restructured. </td></tr> <tr> <td>V2.10 </td><td>Updated documentation.<br/> Updated CMSIS core include files.<br/> Changed CMSIS/Device folder structure.<br/> Added support for Cortex-M0, Cortex-M4 w/o FPU to CMSIS DSP library.<br/> Reworked CMSIS DSP library examples. </td></tr> <tr> <td>V2.00 </td><td>Added support for Cortex-M4 processor. </td></tr> <tr> <td>V1.30 </td><td>Reworked Startup Concept.<br/> Added additional Debug Functionality.<br/> Changed folder structure.<br/> Added doxygen comments.<br/> Added definitions for bit. </td></tr> <tr> <td>V1.01 </td><td>Added support for Cortex-M0 processor. </td></tr> <tr> <td>V1.01 </td><td>Added intrinsic functions for <a class="el" href="group__intrinsic__CPU__gr.html#ga9e3ac13d8dcf4331176b624cf6234a7e">__LDREXB</a>, <a class="el" href="group__intrinsic__CPU__gr.html#ga9feffc093d6f68b120d592a7a0d45a15">__LDREXH</a>, <a class="el" href="group__intrinsic__CPU__gr.html#gabd78840a0f2464905b7cec791ebc6a4c">__LDREXW</a>, <a class="el" href="group__intrinsic__CPU__gr.html#gaab6482d1f59f59e2b6b7efc1af391c99">__STREXB</a>, <a class="el" href="group__intrinsic__CPU__gr.html#ga0a354bdf71caa52f081a4a54e84c8d2a">__STREXH</a>, <a class="el" href="group__intrinsic__CPU__gr.html#ga335deaaa7991490e1450cb7d1e4c5197">__STREXW</a>, and <a class="el" href="group__intrinsic__CPU__gr.html#ga354c5ac8870cc3dfb823367af9c4b412">__CLREX</a> </td></tr> <tr> <td>V1.00 </td><td>Initial Release for Cortex-M3 processor. </td></tr> </table> </div></div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:25 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/core_revisionHistory.html
HTML
apache-2.0
19,402
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Deprecated List</title> <title>CMSIS-Core (Cortex-M): Deprecated List</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li class="current"><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('deprecated.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="headertitle"> <div class="title">Deprecated List </div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><dl class="reflist"> <dt><a class="anchor" id="_deprecated000001"></a>Global <a class="el" href="group__compiler__conntrol__gr.html#ga27fd2ec6767ca1ab66d36b5cc0103268">__UNALIGNED_UINT32</a> </dt> <dd><p class="startdd">Do not use this macro. It has been superseded by <a class="el" href="group__compiler__conntrol__gr.html#ga254322c344d954c9f829719a50a88e87">__UNALIGNED_UINT32_READ</a>, <a class="el" href="group__compiler__conntrol__gr.html#gabb2180285c417aa9120a360c51f64b4b">__UNALIGNED_UINT32_WRITE</a> and will be removed in the future.</p> <p class="enddd"></p> </dd> </dl> </div></div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:25 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/deprecated.html
HTML
apache-2.0
6,571
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Device Header File &lt;device.h&gt;</title> <title>CMSIS-Core (Cortex-M): Device Header File &lt;device.h&gt;</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li class="current"><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('device_h_pg.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="headertitle"> <div class="title">Device Header File &lt;device.h&gt; </div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><p>The <a class="el" href="device_h_pg.html">Device Header File &lt;device.h&gt;</a> contains the following sections that are device specific:</p> <ul> <li><a class="el" href="device_h_pg.html#interrupt_number_sec">Interrupt Number Definition</a> provides interrupt numbers (IRQn) for all exceptions and interrupts of the device.</li> <li><a class="el" href="device_h_pg.html#core_config_sect">Configuration of the Processor and Core Peripherals</a> reflect the features of the device.</li> <li><a class="el" href="device_h_pg.html#device_access">Device Peripheral Access Layer</a> provides definitions for the <a class="el" href="group__peripheral__gr.html">Peripheral Access</a> to all device peripherals. It contains all data structures and the address mapping for device-specific peripherals.</li> <li><b>Access Functions for Peripherals (optional)</b> provide additional helper functions for peripherals that are useful for programming of these peripherals. Access Functions may be provided as inline functions or can be extern references to a device-specific library provided by the silicon vendor.</li> </ul> <p><a href="Modules.html"><b>Reference</b> </a> describes the standard features and functions of the <a class="el" href="device_h_pg.html">Device Header File &lt;device.h&gt;</a> in detail.</p> <h1><a class="anchor" id="interrupt_number_sec"></a> Interrupt Number Definition</h1> <p><a class="el" href="device_h_pg.html">Device Header File &lt;device.h&gt;</a> contains the enumeration <a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a> that defines all exceptions and interrupts of the device.</p> <ul> <li>Negative IRQn values represent processor core exceptions (internal interrupts).</li> <li>Positive IRQn values represent device-specific exceptions (external interrupts). The first device-specific interrupt has the IRQn value 0. The IRQn values needs extension to reflect the device-specific interrupt vector table in the <a class="el" href="startup_s_pg.html">Startup File startup_&lt;device&gt;.s (deprecated)</a>.</li> </ul> <p><b>Example:</b> </p> <p>The following example shows the extension of the interrupt vector table for the LPC1100 device family.</p> <div class="fragment"><div class="line"><span class="keyword">typedef</span> <span class="keyword">enum</span> IRQn</div> <div class="line">{</div> <div class="line"><span class="comment">/****** Cortex-M0 Processor Exceptions Numbers ***************************************************/</span></div> <div class="line"> <a class="code" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8ade177d9c70c89e084093024b932a4e30">NonMaskableInt_IRQn</a> = -14, </div> <div class="line"> <a class="code" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8ab1a222a34a32f0ef5ac65e714efc1f85">HardFault_IRQn</a> = -13, </div> <div class="line"> <a class="code" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a4ce820b3cc6cf3a796b41aadc0cf1237">SVCall_IRQn</a> = -5, </div> <div class="line"> <a class="code" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a03c3cc89984928816d81793fc7bce4a2">PendSV_IRQn</a> = -2, </div> <div class="line"> <a class="code" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a6dbff8f8543325f3474cbae2446776e7">SysTick_IRQn</a> = -1, </div> <div class="line"><span class="comment">/****** LPC11xx/LPC11Cxx Specific Interrupt Numbers **********************************************/</span></div> <div class="line"> WAKEUP0_IRQn = 0, </div> <div class="line"> WAKEUP1_IRQn = 1, </div> <div class="line"> WAKEUP2_IRQn = 2,</div> <div class="line"> : :</div> <div class="line"> : :</div> <div class="line"> EINT1_IRQn = 30, </div> <div class="line"> EINT0_IRQn = 31, </div> <div class="line">} <a class="code" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>;</div> </div><!-- fragment --><h1><a class="anchor" id="core_config_sect"></a> Configuration of the Processor and Core Peripherals</h1> <p>The <a class="el" href="device_h_pg.html">Device Header File &lt;device.h&gt;</a> configures the Cortex-M or SecurCore processor and the core peripherals with <em>#defines</em> that are set prior to including the file <b>core_&lt;cpu&gt;.h</b>.</p> <p>The following tables list the <em>#defines</em> along with the possible values for each processor core. If these <em>#defines</em> are missing default values are used.</p> <p><b>core_cm0.h</b> </p> <table class="cmtable"> <tr> <th>#define </th><th>Value Range </th><th>Default </th><th>Description </th></tr> <tr> <td>__CM0_REV </td><td>0x0000 </td><td>0x0000 </td><td>Core revision number ([15:8] revision number, [7:0] patch number) </td></tr> <tr> <td>__NVIC_PRIO_BITS </td><td>2 </td><td>2 </td><td>Number of priority bits implemented in the NVIC (device specific) </td></tr> <tr> <td>__Vendor_SysTickConfig </td><td>0 .. 1 </td><td>0 </td><td>If this define is set to 1, then the default <b>SysTick_Config</b> function is excluded. In this case, the file <em><b>device.h</b></em> must contain a vendor specific implementation of this function. </td></tr> </table> <p><b>core_cm0plus.h</b> </p> <table class="cmtable"> <tr> <th>#define </th><th>Value Range </th><th>Default </th><th>Description </th></tr> <tr> <td>__CM0PLUS_REV </td><td>0x0000 </td><td>0x0000 </td><td>Core revision number ([15:8] revision number, [7:0] patch number) </td></tr> <tr> <td>__NVIC_PRIO_BITS </td><td>2 </td><td>2 </td><td>Number of priority bits implemented in the NVIC (device specific) </td></tr> <tr> <td>__Vendor_SysTickConfig </td><td>0 .. 1 </td><td>0 </td><td>If this define is set to 1, then the default <b>SysTick_Config</b> function is excluded. In this case, the file <em><b>device.h</b></em> must contain a vendor specific implementation of this function. </td></tr> </table> <p><b>core_cm3.h</b> </p> <table class="cmtable"> <tr> <th>#define </th><th>Value Range </th><th>Default </th><th>Description </th></tr> <tr> <td>__CM3_REV </td><td>0x0101 | 0x0200 </td><td>0x0200 </td><td>Core revision number ([15:8] revision number, [7:0] patch number) </td></tr> <tr> <td>__NVIC_PRIO_BITS </td><td>2 .. 8 </td><td>4 </td><td>Number of priority bits implemented in the NVIC (device specific) </td></tr> <tr> <td>__MPU_PRESENT </td><td>0 .. 1 </td><td>0 </td><td>Defines if a MPU is present or not </td></tr> <tr> <td>__Vendor_SysTickConfig </td><td>0 .. 1 </td><td>0 </td><td>If this define is set to 1, then the default <b>SysTick_Config</b> function is excluded. In this case, the file <em><b>device.h</b></em> must contain a vendor specific implementation of this function. </td></tr> </table> <p><b>core_cm4.h</b> </p> <table class="cmtable"> <tr> <th>#define </th><th>Value Range </th><th>Default </th><th>Description </th></tr> <tr> <td>__CM4_REV </td><td>0x0000 </td><td>0x0000 </td><td>Core revision number ([15:8] revision number, [7:0] patch number) </td></tr> <tr> <td>__NVIC_PRIO_BITS </td><td>2 .. 8 </td><td>4 </td><td>Number of priority bits implemented in the NVIC (device specific) </td></tr> <tr> <td>__MPU_PRESENT </td><td>0 .. 1 </td><td>0 </td><td>Defines if a MPU is present or not </td></tr> <tr> <td>__FPU_PRESENT </td><td>0 .. 1 </td><td>0 </td><td>Defines if a FPU is present or not </td></tr> <tr> <td>__Vendor_SysTickConfig </td><td>0 .. 1 </td><td>0 </td><td>If this define is set to 1, then the default <b>SysTick_Config</b> function is excluded. In this case, the file <em><b>device.h</b></em> must contain a vendor specific implementation of this function. </td></tr> </table> <p><b>core_cm7.h</b> </p> <table class="cmtable"> <tr> <th>#define </th><th>Value Range </th><th>Default </th><th>Description </th></tr> <tr> <td>__CM7_REV </td><td>0x0000 </td><td>0x0000 </td><td>Core revision number ([15:8] revision number, [7:0] patch number) </td></tr> <tr> <td>__MPU_PRESENT </td><td>0 .. 1 </td><td>0 </td><td>Defines if a MPU is present or not </td></tr> <tr> <td>__NVIC_PRIO_BITS </td><td>2 .. 8 </td><td>4 </td><td>Number of priority bits implemented in the NVIC (device specific) </td></tr> <tr> <td>__Vendor_SysTickConfig </td><td>0 .. 1 </td><td>0 </td><td>If this define is set to 1, then the default <b>SysTick_Config</b> function is excluded. In this case, the file <em><b>device.h</b></em> must contain a vendor specific implementation of this function. </td></tr> <tr> <td>__FPU_PRESENT </td><td>0 .. 1 </td><td>0 </td><td>Defines if a FPU is present or not. See <b>__FPU_DP</b> description below. </td></tr> <tr> <td>__FPU_DP </td><td>0 .. 1 </td><td>0 </td><td>The combination of the defines <b>__FPU_PRESENT</b> and <b>__FPU_DP</b> determine the whether the FPU is with single or double precision as shown in the table below. <br/> <br/> <table class="cmtable"> <tr bgcolor="cyan"> <td><b>__FPU_PRESENT</b> </td><td><b>__FPU_DP</b> </td><td><b>Description</b> </td></tr> <tr> <td align="center">0 </td><td align="center"><em>ignored</em> </td><td>Processor has no FPU. The value set for <b>__FPU_DP</b> has no influence. </td></tr> <tr> <td align="center">1 </td><td align="center">0 </td><td>Processor with FPU with single precision. The file <b>ARMCM7_SP.h</b> has preconfigured settings for this combination. </td></tr> <tr> <td align="center">1 </td><td align="center">1 </td><td>Processor with FPU with double precision. The file <b>ARMCM7_DP.h</b> has preconfigured settings for this combination. </td></tr> </table> </td></tr> <tr> <td>__ICACHE_PRESENT </td><td>0 .. 1 </td><td>1 </td><td>Instruction Chache present or not </td></tr> <tr> <td>__DCACHE_PRESENT </td><td>0 .. 1 </td><td>1 </td><td>Data Chache present or not </td></tr> <tr> <td>__DTCM_PRESENT </td><td>0 .. 1 </td><td>1 </td><td>Data Tightly Coupled Memory is present or not </td></tr> </table> <p><b>core_sc000.h</b> </p> <table class="cmtable"> <tr> <th>#define </th><th>Value Range </th><th>Default </th><th>Description </th></tr> <tr> <td>__SC000_REV </td><td>0x0000 </td><td>0x0000 </td><td>Core revision number ([15:8] revision number, [7:0] patch number) </td></tr> <tr> <td>__NVIC_PRIO_BITS </td><td>2 </td><td>2 </td><td>Number of priority bits implemented in the NVIC (device specific) </td></tr> <tr> <td>__MPU_PRESENT </td><td>0 .. 1 </td><td>0 </td><td>Defines if a MPU is present or not </td></tr> <tr> <td>__Vendor_SysTickConfig </td><td>0 .. 1 </td><td>0 </td><td>If this define is set to 1, then the default <b>SysTick_Config</b> function is excluded. In this case, the file <em><b>device.h</b></em> must contain a vendor specific implementation of this function. </td></tr> </table> <p><b>core_sc300.h</b> </p> <table class="cmtable"> <tr> <th>#define </th><th>Value Range </th><th>Default </th><th>Description </th></tr> <tr> <td>__SC300_REV </td><td>0x0000 </td><td>0x0000 </td><td>Core revision number ([15:8] revision number, [7:0] patch number) </td></tr> <tr> <td>__NVIC_PRIO_BITS </td><td>2 .. 8 </td><td>4 </td><td>Number of priority bits implemented in the NVIC (device specific) </td></tr> <tr> <td>__MPU_PRESENT </td><td>0 .. 1 </td><td>0 </td><td>Defines if a MPU is present or not </td></tr> <tr> <td>__Vendor_SysTickConfig </td><td>0 .. 1 </td><td>0 </td><td>If this define is set to 1, then the default <b>SysTick_Config</b> function is excluded. In this case, the file <em><b>device.h</b></em> must contain a vendor specific implementation of this function. </td></tr> </table> <p><b>core_CM23.h</b> or <b>core_ARMv8MBL.h</b> </p> <table class="cmtable"> <tr> <th>#define </th><th>Value Range </th><th>Default </th><th>Description </th></tr> <tr> <td>__ARMv8MBL_REV </td><td>0x0000 </td><td>0x0000 </td><td>Core revision number ([15:8] revision number, [7:0] patch number) </td></tr> <tr> <td>__MPU_PRESENT </td><td>0 .. 1 </td><td>0 </td><td>Defines if a MPU is present or not </td></tr> <tr> <td>__SAUREGION_PRESENT </td><td>0 .. 1 </td><td>0 </td><td>Defines if SAU regions are present or not </td></tr> <tr> <td>__VTOR_PRESENT </td><td>0 .. 1 </td><td>0 </td><td>Defines if a VTOR register is present or not </td></tr> <tr> <td>__NVIC_PRIO_BITS </td><td>2 </td><td>2 </td><td>Number of priority bits implemented in the NVIC (device specific) </td></tr> <tr> <td>__Vendor_SysTickConfig </td><td>0 .. 1 </td><td>0 </td><td>If this define is set to 1, then the default <b>SysTick_Config</b> function is excluded. In this case, the file <em><b>device.h</b></em> must contain a vendor specific implementation of this function. </td></tr> </table> <p><b>core_CM33.h</b> or <b>core_cm35p.h</b> or <b>core_ARMv8MML.h</b> </p> <table class="cmtable"> <tr> <th>#define </th><th>Value Range </th><th>Default </th><th>Description </th></tr> <tr> <td>__ARMv8MML_REV </td><td>0x0000 </td><td>0x0000 </td><td>Core revision number ([15:8] revision number, [7:0] patch number) </td></tr> <tr> <td>__MPU_PRESENT </td><td>0 .. 1 </td><td>0 </td><td>Defines if a MPU is present or not </td></tr> <tr> <td>__SAUREGION_PRESENT </td><td>0 .. 1 </td><td>0 </td><td>Defines if SAU regions are present or not </td></tr> <tr> <td>__FPU_PRESENT </td><td>0 .. 1 </td><td>0 </td><td>Defines if a FPU is present or not </td></tr> <tr> <td>__NVIC_PRIO_BITS </td><td>2 .. 8 </td><td>3 </td><td>Number of priority bits implemented in the NVIC (device specific) </td></tr> <tr> <td>__Vendor_SysTickConfig </td><td>0 .. 1 </td><td>0 </td><td>If this define is set to 1, then the default <b>SysTick_Config</b> function is excluded. In this case, the file <em><b>device.h</b></em> must contain a vendor specific implementation of this function. </td></tr> </table> <p><b>Example</b> </p> <p>The following code exemplifies the configuration of the Cortex-M4 Processor and Core Peripherals.</p> <div class="fragment"><div class="line"><span class="preprocessor">#define __CM4_REV 0x0001 </span><span class="comment">/* Core revision r0p1 */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __MPU_PRESENT 1 </span><span class="comment">/* MPU present or not */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __NVIC_PRIO_BITS 3 </span><span class="comment">/* Number of Bits used for Priority Levels */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __Vendor_SysTickConfig 0 </span><span class="comment">/* Set to 1 if different SysTick Config is used */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __FPU_PRESENT 1 </span><span class="comment">/* FPU present or not */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span>.</div> <div class="line">.</div> <div class="line"><span class="preprocessor">#include &lt;core_cm4.h&gt;</span> <span class="comment">/* Cortex-M4 processor and core peripherals */</span></div> </div><!-- fragment --><h1><a class="anchor" id="core_version_sect"></a> CMSIS Version and Processor Information</h1> <p>Defines in the core_<em>cpu</em>.h file identify the version of the CMSIS-Core (Cortex-M) and the processor used. The following shows the defines in the various core_<em>cpu</em>.h files that may be used in the <a class="el" href="device_h_pg.html">Device Header File &lt;device.h&gt;</a> to verify a minimum version or ensure that the right processor core is used.</p> <p><b>core_cm0.h</b> </p> <div class="fragment"><div class="line"><span class="preprocessor">#define __CM0_CMSIS_VERSION_MAIN (5U) </span><span class="comment">/* [31:16] CMSIS HAL main version */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __CM0_CMSIS_VERSION_SUB (0U) </span><span class="comment">/* [15:0] CMSIS HAL sub version */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __CM0_CMSIS_VERSION ((__CM0_CMSIS_VERSION_MAIN &lt;&lt; 16U) | \</span></div> <div class="line"><span class="preprocessor"> __CM0_CMSIS_VERSION_SUB ) </span><span class="comment">/* CMSIS HAL version number */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span> </div> <div class="line"><span class="preprocessor">#define __CORTEX_M (0U) </span><span class="comment">/* Cortex-M Core */</span><span class="preprocessor"></span></div> </div><!-- fragment --><p><b>core_cm0plus.h</b> </p> <div class="fragment"><div class="line"><span class="preprocessor">#define __CM0PLUS_CMSIS_VERSION_MAIN (5U) </span><span class="comment">/* [31:16] CMSIS HAL main version */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __CM0PLUS_CMSIS_VERSION_SUB (0U) </span><span class="comment">/* [15:0] CMSIS HAL sub version */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __CM0PLUS_CMSIS_VERSION ((__CM0P_CMSIS_VERSION_MAIN &lt;&lt; 16U) | \</span></div> <div class="line"><span class="preprocessor"> __CM0P_CMSIS_VERSION_SUB ) </span><span class="comment">/* CMSIS HAL version number */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span> </div> <div class="line"><span class="preprocessor">#define __CORTEX_M (0U) </span><span class="comment">/* Cortex-M Core */</span><span class="preprocessor"></span></div> </div><!-- fragment --><p><b>core_cm1.h</b> </p> <div class="fragment"><div class="line"><span class="preprocessor">#define __CM1_CMSIS_VERSION_MAIN (__CM_CMSIS_VERSION_MAIN) </span></div> <div class="line"><span class="preprocessor">#define __CM1_CMSIS_VERSION_SUB (__CM_CMSIS_VERSION_SUB) </span></div> <div class="line"><span class="preprocessor">#define __CM1_CMSIS_VERSION ((__CM1_CMSIS_VERSION_MAIN &lt;&lt; 16U) | \</span></div> <div class="line"><span class="preprocessor"> __CM1_CMSIS_VERSION_SUB ) </span></div> <div class="line"><span class="preprocessor">#define __CORTEX_M (1U) </span></div> </div><!-- fragment --><p><b>core_cm3.h</b> </p> <div class="fragment"><div class="line"><span class="preprocessor">#define __CM3_CMSIS_VERSION_MAIN (5U) </span><span class="comment">/* [31:16] CMSIS HAL main version */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __CM3_CMSIS_VERSION_SUB (0U) </span><span class="comment">/* [15:0] CMSIS HAL sub version */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __CM3_CMSIS_VERSION ((__CM3_CMSIS_VERSION_MAIN &lt;&lt; 16U) | \</span></div> <div class="line"><span class="preprocessor"> __CM3_CMSIS_VERSION_SUB ) </span><span class="comment">/* CMSIS HAL version number */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span> </div> <div class="line"><span class="preprocessor">#define __CORTEX_M (3U) </span><span class="comment">/* Cortex-M Core */</span><span class="preprocessor"></span></div> </div><!-- fragment --><p><b>core_cm4.h</b> </p> <div class="fragment"><div class="line"><span class="preprocessor">#define __CM4_CMSIS_VERSION_MAIN (5U) </span><span class="comment">/* [31:16] CMSIS HAL main version */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __CM4_CMSIS_VERSION_SUB (0U) </span><span class="comment">/* [15:0] CMSIS HAL sub version */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __CM4_CMSIS_VERSION ((__CM4_CMSIS_VERSION_MAIN &lt;&lt; 16U) | \</span></div> <div class="line"><span class="preprocessor"> __CM4_CMSIS_VERSION_SUB ) </span><span class="comment">/* CMSIS HAL version number */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span> </div> <div class="line"><span class="preprocessor">#define __CORTEX_M (4U) </span><span class="comment">/* Cortex-M Core */</span><span class="preprocessor"></span></div> </div><!-- fragment --><p><b>core_cm7.h</b> </p> <div class="fragment"><div class="line"><span class="preprocessor">#define __CM7_CMSIS_VERSION_MAIN (5U) </span><span class="comment">/* [31:16] CMSIS HAL main version */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __CM7_CMSIS_VERSION_SUB (0U) </span><span class="comment">/* [15:0] CMSIS HAL sub version */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __CM7_CMSIS_VERSION ((__CM7_CMSIS_VERSION_MAIN &lt;&lt; 16U) | \</span></div> <div class="line"><span class="preprocessor"> __CM7_CMSIS_VERSION_SUB ) </span><span class="comment">/* CMSIS HAL version number */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span> </div> <div class="line"><span class="preprocessor">#define __CORTEX_M (7U) </span><span class="comment">/* Cortex-M Core */</span><span class="preprocessor"></span></div> </div><!-- fragment --><p><b>core_sc000.h</b> </p> <div class="fragment"><div class="line"><span class="preprocessor">#define __SC000_CMSIS_VERSION_MAIN (5U) </span><span class="comment">/* [31:16] CMSIS HAL main version */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __SC000_CMSIS_VERSION_SUB (0U) </span><span class="comment">/* [15:0] CMSIS HAL sub version */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __SC000_CMSIS_VERSION ((__SC000_CMSIS_VERSION_MAIN &lt;&lt; 16U) | \</span></div> <div class="line"><span class="preprocessor"> __SC000_CMSIS_VERSION_SUB ) </span><span class="comment">/* CMSIS HAL version number */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor">#define __CORTEX_SC (0U) </span><span class="comment">/* Cortex secure core */</span><span class="preprocessor"></span></div> </div><!-- fragment --><p><b>core_sc300.h</b> </p> <div class="fragment"><div class="line"><span class="preprocessor">#define __SC300_CMSIS_VERSION_MAIN (5U) </span><span class="comment">/* [31:16] CMSIS HAL main version */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __SC300_CMSIS_VERSION_SUB (0U) </span><span class="comment">/* [15:0] CMSIS HAL sub version */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __SC300_CMSIS_VERSION ((__SC300_CMSIS_VERSION_MAIN &lt;&lt; 16U) | \</span></div> <div class="line"><span class="preprocessor"> __SC300_CMSIS_VERSION_SUB ) </span><span class="comment">/* CMSIS HAL version number */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor">#define __CORTEX_SC (300U) </span><span class="comment">/* Cortex secure core */</span><span class="preprocessor"></span></div> </div><!-- fragment --><p><b>core_ARMv8MBL.h</b> </p> <div class="fragment"><div class="line"><span class="preprocessor">#define __ARMv8MBL_CMSIS_VERSION_MAIN (5U) </span><span class="comment">/* [31:16] CMSIS HAL main version */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __ARMv8MBL_CMSIS_VERSION_SUB (0U) </span><span class="comment">/* [15:0] CMSIS HAL sub version */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __ARMv8MBL_CMSIS_VERSION ((__ARMv8MBL_CMSIS_VERSION_MAIN &lt;&lt; 16U) | \</span></div> <div class="line"><span class="preprocessor"> __ARMv8MBL_CMSIS_VERSION_SUB ) </span><span class="comment">/* CMSIS HAL version number */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span> </div> <div class="line"><span class="preprocessor">#define __CORTEX_M (tbd) </span><span class="comment">/* Cortex secure core */</span><span class="preprocessor"></span></div> </div><!-- fragment --><p><b>core_ARMv8MML.h</b> </p> <div class="fragment"><div class="line"><span class="preprocessor">#define __ARMv8MML_CMSIS_VERSION_MAIN (5U) </span><span class="comment">/* [31:16] CMSIS HAL main version */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __ARMv8MML_CMSIS_VERSION_SUB (0U) </span><span class="comment">/* [15:0] CMSIS HAL sub version */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span><span class="preprocessor">#define __ARMv8MML_CMSIS_VERSION ((__ARMv8MML_CMSIS_VERSION_MAIN &lt;&lt; 16U) | \</span></div> <div class="line"><span class="preprocessor"> __ARMv8MML_CMSIS_VERSION_SUB ) </span><span class="comment">/* CMSIS HAL version number */</span><span class="preprocessor"></span></div> <div class="line"><span class="preprocessor"></span> </div> <div class="line"><span class="preprocessor">#define __CORTEX_M (tbd) </span><span class="comment">/* Cortex secure core */</span><span class="preprocessor"></span></div> </div><!-- fragment --><h1><a class="anchor" id="device_access"></a> Device Peripheral Access Layer</h1> <p>The <a class="el" href="device_h_pg.html">Device Header File &lt;device.h&gt;</a> contains for each peripheral:</p> <ul> <li>Register Layout Typedef</li> <li>Base Address</li> <li>Access Definitions</li> </ul> <p>The section <a class="el" href="group__peripheral__gr.html">Peripheral Access</a> shows examples for peripheral definitions.</p> <h1><a class="anchor" id="device_h_sec"></a> Device.h Template File</h1> <p>The silicon vendor needs to extend the Device.h template file with the CMSIS features described above. In addition the <a class="el" href="device_h_pg.html">Device Header File &lt;device.h&gt;</a> may contain functions to access device-specific peripherals. The <a class="el" href="system_c_pg.html#system_Device_h_sec">system_Device.h Template File</a> which is provided as part of the CMSIS specification is shown below.</p> <pre class="fragment">/**************************************************************************//** * @file &lt;Device&gt;.h * @brief CMSIS Cortex-M# Core Peripheral Access Layer Header File for * Device &lt;Device&gt; * @version V5.00 * @date 10. January 2018 ******************************************************************************/ /* * Copyright (c) 2009-2018 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef &lt;Device&gt;_H /* ToDo: replace '&lt;Device&gt;' with your device name */ #define &lt;Device&gt;_H #ifdef __cplusplus extern "C" { #endif /* ToDo: replace '&lt;Vendor&gt;' with vendor name; add your doxyGen comment */ /** @addtogroup &lt;Vendor&gt; * @{ */ /* ToDo: replace '&lt;Device&gt;' with device name; add your doxyGen comment */ /** @addtogroup &lt;Device&gt; * @{ */ /** @addtogroup Configuration_of_CMSIS * @{ */ /* =========================================================================================================================== */ /* ================ Interrupt Number Definition ================ */ /* =========================================================================================================================== */ typedef enum IRQn { /* ======================================= ARM Cortex-M# Specific Interrupt Numbers ======================================== */ /* ToDo: use this Cortex interrupt numbers if your device is a Cortex-M0 / Cortex-M0+ device */ Reset_IRQn = -15, /*!&lt; -15 Reset Vector, invoked on Power up and warm reset */ NonMaskableInt_IRQn = -14, /*!&lt; -14 Non maskable Interrupt, cannot be stopped or preempted */ HardFault_IRQn = -13, /*!&lt; -13 Hard Fault, all classes of Fault */ SVCall_IRQn = -5, /*!&lt; -5 System Service Call via SVC instruction */ PendSV_IRQn = -2, /*!&lt; -2 Pendable request for system service */ SysTick_IRQn = -1, /*!&lt; -1 System Tick Timer */ /* ToDo: use this Cortex interrupt numbers if your device is a Cortex-M3 / Cortex-M4 / Cortex-M7 device */ Reset_IRQn = -15, /*!&lt; -15 Reset Vector, invoked on Power up and warm reset */ NonMaskableInt_IRQn = -14, /*!&lt; -14 Non maskable Interrupt, cannot be stopped or preempted */ HardFault_IRQn = -13, /*!&lt; -13 Hard Fault, all classes of Fault */ MemoryManagement_IRQn = -12, /*!&lt; -12 Memory Management, MPU mismatch, including Access Violation and No Match */ BusFault_IRQn = -11, /*!&lt; -11 Bus Fault, Pre-Fetch-, Memory Access Fault, other address/memory related Fault */ UsageFault_IRQn = -10, /*!&lt; -10 Usage Fault, i.e. Undef Instruction, Illegal State Transition */ SVCall_IRQn = -5, /*!&lt; -5 System Service Call via SVC instruction */ DebugMonitor_IRQn = -4, /*!&lt; -4 Debug Monitor */ PendSV_IRQn = -2, /*!&lt; -2 Pendable request for system service */ SysTick_IRQn = -1, /*!&lt; -1 System Tick Timer */ /* =========================================== &lt;Device&gt; Specific Interrupt Numbers ========================================= */ /* ToDo: add here your device specific external interrupt numbers according the interrupt handlers defined in startup_Device.s eg.: Interrupt for Timer#1 TIM1_IRQHandler -&gt; TIM1_IRQn */ &lt;DeviceInterrupt&gt;_IRQn = 0, /*!&lt; Device Interrupt */ } IRQn_Type; /* =========================================================================================================================== */ /* ================ Processor and Core Peripheral Section ================ */ /* =========================================================================================================================== */ /* =========================== Configuration of the Arm Cortex-M4 Processor and Core Peripherals =========================== */ /* ToDo: set the defines according your Device */ /* ToDo: define the correct core revision __CM0_REV if your device is a Cortex-M0 device __CM3_REV if your device is a Cortex-M3 device __CM4_REV if your device is a Cortex-M4 device __CM7_REV if your device is a Cortex-M7 device */ #define __CM#_REV 0x0201 /*!&lt; Core Revision r2p1 */ /* ToDo: define the correct core features for the &lt;Device&gt; */ #define __MPU_PRESENT 1 /*!&lt; Set to 1 if MPU is present */ #define __VTOR_PRESENT 1 /*!&lt; Set to 1 if VTOR is present */ #define __NVIC_PRIO_BITS 3 /*!&lt; Number of Bits used for Priority Levels */ #define __Vendor_SysTickConfig 0 /*!&lt; Set to 1 if different SysTick Config is used */ #define __FPU_PRESENT 0 /*!&lt; Set to 1 if FPU is present */ #define __FPU_DP 0 /*!&lt; Set to 1 if FPU is double precision FPU (default is single precision FPU) */ #define __ICACHE_PRESENT 0 /*!&lt; Set to 1 if I-Cache is present */ #define __DCACHE_PRESENT 0 /*!&lt; Set to 1 if D-Cache is present */ #define __DTCM_PRESENT 0 /*!&lt; Set to 1 if DTCM is present */ /** @} */ /* End of group Configuration_of_CMSIS */ /* ToDo: include the correct core_cm#.h file core_cm0.h if your device is a CORTEX-M0 device core_cm3.h if your device is a CORTEX-M3 device core_cm4.h if your device is a CORTEX-M4 device core_cm7.h if your device is a CORTEX-M4 device */ #include &lt;core_cm#.h&gt; /*!&lt; Arm Cortex-M# processor and core peripherals */ /* ToDo: include your system_&lt;Device&gt;.h file replace '&lt;Device&gt;' with your device name */ #include "system_&lt;Device&gt;.h" /*!&lt; &lt;Device&gt; System */ /* ======================================== Start of section using anonymous unions ======================================== */ #if defined (__CC_ARM) #pragma push #pragma anon_unions #elif defined (__ICCARM__) #pragma language=extended #elif defined(__ARMCC_VERSION) &amp;&amp; (__ARMCC_VERSION &gt;= 6010050) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wc11-extensions" #pragma clang diagnostic ignored "-Wreserved-id-macro" #elif defined (__GNUC__) /* anonymous unions are enabled by default */ #elif defined (__TMS470__) /* anonymous unions are enabled by default */ #elif defined (__TASKING__) #pragma warning 586 #elif defined (__CSMC__) /* anonymous unions are enabled by default */ #else #warning Not supported compiler type #endif /* =========================================================================================================================== */ /* ================ Device Specific Peripheral Section ================ */ /* =========================================================================================================================== */ /** @addtogroup Device_Peripheral_peripherals * @{ */ /* ToDo: add here your device specific peripheral access structure typedefs following is an example for a timer */ /* =========================================================================================================================== */ /* ================ TMR ================ */ /* =========================================================================================================================== */ /** * @brief Timer (TMR) */ typedef struct { /*!&lt; (@ 0x40000000) TIM Structure */ __IOM uint32_t TimerLoad; /*!&lt; (@ 0x00000004) Timer Load */ __IM uint32_t TimerValue; /*!&lt; (@ 0x00000008) Timer Counter Current Value */ __IOM uint32_t TimerControl; /*!&lt; (@ 0x0000000C) Timer Control */ __OM uint32_t TimerIntClr; /*!&lt; (@ 0x00000010) Timer Interrupt Clear */ __IM uint32_t TimerRIS; /*!&lt; (@ 0x00000014) Timer Raw Interrupt Status */ __IM uint32_t TimerMIS; /*!&lt; (@ 0x00000018) Timer Masked Interrupt Status */ __IM uint32_t RESERVED[1]; __IOM uint32_t TimerBGLoad; /*!&lt; (@ 0x00000020) Background Load Register */ } &lt;DeviceAbbreviation&gt;_TMR_TypeDef; /*@}*/ /* end of group &lt;Device&gt;_Peripherals */ /* ========================================= End of section using anonymous unions ========================================= */ #if defined (__CC_ARM) #pragma pop #elif defined (__ICCARM__) /* leave anonymous unions enabled */ #elif (__ARMCC_VERSION &gt;= 6010050) #pragma clang diagnostic pop #elif defined (__GNUC__) /* anonymous unions are enabled by default */ #elif defined (__TMS470__) /* anonymous unions are enabled by default */ #elif defined (__TASKING__) #pragma warning restore #elif defined (__CSMC__) /* anonymous unions are enabled by default */ #else #warning Not supported compiler type #endif /* =========================================================================================================================== */ /* ================ Device Specific Peripheral Address Map ================ */ /* =========================================================================================================================== */ /* ToDo: add here your device peripherals base addresses following is an example for timer */ /** @addtogroup Device_Peripheral_peripheralAddr * @{ */ /* Peripheral and SRAM base address */ #define &lt;DeviceAbbreviation&gt;_FLASH_BASE (0x00000000UL) /*!&lt; (FLASH ) Base Address */ #define &lt;DeviceAbbreviation&gt;_SRAM_BASE (0x20000000UL) /*!&lt; (SRAM ) Base Address */ #define &lt;DeviceAbbreviation&gt;_PERIPH_BASE (0x40000000UL) /*!&lt; (Peripheral) Base Address */ /* Peripheral memory map */ #define &lt;DeviceAbbreviation&gt;TIM0_BASE (&lt;DeviceAbbreviation&gt;_PERIPH_BASE) /*!&lt; (Timer0 ) Base Address */ #define &lt;DeviceAbbreviation&gt;TIM1_BASE (&lt;DeviceAbbreviation&gt;_PERIPH_BASE + 0x0800) /*!&lt; (Timer1 ) Base Address */ #define &lt;DeviceAbbreviation&gt;TIM2_BASE (&lt;DeviceAbbreviation&gt;_PERIPH_BASE + 0x1000) /*!&lt; (Timer2 ) Base Address */ /** @} */ /* End of group Device_Peripheral_peripheralAddr */ /* =========================================================================================================================== */ /* ================ Peripheral declaration ================ */ /* =========================================================================================================================== */ /* ToDo: add here your device peripherals pointer definitions following is an example for timer */ /** @addtogroup Device_Peripheral_declaration * @{ */ #define &lt;DeviceAbbreviation&gt;_TIM0 ((&lt;DeviceAbbreviation&gt;_TMR_TypeDef *) &lt;DeviceAbbreviation&gt;TIM0_BASE) #define &lt;DeviceAbbreviation&gt;_TIM1 ((&lt;DeviceAbbreviation&gt;_TMR_TypeDef *) &lt;DeviceAbbreviation&gt;TIM0_BASE) #define &lt;DeviceAbbreviation&gt;_TIM2 ((&lt;DeviceAbbreviation&gt;_TMR_TypeDef *) &lt;DeviceAbbreviation&gt;TIM0_BASE) /** @} */ /* End of group &lt;Device&gt; */ /** @} */ /* End of group &lt;Vendor&gt; */ #ifdef __cplusplus } #endif #endif /* &lt;Device&gt;_H */ </pre> </div></div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="templates_pg.html">CMSIS-Core Device Templates</a></li> <li class="footer">Generated on Wed Jul 10 2019 15:20:25 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/device_h_pg.html
HTML
apache-2.0
48,942
/* The standard CSS for doxygen 1.8.6 */ body, table, div, p, dl { font: 400 14px/22px Roboto,sans-serif; } /* @group Heading Levels */ h1.groupheader { font-size: 150%; } .title { font: 400 14px/28px Roboto,sans-serif; font-size: 150%; font-weight: bold; margin: 10px 2px; } h2.groupheader { border-bottom: 1px solid #859DCD; color: #334C7D; font-size: 150%; font-weight: normal; margin-top: 1.75em; padding-top: 8px; padding-bottom: 4px; width: 100%; } h3.groupheader { font-size: 100%; } h1, h2, h3, h4, h5, h6 { -webkit-transition: text-shadow 0.5s linear; -moz-transition: text-shadow 0.5s linear; -ms-transition: text-shadow 0.5s linear; -o-transition: text-shadow 0.5s linear; transition: text-shadow 0.5s linear; margin-right: 15px; } h1.glow, h2.glow, h3.glow, h4.glow, h5.glow, h6.glow { text-shadow: 0 0 15px cyan; } dt { font-weight: bold; } div.multicol { -moz-column-gap: 1em; -webkit-column-gap: 1em; -moz-column-count: 3; -webkit-column-count: 3; } p.startli, p.startdd { margin-top: 2px; } p.starttd { margin-top: 0px; } p.endli { margin-bottom: 0px; } p.enddd { margin-bottom: 4px; } p.endtd { margin-bottom: 2px; } /* @end */ caption { font-weight: bold; } span.legend { font-size: 70%; text-align: center; } h3.version { font-size: 90%; text-align: center; } div.qindex, div.navtab{ background-color: #EBEFF6; border: 1px solid #A2B4D8; text-align: center; } div.qindex, div.navpath { width: 100%; line-height: 140%; } div.navtab { margin-right: 15px; } /* @group Link Styling */ a { color: #3A568E; font-weight: normal; text-decoration: none; } .contents a:visited { color: #4464A5; } a:hover { text-decoration: underline; } a.qindex { font-weight: bold; } a.qindexHL { font-weight: bold; background-color: #9AAED5; color: #ffffff; border: 1px double #849CCC; } .contents a.qindexHL:visited { color: #ffffff; } a.el { font-weight: bold; } a.elRef { } a.code, a.code:visited, a.line, a.line:visited { color: #4665A2; } a.codeRef, a.codeRef:visited, a.lineRef, a.lineRef:visited { color: #4665A2; } /* @end */ dl.el { margin-left: -1cm; } pre.fragment { border: 1px solid #C4CFE5; background-color: #FBFCFD; padding: 4px 6px; margin: 4px 8px 4px 2px; overflow: auto; word-wrap: break-word; font-size: 9pt; line-height: 125%; font-family: monospace, fixed; font-size: 105%; } div.fragment { padding: 4px 6px; margin: 4px 8px 4px 2px; background-color: #FBFCFD; border: 1px solid #C3CFE6; } div.line { font-family: monospace, fixed; font-size: 13px; min-height: 13px; line-height: 1.0; text-wrap: unrestricted; white-space: -moz-pre-wrap; /* Moz */ white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ white-space: pre-wrap; /* CSS3 */ word-wrap: break-word; /* IE 5.5+ */ text-indent: -53px; padding-left: 53px; padding-bottom: 0px; margin: 0px; -webkit-transition-property: background-color, box-shadow; -webkit-transition-duration: 0.5s; -moz-transition-property: background-color, box-shadow; -moz-transition-duration: 0.5s; -ms-transition-property: background-color, box-shadow; -ms-transition-duration: 0.5s; -o-transition-property: background-color, box-shadow; -o-transition-duration: 0.5s; transition-property: background-color, box-shadow; transition-duration: 0.5s; } div.line.glow { background-color: cyan; box-shadow: 0 0 10px cyan; } span.lineno { padding-right: 4px; text-align: right; border-right: 2px solid #0F0; background-color: #E8E8E8; white-space: pre; } span.lineno a { background-color: #D8D8D8; } span.lineno a:hover { background-color: #C8C8C8; } div.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px; padding: 0.2em; border: solid thin #333; border-radius: 0.5em; -webkit-border-radius: .5em; -moz-border-radius: .5em; box-shadow: 2px 2px 3px #999; -webkit-box-shadow: 2px 2px 3px #999; -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#000),color-stop(0.3, #444)); background-image: -moz-linear-gradient(center top, #eee 0%, #444 40%, #000); } div.groupHeader { margin-left: 16px; margin-top: 12px; font-weight: bold; } div.groupText { margin-left: 16px; font-style: italic; } body { background-color: white; color: black; margin: 0; } div.contents { margin-top: 10px; margin-left: 12px; margin-right: 8px; } td.indexkey { background-color: #EBEFF6; font-weight: bold; border: 1px solid #C3CFE6; margin: 2px 0px 2px 0; padding: 2px 10px; white-space: nowrap; vertical-align: top; } td.indexvalue { background-color: #EBEFF6; border: 1px solid #C3CFE6; padding: 2px 10px; margin: 2px 0px; } tr.memlist { background-color: #EDF1F7; } p.formulaDsp { text-align: center; } img.formulaDsp { } img.formulaInl { vertical-align: middle; } div.center { text-align: center; margin-top: 0px; margin-bottom: 0px; padding: 0px; } div.center img { border: 0px; } address.footer { text-align: right; padding-right: 12px; } img.footer { border: 0px; vertical-align: middle; } /* @group Code Colorization */ span.keyword { color: #008000 } span.keywordtype { color: #604020 } span.keywordflow { color: #e08000 } span.comment { color: #800000 } span.preprocessor { color: #806020 } span.stringliteral { color: #002080 } span.charliteral { color: #008080 } span.vhdldigit { color: #ff00ff } span.vhdlchar { color: #000000 } span.vhdlkeyword { color: #700070 } span.vhdllogic { color: #ff0000 } blockquote { background-color: #F7F8FB; border-left: 2px solid #9AAED5; margin: 0 24px 0 4px; padding: 0 12px 0 16px; } /* @end */ /* .search { color: #003399; font-weight: bold; } form.search { margin-bottom: 0px; margin-top: 0px; } input.search { font-size: 75%; color: #000080; font-weight: normal; background-color: #e8eef2; } */ td.tiny { font-size: 75%; } .dirtab { padding: 4px; border-collapse: collapse; border: 1px solid #A2B4D8; } th.dirtab { background: #EBEFF6; font-weight: bold; } hr { height: 0px; border: none; border-top: 1px solid #4769AD; } hr.footer { height: 1px; } /* @group Member Descriptions */ table.memberdecls { border-spacing: 0px; padding: 0px; } .memberdecls td, .fieldtable tr { -webkit-transition-property: background-color, box-shadow; -webkit-transition-duration: 0.5s; -moz-transition-property: background-color, box-shadow; -moz-transition-duration: 0.5s; -ms-transition-property: background-color, box-shadow; -ms-transition-duration: 0.5s; -o-transition-property: background-color, box-shadow; -o-transition-duration: 0.5s; transition-property: background-color, box-shadow; transition-duration: 0.5s; } .memberdecls td.glow, .fieldtable tr.glow { background-color: cyan; box-shadow: 0 0 15px cyan; } .mdescLeft, .mdescRight, .memItemLeft, .memItemRight, .memTemplItemLeft, .memTemplItemRight, .memTemplParams { background-color: #F9FAFC; border: none; margin: 4px; padding: 1px 0 0 8px; } .mdescLeft, .mdescRight { padding: 0px 8px 4px 8px; color: #555; } .memSeparator { border-bottom: 1px solid #DEE4F0; line-height: 1px; margin: 0px; padding: 0px; } .memItemLeft, .memTemplItemLeft { white-space: nowrap; } .memItemRight { width: 100%; } .memTemplParams { color: #4464A5; white-space: nowrap; font-size: 80%; } /* @end */ /* @group Member Details */ /* Styles for detailed member documentation */ .memtemplate { font-size: 80%; color: #4464A5; font-weight: normal; margin-left: 9px; } .memnav { background-color: #EBEFF6; border: 1px solid #A2B4D8; text-align: center; margin: 2px; margin-right: 15px; padding: 2px; } .mempage { width: 100%; } .memitem { padding: 0; margin-bottom: 10px; margin-right: 5px; -webkit-transition: box-shadow 0.5s linear; -moz-transition: box-shadow 0.5s linear; -ms-transition: box-shadow 0.5s linear; -o-transition: box-shadow 0.5s linear; transition: box-shadow 0.5s linear; display: table !important; width: 100%; } .memitem.glow { box-shadow: 0 0 15px cyan; } .memname { font-weight: bold; margin-left: 6px; } .memname td { vertical-align: bottom; } .memproto, dl.reflist dt { border-top: 1px solid #A7B8DA; border-left: 1px solid #A7B8DA; border-right: 1px solid #A7B8DA; padding: 6px 0px 6px 0px; color: #233456; font-weight: bold; text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); background-image:url('nav_f.png'); background-repeat:repeat-x; background-color: #E2E7F3; /* opera specific markup */ box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); border-top-right-radius: 4px; border-top-left-radius: 4px; /* firefox specific markup */ -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; -moz-border-radius-topright: 4px; -moz-border-radius-topleft: 4px; /* webkit specific markup */ -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); -webkit-border-top-right-radius: 4px; -webkit-border-top-left-radius: 4px; } .memdoc, dl.reflist dd { border-bottom: 1px solid #A7B8DA; border-left: 1px solid #A7B8DA; border-right: 1px solid #A7B8DA; padding: 6px 10px 2px 10px; background-color: #FBFCFD; border-top-width: 0; background-image:url('nav_g.png'); background-repeat:repeat-x; background-color: #FFFFFF; /* opera specific markup */ border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); /* firefox specific markup */ -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; /* webkit specific markup */ -webkit-border-bottom-left-radius: 4px; -webkit-border-bottom-right-radius: 4px; -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); } dl.reflist dt { padding: 5px; } dl.reflist dd { margin: 0px 0px 10px 0px; padding: 5px; } .paramkey { text-align: right; } .paramtype { white-space: nowrap; } .paramname { color: #602020; white-space: nowrap; } .paramname em { font-style: normal; } .paramname code { line-height: 14px; } .params, .retval, .exception, .tparams { margin-left: 0px; padding-left: 0px; } .params .paramname, .retval .paramname { font-weight: bold; vertical-align: top; } .params .paramtype { font-style: italic; vertical-align: top; } .params .paramdir { font-family: "courier new",courier,monospace; vertical-align: top; } table.mlabels { border-spacing: 0px; } td.mlabels-left { width: 100%; padding: 0px; } td.mlabels-right { vertical-align: bottom; padding: 0px; white-space: nowrap; } span.mlabels { margin-left: 8px; } span.mlabel { background-color: #708CC4; border-top:1px solid #5072B7; border-left:1px solid #5072B7; border-right:1px solid #C3CFE6; border-bottom:1px solid #C3CFE6; text-shadow: none; color: white; margin-right: 4px; padding: 2px 3px; border-radius: 3px; font-size: 7pt; white-space: nowrap; vertical-align: middle; } /* @end */ /* these are for tree view when not used as main index */ div.directory { margin: 10px 0px; border-top: 1px solid #A8B8D9; border-bottom: 1px solid #A8B8D9; width: 100%; } .directory table { border-collapse:collapse; } .directory td { margin: 0px; padding: 0px; vertical-align: top; } .directory td.entry { white-space: nowrap; padding-right: 6px; padding-top: 3px; } .directory td.entry a { outline:none; } .directory td.entry a img { border: none; } .directory td.desc { width: 100%; padding-left: 6px; padding-right: 6px; padding-top: 3px; border-left: 1px solid rgba(0,0,0,0.05); } .directory tr.even { padding-left: 6px; background-color: #F7F8FB; } .directory img { vertical-align: -30%; } .directory .levels { white-space: nowrap; width: 100%; text-align: right; font-size: 9pt; } .directory .levels span { cursor: pointer; padding-left: 2px; padding-right: 2px; color: #3A568E; } div.dynheader { margin-top: 8px; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } address { font-style: normal; color: #293C63; } table.doxtable { border-collapse:collapse; margin-top: 4px; margin-bottom: 4px; } table.doxtable td, table.doxtable th { border: 1px solid #2B4069; padding: 3px 7px 2px; } table.doxtable th { background-color: #354E81; color: #FFFFFF; font-size: 110%; padding-bottom: 4px; padding-top: 5px; } table.fieldtable { /*width: 100%;*/ margin-bottom: 10px; border: 1px solid #A7B8DA; border-spacing: 0px; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; -webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); } .fieldtable td, .fieldtable th { padding: 3px 7px 2px; } .fieldtable td.fieldtype, .fieldtable td.fieldname { white-space: nowrap; border-right: 1px solid #A7B8DA; border-bottom: 1px solid #A7B8DA; vertical-align: top; } .fieldtable td.fieldname { padding-top: 3px; } .fieldtable td.fielddoc { border-bottom: 1px solid #A7B8DA; /*width: 100%;*/ } .fieldtable td.fielddoc p:first-child { margin-top: 0px; } .fieldtable td.fielddoc p:last-child { margin-bottom: 2px; } .fieldtable tr:last-child td { border-bottom: none; } .fieldtable th { background-image:url('nav_f.png'); background-repeat:repeat-x; background-color: #E2E7F3; font-size: 90%; color: #233456; padding-bottom: 4px; padding-top: 5px; text-align:left; -moz-border-radius-topleft: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-left-radius: 4px; -webkit-border-top-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom: 1px solid #A7B8DA; } .tabsearch { top: 0px; left: 10px; height: 36px; background-image: url('tab_b.png'); z-index: 101; overflow: hidden; font-size: 13px; } .navpath ul { font-size: 11px; background-image:url('tab_b.png'); background-repeat:repeat-x; background-position: 0 -5px; height:30px; line-height:30px; color:#889FCE; border:solid 1px #C1CDE5; overflow:hidden; margin:0px; padding:0px; } .navpath li { list-style-type:none; float:left; padding-left:10px; padding-right:15px; background-image:url('bc_s.png'); background-repeat:no-repeat; background-position:right; color:#344D7E; } .navpath li.navelem a { height:32px; display:block; text-decoration: none; outline: none; color: #27395E; font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); text-decoration: none; } .navpath li.navelem a:hover { color:#6583BF; } .navpath li.footer { list-style-type:none; float:right; padding-left:10px; padding-right:15px; background-image:none; background-repeat:no-repeat; background-position:right; color:#344D7E; font-size: 8pt; } div.summary { float: right; font-size: 8pt; padding-right: 5px; width: 50%; text-align: right; } div.summary a { white-space: nowrap; } div.ingroups { font-size: 8pt; width: 50%; text-align: left; } div.ingroups a { white-space: nowrap; } div.header { background-image:url('nav_h.png'); background-repeat:repeat-x; background-color: #F9FAFC; margin: 0px; border-bottom: 1px solid #C3CFE6; } div.headertitle { padding: 5px 5px 5px 10px; } dl { padding: 0 0 0 10px; } /* dl.note, dl.warning, dl.attention, dl.pre, dl.post, dl.invariant, dl.deprecated, dl.todo, dl.test, dl.bug */ dl.section { margin-left: 0px; padding-left: 0px; } dl.note { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #D0C000; } dl.warning, dl.attention { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #FF0000; } dl.pre, dl.post, dl.invariant { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #00D000; } dl.deprecated { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #505050; } dl.todo { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #00C0E0; } dl.test { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #3030E0; } dl.bug { margin-left:-7px; padding-left: 3px; border-left:4px solid; border-color: #C08050; } dl.section dd { margin-bottom: 6px; } #projectlogo { text-align: center; vertical-align: bottom; border-collapse: separate; } #projectlogo img { border: 0px none; } #projectname { font: 300% Tahoma, Arial,sans-serif; margin: 0px; padding: 2px 0px; } #projectbrief { font: 120% Tahoma, Arial,sans-serif; margin: 0px; padding: 0px; } #projectnumber { font: 50% Tahoma, Arial,sans-serif; margin: 0px; padding: 0px; } #titlearea { padding: 0px; margin: 0px; width: 100%; border-bottom: 1px solid #5072B7; } .image { text-align: center; } .dotgraph { text-align: center; } .mscgraph { text-align: center; } .diagraph { text-align: center; } .caption { font-weight: bold; } div.zoom { border: 1px solid #8EA4D0; } dl.citelist { margin-bottom:50px; } dl.citelist dt { color:#314877; float:left; font-weight:bold; margin-right:10px; padding:5px; } dl.citelist dd { margin:2px 0; padding:5px 0; } div.toc { padding: 14px 25px; background-color: #F4F6FA; border: 1px solid #D7DFEE; border-radius: 7px 7px 7px 7px; float: right; height: auto; margin: 0 20px 10px 10px; width: 200px; } div.toc li { background: url("bdwn.png") no-repeat scroll 0 5px transparent; font: 10px/1.2 Verdana,DejaVu Sans,Geneva,sans-serif; margin-top: 5px; padding-left: 10px; padding-top: 2px; } div.toc h3 { font: bold 12px/1.2 Arial,FreeSans,sans-serif; color: #4464A5; border-bottom: 0 none; margin: 0; } div.toc ul { list-style: none outside none; border: medium none; padding: 0px; } div.toc li.level1 { margin-left: 0px; } div.toc li.level2 { margin-left: 15px; } div.toc li.level3 { margin-left: 30px; } div.toc li.level4 { margin-left: 45px; } .inherit_header { font-weight: bold; color: gray; cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .inherit_header td { padding: 6px 0px 2px 5px; } .inherit { display: none; } tr.heading h2 { margin-top: 12px; margin-bottom: 4px; } /* tooltip related style info */ .ttc { position: absolute; display: none; } #powerTip { cursor: default; white-space: nowrap; background-color: white; border: 1px solid gray; border-radius: 4px 4px 4px 4px; box-shadow: 1px 1px 7px gray; display: none; font-size: smaller; max-width: 80%; opacity: 0.9; padding: 1ex 1em 1em; position: absolute; z-index: 2147483647; } #powerTip div.ttdoc { color: grey; font-style: italic; } #powerTip div.ttname a { font-weight: bold; } #powerTip div.ttname { font-weight: bold; } #powerTip div.ttdeci { color: #006318; } #powerTip div { margin: 0px; padding: 0px; font: 12px/16px Roboto,sans-serif; } #powerTip:before, #powerTip:after { content: ""; position: absolute; margin: 0px; } #powerTip.n:after, #powerTip.n:before, #powerTip.s:after, #powerTip.s:before, #powerTip.w:after, #powerTip.w:before, #powerTip.e:after, #powerTip.e:before, #powerTip.ne:after, #powerTip.ne:before, #powerTip.se:after, #powerTip.se:before, #powerTip.nw:after, #powerTip.nw:before, #powerTip.sw:after, #powerTip.sw:before { border: solid transparent; content: " "; height: 0; width: 0; position: absolute; } #powerTip.n:after, #powerTip.s:after, #powerTip.w:after, #powerTip.e:after, #powerTip.nw:after, #powerTip.ne:after, #powerTip.sw:after, #powerTip.se:after { border-color: rgba(255, 255, 255, 0); } #powerTip.n:before, #powerTip.s:before, #powerTip.w:before, #powerTip.e:before, #powerTip.nw:before, #powerTip.ne:before, #powerTip.sw:before, #powerTip.se:before { border-color: rgba(128, 128, 128, 0); } #powerTip.n:after, #powerTip.n:before, #powerTip.ne:after, #powerTip.ne:before, #powerTip.nw:after, #powerTip.nw:before { top: 100%; } #powerTip.n:after, #powerTip.ne:after, #powerTip.nw:after { border-top-color: #ffffff; border-width: 10px; margin: 0px -10px; } #powerTip.n:before { border-top-color: #808080; border-width: 11px; margin: 0px -11px; } #powerTip.n:after, #powerTip.n:before { left: 50%; } #powerTip.nw:after, #powerTip.nw:before { right: 14px; } #powerTip.ne:after, #powerTip.ne:before { left: 14px; } #powerTip.s:after, #powerTip.s:before, #powerTip.se:after, #powerTip.se:before, #powerTip.sw:after, #powerTip.sw:before { bottom: 100%; } #powerTip.s:after, #powerTip.se:after, #powerTip.sw:after { border-bottom-color: #ffffff; border-width: 10px; margin: 0px -10px; } #powerTip.s:before, #powerTip.se:before, #powerTip.sw:before { border-bottom-color: #808080; border-width: 11px; margin: 0px -11px; } #powerTip.s:after, #powerTip.s:before { left: 50%; } #powerTip.sw:after, #powerTip.sw:before { right: 14px; } #powerTip.se:after, #powerTip.se:before { left: 14px; } #powerTip.e:after, #powerTip.e:before { left: 100%; } #powerTip.e:after { border-left-color: #ffffff; border-width: 10px; top: 50%; margin-top: -10px; } #powerTip.e:before { border-left-color: #808080; border-width: 11px; top: 50%; margin-top: -11px; } #powerTip.w:after, #powerTip.w:before { right: 100%; } #powerTip.w:after { border-right-color: #ffffff; border-width: 10px; top: 50%; margin-top: -10px; } #powerTip.w:before { border-right-color: #808080; border-width: 11px; top: 50%; margin-top: -11px; } @media print { #top { display: none; } #side-nav { display: none; } #nav-path { display: none; } body { overflow:visible; } h1, h2, h3, h4, h5, h6 { page-break-after: avoid; } .summary { display: none; } .memitem { page-break-inside: avoid; } #doc-content { margin-left:0 !important; height:auto !important; width:auto !important; overflow:inherit; display:inline; } }
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/doxygen.css
CSS
apache-2.0
23,935
function toggleVisibility(linkObj) { var base = $(linkObj).attr('id'); var summary = $('#'+base+'-summary'); var content = $('#'+base+'-content'); var trigger = $('#'+base+'-trigger'); var src=$(trigger).attr('src'); if (content.is(':visible')===true) { content.hide(); summary.show(); $(linkObj).addClass('closed').removeClass('opened'); $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png'); } else { content.show(); summary.hide(); $(linkObj).removeClass('closed').addClass('opened'); $(trigger).attr('src',src.substring(0,src.length-10)+'open.png'); } return false; } function updateStripes() { $('table.directory tr'). removeClass('even').filter(':visible:even').addClass('even'); } function toggleLevel(level) { $('table.directory tr').each(function(){ var l = this.id.split('_').length-1; var i = $('#img'+this.id.substring(3)); var a = $('#arr'+this.id.substring(3)); if (l<level+1) { i.attr('src','ftv2folderopen.png'); a.attr('src','ftv2mnode.png'); $(this).show(); } else if (l==level+1) { i.attr('src','ftv2folderclosed.png'); a.attr('src','ftv2pnode.png'); $(this).show(); } else { $(this).hide(); } }); updateStripes(); } function toggleFolder(id) { //The clicked row var currentRow = $('#row_'+id); var currentRowImages = currentRow.find("img"); //All rows after the clicked row var rows = currentRow.nextAll("tr"); //Only match elements AFTER this one (can't hide elements before) var childRows = rows.filter(function() { var re = new RegExp('^row_'+id+'\\d+_$', "i"); //only one sub return this.id.match(re); }); //First row is visible we are HIDING if (childRows.filter(':first').is(':visible')===true) { currentRowImages.filter("[id^=arr]").attr('src', 'ftv2pnode.png'); currentRowImages.filter("[id^=img]").attr('src', 'ftv2folderclosed.png'); rows.filter("[id^=row_"+id+"]").hide(); } else { //We are SHOWING //All sub images var childImages = childRows.find("img"); var childImg = childImages.filter("[id^=img]"); var childArr = childImages.filter("[id^=arr]"); currentRow.find("[id^=arr]").attr('src', 'ftv2mnode.png'); //open row currentRow.find("[id^=img]").attr('src', 'ftv2folderopen.png'); //open row childImg.attr('src','ftv2folderclosed.png'); //children closed childArr.attr('src','ftv2pnode.png'); //children closed childRows.show(); //show all children } updateStripes(); } function toggleInherit(id) { var rows = $('tr.inherit.'+id); var img = $('tr.inherit_header.'+id+' img'); var src = $(img).attr('src'); if (rows.filter(':first').is(':visible')===true) { rows.css('display','none'); $(img).attr('src',src.substring(0,src.length-8)+'closed.png'); } else { rows.css('display','table-row'); // using show() causes jump in firefox $(img).attr('src',src.substring(0,src.length-10)+'open.png'); } }
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/dynsections.js
JavaScript
apache-2.0
2,983
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Data Fields</title> <title>CMSIS-Core (Cortex-M): Data Fields</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li> <li class="current"><a href="functions.html"><span>Data&#160;Fields</span></a></li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li class="current"><a href="functions.html"><span>All</span></a></li> <li><a href="functions_vars.html"><span>Variables</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="#index__"><span>_</span></a></li> <li><a href="#index_a"><span>a</span></a></li> <li><a href="#index_b"><span>b</span></a></li> <li><a href="#index_c"><span>c</span></a></li> <li><a href="#index_d"><span>d</span></a></li> <li><a href="#index_e"><span>e</span></a></li> <li><a href="#index_f"><span>f</span></a></li> <li><a href="#index_h"><span>h</span></a></li> <li><a href="#index_i"><span>i</span></a></li> <li><a href="#index_l"><span>l</span></a></li> <li><a href="#index_m"><span>m</span></a></li> <li><a href="#index_n"><span>n</span></a></li> <li><a href="#index_p"><span>p</span></a></li> <li><a href="#index_q"><span>q</span></a></li> <li><a href="#index_r"><span>r</span></a></li> <li><a href="#index_s"><span>s</span></a></li> <li><a href="#index_t"><span>t</span></a></li> <li><a href="#index_u"><span>u</span></a></li> <li><a href="#index_v"><span>v</span></a></li> <li><a href="#index_w"><span>w</span></a></li> <li class="current"><a href="#index_z"><span>z</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('functions.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> <div class="textblock">Here is a list of all struct and union fields with links to the structures/unions they belong to:</div> <h3><a class="anchor" id="index__"></a>- _ -</h3><ul> <li>_reserved0 : <a class="el" href="unionAPSR__Type.html#afbce95646fd514c10aa85ec0a33db728">APSR_Type</a> , <a class="el" href="unionCONTROL__Type.html#af8c314273a1e4970a5671bd7f8184f50">CONTROL_Type</a> , <a class="el" href="unionIPSR__Type.html#ad2eb0a06de4f03f58874a727716aa9aa">IPSR_Type</a> , <a class="el" href="unionxPSR__Type.html#af438e0f407357e914a70b5bd4d6a97c5">xPSR_Type</a> </li> </ul> <h3><a class="anchor" id="index_a"></a>- a -</h3><ul> <li>ACPR : <a class="el" href="structTPI__Type.html#a9e5e4421ef9c3d5b7ff8b24abd4e99b3">TPI_Type</a> </li> <li>ACTLR : <a class="el" href="structSCnSCB__Type.html#a13af9b718dde7481f1c0344f00593c23">SCnSCB_Type</a> </li> <li>ADR : <a class="el" href="structSCB__Type.html#af084e1b2dad004a88668efea1dfe7fa1">SCB_Type</a> </li> <li>AFSR : <a class="el" href="structSCB__Type.html#ab65372404ce64b0f0b35e2709429404e">SCB_Type</a> </li> <li>AIRCR : <a class="el" href="structSCB__Type.html#ad3e5b8934c647eb1b7383c1894f01380">SCB_Type</a> </li> </ul> <h3><a class="anchor" id="index_b"></a>- b -</h3><ul> <li>b : <a class="el" href="unionAPSR__Type.html#a7dbc79a057ded4b11ca5323fc2d5ab14">APSR_Type</a> , <a class="el" href="unionCONTROL__Type.html#adc6a38ab2980d0e9577b5a871da14eb9">CONTROL_Type</a> , <a class="el" href="unionIPSR__Type.html#add0d6497bd50c25569ea22b48a03ec50">IPSR_Type</a> , <a class="el" href="unionxPSR__Type.html#a3b1063bb5cdad67e037cba993b693b70">xPSR_Type</a> </li> <li>BFAR : <a class="el" href="structSCB__Type.html#a3f8e7e58be4e41c88dfa78f54589271c">SCB_Type</a> </li> </ul> <h3><a class="anchor" id="index_c"></a>- c -</h3><ul> <li>C : <a class="el" href="unionAPSR__Type.html#a86e2c5b891ecef1ab55b1edac0da79a6">APSR_Type</a> , <a class="el" href="unionxPSR__Type.html#a40213a6b5620410cac83b0d89564609d">xPSR_Type</a> </li> <li>CALIB : <a class="el" href="structSysTick__Type.html#afcadb0c6d35b21cdc0018658a13942de">SysTick_Type</a> </li> <li>CCR : <a class="el" href="structSCB__Type.html#a2d6653b0b70faac936046a02809b577f">SCB_Type</a> </li> <li>CFSR : <a class="el" href="structSCB__Type.html#a0cda9e061b42373383418663092ad19a">SCB_Type</a> </li> <li>CID0 : <a class="el" href="structITM__Type.html#a30bb2b166b1723867da4a708935677ba">ITM_Type</a> </li> <li>CID1 : <a class="el" href="structITM__Type.html#ac40df2c3a6cef02f90b4e82c8204756f">ITM_Type</a> </li> <li>CID2 : <a class="el" href="structITM__Type.html#a8000b92e4e528ae7ac4cb8b8d9f6757d">ITM_Type</a> </li> <li>CID3 : <a class="el" href="structITM__Type.html#a43451f43f514108d9eaed5b017f8d921">ITM_Type</a> </li> <li>CLAIMCLR : <a class="el" href="structTPI__Type.html#a0e10e292cb019a832b03ddd055b2f6ac">TPI_Type</a> </li> <li>CLAIMSET : <a class="el" href="structTPI__Type.html#af8b7d15fa5252b733dd4b11fa1b5730a">TPI_Type</a> </li> <li>COMP0 : <a class="el" href="structDWT__Type.html#a61c2965af5bc0643f9af65620b0e67c9">DWT_Type</a> </li> <li>COMP1 : <a class="el" href="structDWT__Type.html#a38714af6b7fa7c64d68f5e1efbe7a931">DWT_Type</a> </li> <li>COMP2 : <a class="el" href="structDWT__Type.html#a5ae6dde39989f27bae90afc2347deb46">DWT_Type</a> </li> <li>COMP3 : <a class="el" href="structDWT__Type.html#a85eb73d1848ac3f82d39d6c3e8910847">DWT_Type</a> </li> <li>CPACR : <a class="el" href="structSCB__Type.html#ac6a860c1b8d8154a1f00d99d23b67764">SCB_Type</a> </li> <li>CPICNT : <a class="el" href="structDWT__Type.html#a2c08096c82abe245c0fa97badc458154">DWT_Type</a> </li> <li>CPUID : <a class="el" href="structSCB__Type.html#a21e08d546d8b641bee298a459ea73e46">SCB_Type</a> </li> <li>CSPSR : <a class="el" href="structTPI__Type.html#a8826aa84e5806053395a742d38d59d0f">TPI_Type</a> </li> <li>CTRL : <a class="el" href="structDWT__Type.html#add790c53410023b3b581919bb681fe2a">DWT_Type</a> , <a class="el" href="structMPU__Type.html#a769178ef949f0d5d8f18ddbd9e4e926f">MPU_Type</a> , <a class="el" href="structSysTick__Type.html#a875e7afa5c4fd43997fb544a4ac6e37e">SysTick_Type</a> </li> <li>CYCCNT : <a class="el" href="structDWT__Type.html#a102eaa529d9098242851cb57c52b42d9">DWT_Type</a> </li> </ul> <h3><a class="anchor" id="index_d"></a>- d -</h3><ul> <li>DCRDR : <a class="el" href="structCoreDebug__Type.html#aab3cc92ef07bc1f04b3a3aa6db2c2d55">CoreDebug_Type</a> </li> <li>DCRSR : <a class="el" href="structCoreDebug__Type.html#af907cf64577eaf927dac6787df6dd98b">CoreDebug_Type</a> </li> <li>DEMCR : <a class="el" href="structCoreDebug__Type.html#aeb3126abc4c258a858f21f356c0df6ee">CoreDebug_Type</a> </li> <li>DEVARCH : <a class="el" href="structITM__Type.html#a2372a4ebb63e36d1eb3fcf83a74fd537">ITM_Type</a> </li> <li>DEVID : <a class="el" href="structTPI__Type.html#abc0ecda8a5446bc754080276bad77514">TPI_Type</a> </li> <li>DEVTYPE : <a class="el" href="structTPI__Type.html#ad98855854a719bbea33061e71529a472">TPI_Type</a> </li> <li>DFR : <a class="el" href="structSCB__Type.html#a85dd6fe77aab17e7ea89a52c59da6004">SCB_Type</a> </li> <li>DFSR : <a class="el" href="structSCB__Type.html#a191579bde0d21ff51d30a714fd887033">SCB_Type</a> </li> <li>DHCSR : <a class="el" href="structCoreDebug__Type.html#ad63554e4650da91a8e79929cbb63db66">CoreDebug_Type</a> </li> </ul> <h3><a class="anchor" id="index_e"></a>- e -</h3><ul> <li>EXCCNT : <a class="el" href="structDWT__Type.html#a9fe20c16c5167ca61486caf6832686d1">DWT_Type</a> </li> </ul> <h3><a class="anchor" id="index_f"></a>- f -</h3><ul> <li>FFCR : <a class="el" href="structTPI__Type.html#a3f68b6e73561b4849ebf953a894df8d2">TPI_Type</a> </li> <li>FFSR : <a class="el" href="structTPI__Type.html#a6c47a0b4c7ffc66093ef993d36bb441c">TPI_Type</a> </li> <li>FIFO0 : <a class="el" href="structTPI__Type.html#aa4d7b5cf39dff9f53bf7f69bc287a814">TPI_Type</a> </li> <li>FIFO1 : <a class="el" href="structTPI__Type.html#a061372fcd72f1eea871e2d9c1be849bc">TPI_Type</a> </li> <li>FOLDCNT : <a class="el" href="structDWT__Type.html#a1cfc48384ebd8fd8fb7e5d955aae6c97">DWT_Type</a> </li> <li>FPCA : <a class="el" href="unionCONTROL__Type.html#ac62cfff08e6f055e0101785bad7094cd">CONTROL_Type</a> </li> <li>FPCAR : <a class="el" href="structFPU__Type.html#a55263b468d0f8e11ac77aec9ff87c820">FPU_Type</a> </li> <li>FPCCR : <a class="el" href="structFPU__Type.html#af1b708c5e413739150df3d16ca3b7061">FPU_Type</a> </li> <li>FPDSCR : <a class="el" href="structFPU__Type.html#a58d1989664a06db6ec2e122eefa9f04a">FPU_Type</a> </li> <li>FSCR : <a class="el" href="structTPI__Type.html#ad6901bfd8a0089ca7e8a20475cf494a8">TPI_Type</a> </li> <li>FUNCTION0 : <a class="el" href="structDWT__Type.html#a579ae082f58a0317b7ef029b20f52889">DWT_Type</a> </li> <li>FUNCTION1 : <a class="el" href="structDWT__Type.html#a8dfcf25675f9606aa305c46e85182e4e">DWT_Type</a> </li> <li>FUNCTION2 : <a class="el" href="structDWT__Type.html#ab1b60d6600c38abae515bab8e86a188f">DWT_Type</a> </li> <li>FUNCTION3 : <a class="el" href="structDWT__Type.html#a52d4ff278fae6f9216c63b74ce328841">DWT_Type</a> </li> </ul> <h3><a class="anchor" id="index_h"></a>- h -</h3><ul> <li>HFSR : <a class="el" href="structSCB__Type.html#a14ad254659362b9752c69afe3fd80934">SCB_Type</a> </li> </ul> <h3><a class="anchor" id="index_i"></a>- i -</h3><ul> <li>IABR : <a class="el" href="structNVIC__Type.html#a4bca5452748ba84d64536fb6a5d795af">NVIC_Type</a> </li> <li>ICER : <a class="el" href="structNVIC__Type.html#a245df8bac1da05c39eadabede9323203">NVIC_Type</a> </li> <li>ICPR : <a class="el" href="structNVIC__Type.html#a8d8f45d9c5c67bba3c153c55574bac95">NVIC_Type</a> </li> <li>ICSR : <a class="el" href="structSCB__Type.html#a0ca18ef984d132c6bf4d9b61cd00f05a">SCB_Type</a> </li> <li>ICTR : <a class="el" href="structSCnSCB__Type.html#a34ec1d771245eb9bd0e3ec9336949762">SCnSCB_Type</a> </li> <li>IMCR : <a class="el" href="structITM__Type.html#ae2ce4d3a54df2fd11a197ccac4406cd0">ITM_Type</a> </li> <li>IP : <a class="el" href="structNVIC__Type.html#a7ff7364a4260df67a2784811e8da4efd">NVIC_Type</a> </li> <li>IRR : <a class="el" href="structITM__Type.html#a66eb82a070953f09909f39b8e516fb91">ITM_Type</a> </li> <li>ISAR : <a class="el" href="structSCB__Type.html#ae0136a2d2d3c45f016b2c449e92b2066">SCB_Type</a> </li> <li>ISER : <a class="el" href="structNVIC__Type.html#a9fccef5a60a0d5e81fcd7869a6274f47">NVIC_Type</a> </li> <li>ISPR : <a class="el" href="structNVIC__Type.html#a8f731a9f428efc86e8d311b52ce823d0">NVIC_Type</a> </li> <li>ISR : <a class="el" href="unionIPSR__Type.html#ab46e5f1b2f4d17cfb9aca4fffcbb2fa5">IPSR_Type</a> , <a class="el" href="unionxPSR__Type.html#a3e9120dcf1a829fc8d2302b4d0673970">xPSR_Type</a> </li> <li>IT : <a class="el" href="unionxPSR__Type.html#a3200966922a194d84425e2807a7f1328">xPSR_Type</a> </li> <li>ITATBCTR0 : <a class="el" href="structTPI__Type.html#aaa573b2e073e76e93c51ecec79c616d0">TPI_Type</a> </li> <li>ITATBCTR2 : <a class="el" href="structTPI__Type.html#ab358319b969d3fed0f89bbe33e9f1652">TPI_Type</a> </li> <li>ITCTRL : <a class="el" href="structTPI__Type.html#aaa4c823c10f115f7517c82ef86a5a68d">TPI_Type</a> </li> <li>IWR : <a class="el" href="structITM__Type.html#aa9da04891e48d1a2f054de186e9c4c94">ITM_Type</a> </li> </ul> <h3><a class="anchor" id="index_l"></a>- l -</h3><ul> <li>LAR : <a class="el" href="structITM__Type.html#a7f9c2a2113a11c7f3e98915f95b669d5">ITM_Type</a> </li> <li>LOAD : <a class="el" href="structSysTick__Type.html#a4780a489256bb9f54d0ba8ed4de191cd">SysTick_Type</a> </li> <li>LSR : <a class="el" href="structITM__Type.html#a3861c67933a24dd6632288c4ed0b80c8">ITM_Type</a> </li> <li>LSUCNT : <a class="el" href="structDWT__Type.html#acc05d89bdb1b4fe2fa499920ec02d0b1">DWT_Type</a> </li> </ul> <h3><a class="anchor" id="index_m"></a>- m -</h3><ul> <li>MASK0 : <a class="el" href="structDWT__Type.html#a821eb5e71f340ec077efc064cfc567db">DWT_Type</a> </li> <li>MASK1 : <a class="el" href="structDWT__Type.html#aabf94936c9340e62fed836dcfb152405">DWT_Type</a> </li> <li>MASK2 : <a class="el" href="structDWT__Type.html#a00ac4d830dfe0070a656cda9baed170f">DWT_Type</a> </li> <li>MASK3 : <a class="el" href="structDWT__Type.html#a2a509d8505c37a3b64f6b24993df5f3f">DWT_Type</a> </li> <li>MMFAR : <a class="el" href="structSCB__Type.html#a2d03d0b7cec2254f39eb1c46c7445e80">SCB_Type</a> </li> <li>MMFR : <a class="el" href="structSCB__Type.html#aa11887804412bda283cc85a83fdafa7c">SCB_Type</a> </li> <li>MVFR0 : <a class="el" href="structFPU__Type.html#a4f19014defe6033d070b80af19ef627c">FPU_Type</a> </li> <li>MVFR1 : <a class="el" href="structFPU__Type.html#a66f8cfa49a423b480001a4e101bf842d">FPU_Type</a> </li> </ul> <h3><a class="anchor" id="index_n"></a>- n -</h3><ul> <li>N : <a class="el" href="unionAPSR__Type.html#a7e7bbba9b00b0bb3283dc07f1abe37e0">APSR_Type</a> , <a class="el" href="unionxPSR__Type.html#a2db9a52f6d42809627d1a7a607c5dbc5">xPSR_Type</a> </li> <li>nPRIV : <a class="el" href="unionCONTROL__Type.html#a35c1732cf153b7b5c4bd321cf1de9605">CONTROL_Type</a> </li> </ul> <h3><a class="anchor" id="index_p"></a>- p -</h3><ul> <li>PCSR : <a class="el" href="structDWT__Type.html#a6353ca1d1ad9bc1be05d3b5632960113">DWT_Type</a> </li> <li>PFR : <a class="el" href="structSCB__Type.html#a681c9d9e518b217976bef38c2423d83d">SCB_Type</a> </li> <li>PID0 : <a class="el" href="structITM__Type.html#ab4a4cc97ad658e9c46cf17490daffb8a">ITM_Type</a> </li> <li>PID1 : <a class="el" href="structITM__Type.html#a89ea1d805a668d6589b22d8e678eb6a4">ITM_Type</a> </li> <li>PID2 : <a class="el" href="structITM__Type.html#a8471c4d77b7107cf580587509da69f38">ITM_Type</a> </li> <li>PID3 : <a class="el" href="structITM__Type.html#af317d5e2d946d70e6fb67c02b92cc8a3">ITM_Type</a> </li> <li>PID4 : <a class="el" href="structITM__Type.html#aad5e11dd4baf6d941bd6c7450f60a158">ITM_Type</a> </li> <li>PID5 : <a class="el" href="structITM__Type.html#af9085648bf18f69b5f9d1136d45e1d37">ITM_Type</a> </li> <li>PID6 : <a class="el" href="structITM__Type.html#ad34dbe6b1072c77d36281049c8b169f6">ITM_Type</a> </li> <li>PID7 : <a class="el" href="structITM__Type.html#a2bcec6803f28f30d5baf5e20e3517d3d">ITM_Type</a> </li> <li>PORT : <a class="el" href="structITM__Type.html#af95bc1810f9ea802d628cb9dea81e02e">ITM_Type</a> </li> </ul> <h3><a class="anchor" id="index_q"></a>- q -</h3><ul> <li>Q : <a class="el" href="unionAPSR__Type.html#a22d10913489d24ab08bd83457daa88de">APSR_Type</a> , <a class="el" href="unionxPSR__Type.html#add7cbd2b0abd8954d62cd7831796ac7c">xPSR_Type</a> </li> </ul> <h3><a class="anchor" id="index_r"></a>- r -</h3><ul> <li>RASR : <a class="el" href="structARM__MPU__Region__t.html#a6a3e404b403c8df611f27d902d745d8d">ARM_MPU_Region_t</a> , <a class="el" href="structMPU__Type.html#a8f00c4a5e31b0a8d103ed3b0732c17a3">MPU_Type</a> </li> <li>RASR_A1 : <a class="el" href="structMPU__Type.html#a1658326c6762637eeef8a79bb467445e">MPU_Type</a> </li> <li>RASR_A2 : <a class="el" href="structMPU__Type.html#a37131c513d8a8d211b402e5dfda97205">MPU_Type</a> </li> <li>RASR_A3 : <a class="el" href="structMPU__Type.html#a7d15172b163797736a6c6b4dcc0fa3dd">MPU_Type</a> </li> <li>RBAR : <a class="el" href="structARM__MPU__Region__t.html#afe7a7721aa08988d915670efa432cdd2">ARM_MPU_Region_t</a> , <a class="el" href="structMPU__Type.html#a990c609b26d990b8ba832b110adfd353">MPU_Type</a> </li> <li>RBAR_A1 : <a class="el" href="structMPU__Type.html#af8b510a85b175edfd8dd8cc93e967066">MPU_Type</a> </li> <li>RBAR_A2 : <a class="el" href="structMPU__Type.html#a80d534f0dfc080c841e1772c7a68e1a2">MPU_Type</a> </li> <li>RBAR_A3 : <a class="el" href="structMPU__Type.html#a207f6e9c3af753367554cc06df300a55">MPU_Type</a> </li> <li>RESERVED0 : <a class="el" href="structDWT__Type.html#addd893d655ed90d40705b20170daac59">DWT_Type</a> , <a class="el" href="structFPU__Type.html#a7b2967b069046c8544adbbc1db143a36">FPU_Type</a> , <a class="el" href="structNVIC__Type.html#a2de17698945ea49abd58a2d45bdc9c80">NVIC_Type</a> , <a class="el" href="structSCB__Type.html#ac89a5d9901e3748d22a7090bfca2bee6">SCB_Type</a> , <a class="el" href="structSCnSCB__Type.html#afe1d5fd2966d5062716613b05c8d0ae1">SCnSCB_Type</a> , <a class="el" href="structTPI__Type.html#af143c5e8fc9a3b2be2878e9c1f331aa9">TPI_Type</a> </li> <li>RESERVED1 : <a class="el" href="structDWT__Type.html#a069871233a8c1df03521e6d7094f1de4">DWT_Type</a> , <a class="el" href="structTPI__Type.html#ac3956fe93987b725d89d3be32738da12">TPI_Type</a> </li> <li>RESERVED2 : <a class="el" href="structDWT__Type.html#a8556ca1c32590517602d92fe0cd55738">DWT_Type</a> , <a class="el" href="structNVIC__Type.html#a0953af43af8ec7fd5869a1d826ce5b72">NVIC_Type</a> , <a class="el" href="structTPI__Type.html#ac7bbb92e6231b9b38ac483f7d161a096">TPI_Type</a> </li> <li>RESERVED3 : <a class="el" href="structNVIC__Type.html#a9dd330835dbf21471e7b5be8692d77ab">NVIC_Type</a> , <a class="el" href="structTPI__Type.html#a31700c8cdd26e4c094db72af33d9f24c">TPI_Type</a> </li> <li>RESERVED4 : <a class="el" href="structNVIC__Type.html#a5c0e5d507ac3c1bd5cdaaf9bbd177790">NVIC_Type</a> , <a class="el" href="structTPI__Type.html#a684071216fafee4e80be6aaa932cec46">TPI_Type</a> </li> <li>RESERVED5 : <a class="el" href="structNVIC__Type.html#a4f753b4f824270175af045ac99bc12e8">NVIC_Type</a> , <a class="el" href="structTPI__Type.html#a3f80dd93f6bab6524603a7aa58de9a30">TPI_Type</a> </li> <li>RESERVED7 : <a class="el" href="structTPI__Type.html#a476ca23fbc9480f1697fbec871130550">TPI_Type</a> </li> <li>RLAR : <a class="el" href="structARM__MPU__Region__t.html#ab5d3a650dbffd0b272bf7df5b140e8a8">ARM_MPU_Region_t</a> </li> <li>RNR : <a class="el" href="structMPU__Type.html#a2f7a117a12cb661c76edc4765453f05c">MPU_Type</a> </li> <li>RSERVED1 : <a class="el" href="structNVIC__Type.html#a6d1daf7ab6f2ba83f57ff67ae6f571fe">NVIC_Type</a> </li> </ul> <h3><a class="anchor" id="index_s"></a>- s -</h3><ul> <li>SCR : <a class="el" href="structSCB__Type.html#a3a4840c6fa4d1ee75544f4032c88ec34">SCB_Type</a> </li> <li>SHCSR : <a class="el" href="structSCB__Type.html#a7b5ae9741a99808043394c4743b635c4">SCB_Type</a> </li> <li>SHP : <a class="el" href="structSCB__Type.html#a85768f4b3dbbc41fd760041ee1202162">SCB_Type</a> </li> <li>SLEEPCNT : <a class="el" href="structDWT__Type.html#a416a54e2084ce66e5ca74f152a5ecc70">DWT_Type</a> </li> <li>SPPR : <a class="el" href="structTPI__Type.html#a12f79d4e3ddc69893ba8bff890d04cc5">TPI_Type</a> </li> <li>SPSEL : <a class="el" href="unionCONTROL__Type.html#a8cc085fea1c50a8bd9adea63931ee8e2">CONTROL_Type</a> </li> <li>SSPSR : <a class="el" href="structTPI__Type.html#a7b72598e20066133e505bb781690dc22">TPI_Type</a> </li> <li>STIR : <a class="el" href="structNVIC__Type.html#a37de89637466e007171c6b135299bc75">NVIC_Type</a> </li> </ul> <h3><a class="anchor" id="index_t"></a>- t -</h3><ul> <li>T : <a class="el" href="unionxPSR__Type.html#a7eed9fe24ae8d354cd76ae1c1110a658">xPSR_Type</a> </li> <li>TCR : <a class="el" href="structITM__Type.html#a04b9fbc83759cb818dfa161d39628426">ITM_Type</a> </li> <li>TER : <a class="el" href="structITM__Type.html#acd03c6858f7b678dab6a6121462e7807">ITM_Type</a> </li> <li>TPR : <a class="el" href="structITM__Type.html#ae907229ba50538bf370fbdfd54c099a2">ITM_Type</a> </li> <li>TRIGGER : <a class="el" href="structTPI__Type.html#a4d4cd2357f72333a82a1313228287bbd">TPI_Type</a> </li> <li>TYPE : <a class="el" href="structMPU__Type.html#aba02af87f77577c725cf73879cabb609">MPU_Type</a> </li> </ul> <h3><a class="anchor" id="index_u"></a>- u -</h3><ul> <li>u16 : <a class="el" href="structITM__Type.html#a962a970dfd286cad7f8a8577e87d4ad3">ITM_Type</a> </li> <li>u32 : <a class="el" href="structITM__Type.html#a5834885903a557674f078f3b71fa8bc8">ITM_Type</a> </li> <li>u8 : <a class="el" href="structITM__Type.html#ae773bf9f9dac64e6c28b14aa39f74275">ITM_Type</a> </li> </ul> <h3><a class="anchor" id="index_v"></a>- v -</h3><ul> <li>V : <a class="el" href="unionAPSR__Type.html#a8004d224aacb78ca37774c35f9156e7e">APSR_Type</a> , <a class="el" href="unionxPSR__Type.html#af14df16ea0690070c45b95f2116b7a0a">xPSR_Type</a> </li> <li>VAL : <a class="el" href="structSysTick__Type.html#a9b5420d17e8e43104ddd4ae5a610af93">SysTick_Type</a> </li> <li>VTOR : <a class="el" href="structSCB__Type.html#a187a4578e920544ed967f98020fb8170">SCB_Type</a> </li> </ul> <h3><a class="anchor" id="index_w"></a>- w -</h3><ul> <li>w : <a class="el" href="unionAPSR__Type.html#ae4c2ef8c9430d7b7bef5cbfbbaed3a94">APSR_Type</a> , <a class="el" href="unionCONTROL__Type.html#a6b642cca3d96da660b1198c133ca2a1f">CONTROL_Type</a> , <a class="el" href="unionIPSR__Type.html#a4adca999d3a0bc1ae682d73ea7cfa879">IPSR_Type</a> , <a class="el" href="unionxPSR__Type.html#a1a47176768f45f79076c4f5b1b534bc2">xPSR_Type</a> </li> </ul> <h3><a class="anchor" id="index_z"></a>- z -</h3><ul> <li>Z : <a class="el" href="unionAPSR__Type.html#a3b04d58738b66a28ff13f23d8b0ba7e5">APSR_Type</a> , <a class="el" href="unionxPSR__Type.html#a1e5d9801013d5146f2e02d9b7b3da562">xPSR_Type</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/functions.html
HTML
apache-2.0
26,426
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Data Fields - Variables</title> <title>CMSIS-Core (Cortex-M): Data Fields - Variables</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li> <li class="current"><a href="functions.html"><span>Data&#160;Fields</span></a></li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li><a href="functions.html"><span>All</span></a></li> <li class="current"><a href="functions_vars.html"><span>Variables</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="#index__"><span>_</span></a></li> <li><a href="#index_a"><span>a</span></a></li> <li><a href="#index_b"><span>b</span></a></li> <li><a href="#index_c"><span>c</span></a></li> <li><a href="#index_d"><span>d</span></a></li> <li><a href="#index_e"><span>e</span></a></li> <li><a href="#index_f"><span>f</span></a></li> <li><a href="#index_h"><span>h</span></a></li> <li><a href="#index_i"><span>i</span></a></li> <li><a href="#index_l"><span>l</span></a></li> <li><a href="#index_m"><span>m</span></a></li> <li><a href="#index_n"><span>n</span></a></li> <li><a href="#index_p"><span>p</span></a></li> <li><a href="#index_q"><span>q</span></a></li> <li><a href="#index_r"><span>r</span></a></li> <li><a href="#index_s"><span>s</span></a></li> <li><a href="#index_t"><span>t</span></a></li> <li><a href="#index_u"><span>u</span></a></li> <li><a href="#index_v"><span>v</span></a></li> <li><a href="#index_w"><span>w</span></a></li> <li class="current"><a href="#index_z"><span>z</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('functions_vars.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> &#160; <h3><a class="anchor" id="index__"></a>- _ -</h3><ul> <li>_reserved0 : <a class="el" href="unionAPSR__Type.html#afbce95646fd514c10aa85ec0a33db728">APSR_Type</a> , <a class="el" href="unionCONTROL__Type.html#af8c314273a1e4970a5671bd7f8184f50">CONTROL_Type</a> , <a class="el" href="unionIPSR__Type.html#ad2eb0a06de4f03f58874a727716aa9aa">IPSR_Type</a> , <a class="el" href="unionxPSR__Type.html#af438e0f407357e914a70b5bd4d6a97c5">xPSR_Type</a> </li> </ul> <h3><a class="anchor" id="index_a"></a>- a -</h3><ul> <li>ACPR : <a class="el" href="structTPI__Type.html#a9e5e4421ef9c3d5b7ff8b24abd4e99b3">TPI_Type</a> </li> <li>ACTLR : <a class="el" href="structSCnSCB__Type.html#a13af9b718dde7481f1c0344f00593c23">SCnSCB_Type</a> </li> <li>ADR : <a class="el" href="structSCB__Type.html#af084e1b2dad004a88668efea1dfe7fa1">SCB_Type</a> </li> <li>AFSR : <a class="el" href="structSCB__Type.html#ab65372404ce64b0f0b35e2709429404e">SCB_Type</a> </li> <li>AIRCR : <a class="el" href="structSCB__Type.html#ad3e5b8934c647eb1b7383c1894f01380">SCB_Type</a> </li> </ul> <h3><a class="anchor" id="index_b"></a>- b -</h3><ul> <li>b : <a class="el" href="unionAPSR__Type.html#a7dbc79a057ded4b11ca5323fc2d5ab14">APSR_Type</a> , <a class="el" href="unionCONTROL__Type.html#adc6a38ab2980d0e9577b5a871da14eb9">CONTROL_Type</a> , <a class="el" href="unionIPSR__Type.html#add0d6497bd50c25569ea22b48a03ec50">IPSR_Type</a> , <a class="el" href="unionxPSR__Type.html#a3b1063bb5cdad67e037cba993b693b70">xPSR_Type</a> </li> <li>BFAR : <a class="el" href="structSCB__Type.html#a3f8e7e58be4e41c88dfa78f54589271c">SCB_Type</a> </li> </ul> <h3><a class="anchor" id="index_c"></a>- c -</h3><ul> <li>C : <a class="el" href="unionAPSR__Type.html#a86e2c5b891ecef1ab55b1edac0da79a6">APSR_Type</a> , <a class="el" href="unionxPSR__Type.html#a40213a6b5620410cac83b0d89564609d">xPSR_Type</a> </li> <li>CALIB : <a class="el" href="structSysTick__Type.html#afcadb0c6d35b21cdc0018658a13942de">SysTick_Type</a> </li> <li>CCR : <a class="el" href="structSCB__Type.html#a2d6653b0b70faac936046a02809b577f">SCB_Type</a> </li> <li>CFSR : <a class="el" href="structSCB__Type.html#a0cda9e061b42373383418663092ad19a">SCB_Type</a> </li> <li>CID0 : <a class="el" href="structITM__Type.html#a30bb2b166b1723867da4a708935677ba">ITM_Type</a> </li> <li>CID1 : <a class="el" href="structITM__Type.html#ac40df2c3a6cef02f90b4e82c8204756f">ITM_Type</a> </li> <li>CID2 : <a class="el" href="structITM__Type.html#a8000b92e4e528ae7ac4cb8b8d9f6757d">ITM_Type</a> </li> <li>CID3 : <a class="el" href="structITM__Type.html#a43451f43f514108d9eaed5b017f8d921">ITM_Type</a> </li> <li>CLAIMCLR : <a class="el" href="structTPI__Type.html#a0e10e292cb019a832b03ddd055b2f6ac">TPI_Type</a> </li> <li>CLAIMSET : <a class="el" href="structTPI__Type.html#af8b7d15fa5252b733dd4b11fa1b5730a">TPI_Type</a> </li> <li>COMP0 : <a class="el" href="structDWT__Type.html#a61c2965af5bc0643f9af65620b0e67c9">DWT_Type</a> </li> <li>COMP1 : <a class="el" href="structDWT__Type.html#a38714af6b7fa7c64d68f5e1efbe7a931">DWT_Type</a> </li> <li>COMP2 : <a class="el" href="structDWT__Type.html#a5ae6dde39989f27bae90afc2347deb46">DWT_Type</a> </li> <li>COMP3 : <a class="el" href="structDWT__Type.html#a85eb73d1848ac3f82d39d6c3e8910847">DWT_Type</a> </li> <li>CPACR : <a class="el" href="structSCB__Type.html#ac6a860c1b8d8154a1f00d99d23b67764">SCB_Type</a> </li> <li>CPICNT : <a class="el" href="structDWT__Type.html#a2c08096c82abe245c0fa97badc458154">DWT_Type</a> </li> <li>CPUID : <a class="el" href="structSCB__Type.html#a21e08d546d8b641bee298a459ea73e46">SCB_Type</a> </li> <li>CSPSR : <a class="el" href="structTPI__Type.html#a8826aa84e5806053395a742d38d59d0f">TPI_Type</a> </li> <li>CTRL : <a class="el" href="structDWT__Type.html#add790c53410023b3b581919bb681fe2a">DWT_Type</a> , <a class="el" href="structMPU__Type.html#a769178ef949f0d5d8f18ddbd9e4e926f">MPU_Type</a> , <a class="el" href="structSysTick__Type.html#a875e7afa5c4fd43997fb544a4ac6e37e">SysTick_Type</a> </li> <li>CYCCNT : <a class="el" href="structDWT__Type.html#a102eaa529d9098242851cb57c52b42d9">DWT_Type</a> </li> </ul> <h3><a class="anchor" id="index_d"></a>- d -</h3><ul> <li>DCRDR : <a class="el" href="structCoreDebug__Type.html#aab3cc92ef07bc1f04b3a3aa6db2c2d55">CoreDebug_Type</a> </li> <li>DCRSR : <a class="el" href="structCoreDebug__Type.html#af907cf64577eaf927dac6787df6dd98b">CoreDebug_Type</a> </li> <li>DEMCR : <a class="el" href="structCoreDebug__Type.html#aeb3126abc4c258a858f21f356c0df6ee">CoreDebug_Type</a> </li> <li>DEVARCH : <a class="el" href="structITM__Type.html#a2372a4ebb63e36d1eb3fcf83a74fd537">ITM_Type</a> </li> <li>DEVID : <a class="el" href="structTPI__Type.html#abc0ecda8a5446bc754080276bad77514">TPI_Type</a> </li> <li>DEVTYPE : <a class="el" href="structTPI__Type.html#ad98855854a719bbea33061e71529a472">TPI_Type</a> </li> <li>DFR : <a class="el" href="structSCB__Type.html#a85dd6fe77aab17e7ea89a52c59da6004">SCB_Type</a> </li> <li>DFSR : <a class="el" href="structSCB__Type.html#a191579bde0d21ff51d30a714fd887033">SCB_Type</a> </li> <li>DHCSR : <a class="el" href="structCoreDebug__Type.html#ad63554e4650da91a8e79929cbb63db66">CoreDebug_Type</a> </li> </ul> <h3><a class="anchor" id="index_e"></a>- e -</h3><ul> <li>EXCCNT : <a class="el" href="structDWT__Type.html#a9fe20c16c5167ca61486caf6832686d1">DWT_Type</a> </li> </ul> <h3><a class="anchor" id="index_f"></a>- f -</h3><ul> <li>FFCR : <a class="el" href="structTPI__Type.html#a3f68b6e73561b4849ebf953a894df8d2">TPI_Type</a> </li> <li>FFSR : <a class="el" href="structTPI__Type.html#a6c47a0b4c7ffc66093ef993d36bb441c">TPI_Type</a> </li> <li>FIFO0 : <a class="el" href="structTPI__Type.html#aa4d7b5cf39dff9f53bf7f69bc287a814">TPI_Type</a> </li> <li>FIFO1 : <a class="el" href="structTPI__Type.html#a061372fcd72f1eea871e2d9c1be849bc">TPI_Type</a> </li> <li>FOLDCNT : <a class="el" href="structDWT__Type.html#a1cfc48384ebd8fd8fb7e5d955aae6c97">DWT_Type</a> </li> <li>FPCA : <a class="el" href="unionCONTROL__Type.html#ac62cfff08e6f055e0101785bad7094cd">CONTROL_Type</a> </li> <li>FPCAR : <a class="el" href="structFPU__Type.html#a55263b468d0f8e11ac77aec9ff87c820">FPU_Type</a> </li> <li>FPCCR : <a class="el" href="structFPU__Type.html#af1b708c5e413739150df3d16ca3b7061">FPU_Type</a> </li> <li>FPDSCR : <a class="el" href="structFPU__Type.html#a58d1989664a06db6ec2e122eefa9f04a">FPU_Type</a> </li> <li>FSCR : <a class="el" href="structTPI__Type.html#ad6901bfd8a0089ca7e8a20475cf494a8">TPI_Type</a> </li> <li>FUNCTION0 : <a class="el" href="structDWT__Type.html#a579ae082f58a0317b7ef029b20f52889">DWT_Type</a> </li> <li>FUNCTION1 : <a class="el" href="structDWT__Type.html#a8dfcf25675f9606aa305c46e85182e4e">DWT_Type</a> </li> <li>FUNCTION2 : <a class="el" href="structDWT__Type.html#ab1b60d6600c38abae515bab8e86a188f">DWT_Type</a> </li> <li>FUNCTION3 : <a class="el" href="structDWT__Type.html#a52d4ff278fae6f9216c63b74ce328841">DWT_Type</a> </li> </ul> <h3><a class="anchor" id="index_h"></a>- h -</h3><ul> <li>HFSR : <a class="el" href="structSCB__Type.html#a14ad254659362b9752c69afe3fd80934">SCB_Type</a> </li> </ul> <h3><a class="anchor" id="index_i"></a>- i -</h3><ul> <li>IABR : <a class="el" href="structNVIC__Type.html#a4bca5452748ba84d64536fb6a5d795af">NVIC_Type</a> </li> <li>ICER : <a class="el" href="structNVIC__Type.html#a245df8bac1da05c39eadabede9323203">NVIC_Type</a> </li> <li>ICPR : <a class="el" href="structNVIC__Type.html#a8d8f45d9c5c67bba3c153c55574bac95">NVIC_Type</a> </li> <li>ICSR : <a class="el" href="structSCB__Type.html#a0ca18ef984d132c6bf4d9b61cd00f05a">SCB_Type</a> </li> <li>ICTR : <a class="el" href="structSCnSCB__Type.html#a34ec1d771245eb9bd0e3ec9336949762">SCnSCB_Type</a> </li> <li>IMCR : <a class="el" href="structITM__Type.html#ae2ce4d3a54df2fd11a197ccac4406cd0">ITM_Type</a> </li> <li>IP : <a class="el" href="structNVIC__Type.html#a7ff7364a4260df67a2784811e8da4efd">NVIC_Type</a> </li> <li>IRR : <a class="el" href="structITM__Type.html#a66eb82a070953f09909f39b8e516fb91">ITM_Type</a> </li> <li>ISAR : <a class="el" href="structSCB__Type.html#ae0136a2d2d3c45f016b2c449e92b2066">SCB_Type</a> </li> <li>ISER : <a class="el" href="structNVIC__Type.html#a9fccef5a60a0d5e81fcd7869a6274f47">NVIC_Type</a> </li> <li>ISPR : <a class="el" href="structNVIC__Type.html#a8f731a9f428efc86e8d311b52ce823d0">NVIC_Type</a> </li> <li>ISR : <a class="el" href="unionIPSR__Type.html#ab46e5f1b2f4d17cfb9aca4fffcbb2fa5">IPSR_Type</a> , <a class="el" href="unionxPSR__Type.html#a3e9120dcf1a829fc8d2302b4d0673970">xPSR_Type</a> </li> <li>IT : <a class="el" href="unionxPSR__Type.html#a3200966922a194d84425e2807a7f1328">xPSR_Type</a> </li> <li>ITATBCTR0 : <a class="el" href="structTPI__Type.html#aaa573b2e073e76e93c51ecec79c616d0">TPI_Type</a> </li> <li>ITATBCTR2 : <a class="el" href="structTPI__Type.html#ab358319b969d3fed0f89bbe33e9f1652">TPI_Type</a> </li> <li>ITCTRL : <a class="el" href="structTPI__Type.html#aaa4c823c10f115f7517c82ef86a5a68d">TPI_Type</a> </li> <li>IWR : <a class="el" href="structITM__Type.html#aa9da04891e48d1a2f054de186e9c4c94">ITM_Type</a> </li> </ul> <h3><a class="anchor" id="index_l"></a>- l -</h3><ul> <li>LAR : <a class="el" href="structITM__Type.html#a7f9c2a2113a11c7f3e98915f95b669d5">ITM_Type</a> </li> <li>LOAD : <a class="el" href="structSysTick__Type.html#a4780a489256bb9f54d0ba8ed4de191cd">SysTick_Type</a> </li> <li>LSR : <a class="el" href="structITM__Type.html#a3861c67933a24dd6632288c4ed0b80c8">ITM_Type</a> </li> <li>LSUCNT : <a class="el" href="structDWT__Type.html#acc05d89bdb1b4fe2fa499920ec02d0b1">DWT_Type</a> </li> </ul> <h3><a class="anchor" id="index_m"></a>- m -</h3><ul> <li>MASK0 : <a class="el" href="structDWT__Type.html#a821eb5e71f340ec077efc064cfc567db">DWT_Type</a> </li> <li>MASK1 : <a class="el" href="structDWT__Type.html#aabf94936c9340e62fed836dcfb152405">DWT_Type</a> </li> <li>MASK2 : <a class="el" href="structDWT__Type.html#a00ac4d830dfe0070a656cda9baed170f">DWT_Type</a> </li> <li>MASK3 : <a class="el" href="structDWT__Type.html#a2a509d8505c37a3b64f6b24993df5f3f">DWT_Type</a> </li> <li>MMFAR : <a class="el" href="structSCB__Type.html#a2d03d0b7cec2254f39eb1c46c7445e80">SCB_Type</a> </li> <li>MMFR : <a class="el" href="structSCB__Type.html#aa11887804412bda283cc85a83fdafa7c">SCB_Type</a> </li> <li>MVFR0 : <a class="el" href="structFPU__Type.html#a4f19014defe6033d070b80af19ef627c">FPU_Type</a> </li> <li>MVFR1 : <a class="el" href="structFPU__Type.html#a66f8cfa49a423b480001a4e101bf842d">FPU_Type</a> </li> </ul> <h3><a class="anchor" id="index_n"></a>- n -</h3><ul> <li>N : <a class="el" href="unionAPSR__Type.html#a7e7bbba9b00b0bb3283dc07f1abe37e0">APSR_Type</a> , <a class="el" href="unionxPSR__Type.html#a2db9a52f6d42809627d1a7a607c5dbc5">xPSR_Type</a> </li> <li>nPRIV : <a class="el" href="unionCONTROL__Type.html#a35c1732cf153b7b5c4bd321cf1de9605">CONTROL_Type</a> </li> </ul> <h3><a class="anchor" id="index_p"></a>- p -</h3><ul> <li>PCSR : <a class="el" href="structDWT__Type.html#a6353ca1d1ad9bc1be05d3b5632960113">DWT_Type</a> </li> <li>PFR : <a class="el" href="structSCB__Type.html#a681c9d9e518b217976bef38c2423d83d">SCB_Type</a> </li> <li>PID0 : <a class="el" href="structITM__Type.html#ab4a4cc97ad658e9c46cf17490daffb8a">ITM_Type</a> </li> <li>PID1 : <a class="el" href="structITM__Type.html#a89ea1d805a668d6589b22d8e678eb6a4">ITM_Type</a> </li> <li>PID2 : <a class="el" href="structITM__Type.html#a8471c4d77b7107cf580587509da69f38">ITM_Type</a> </li> <li>PID3 : <a class="el" href="structITM__Type.html#af317d5e2d946d70e6fb67c02b92cc8a3">ITM_Type</a> </li> <li>PID4 : <a class="el" href="structITM__Type.html#aad5e11dd4baf6d941bd6c7450f60a158">ITM_Type</a> </li> <li>PID5 : <a class="el" href="structITM__Type.html#af9085648bf18f69b5f9d1136d45e1d37">ITM_Type</a> </li> <li>PID6 : <a class="el" href="structITM__Type.html#ad34dbe6b1072c77d36281049c8b169f6">ITM_Type</a> </li> <li>PID7 : <a class="el" href="structITM__Type.html#a2bcec6803f28f30d5baf5e20e3517d3d">ITM_Type</a> </li> <li>PORT : <a class="el" href="structITM__Type.html#af95bc1810f9ea802d628cb9dea81e02e">ITM_Type</a> </li> </ul> <h3><a class="anchor" id="index_q"></a>- q -</h3><ul> <li>Q : <a class="el" href="unionAPSR__Type.html#a22d10913489d24ab08bd83457daa88de">APSR_Type</a> , <a class="el" href="unionxPSR__Type.html#add7cbd2b0abd8954d62cd7831796ac7c">xPSR_Type</a> </li> </ul> <h3><a class="anchor" id="index_r"></a>- r -</h3><ul> <li>RASR : <a class="el" href="structARM__MPU__Region__t.html#a6a3e404b403c8df611f27d902d745d8d">ARM_MPU_Region_t</a> , <a class="el" href="structMPU__Type.html#a8f00c4a5e31b0a8d103ed3b0732c17a3">MPU_Type</a> </li> <li>RASR_A1 : <a class="el" href="structMPU__Type.html#a1658326c6762637eeef8a79bb467445e">MPU_Type</a> </li> <li>RASR_A2 : <a class="el" href="structMPU__Type.html#a37131c513d8a8d211b402e5dfda97205">MPU_Type</a> </li> <li>RASR_A3 : <a class="el" href="structMPU__Type.html#a7d15172b163797736a6c6b4dcc0fa3dd">MPU_Type</a> </li> <li>RBAR : <a class="el" href="structARM__MPU__Region__t.html#afe7a7721aa08988d915670efa432cdd2">ARM_MPU_Region_t</a> , <a class="el" href="structMPU__Type.html#a990c609b26d990b8ba832b110adfd353">MPU_Type</a> </li> <li>RBAR_A1 : <a class="el" href="structMPU__Type.html#af8b510a85b175edfd8dd8cc93e967066">MPU_Type</a> </li> <li>RBAR_A2 : <a class="el" href="structMPU__Type.html#a80d534f0dfc080c841e1772c7a68e1a2">MPU_Type</a> </li> <li>RBAR_A3 : <a class="el" href="structMPU__Type.html#a207f6e9c3af753367554cc06df300a55">MPU_Type</a> </li> <li>RESERVED0 : <a class="el" href="structDWT__Type.html#addd893d655ed90d40705b20170daac59">DWT_Type</a> , <a class="el" href="structFPU__Type.html#a7b2967b069046c8544adbbc1db143a36">FPU_Type</a> , <a class="el" href="structNVIC__Type.html#a2de17698945ea49abd58a2d45bdc9c80">NVIC_Type</a> , <a class="el" href="structSCB__Type.html#ac89a5d9901e3748d22a7090bfca2bee6">SCB_Type</a> , <a class="el" href="structSCnSCB__Type.html#afe1d5fd2966d5062716613b05c8d0ae1">SCnSCB_Type</a> , <a class="el" href="structTPI__Type.html#af143c5e8fc9a3b2be2878e9c1f331aa9">TPI_Type</a> </li> <li>RESERVED1 : <a class="el" href="structDWT__Type.html#a069871233a8c1df03521e6d7094f1de4">DWT_Type</a> , <a class="el" href="structTPI__Type.html#ac3956fe93987b725d89d3be32738da12">TPI_Type</a> </li> <li>RESERVED2 : <a class="el" href="structDWT__Type.html#a8556ca1c32590517602d92fe0cd55738">DWT_Type</a> , <a class="el" href="structNVIC__Type.html#a0953af43af8ec7fd5869a1d826ce5b72">NVIC_Type</a> , <a class="el" href="structTPI__Type.html#ac7bbb92e6231b9b38ac483f7d161a096">TPI_Type</a> </li> <li>RESERVED3 : <a class="el" href="structNVIC__Type.html#a9dd330835dbf21471e7b5be8692d77ab">NVIC_Type</a> , <a class="el" href="structTPI__Type.html#a31700c8cdd26e4c094db72af33d9f24c">TPI_Type</a> </li> <li>RESERVED4 : <a class="el" href="structNVIC__Type.html#a5c0e5d507ac3c1bd5cdaaf9bbd177790">NVIC_Type</a> , <a class="el" href="structTPI__Type.html#a684071216fafee4e80be6aaa932cec46">TPI_Type</a> </li> <li>RESERVED5 : <a class="el" href="structNVIC__Type.html#a4f753b4f824270175af045ac99bc12e8">NVIC_Type</a> , <a class="el" href="structTPI__Type.html#a3f80dd93f6bab6524603a7aa58de9a30">TPI_Type</a> </li> <li>RESERVED7 : <a class="el" href="structTPI__Type.html#a476ca23fbc9480f1697fbec871130550">TPI_Type</a> </li> <li>RLAR : <a class="el" href="structARM__MPU__Region__t.html#ab5d3a650dbffd0b272bf7df5b140e8a8">ARM_MPU_Region_t</a> </li> <li>RNR : <a class="el" href="structMPU__Type.html#a2f7a117a12cb661c76edc4765453f05c">MPU_Type</a> </li> <li>RSERVED1 : <a class="el" href="structNVIC__Type.html#a6d1daf7ab6f2ba83f57ff67ae6f571fe">NVIC_Type</a> </li> </ul> <h3><a class="anchor" id="index_s"></a>- s -</h3><ul> <li>SCR : <a class="el" href="structSCB__Type.html#a3a4840c6fa4d1ee75544f4032c88ec34">SCB_Type</a> </li> <li>SHCSR : <a class="el" href="structSCB__Type.html#a7b5ae9741a99808043394c4743b635c4">SCB_Type</a> </li> <li>SHP : <a class="el" href="structSCB__Type.html#a85768f4b3dbbc41fd760041ee1202162">SCB_Type</a> </li> <li>SLEEPCNT : <a class="el" href="structDWT__Type.html#a416a54e2084ce66e5ca74f152a5ecc70">DWT_Type</a> </li> <li>SPPR : <a class="el" href="structTPI__Type.html#a12f79d4e3ddc69893ba8bff890d04cc5">TPI_Type</a> </li> <li>SPSEL : <a class="el" href="unionCONTROL__Type.html#a8cc085fea1c50a8bd9adea63931ee8e2">CONTROL_Type</a> </li> <li>SSPSR : <a class="el" href="structTPI__Type.html#a7b72598e20066133e505bb781690dc22">TPI_Type</a> </li> <li>STIR : <a class="el" href="structNVIC__Type.html#a37de89637466e007171c6b135299bc75">NVIC_Type</a> </li> </ul> <h3><a class="anchor" id="index_t"></a>- t -</h3><ul> <li>T : <a class="el" href="unionxPSR__Type.html#a7eed9fe24ae8d354cd76ae1c1110a658">xPSR_Type</a> </li> <li>TCR : <a class="el" href="structITM__Type.html#a04b9fbc83759cb818dfa161d39628426">ITM_Type</a> </li> <li>TER : <a class="el" href="structITM__Type.html#acd03c6858f7b678dab6a6121462e7807">ITM_Type</a> </li> <li>TPR : <a class="el" href="structITM__Type.html#ae907229ba50538bf370fbdfd54c099a2">ITM_Type</a> </li> <li>TRIGGER : <a class="el" href="structTPI__Type.html#a4d4cd2357f72333a82a1313228287bbd">TPI_Type</a> </li> <li>TYPE : <a class="el" href="structMPU__Type.html#aba02af87f77577c725cf73879cabb609">MPU_Type</a> </li> </ul> <h3><a class="anchor" id="index_u"></a>- u -</h3><ul> <li>u16 : <a class="el" href="structITM__Type.html#a962a970dfd286cad7f8a8577e87d4ad3">ITM_Type</a> </li> <li>u32 : <a class="el" href="structITM__Type.html#a5834885903a557674f078f3b71fa8bc8">ITM_Type</a> </li> <li>u8 : <a class="el" href="structITM__Type.html#ae773bf9f9dac64e6c28b14aa39f74275">ITM_Type</a> </li> </ul> <h3><a class="anchor" id="index_v"></a>- v -</h3><ul> <li>V : <a class="el" href="unionAPSR__Type.html#a8004d224aacb78ca37774c35f9156e7e">APSR_Type</a> , <a class="el" href="unionxPSR__Type.html#af14df16ea0690070c45b95f2116b7a0a">xPSR_Type</a> </li> <li>VAL : <a class="el" href="structSysTick__Type.html#a9b5420d17e8e43104ddd4ae5a610af93">SysTick_Type</a> </li> <li>VTOR : <a class="el" href="structSCB__Type.html#a187a4578e920544ed967f98020fb8170">SCB_Type</a> </li> </ul> <h3><a class="anchor" id="index_w"></a>- w -</h3><ul> <li>w : <a class="el" href="unionAPSR__Type.html#ae4c2ef8c9430d7b7bef5cbfbbaed3a94">APSR_Type</a> , <a class="el" href="unionCONTROL__Type.html#a6b642cca3d96da660b1198c133ca2a1f">CONTROL_Type</a> , <a class="el" href="unionIPSR__Type.html#a4adca999d3a0bc1ae682d73ea7cfa879">IPSR_Type</a> , <a class="el" href="unionxPSR__Type.html#a1a47176768f45f79076c4f5b1b534bc2">xPSR_Type</a> </li> </ul> <h3><a class="anchor" id="index_z"></a>- z -</h3><ul> <li>Z : <a class="el" href="unionAPSR__Type.html#a3b04d58738b66a28ff13f23d8b0ba7e5">APSR_Type</a> , <a class="el" href="unionxPSR__Type.html#a1e5d9801013d5146f2e02d9b7b3da562">xPSR_Type</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/functions_vars.html
HTML
apache-2.0
26,335
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li class="current"><a href="globals.html"><span>All</span></a></li> <li><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li class="current"><a href="globals.html#index__"><span>_</span></a></li> <li><a href="globals_a.html#index_a"><span>a</span></a></li> <li><a href="globals_b.html#index_b"><span>b</span></a></li> <li><a href="globals_c.html#index_c"><span>c</span></a></li> <li><a href="globals_d.html#index_d"><span>d</span></a></li> <li><a href="globals_h.html#index_h"><span>h</span></a></li> <li><a href="globals_i.html#index_i"><span>i</span></a></li> <li><a href="globals_m.html#index_m"><span>m</span></a></li> <li><a href="globals_n.html#index_n"><span>n</span></a></li> <li><a href="globals_p.html#index_p"><span>p</span></a></li> <li><a href="globals_s.html#index_s"><span>s</span></a></li> <li><a href="globals_t.html#index_t"><span>t</span></a></li> <li><a href="globals_u.html#index_u"><span>u</span></a></li> <li><a href="globals_w.html#index_w"><span>w</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> <div class="textblock">Here is a list of all functions, variables, defines, enums, and typedefs with links to the files they belong to:</div> <h3><a class="anchor" id="index__"></a>- _ -</h3><ul> <li>__ALIGNED : <a class="el" href="group__compiler__conntrol__gr.html#ga0c58caa5a273e2c21924509a45f8b849">Ref_CompilerControl.txt</a> </li> <li>__ARM_ARCH_6M__ : <a class="el" href="group__compiler__conntrol__gr.html#ga8be4ebde5d4dd91b161d206545ce59aa">Ref_CompilerControl.txt</a> </li> <li>__ARM_ARCH_7EM__ : <a class="el" href="group__compiler__conntrol__gr.html#ga43ab3e79ec5ecb615f1f2f6e83e7d48a">Ref_CompilerControl.txt</a> </li> <li>__ARM_ARCH_7M__ : <a class="el" href="group__compiler__conntrol__gr.html#ga43e1af8bedda108dfc4f8584e6b278a2">Ref_CompilerControl.txt</a> </li> <li>__ARM_ARCH_8M_BASE__ : <a class="el" href="group__compiler__conntrol__gr.html#gab3f1284f4cdc6c5e5c9c9d4b8ec29b2a">Ref_CompilerControl.txt</a> </li> <li>__ARM_ARCH_8M_MAIN__ : <a class="el" href="group__compiler__conntrol__gr.html#gad424c7143edd08c982dddad0ff65f4cd">Ref_CompilerControl.txt</a> </li> <li>__ASM : <a class="el" href="group__compiler__conntrol__gr.html#ga1378040bcf22428955c6e3ce9c2053cd">Ref_CompilerControl.txt</a> </li> <li>__BKPT() : <a class="el" href="group__intrinsic__CPU__gr.html#ga92f5621626711931da71eaa8bf301af7">Ref_cmInstr.txt</a> </li> <li>__CLREX() : <a class="el" href="group__intrinsic__CPU__gr.html#ga354c5ac8870cc3dfb823367af9c4b412">Ref_cmInstr.txt</a> </li> <li>__CLZ() : <a class="el" href="group__intrinsic__CPU__gr.html#ga90884c591ac5d73d6069334eba9d6c02">Ref_cmInstr.txt</a> </li> <li>__CM_CMSIS_VERSION : <a class="el" href="group__version__control__gr.html#ga39f3d64ff95fb58feccc7639e537ff89">Ref_VersionControl.txt</a> </li> <li>__CM_CMSIS_VERSION_MAIN : <a class="el" href="group__version__control__gr.html#ga85987c5fcc1e012d7ac01369ee6ca2b5">Ref_VersionControl.txt</a> </li> <li>__CM_CMSIS_VERSION_SUB : <a class="el" href="group__version__control__gr.html#ga22083cbe7f0606cfd538ec12b2e41608">Ref_VersionControl.txt</a> </li> <li>__COMPILER_BARRIER : <a class="el" href="group__compiler__conntrol__gr.html#ga6f053389e2958b5a239a54d4e4047bf5">Ref_CompilerControl.txt</a> </li> <li>__CORTEX_M : <a class="el" href="group__version__control__gr.html#ga63ea62503c88acab19fcf3d5743009e3">Ref_VersionControl.txt</a> </li> <li>__CORTEX_SC : <a class="el" href="group__version__control__gr.html#gaeaaf66c86e5ae02a0e1fe542cb7f4d8c">Ref_VersionControl.txt</a> </li> <li>__disable_fault_irq() : <a class="el" href="group__Core__Register__gr.html#ga9d174f979b2f76fdb3228a9b338fd939">Ref_CoreReg.txt</a> </li> <li>__disable_irq() : <a class="el" href="group__Core__Register__gr.html#gaeb8e5f7564a8ea23678fe3c987b04013">Ref_CoreReg.txt</a> </li> <li>__DMB() : <a class="el" href="group__intrinsic__CPU__gr.html#gab1c9b393641dc2d397b3408fdbe72b96">Ref_cmInstr.txt</a> </li> <li>__DSB() : <a class="el" href="group__intrinsic__CPU__gr.html#gacb2a8ca6eae1ba4b31161578b720c199">Ref_cmInstr.txt</a> </li> <li>__enable_fault_irq() : <a class="el" href="group__Core__Register__gr.html#ga6575d37863cec5d334864f93b5b783bf">Ref_CoreReg.txt</a> </li> <li>__enable_irq() : <a class="el" href="group__Core__Register__gr.html#ga0f98dfbd252b89d12564472dbeba9c27">Ref_CoreReg.txt</a> </li> <li>__get_APSR() : <a class="el" href="group__Core__Register__gr.html#ga811c0012221ee918a75111ca84c4d5e7">Ref_CoreReg.txt</a> </li> <li>__get_BASEPRI() : <a class="el" href="group__Core__Register__gr.html#ga32da759f46e52c95bcfbde5012260667">Ref_CoreReg.txt</a> </li> <li>__get_CONTROL() : <a class="el" href="group__Core__Register__gr.html#ga963cf236b73219ce78e965deb01b81a7">Ref_CoreReg.txt</a> </li> <li>__get_FAULTMASK() : <a class="el" href="group__Core__Register__gr.html#gaa78e4e6bf619a65e9f01b4af13fed3a8">Ref_CoreReg.txt</a> </li> <li>__get_FPSCR() : <a class="el" href="group__Core__Register__gr.html#gad6d7eca9ddd1d9072dd7b020cfe64905">Ref_CoreReg.txt</a> </li> <li>__get_IPSR() : <a class="el" href="group__Core__Register__gr.html#ga2c32fc5c7f8f07fb3d436c6f6fe4e8c8">Ref_CoreReg.txt</a> </li> <li>__get_MSP() : <a class="el" href="group__Core__Register__gr.html#gab898559392ba027814e5bbb5a98b38d2">Ref_CoreReg.txt</a> </li> <li>__get_MSPLIM() : <a class="el" href="group__Core__Register__gr.html#gaf39856ca50fc88cf459031b44eb2521c">Ref_CoreReg.txt</a> </li> <li>__get_PRIMASK() : <a class="el" href="group__Core__Register__gr.html#ga799b5d9a2ae75e459264c8512c7c0e02">Ref_CoreReg.txt</a> </li> <li>__get_PSP() : <a class="el" href="group__Core__Register__gr.html#ga914dfa8eff7ca53380dd54cf1d8bebd9">Ref_CoreReg.txt</a> </li> <li>__get_PSPLIM() : <a class="el" href="group__Core__Register__gr.html#ga8b226929264e903c7019e326b42bef47">Ref_CoreReg.txt</a> </li> <li>__get_xPSR() : <a class="el" href="group__Core__Register__gr.html#ga732e08184154f44a617963cc65ff95bd">Ref_CoreReg.txt</a> </li> <li>__INITIAL_SP : <a class="el" href="group__compiler__conntrol__gr.html#ga1002e751427b1189f92787d4e4eef965">Ref_CompilerControl.txt</a> </li> <li>__INLINE : <a class="el" href="group__compiler__conntrol__gr.html#gade2d8d7118f8ff49547f60aa0c3382bb">Ref_CompilerControl.txt</a> </li> <li>__ISB() : <a class="el" href="group__intrinsic__CPU__gr.html#ga93c09b4709394d81977300d5f84950e5">Ref_cmInstr.txt</a> </li> <li>__LDA() : <a class="el" href="group__intrinsic__CPU__gr.html#ga22a24f416b65c2f5a82d9f1162d9394d">Ref_cmInstr.txt</a> </li> <li>__LDAB() : <a class="el" href="group__intrinsic__CPU__gr.html#ga263b9b2d9c06d731022873acddb6aa3f">Ref_cmInstr.txt</a> </li> <li>__LDAEX() : <a class="el" href="group__intrinsic__CPU__gr.html#ga3c74d923529f664eda099d1b2668b3c1">Ref_cmInstr.txt</a> </li> <li>__LDAEXB() : <a class="el" href="group__intrinsic__CPU__gr.html#ga513beada40cdd7123281f22482603bcc">Ref_cmInstr.txt</a> </li> <li>__LDAEXH() : <a class="el" href="group__intrinsic__CPU__gr.html#ga426b61640fc68f21b21ae4dc2726f3b4">Ref_cmInstr.txt</a> </li> <li>__LDAH() : <a class="el" href="group__intrinsic__CPU__gr.html#ga5810ac0b87a37e321c2f909cd3860499">Ref_cmInstr.txt</a> </li> <li>__LDRBT() : <a class="el" href="group__intrinsic__CPU__gr.html#ga9464d75db32846aa8295c3c3adfacb41">Ref_cmInstr.txt</a> </li> <li>__LDREXB() : <a class="el" href="group__intrinsic__CPU__gr.html#ga9e3ac13d8dcf4331176b624cf6234a7e">Ref_cmInstr.txt</a> </li> <li>__LDREXH() : <a class="el" href="group__intrinsic__CPU__gr.html#ga9feffc093d6f68b120d592a7a0d45a15">Ref_cmInstr.txt</a> </li> <li>__LDREXW() : <a class="el" href="group__intrinsic__CPU__gr.html#gabd78840a0f2464905b7cec791ebc6a4c">Ref_cmInstr.txt</a> </li> <li>__LDRHT() : <a class="el" href="group__intrinsic__CPU__gr.html#gaa762b8bc5634ce38cb14d62a6b2aee32">Ref_cmInstr.txt</a> </li> <li>__LDRT() : <a class="el" href="group__intrinsic__CPU__gr.html#ga616504f5da979ba8a073d428d6e8d5c7">Ref_cmInstr.txt</a> </li> <li>__NO_RETURN : <a class="el" href="group__compiler__conntrol__gr.html#ga153a4a31b276a9758959580538720a51">Ref_CompilerControl.txt</a> </li> <li>__NOP() : <a class="el" href="group__intrinsic__CPU__gr.html#gac71fad9f0a91980fecafcb450ee0a63e">Ref_cmInstr.txt</a> </li> <li>__PACKED : <a class="el" href="group__compiler__conntrol__gr.html#gabe8996d3d985ee1529475443cc635bf1">Ref_CompilerControl.txt</a> </li> <li>__PACKED_STRUCT : <a class="el" href="group__compiler__conntrol__gr.html#ga4dbb70fab85207c27b581ecb6532b314">Ref_CompilerControl.txt</a> </li> <li>__PKHBT() : <a class="el" href="group__intrinsic__SIMD__gr.html#gaefb8ebf3a54e197464da1ff69a44f4b5">Ref_cm4_simd.txt</a> </li> <li>__PKHTB() : <a class="el" href="group__intrinsic__SIMD__gr.html#gafd8fe4a6d87e947caa81a69ec36c1666">Ref_cm4_simd.txt</a> </li> <li>__PROGRAM_START : <a class="el" href="group__compiler__conntrol__gr.html#ga72db8b026c5e100254080fefabd9fd88">Ref_CompilerControl.txt</a> </li> <li>__QADD() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga17b873f246c9f5e9355760ffef3dad4a">Ref_cm4_simd.txt</a> </li> <li>__QADD16() : <a class="el" href="group__intrinsic__SIMD__gr.html#gae83a53ec04b496304bed6d9fe8f7461b">Ref_cm4_simd.txt</a> </li> <li>__QADD8() : <a class="el" href="group__intrinsic__SIMD__gr.html#gaf2f5a9132dcfc6d01d34cd971c425713">Ref_cm4_simd.txt</a> </li> <li>__QASX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga87618799672e1511e33964bc71467eb3">Ref_cm4_simd.txt</a> </li> <li>__QSAX() : <a class="el" href="group__intrinsic__SIMD__gr.html#gab41eb2b17512ab01d476fc9d5bd19520">Ref_cm4_simd.txt</a> </li> <li>__QSUB() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga3ba259f8f05a36f7b88b469a71ffc096">Ref_cm4_simd.txt</a> </li> <li>__QSUB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#gad089605c16df9823a2c8aaa37777aae5">Ref_cm4_simd.txt</a> </li> <li>__QSUB8() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga753493a65493880c28baa82c151a0d61">Ref_cm4_simd.txt</a> </li> <li>__RBIT() : <a class="el" href="group__intrinsic__CPU__gr.html#gad6f9f297f6b91a995ee199fbc796b863">Ref_cmInstr.txt</a> </li> <li>__RESTRICT : <a class="el" href="group__compiler__conntrol__gr.html#ga378ac21329d33f561f90265eef89f564">Ref_CompilerControl.txt</a> </li> <li>__REV() : <a class="el" href="group__intrinsic__CPU__gr.html#ga4717abc17af5ba29b1e4c055e0a0d9b8">Ref_cmInstr.txt</a> </li> <li>__REV16() : <a class="el" href="group__intrinsic__CPU__gr.html#gaeef6f853b6df3a365c838ee5b49a7a26">Ref_cmInstr.txt</a> </li> <li>__REVSH() : <a class="el" href="group__intrinsic__CPU__gr.html#ga211618c03a0bf3264a7b22ad626d4f0a">Ref_cmInstr.txt</a> </li> <li>__ROR() : <a class="el" href="group__intrinsic__CPU__gr.html#gaf66beb577bb9d90424c3d1d7f684c024">Ref_cmInstr.txt</a> </li> <li>__RRX() : <a class="el" href="group__intrinsic__CPU__gr.html#gac09134f1bf9c49db07282001afcc9380">Ref_cmInstr.txt</a> </li> <li>__SADD16() : <a class="el" href="group__intrinsic__SIMD__gr.html#gad0bf46373a1c05aabf64517e84be5984">Ref_cm4_simd.txt</a> </li> <li>__SADD8() : <a class="el" href="group__intrinsic__SIMD__gr.html#gac20aa0f741d0a1494d58c531e38d5785">Ref_cm4_simd.txt</a> </li> <li>__SASX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga5845084fd99c872e98cf5553d554de2a">Ref_cm4_simd.txt</a> </li> <li>__SEL() : <a class="el" href="group__intrinsic__SIMD__gr.html#gaf5448e591fe49161b6759b48aecb08fe">Ref_cm4_simd.txt</a> </li> <li>__set_BASEPRI() : <a class="el" href="group__Core__Register__gr.html#ga360c73eb7ffb16088556f9278953b882">Ref_CoreReg.txt</a> </li> <li>__set_BASEPRI_MAX() : <a class="el" href="group__Core__Register__gr.html#ga62fa63d39cf22df348857d5f44ab64d9">Ref_CoreReg.txt</a> </li> <li>__set_CONTROL() : <a class="el" href="group__Core__Register__gr.html#gac64d37e7ff9de06437f9fb94bbab8b6c">Ref_CoreReg.txt</a> </li> <li>__set_FAULTMASK() : <a class="el" href="group__Core__Register__gr.html#gaa5587cc09031053a40a35c14ec36078a">Ref_CoreReg.txt</a> </li> <li>__set_FPSCR() : <a class="el" href="group__Core__Register__gr.html#ga6f26bd75ca7e3247f27b272acc10536b">Ref_CoreReg.txt</a> </li> <li>__set_MSP() : <a class="el" href="group__Core__Register__gr.html#ga0bf9564ebc1613a8faba014275dac2a4">Ref_CoreReg.txt</a> </li> <li>__set_MSPLIM() : <a class="el" href="group__Core__Register__gr.html#ga6809a07c5cb7410e361f3fba57f72172">Ref_CoreReg.txt</a> </li> <li>__set_PRIMASK() : <a class="el" href="group__Core__Register__gr.html#ga70b4e1a6c1c86eb913fb9d6e8400156f">Ref_CoreReg.txt</a> </li> <li>__set_PSP() : <a class="el" href="group__Core__Register__gr.html#ga48e5853f417e17a8a65080f6a605b743">Ref_CoreReg.txt</a> </li> <li>__set_PSPLIM() : <a class="el" href="group__Core__Register__gr.html#ga4348d14fc5eefbfd34ab8c51be44a81b">Ref_CoreReg.txt</a> </li> <li>__SEV() : <a class="el" href="group__intrinsic__CPU__gr.html#ga3c34da7eb16496ae2668a5b95fa441e7">Ref_cmInstr.txt</a> </li> <li>__SHADD16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga15d8899a173effb8ad8c7268da32b60e">Ref_cm4_simd.txt</a> </li> <li>__SHADD8() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga524575b442ea01aec10c762bf4d85fea">Ref_cm4_simd.txt</a> </li> <li>__SHASX() : <a class="el" href="group__intrinsic__SIMD__gr.html#gae0a649035f67627464fd80e7218c89d5">Ref_cm4_simd.txt</a> </li> <li>__SHSAX() : <a class="el" href="group__intrinsic__SIMD__gr.html#gafadbd89c36b5addcf1ca10dd392db3e9">Ref_cm4_simd.txt</a> </li> <li>__SHSUB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga31328467f0f91b8ff9ae9a01682ad3bf">Ref_cm4_simd.txt</a> </li> <li>__SHSUB8() : <a class="el" href="group__intrinsic__SIMD__gr.html#gac3ec7215b354d925a239f3b31df2b77b">Ref_cm4_simd.txt</a> </li> <li>__SMLAD() : <a class="el" href="group__intrinsic__SIMD__gr.html#gae0c86f3298532183f3a29f5bb454d354">Ref_cm4_simd.txt</a> </li> <li>__SMLADX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga9c286d330f4fb29b256335add91eec9f">Ref_cm4_simd.txt</a> </li> <li>__SMLALD() : <a class="el" href="group__intrinsic__SIMD__gr.html#gad80e9b20c1736fd798f897362273a146">Ref_cm4_simd.txt</a> </li> <li>__SMLALDX() : <a class="el" href="group__intrinsic__SIMD__gr.html#gad1adad1b3f2667328cc0db6c6b4f41cf">Ref_cm4_simd.txt</a> </li> <li>__SMLSD() : <a class="el" href="group__intrinsic__SIMD__gr.html#gaf4350af7f2030c36f43b2c104a9d16cd">Ref_cm4_simd.txt</a> </li> <li>__SMLSDX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga5290ce5564770ad124910d2583dc0a9e">Ref_cm4_simd.txt</a> </li> <li>__SMLSLD() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga5611f7314e0c8f53da377918dfbf42ee">Ref_cm4_simd.txt</a> </li> <li>__SMLSLDX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga83e69ef81057d3cbd06863d729385187">Ref_cm4_simd.txt</a> </li> <li>__SMMLA() : <a class="el" href="group__intrinsic__SIMD__gr.html#gaea60757232f740ec6b09980eebb614ff">Ref_cm4_simd.txt</a> </li> <li>__SMUAD() : <a class="el" href="group__intrinsic__SIMD__gr.html#gae326e368a1624d2dfb4b97c626939257">Ref_cm4_simd.txt</a> </li> <li>__SMUADX() : <a class="el" href="group__intrinsic__SIMD__gr.html#gaee6390f86965cb662500f690b0012092">Ref_cm4_simd.txt</a> </li> <li>__SMUSD() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga039142a5368840683cf329cb55b73f84">Ref_cm4_simd.txt</a> </li> <li>__SMUSDX() : <a class="el" href="group__intrinsic__SIMD__gr.html#gabb5bcba694bf17b141c32e6a8474f60e">Ref_cm4_simd.txt</a> </li> <li>__SSAT() : <a class="el" href="group__intrinsic__CPU__gr.html#ga8cfeb5ffe0e49ec6b29dafdde92e5118">Ref_cmInstr.txt</a> </li> <li>__SSAT16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga95e666b82216066bf6064d1244e6883c">Ref_cm4_simd.txt</a> </li> <li>__SSAX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga9d3bc5c539f9bd50f7d59ffa37ac6a65">Ref_cm4_simd.txt</a> </li> <li>__SSUB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga4262f73be75efbac6b46ab7c71aa6cbc">Ref_cm4_simd.txt</a> </li> <li>__SSUB8() : <a class="el" href="group__intrinsic__SIMD__gr.html#gaba63bb52e1e93fb527e26f3d474da12e">Ref_cm4_simd.txt</a> </li> <li>__STACK_LIMIT : <a class="el" href="group__compiler__conntrol__gr.html#ga84b0bad4aa39632d3faea46aa1e102a8">Ref_CompilerControl.txt</a> </li> <li>__STATIC_FORCEINLINE : <a class="el" href="group__compiler__conntrol__gr.html#gab904513442afdf77d4f8c74f23cbb040">Ref_CompilerControl.txt</a> </li> <li>__STATIC_INLINE : <a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">Ref_CompilerControl.txt</a> </li> <li>__STL() : <a class="el" href="group__intrinsic__CPU__gr.html#ga5429d7083fb8d30c43cecd3a861e1672">Ref_cmInstr.txt</a> </li> <li>__STLB() : <a class="el" href="group__intrinsic__CPU__gr.html#gace025d3a1f85d2ab9bae7288838d6bc8">Ref_cmInstr.txt</a> </li> <li>__STLEX() : <a class="el" href="group__intrinsic__CPU__gr.html#gae7f955b91595cfd82a03e4b437c59afe">Ref_cmInstr.txt</a> </li> <li>__STLEXB() : <a class="el" href="group__intrinsic__CPU__gr.html#ga590724a32a229978536fbbbd6cc82536">Ref_cmInstr.txt</a> </li> <li>__STLEXH() : <a class="el" href="group__intrinsic__CPU__gr.html#ga047c3bebca3d0ae348ab8370a046301d">Ref_cmInstr.txt</a> </li> <li>__STLH() : <a class="el" href="group__intrinsic__CPU__gr.html#ga25691650de536f9b248b15f6dc4a3e70">Ref_cmInstr.txt</a> </li> <li>__STRBT() : <a class="el" href="group__intrinsic__CPU__gr.html#gad41aa59c92c0a165b7f98428d3320cd5">Ref_cmInstr.txt</a> </li> <li>__STREXB() : <a class="el" href="group__intrinsic__CPU__gr.html#gaab6482d1f59f59e2b6b7efc1af391c99">Ref_cmInstr.txt</a> </li> <li>__STREXH() : <a class="el" href="group__intrinsic__CPU__gr.html#ga0a354bdf71caa52f081a4a54e84c8d2a">Ref_cmInstr.txt</a> </li> <li>__STREXW() : <a class="el" href="group__intrinsic__CPU__gr.html#ga335deaaa7991490e1450cb7d1e4c5197">Ref_cmInstr.txt</a> </li> <li>__STRHT() : <a class="el" href="group__intrinsic__CPU__gr.html#ga2b5d93b8e461755b1072a03df3f1722e">Ref_cmInstr.txt</a> </li> <li>__STRT() : <a class="el" href="group__intrinsic__CPU__gr.html#ga625bc4ac0b1d50de9bcd13d9f050030e">Ref_cmInstr.txt</a> </li> <li>__SXTAB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#gac540b4fc41d30778ba102d2a65db5589">Ref_cm4_simd.txt</a> </li> <li>__SXTB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga38dce3dd13ba212e80ec3cff4abeb11a">Ref_cm4_simd.txt</a> </li> <li>__TZ_get_BASEPRI_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga624509c924d2583f0d4dca6ab270f051">Ref_Trustzone.txt</a> </li> <li>__TZ_get_CONTROL_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga27bf1f88e794c30808ee73a29d46e358">Ref_Trustzone.txt</a> </li> <li>__TZ_get_FAULTMASK_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga578b41087f207e1a475daae6cc8a28dc">Ref_Trustzone.txt</a> </li> <li>__TZ_get_MSP_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#gab3aa15eb4f352e230b9f7a3e8856a9e9">Ref_Trustzone.txt</a> </li> <li>__TZ_get_MSPLIM_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#gada00853d3e49fa8d21f375c53d28fa51">Ref_Trustzone.txt</a> </li> <li>__TZ_get_PRIMASK_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga7cc3271c79e619f8838e8767df3cb509">Ref_Trustzone.txt</a> </li> <li>__TZ_get_PSP_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga40ff8336c6d09af6da1081d4e4adc126">Ref_Trustzone.txt</a> </li> <li>__TZ_get_PSPLIM_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga5da646ec291b6a183f38497ce92be51c">Ref_Trustzone.txt</a> </li> <li>__TZ_get_SP_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#gaaaf2aaf904b25ed17fd3e5e63f8e029b">Ref_Trustzone.txt</a> </li> <li>__TZ_set_BASEPRI_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga92c187f0b4d53627b59e0fd0bda0b0df">Ref_Trustzone.txt</a> </li> <li>__TZ_set_CONTROL_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga3eb150204e6d389d5b49065179b9cde5">Ref_Trustzone.txt</a> </li> <li>__TZ_set_FAULTMASK_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga4f0912db7bc65439d23817c1d372a7a4">Ref_Trustzone.txt</a> </li> <li>__TZ_set_MSP_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga41c3ac2d9af23c40647c053ad7d564e7">Ref_Trustzone.txt</a> </li> <li>__TZ_set_MSPLIM_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#gad2013f4d4311d6db253594a12d192617">Ref_Trustzone.txt</a> </li> <li>__TZ_set_PRIMASK_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga6686c2ab5756b5049fad1644e89b3340">Ref_Trustzone.txt</a> </li> <li>__TZ_set_PSP_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#gaea8db21c00cfa4144ee74dc65dbd7580">Ref_Trustzone.txt</a> </li> <li>__TZ_set_PSPLIM_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga81e0995ee0fd2a9dcd9e9681bc22c76f">Ref_Trustzone.txt</a> </li> <li>__TZ_set_SP_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#gab7263167cb006aeeb04b68e579dae015">Ref_Trustzone.txt</a> </li> <li>__UADD16() : <a class="el" href="group__intrinsic__SIMD__gr.html#gaa1160f0cf76d6aa292fbad54a1aa6b74">Ref_cm4_simd.txt</a> </li> <li>__UADD8() : <a class="el" href="group__intrinsic__SIMD__gr.html#gab3d7fd00d113b20fb3741a17394da762">Ref_cm4_simd.txt</a> </li> <li>__UASX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga980353d2c72ebb879282e49f592fddc0">Ref_cm4_simd.txt</a> </li> <li>__UHADD16() : <a class="el" href="group__intrinsic__SIMD__gr.html#gabd0b0e2da2e6364e176d051687702b86">Ref_cm4_simd.txt</a> </li> <li>__UHADD8() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga3a14e5485e59bf0f23595b7c2a94eb0b">Ref_cm4_simd.txt</a> </li> <li>__UHASX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga028f0732b961fb6e5209326fb3855261">Ref_cm4_simd.txt</a> </li> <li>__UHSAX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga09e129e6613329aab87c89f1108b7ed7">Ref_cm4_simd.txt</a> </li> <li>__UHSUB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga1f7545b8dc33bb97982731cb9d427a69">Ref_cm4_simd.txt</a> </li> <li>__UHSUB8() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga48a55df1c3e73923b73819d7c19b392d">Ref_cm4_simd.txt</a> </li> <li>__UNALIGNED_UINT16_READ : <a class="el" href="group__compiler__conntrol__gr.html#gabe8693a7200e573101551d49a1772fb9">Ref_CompilerControl.txt</a> </li> <li>__UNALIGNED_UINT16_WRITE : <a class="el" href="group__compiler__conntrol__gr.html#gadb9cd73446f7e11e92383cd327a23407">Ref_CompilerControl.txt</a> </li> <li>__UNALIGNED_UINT32 : <a class="el" href="group__compiler__conntrol__gr.html#ga27fd2ec6767ca1ab66d36b5cc0103268">Ref_CompilerControl.txt</a> </li> <li>__UNALIGNED_UINT32_READ : <a class="el" href="group__compiler__conntrol__gr.html#ga254322c344d954c9f829719a50a88e87">Ref_CompilerControl.txt</a> </li> <li>__UNALIGNED_UINT32_WRITE : <a class="el" href="group__compiler__conntrol__gr.html#gabb2180285c417aa9120a360c51f64b4b">Ref_CompilerControl.txt</a> </li> <li>__UQADD16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga9e2cc5117e79578a08b25f1e89022966">Ref_cm4_simd.txt</a> </li> <li>__UQADD8() : <a class="el" href="group__intrinsic__SIMD__gr.html#gafa9af218db3934a692fb06fa728d8031">Ref_cm4_simd.txt</a> </li> <li>__UQASX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga5eff3ae5eabcd73f3049996ca391becb">Ref_cm4_simd.txt</a> </li> <li>__UQSAX() : <a class="el" href="group__intrinsic__SIMD__gr.html#gadecfdfabc328d8939d49d996f2fd4482">Ref_cm4_simd.txt</a> </li> <li>__UQSUB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga5ec4e2e231d15e5c692233feb3806187">Ref_cm4_simd.txt</a> </li> <li>__UQSUB8() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga9736fe816aec74fe886e7fb949734eab">Ref_cm4_simd.txt</a> </li> <li>__USAD8() : <a class="el" href="group__intrinsic__SIMD__gr.html#gac8855c07044239ea775c8128013204f0">Ref_cm4_simd.txt</a> </li> <li>__USADA8() : <a class="el" href="group__intrinsic__SIMD__gr.html#gad032bd21f013c5d29f5fcb6b0f02bc3f">Ref_cm4_simd.txt</a> </li> <li>__USAT() : <a class="el" href="group__intrinsic__CPU__gr.html#ga76bbe4374a5912362866cdc1ded4064a">Ref_cmInstr.txt</a> </li> <li>__USAT16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga967f516afff5900cf30f1a81907cdd89">Ref_cm4_simd.txt</a> </li> <li>__USAX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga578a082747436772c482c96d7a58e45e">Ref_cm4_simd.txt</a> </li> <li>__USED : <a class="el" href="group__compiler__conntrol__gr.html#ga3e40e4c553fc11588f7a4c2a19e789e0">Ref_CompilerControl.txt</a> </li> <li>__USUB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga9f2b77e11fc4a77b26c36c423ed45b4e">Ref_cm4_simd.txt</a> </li> <li>__USUB8() : <a class="el" href="group__intrinsic__SIMD__gr.html#gacb7257dc3b8e9acbd0ef0e31ff87d4b8">Ref_cm4_simd.txt</a> </li> <li>__UXTAB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#gad25ce96db0f17096bbd815f4817faf09">Ref_cm4_simd.txt</a> </li> <li>__UXTB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#gab41d713653b16f8d9fef44d14e397228">Ref_cm4_simd.txt</a> </li> <li>__VECTOR_TABLE : <a class="el" href="group__compiler__conntrol__gr.html#gab94ebeb20055f1848d7b707d3c7cfc5d">Ref_CompilerControl.txt</a> </li> <li>__VECTOR_TABLE_ATTRIBUTE : <a class="el" href="group__compiler__conntrol__gr.html#ga4f65c96effa79fbd610fea43ee7d745b">Ref_CompilerControl.txt</a> </li> <li>__WEAK : <a class="el" href="group__compiler__conntrol__gr.html#gac607bf387b29162be6a9b77fc7999539">Ref_CompilerControl.txt</a> </li> <li>__WFE() : <a class="el" href="group__intrinsic__CPU__gr.html#gad3efec76c3bfa2b8528ded530386c563">Ref_cmInstr.txt</a> </li> <li>__WFI() : <a class="el" href="group__intrinsic__CPU__gr.html#gaed91dfbf3d7d7b7fba8d912fcbeaad88">Ref_cmInstr.txt</a> </li> <li>_FLD2VAL : <a class="el" href="group__peripheral__gr.html#ga139b6e261c981f014f386927ca4a8444">Ref_Peripheral.txt</a> </li> <li>_VAL2FLD : <a class="el" href="group__peripheral__gr.html#ga286e3b913dbd236c7f48ea70c8821f4e">Ref_Peripheral.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals.html
HTML
apache-2.0
32,376
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li class="current"><a href="globals.html"><span>All</span></a></li> <li><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="globals.html#index__"><span>_</span></a></li> <li class="current"><a href="globals_a.html#index_a"><span>a</span></a></li> <li><a href="globals_b.html#index_b"><span>b</span></a></li> <li><a href="globals_c.html#index_c"><span>c</span></a></li> <li><a href="globals_d.html#index_d"><span>d</span></a></li> <li><a href="globals_h.html#index_h"><span>h</span></a></li> <li><a href="globals_i.html#index_i"><span>i</span></a></li> <li><a href="globals_m.html#index_m"><span>m</span></a></li> <li><a href="globals_n.html#index_n"><span>n</span></a></li> <li><a href="globals_p.html#index_p"><span>p</span></a></li> <li><a href="globals_s.html#index_s"><span>s</span></a></li> <li><a href="globals_t.html#index_t"><span>t</span></a></li> <li><a href="globals_u.html#index_u"><span>u</span></a></li> <li><a href="globals_w.html#index_w"><span>w</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_a.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> <div class="textblock">Here is a list of all functions, variables, defines, enums, and typedefs with links to the files they belong to:</div> <h3><a class="anchor" id="index_a"></a>- a -</h3><ul> <li>ARM_MPU_ACCESS_xxx : <a class="el" href="group__mpu__defines.html#ga71d41084e984be70a23cb640fd89d1e2">Ref_MPU.txt</a> </li> <li>ARM_MPU_AP_ : <a class="el" href="group__mpu8__functions.html#ga81b2aa3fb55cdd5feadff02da10d391b">Ref_MPU8.txt</a> </li> <li>ARM_MPU_AP_xxx : <a class="el" href="group__mpu__defines.html#gabc4788126d7798469cb862a08d3050cc">Ref_MPU.txt</a> </li> <li>ARM_MPU_ATTR : <a class="el" href="group__mpu8__functions.html#ga2c465cc9429b8233bcb9cd7cbef0e54c">Ref_MPU8.txt</a> </li> <li>ARM_MPU_ATTR_DEVICE : <a class="el" href="group__mpu8__functions.html#gab4bfac6284dc050dc6fa6aeb8e954c2c">Ref_MPU8.txt</a> </li> <li>ARM_MPU_ATTR_DEVICE_GRE : <a class="el" href="group__mpu8__functions.html#ga496bcd6a2bbd038d8935049fec9d0fda">Ref_MPU8.txt</a> </li> <li>ARM_MPU_ATTR_DEVICE_nGnRE : <a class="el" href="group__mpu8__functions.html#ga6e08ae44fab85e03fea96ae6a5fcdfb0">Ref_MPU8.txt</a> </li> <li>ARM_MPU_ATTR_DEVICE_nGnRnE : <a class="el" href="group__mpu8__functions.html#gabfa9ae279357044cf5b74e77af22a686">Ref_MPU8.txt</a> </li> <li>ARM_MPU_ATTR_DEVICE_nGRE : <a class="el" href="group__mpu8__functions.html#gadcc9977aabb4dc7177d30cbbac1b53d1">Ref_MPU8.txt</a> </li> <li>ARM_MPU_ATTR_MEMORY_ : <a class="el" href="group__mpu8__functions.html#gac2f1c567950e3785d75773362b525390">Ref_MPU8.txt</a> </li> <li>ARM_MPU_ATTR_NON_CACHEABLE : <a class="el" href="group__mpu8__functions.html#ga03266f9660485693eb1baec6ba255ab2">Ref_MPU8.txt</a> </li> <li>ARM_MPU_CACHEP_xxx : <a class="el" href="group__mpu__defines.html#gab23596306119e7831847bd9683de3934">Ref_MPU.txt</a> </li> <li>ARM_MPU_ClrRegion() : <a class="el" href="group__mpu__functions.html#ga9dcb0afddf4ac351f33f3c7a5169c62c">Ref_MPU.txt</a> , <a class="el" href="group__mpu8__functions.html#ga9dcb0afddf4ac351f33f3c7a5169c62c">Ref_MPU8.txt</a> </li> <li>ARM_MPU_ClrRegion_NS() : <a class="el" href="group__mpu8__functions.html#gac526bc5bfcf048ce57a44c0c0cdadbe4">Ref_MPU8.txt</a> </li> <li>ARM_MPU_ClrRegionEx() : <a class="el" href="group__mpu8__functions.html#ga01fa1151c9ec0ba5de76f908c0999316">Ref_MPU8.txt</a> </li> <li>ARM_MPU_Disable() : <a class="el" href="group__mpu__functions.html#ga7cbc0a4a066ed90e85c8176228235d57">Ref_MPU.txt</a> , <a class="el" href="group__mpu8__functions.html#ga61814eba4652a0fdfb76bbe222086327">Ref_MPU8.txt</a> </li> <li>ARM_MPU_Disable_NS() : <a class="el" href="group__mpu8__functions.html#ga389f9b6049d176bc83f9964d3259b712">Ref_MPU8.txt</a> </li> <li>ARM_MPU_Enable() : <a class="el" href="group__mpu__functions.html#ga31406efd492ec9a091a70ffa2d8a42fb">Ref_MPU.txt</a> , <a class="el" href="group__mpu8__functions.html#ga5a3f40314553baccdeea551f86d9a997">Ref_MPU8.txt</a> </li> <li>ARM_MPU_Enable_NS() : <a class="el" href="group__mpu8__functions.html#ga5866c75d6deb9148a1e9af6337eec50a">Ref_MPU8.txt</a> </li> <li>ARM_MPU_Load() : <a class="el" href="group__mpu__functions.html#gafa27b26d5847fa8e465584e376b6078a">Ref_MPU.txt</a> , <a class="el" href="group__mpu8__functions.html#gaca76614e3091c7324aa9d60e634621bf">Ref_MPU8.txt</a> </li> <li>ARM_MPU_Load_NS() : <a class="el" href="group__mpu8__functions.html#ga7f8c6e09be98067d613e4df1832c543d">Ref_MPU8.txt</a> </li> <li>ARM_MPU_LoadEx() : <a class="el" href="group__mpu8__functions.html#gab6094419f2abd678f1f3b121cd115049">Ref_MPU8.txt</a> </li> <li>ARM_MPU_OrderedMemcpy() : <a class="el" href="group__mpu__functions.html#gac1a949403bf84eecaf407003fb553ae7">Ref_MPU.txt</a> , <a class="el" href="group__mpu8__functions.html#gac1a949403bf84eecaf407003fb553ae7">Ref_MPU8.txt</a> </li> <li>ARM_MPU_RASR : <a class="el" href="group__mpu__functions.html#ga96b93785c92e2dbcb3a2356c25bf2adc">Ref_MPU.txt</a> </li> <li>ARM_MPU_RASR_EX : <a class="el" href="group__mpu__functions.html#ga332ed5f8969dd4df6b61c6ae32ec36dc">Ref_MPU.txt</a> </li> <li>ARM_MPU_RBAR : <a class="el" href="group__mpu8__functions.html#gafe39c2f98058bcac7e7e0501e64e7a9d">Ref_MPU8.txt</a> , <a class="el" href="group__mpu__functions.html#ga3fead12dc24a6d00ad53f55a042486ca">Ref_MPU.txt</a> </li> <li>ARM_MPU_REGION_SIZE_xxx : <a class="el" href="group__mpu__defines.html#gadb0a92c0928c113120567e85ff1ba05c">Ref_MPU.txt</a> </li> <li>ARM_MPU_RLAR : <a class="el" href="group__mpu8__functions.html#gaeaaa071276ba7956944e6c3dc05d677e">Ref_MPU8.txt</a> </li> <li>ARM_MPU_SetMemAttr() : <a class="el" href="group__mpu8__functions.html#gab5b3c0a53d19c09a5550f1d9071ae65c">Ref_MPU8.txt</a> </li> <li>ARM_MPU_SetMemAttr_NS() : <a class="el" href="group__mpu8__functions.html#ga5100a150a755902af2455a455a329ef9">Ref_MPU8.txt</a> </li> <li>ARM_MPU_SetMemAttrEx() : <a class="el" href="group__mpu8__functions.html#ga1799413f08a157d636a1491371c15ce2">Ref_MPU8.txt</a> </li> <li>ARM_MPU_SetRegion() : <a class="el" href="group__mpu__functions.html#ga16931f9ad84d7289e8218e169ae6db5d">Ref_MPU.txt</a> , <a class="el" href="group__mpu8__functions.html#ga6d7f220015c070c0e469948c1775ee3d">Ref_MPU8.txt</a> </li> <li>ARM_MPU_SetRegion_NS() : <a class="el" href="group__mpu8__functions.html#ga7566931ca9bb9f22d213a67ec5f8c745">Ref_MPU8.txt</a> </li> <li>ARM_MPU_SetRegionEx() : <a class="el" href="group__mpu__functions.html#ga042ba1a6a1a58795231459ac0410b809">Ref_MPU.txt</a> , <a class="el" href="group__mpu8__functions.html#ga3d50ba8546252bea959e45c8fdf16993">Ref_MPU8.txt</a> </li> <li>ARM_MPU_SH_INNER : <a class="el" href="group__mpu8__functions.html#ga73c70127f24f34781ad463cbe51d8f6b">Ref_MPU8.txt</a> </li> <li>ARM_MPU_SH_NON : <a class="el" href="group__mpu8__functions.html#ga3d0f688198289f72264f73cf72a742e8">Ref_MPU8.txt</a> </li> <li>ARM_MPU_SH_OUTER : <a class="el" href="group__mpu8__functions.html#gac4fddbdb9e1350bce6906de33c1fd500">Ref_MPU8.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_a.html
HTML
apache-2.0
13,239
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li class="current"><a href="globals.html"><span>All</span></a></li> <li><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="globals.html#index__"><span>_</span></a></li> <li><a href="globals_a.html#index_a"><span>a</span></a></li> <li class="current"><a href="globals_b.html#index_b"><span>b</span></a></li> <li><a href="globals_c.html#index_c"><span>c</span></a></li> <li><a href="globals_d.html#index_d"><span>d</span></a></li> <li><a href="globals_h.html#index_h"><span>h</span></a></li> <li><a href="globals_i.html#index_i"><span>i</span></a></li> <li><a href="globals_m.html#index_m"><span>m</span></a></li> <li><a href="globals_n.html#index_n"><span>n</span></a></li> <li><a href="globals_p.html#index_p"><span>p</span></a></li> <li><a href="globals_s.html#index_s"><span>s</span></a></li> <li><a href="globals_t.html#index_t"><span>t</span></a></li> <li><a href="globals_u.html#index_u"><span>u</span></a></li> <li><a href="globals_w.html#index_w"><span>w</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_b.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> <div class="textblock">Here is a list of all functions, variables, defines, enums, and typedefs with links to the files they belong to:</div> <h3><a class="anchor" id="index_b"></a>- b -</h3><ul> <li>BusFault_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a8693500eff174f16119e96234fee73af">Ref_NVIC.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_b.html
HTML
apache-2.0
7,700
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li class="current"><a href="globals.html"><span>All</span></a></li> <li><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="globals.html#index__"><span>_</span></a></li> <li><a href="globals_a.html#index_a"><span>a</span></a></li> <li><a href="globals_b.html#index_b"><span>b</span></a></li> <li class="current"><a href="globals_c.html#index_c"><span>c</span></a></li> <li><a href="globals_d.html#index_d"><span>d</span></a></li> <li><a href="globals_h.html#index_h"><span>h</span></a></li> <li><a href="globals_i.html#index_i"><span>i</span></a></li> <li><a href="globals_m.html#index_m"><span>m</span></a></li> <li><a href="globals_n.html#index_n"><span>n</span></a></li> <li><a href="globals_p.html#index_p"><span>p</span></a></li> <li><a href="globals_s.html#index_s"><span>s</span></a></li> <li><a href="globals_t.html#index_t"><span>t</span></a></li> <li><a href="globals_u.html#index_u"><span>u</span></a></li> <li><a href="globals_w.html#index_w"><span>w</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_c.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> <div class="textblock">Here is a list of all functions, variables, defines, enums, and typedefs with links to the files they belong to:</div> <h3><a class="anchor" id="index_c"></a>- c -</h3><ul> <li>CMSIS_NVIC_VIRTUAL : <a class="el" href="group__NVIC__gr.html#gadc48b4ed09386aab48fa6b9c96d9034c">Ref_NVIC.txt</a> </li> <li>CMSIS_VECTAB_VIRTUAL : <a class="el" href="group__NVIC__gr.html#gad01d3aa220b50ef141b06c93888b268d">Ref_NVIC.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_c.html
HTML
apache-2.0
7,798
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li class="current"><a href="globals.html"><span>All</span></a></li> <li><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="globals.html#index__"><span>_</span></a></li> <li><a href="globals_a.html#index_a"><span>a</span></a></li> <li><a href="globals_b.html#index_b"><span>b</span></a></li> <li><a href="globals_c.html#index_c"><span>c</span></a></li> <li class="current"><a href="globals_d.html#index_d"><span>d</span></a></li> <li><a href="globals_h.html#index_h"><span>h</span></a></li> <li><a href="globals_i.html#index_i"><span>i</span></a></li> <li><a href="globals_m.html#index_m"><span>m</span></a></li> <li><a href="globals_n.html#index_n"><span>n</span></a></li> <li><a href="globals_p.html#index_p"><span>p</span></a></li> <li><a href="globals_s.html#index_s"><span>s</span></a></li> <li><a href="globals_t.html#index_t"><span>t</span></a></li> <li><a href="globals_u.html#index_u"><span>u</span></a></li> <li><a href="globals_w.html#index_w"><span>w</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_d.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> <div class="textblock">Here is a list of all functions, variables, defines, enums, and typedefs with links to the files they belong to:</div> <h3><a class="anchor" id="index_d"></a>- d -</h3><ul> <li>DebugMonitor_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a8e033fcef7aed98a31c60a7de206722c">Ref_NVIC.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_d.html
HTML
apache-2.0
7,704
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li><a href="globals.html"><span>All</span></a></li> <li><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li class="current"><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="#index__"><span>_</span></a></li> <li><a href="#index_a"><span>a</span></a></li> <li class="current"><a href="#index_c"><span>c</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_defs.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> &#160; <h3><a class="anchor" id="index__"></a>- _ -</h3><ul> <li>__ALIGNED : <a class="el" href="group__compiler__conntrol__gr.html#ga0c58caa5a273e2c21924509a45f8b849">Ref_CompilerControl.txt</a> </li> <li>__ARM_ARCH_6M__ : <a class="el" href="group__compiler__conntrol__gr.html#ga8be4ebde5d4dd91b161d206545ce59aa">Ref_CompilerControl.txt</a> </li> <li>__ARM_ARCH_7EM__ : <a class="el" href="group__compiler__conntrol__gr.html#ga43ab3e79ec5ecb615f1f2f6e83e7d48a">Ref_CompilerControl.txt</a> </li> <li>__ARM_ARCH_7M__ : <a class="el" href="group__compiler__conntrol__gr.html#ga43e1af8bedda108dfc4f8584e6b278a2">Ref_CompilerControl.txt</a> </li> <li>__ARM_ARCH_8M_BASE__ : <a class="el" href="group__compiler__conntrol__gr.html#gab3f1284f4cdc6c5e5c9c9d4b8ec29b2a">Ref_CompilerControl.txt</a> </li> <li>__ARM_ARCH_8M_MAIN__ : <a class="el" href="group__compiler__conntrol__gr.html#gad424c7143edd08c982dddad0ff65f4cd">Ref_CompilerControl.txt</a> </li> <li>__ASM : <a class="el" href="group__compiler__conntrol__gr.html#ga1378040bcf22428955c6e3ce9c2053cd">Ref_CompilerControl.txt</a> </li> <li>__CM_CMSIS_VERSION : <a class="el" href="group__version__control__gr.html#ga39f3d64ff95fb58feccc7639e537ff89">Ref_VersionControl.txt</a> </li> <li>__CM_CMSIS_VERSION_MAIN : <a class="el" href="group__version__control__gr.html#ga85987c5fcc1e012d7ac01369ee6ca2b5">Ref_VersionControl.txt</a> </li> <li>__CM_CMSIS_VERSION_SUB : <a class="el" href="group__version__control__gr.html#ga22083cbe7f0606cfd538ec12b2e41608">Ref_VersionControl.txt</a> </li> <li>__COMPILER_BARRIER : <a class="el" href="group__compiler__conntrol__gr.html#ga6f053389e2958b5a239a54d4e4047bf5">Ref_CompilerControl.txt</a> </li> <li>__CORTEX_M : <a class="el" href="group__version__control__gr.html#ga63ea62503c88acab19fcf3d5743009e3">Ref_VersionControl.txt</a> </li> <li>__CORTEX_SC : <a class="el" href="group__version__control__gr.html#gaeaaf66c86e5ae02a0e1fe542cb7f4d8c">Ref_VersionControl.txt</a> </li> <li>__INITIAL_SP : <a class="el" href="group__compiler__conntrol__gr.html#ga1002e751427b1189f92787d4e4eef965">Ref_CompilerControl.txt</a> </li> <li>__INLINE : <a class="el" href="group__compiler__conntrol__gr.html#gade2d8d7118f8ff49547f60aa0c3382bb">Ref_CompilerControl.txt</a> </li> <li>__NO_RETURN : <a class="el" href="group__compiler__conntrol__gr.html#ga153a4a31b276a9758959580538720a51">Ref_CompilerControl.txt</a> </li> <li>__PACKED : <a class="el" href="group__compiler__conntrol__gr.html#gabe8996d3d985ee1529475443cc635bf1">Ref_CompilerControl.txt</a> </li> <li>__PACKED_STRUCT : <a class="el" href="group__compiler__conntrol__gr.html#ga4dbb70fab85207c27b581ecb6532b314">Ref_CompilerControl.txt</a> </li> <li>__PROGRAM_START : <a class="el" href="group__compiler__conntrol__gr.html#ga72db8b026c5e100254080fefabd9fd88">Ref_CompilerControl.txt</a> </li> <li>__RESTRICT : <a class="el" href="group__compiler__conntrol__gr.html#ga378ac21329d33f561f90265eef89f564">Ref_CompilerControl.txt</a> </li> <li>__STACK_LIMIT : <a class="el" href="group__compiler__conntrol__gr.html#ga84b0bad4aa39632d3faea46aa1e102a8">Ref_CompilerControl.txt</a> </li> <li>__STATIC_FORCEINLINE : <a class="el" href="group__compiler__conntrol__gr.html#gab904513442afdf77d4f8c74f23cbb040">Ref_CompilerControl.txt</a> </li> <li>__STATIC_INLINE : <a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">Ref_CompilerControl.txt</a> </li> <li>__UNALIGNED_UINT16_READ : <a class="el" href="group__compiler__conntrol__gr.html#gabe8693a7200e573101551d49a1772fb9">Ref_CompilerControl.txt</a> </li> <li>__UNALIGNED_UINT16_WRITE : <a class="el" href="group__compiler__conntrol__gr.html#gadb9cd73446f7e11e92383cd327a23407">Ref_CompilerControl.txt</a> </li> <li>__UNALIGNED_UINT32 : <a class="el" href="group__compiler__conntrol__gr.html#ga27fd2ec6767ca1ab66d36b5cc0103268">Ref_CompilerControl.txt</a> </li> <li>__UNALIGNED_UINT32_READ : <a class="el" href="group__compiler__conntrol__gr.html#ga254322c344d954c9f829719a50a88e87">Ref_CompilerControl.txt</a> </li> <li>__UNALIGNED_UINT32_WRITE : <a class="el" href="group__compiler__conntrol__gr.html#gabb2180285c417aa9120a360c51f64b4b">Ref_CompilerControl.txt</a> </li> <li>__USED : <a class="el" href="group__compiler__conntrol__gr.html#ga3e40e4c553fc11588f7a4c2a19e789e0">Ref_CompilerControl.txt</a> </li> <li>__VECTOR_TABLE : <a class="el" href="group__compiler__conntrol__gr.html#gab94ebeb20055f1848d7b707d3c7cfc5d">Ref_CompilerControl.txt</a> </li> <li>__VECTOR_TABLE_ATTRIBUTE : <a class="el" href="group__compiler__conntrol__gr.html#ga4f65c96effa79fbd610fea43ee7d745b">Ref_CompilerControl.txt</a> </li> <li>__WEAK : <a class="el" href="group__compiler__conntrol__gr.html#gac607bf387b29162be6a9b77fc7999539">Ref_CompilerControl.txt</a> </li> <li>_FLD2VAL : <a class="el" href="group__peripheral__gr.html#ga139b6e261c981f014f386927ca4a8444">Ref_Peripheral.txt</a> </li> <li>_VAL2FLD : <a class="el" href="group__peripheral__gr.html#ga286e3b913dbd236c7f48ea70c8821f4e">Ref_Peripheral.txt</a> </li> </ul> <h3><a class="anchor" id="index_a"></a>- a -</h3><ul> <li>ARM_MPU_ACCESS_xxx : <a class="el" href="group__mpu__defines.html#ga71d41084e984be70a23cb640fd89d1e2">Ref_MPU.txt</a> </li> <li>ARM_MPU_AP_ : <a class="el" href="group__mpu8__functions.html#ga81b2aa3fb55cdd5feadff02da10d391b">Ref_MPU8.txt</a> </li> <li>ARM_MPU_AP_xxx : <a class="el" href="group__mpu__defines.html#gabc4788126d7798469cb862a08d3050cc">Ref_MPU.txt</a> </li> <li>ARM_MPU_ATTR : <a class="el" href="group__mpu8__functions.html#ga2c465cc9429b8233bcb9cd7cbef0e54c">Ref_MPU8.txt</a> </li> <li>ARM_MPU_ATTR_DEVICE : <a class="el" href="group__mpu8__functions.html#gab4bfac6284dc050dc6fa6aeb8e954c2c">Ref_MPU8.txt</a> </li> <li>ARM_MPU_ATTR_DEVICE_GRE : <a class="el" href="group__mpu8__functions.html#ga496bcd6a2bbd038d8935049fec9d0fda">Ref_MPU8.txt</a> </li> <li>ARM_MPU_ATTR_DEVICE_nGnRE : <a class="el" href="group__mpu8__functions.html#ga6e08ae44fab85e03fea96ae6a5fcdfb0">Ref_MPU8.txt</a> </li> <li>ARM_MPU_ATTR_DEVICE_nGnRnE : <a class="el" href="group__mpu8__functions.html#gabfa9ae279357044cf5b74e77af22a686">Ref_MPU8.txt</a> </li> <li>ARM_MPU_ATTR_DEVICE_nGRE : <a class="el" href="group__mpu8__functions.html#gadcc9977aabb4dc7177d30cbbac1b53d1">Ref_MPU8.txt</a> </li> <li>ARM_MPU_ATTR_MEMORY_ : <a class="el" href="group__mpu8__functions.html#gac2f1c567950e3785d75773362b525390">Ref_MPU8.txt</a> </li> <li>ARM_MPU_ATTR_NON_CACHEABLE : <a class="el" href="group__mpu8__functions.html#ga03266f9660485693eb1baec6ba255ab2">Ref_MPU8.txt</a> </li> <li>ARM_MPU_CACHEP_xxx : <a class="el" href="group__mpu__defines.html#gab23596306119e7831847bd9683de3934">Ref_MPU.txt</a> </li> <li>ARM_MPU_RASR : <a class="el" href="group__mpu__functions.html#ga96b93785c92e2dbcb3a2356c25bf2adc">Ref_MPU.txt</a> </li> <li>ARM_MPU_RASR_EX : <a class="el" href="group__mpu__functions.html#ga332ed5f8969dd4df6b61c6ae32ec36dc">Ref_MPU.txt</a> </li> <li>ARM_MPU_RBAR : <a class="el" href="group__mpu__functions.html#ga3fead12dc24a6d00ad53f55a042486ca">Ref_MPU.txt</a> , <a class="el" href="group__mpu8__functions.html#gafe39c2f98058bcac7e7e0501e64e7a9d">Ref_MPU8.txt</a> </li> <li>ARM_MPU_REGION_SIZE_xxx : <a class="el" href="group__mpu__defines.html#gadb0a92c0928c113120567e85ff1ba05c">Ref_MPU.txt</a> </li> <li>ARM_MPU_RLAR : <a class="el" href="group__mpu8__functions.html#gaeaaa071276ba7956944e6c3dc05d677e">Ref_MPU8.txt</a> </li> <li>ARM_MPU_SH_INNER : <a class="el" href="group__mpu8__functions.html#ga73c70127f24f34781ad463cbe51d8f6b">Ref_MPU8.txt</a> </li> <li>ARM_MPU_SH_NON : <a class="el" href="group__mpu8__functions.html#ga3d0f688198289f72264f73cf72a742e8">Ref_MPU8.txt</a> </li> <li>ARM_MPU_SH_OUTER : <a class="el" href="group__mpu8__functions.html#gac4fddbdb9e1350bce6906de33c1fd500">Ref_MPU8.txt</a> </li> </ul> <h3><a class="anchor" id="index_c"></a>- c -</h3><ul> <li>CMSIS_NVIC_VIRTUAL : <a class="el" href="group__NVIC__gr.html#gadc48b4ed09386aab48fa6b9c96d9034c">Ref_NVIC.txt</a> </li> <li>CMSIS_VECTAB_VIRTUAL : <a class="el" href="group__NVIC__gr.html#gad01d3aa220b50ef141b06c93888b268d">Ref_NVIC.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_defs.html
HTML
apache-2.0
14,684
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li><a href="globals.html"><span>All</span></a></li> <li><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li class="current"><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_enum.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> &#160;<ul> <li>IRQn_Type : <a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">Ref_NVIC.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_enum.html
HTML
apache-2.0
6,448
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li><a href="globals.html"><span>All</span></a></li> <li><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li class="current"><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_eval.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> &#160;<ul> <li>BusFault_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a8693500eff174f16119e96234fee73af">Ref_NVIC.txt</a> </li> <li>DebugMonitor_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a8e033fcef7aed98a31c60a7de206722c">Ref_NVIC.txt</a> </li> <li>HardFault_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8ab1a222a34a32f0ef5ac65e714efc1f85">Ref_NVIC.txt</a> </li> <li>MemoryManagement_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a33ff1cf7098de65d61b6354fee6cd5aa">Ref_NVIC.txt</a> </li> <li>NonMaskableInt_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8ade177d9c70c89e084093024b932a4e30">Ref_NVIC.txt</a> </li> <li>PendSV_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a03c3cc89984928816d81793fc7bce4a2">Ref_NVIC.txt</a> </li> <li>PVD_STM_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a853e0f318108110e0527f29733d11f86">Ref_NVIC.txt</a> </li> <li>SecureFault_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a9cda5594d898247bfa9d16ad966724da">Ref_NVIC.txt</a> </li> <li>SVCall_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a4ce820b3cc6cf3a796b41aadc0cf1237">Ref_NVIC.txt</a> </li> <li>SysTick_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a6dbff8f8543325f3474cbae2446776e7">Ref_NVIC.txt</a> </li> <li>UsageFault_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a6895237c9443601ac832efa635dd8bbf">Ref_NVIC.txt</a> </li> <li>WWDG_STM_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8aa62e040960b4beb6cba107e4703c12d2">Ref_NVIC.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_eval.html
HTML
apache-2.0
8,198
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li><a href="globals.html"><span>All</span></a></li> <li class="current"><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li class="current"><a href="globals_func.html#index__"><span>_</span></a></li> <li><a href="globals_func_a.html#index_a"><span>a</span></a></li> <li><a href="globals_func_i.html#index_i"><span>i</span></a></li> <li><a href="globals_func_n.html#index_n"><span>n</span></a></li> <li><a href="globals_func_s.html#index_s"><span>s</span></a></li> <li><a href="globals_func_t.html#index_t"><span>t</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_func.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> &#160; <h3><a class="anchor" id="index__"></a>- _ -</h3><ul> <li>__BKPT() : <a class="el" href="group__intrinsic__CPU__gr.html#ga92f5621626711931da71eaa8bf301af7">Ref_cmInstr.txt</a> </li> <li>__CLREX() : <a class="el" href="group__intrinsic__CPU__gr.html#ga354c5ac8870cc3dfb823367af9c4b412">Ref_cmInstr.txt</a> </li> <li>__CLZ() : <a class="el" href="group__intrinsic__CPU__gr.html#ga90884c591ac5d73d6069334eba9d6c02">Ref_cmInstr.txt</a> </li> <li>__disable_fault_irq() : <a class="el" href="group__Core__Register__gr.html#ga9d174f979b2f76fdb3228a9b338fd939">Ref_CoreReg.txt</a> </li> <li>__disable_irq() : <a class="el" href="group__Core__Register__gr.html#gaeb8e5f7564a8ea23678fe3c987b04013">Ref_CoreReg.txt</a> </li> <li>__DMB() : <a class="el" href="group__intrinsic__CPU__gr.html#gab1c9b393641dc2d397b3408fdbe72b96">Ref_cmInstr.txt</a> </li> <li>__DSB() : <a class="el" href="group__intrinsic__CPU__gr.html#gacb2a8ca6eae1ba4b31161578b720c199">Ref_cmInstr.txt</a> </li> <li>__enable_fault_irq() : <a class="el" href="group__Core__Register__gr.html#ga6575d37863cec5d334864f93b5b783bf">Ref_CoreReg.txt</a> </li> <li>__enable_irq() : <a class="el" href="group__Core__Register__gr.html#ga0f98dfbd252b89d12564472dbeba9c27">Ref_CoreReg.txt</a> </li> <li>__get_APSR() : <a class="el" href="group__Core__Register__gr.html#ga811c0012221ee918a75111ca84c4d5e7">Ref_CoreReg.txt</a> </li> <li>__get_BASEPRI() : <a class="el" href="group__Core__Register__gr.html#ga32da759f46e52c95bcfbde5012260667">Ref_CoreReg.txt</a> </li> <li>__get_CONTROL() : <a class="el" href="group__Core__Register__gr.html#ga963cf236b73219ce78e965deb01b81a7">Ref_CoreReg.txt</a> </li> <li>__get_FAULTMASK() : <a class="el" href="group__Core__Register__gr.html#gaa78e4e6bf619a65e9f01b4af13fed3a8">Ref_CoreReg.txt</a> </li> <li>__get_FPSCR() : <a class="el" href="group__Core__Register__gr.html#gad6d7eca9ddd1d9072dd7b020cfe64905">Ref_CoreReg.txt</a> </li> <li>__get_IPSR() : <a class="el" href="group__Core__Register__gr.html#ga2c32fc5c7f8f07fb3d436c6f6fe4e8c8">Ref_CoreReg.txt</a> </li> <li>__get_MSP() : <a class="el" href="group__Core__Register__gr.html#gab898559392ba027814e5bbb5a98b38d2">Ref_CoreReg.txt</a> </li> <li>__get_MSPLIM() : <a class="el" href="group__Core__Register__gr.html#gaf39856ca50fc88cf459031b44eb2521c">Ref_CoreReg.txt</a> </li> <li>__get_PRIMASK() : <a class="el" href="group__Core__Register__gr.html#ga799b5d9a2ae75e459264c8512c7c0e02">Ref_CoreReg.txt</a> </li> <li>__get_PSP() : <a class="el" href="group__Core__Register__gr.html#ga914dfa8eff7ca53380dd54cf1d8bebd9">Ref_CoreReg.txt</a> </li> <li>__get_PSPLIM() : <a class="el" href="group__Core__Register__gr.html#ga8b226929264e903c7019e326b42bef47">Ref_CoreReg.txt</a> </li> <li>__get_xPSR() : <a class="el" href="group__Core__Register__gr.html#ga732e08184154f44a617963cc65ff95bd">Ref_CoreReg.txt</a> </li> <li>__ISB() : <a class="el" href="group__intrinsic__CPU__gr.html#ga93c09b4709394d81977300d5f84950e5">Ref_cmInstr.txt</a> </li> <li>__LDA() : <a class="el" href="group__intrinsic__CPU__gr.html#ga22a24f416b65c2f5a82d9f1162d9394d">Ref_cmInstr.txt</a> </li> <li>__LDAB() : <a class="el" href="group__intrinsic__CPU__gr.html#ga263b9b2d9c06d731022873acddb6aa3f">Ref_cmInstr.txt</a> </li> <li>__LDAEX() : <a class="el" href="group__intrinsic__CPU__gr.html#ga3c74d923529f664eda099d1b2668b3c1">Ref_cmInstr.txt</a> </li> <li>__LDAEXB() : <a class="el" href="group__intrinsic__CPU__gr.html#ga513beada40cdd7123281f22482603bcc">Ref_cmInstr.txt</a> </li> <li>__LDAEXH() : <a class="el" href="group__intrinsic__CPU__gr.html#ga426b61640fc68f21b21ae4dc2726f3b4">Ref_cmInstr.txt</a> </li> <li>__LDAH() : <a class="el" href="group__intrinsic__CPU__gr.html#ga5810ac0b87a37e321c2f909cd3860499">Ref_cmInstr.txt</a> </li> <li>__LDRBT() : <a class="el" href="group__intrinsic__CPU__gr.html#ga9464d75db32846aa8295c3c3adfacb41">Ref_cmInstr.txt</a> </li> <li>__LDREXB() : <a class="el" href="group__intrinsic__CPU__gr.html#ga9e3ac13d8dcf4331176b624cf6234a7e">Ref_cmInstr.txt</a> </li> <li>__LDREXH() : <a class="el" href="group__intrinsic__CPU__gr.html#ga9feffc093d6f68b120d592a7a0d45a15">Ref_cmInstr.txt</a> </li> <li>__LDREXW() : <a class="el" href="group__intrinsic__CPU__gr.html#gabd78840a0f2464905b7cec791ebc6a4c">Ref_cmInstr.txt</a> </li> <li>__LDRHT() : <a class="el" href="group__intrinsic__CPU__gr.html#gaa762b8bc5634ce38cb14d62a6b2aee32">Ref_cmInstr.txt</a> </li> <li>__LDRT() : <a class="el" href="group__intrinsic__CPU__gr.html#ga616504f5da979ba8a073d428d6e8d5c7">Ref_cmInstr.txt</a> </li> <li>__NOP() : <a class="el" href="group__intrinsic__CPU__gr.html#gac71fad9f0a91980fecafcb450ee0a63e">Ref_cmInstr.txt</a> </li> <li>__PKHBT() : <a class="el" href="group__intrinsic__SIMD__gr.html#gaefb8ebf3a54e197464da1ff69a44f4b5">Ref_cm4_simd.txt</a> </li> <li>__PKHTB() : <a class="el" href="group__intrinsic__SIMD__gr.html#gafd8fe4a6d87e947caa81a69ec36c1666">Ref_cm4_simd.txt</a> </li> <li>__QADD() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga17b873f246c9f5e9355760ffef3dad4a">Ref_cm4_simd.txt</a> </li> <li>__QADD16() : <a class="el" href="group__intrinsic__SIMD__gr.html#gae83a53ec04b496304bed6d9fe8f7461b">Ref_cm4_simd.txt</a> </li> <li>__QADD8() : <a class="el" href="group__intrinsic__SIMD__gr.html#gaf2f5a9132dcfc6d01d34cd971c425713">Ref_cm4_simd.txt</a> </li> <li>__QASX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga87618799672e1511e33964bc71467eb3">Ref_cm4_simd.txt</a> </li> <li>__QSAX() : <a class="el" href="group__intrinsic__SIMD__gr.html#gab41eb2b17512ab01d476fc9d5bd19520">Ref_cm4_simd.txt</a> </li> <li>__QSUB() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga3ba259f8f05a36f7b88b469a71ffc096">Ref_cm4_simd.txt</a> </li> <li>__QSUB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#gad089605c16df9823a2c8aaa37777aae5">Ref_cm4_simd.txt</a> </li> <li>__QSUB8() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga753493a65493880c28baa82c151a0d61">Ref_cm4_simd.txt</a> </li> <li>__RBIT() : <a class="el" href="group__intrinsic__CPU__gr.html#gad6f9f297f6b91a995ee199fbc796b863">Ref_cmInstr.txt</a> </li> <li>__REV() : <a class="el" href="group__intrinsic__CPU__gr.html#ga4717abc17af5ba29b1e4c055e0a0d9b8">Ref_cmInstr.txt</a> </li> <li>__REV16() : <a class="el" href="group__intrinsic__CPU__gr.html#gaeef6f853b6df3a365c838ee5b49a7a26">Ref_cmInstr.txt</a> </li> <li>__REVSH() : <a class="el" href="group__intrinsic__CPU__gr.html#ga211618c03a0bf3264a7b22ad626d4f0a">Ref_cmInstr.txt</a> </li> <li>__ROR() : <a class="el" href="group__intrinsic__CPU__gr.html#gaf66beb577bb9d90424c3d1d7f684c024">Ref_cmInstr.txt</a> </li> <li>__RRX() : <a class="el" href="group__intrinsic__CPU__gr.html#gac09134f1bf9c49db07282001afcc9380">Ref_cmInstr.txt</a> </li> <li>__SADD16() : <a class="el" href="group__intrinsic__SIMD__gr.html#gad0bf46373a1c05aabf64517e84be5984">Ref_cm4_simd.txt</a> </li> <li>__SADD8() : <a class="el" href="group__intrinsic__SIMD__gr.html#gac20aa0f741d0a1494d58c531e38d5785">Ref_cm4_simd.txt</a> </li> <li>__SASX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga5845084fd99c872e98cf5553d554de2a">Ref_cm4_simd.txt</a> </li> <li>__SEL() : <a class="el" href="group__intrinsic__SIMD__gr.html#gaf5448e591fe49161b6759b48aecb08fe">Ref_cm4_simd.txt</a> </li> <li>__set_BASEPRI() : <a class="el" href="group__Core__Register__gr.html#ga360c73eb7ffb16088556f9278953b882">Ref_CoreReg.txt</a> </li> <li>__set_BASEPRI_MAX() : <a class="el" href="group__Core__Register__gr.html#ga62fa63d39cf22df348857d5f44ab64d9">Ref_CoreReg.txt</a> </li> <li>__set_CONTROL() : <a class="el" href="group__Core__Register__gr.html#gac64d37e7ff9de06437f9fb94bbab8b6c">Ref_CoreReg.txt</a> </li> <li>__set_FAULTMASK() : <a class="el" href="group__Core__Register__gr.html#gaa5587cc09031053a40a35c14ec36078a">Ref_CoreReg.txt</a> </li> <li>__set_FPSCR() : <a class="el" href="group__Core__Register__gr.html#ga6f26bd75ca7e3247f27b272acc10536b">Ref_CoreReg.txt</a> </li> <li>__set_MSP() : <a class="el" href="group__Core__Register__gr.html#ga0bf9564ebc1613a8faba014275dac2a4">Ref_CoreReg.txt</a> </li> <li>__set_MSPLIM() : <a class="el" href="group__Core__Register__gr.html#ga6809a07c5cb7410e361f3fba57f72172">Ref_CoreReg.txt</a> </li> <li>__set_PRIMASK() : <a class="el" href="group__Core__Register__gr.html#ga70b4e1a6c1c86eb913fb9d6e8400156f">Ref_CoreReg.txt</a> </li> <li>__set_PSP() : <a class="el" href="group__Core__Register__gr.html#ga48e5853f417e17a8a65080f6a605b743">Ref_CoreReg.txt</a> </li> <li>__set_PSPLIM() : <a class="el" href="group__Core__Register__gr.html#ga4348d14fc5eefbfd34ab8c51be44a81b">Ref_CoreReg.txt</a> </li> <li>__SEV() : <a class="el" href="group__intrinsic__CPU__gr.html#ga3c34da7eb16496ae2668a5b95fa441e7">Ref_cmInstr.txt</a> </li> <li>__SHADD16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga15d8899a173effb8ad8c7268da32b60e">Ref_cm4_simd.txt</a> </li> <li>__SHADD8() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga524575b442ea01aec10c762bf4d85fea">Ref_cm4_simd.txt</a> </li> <li>__SHASX() : <a class="el" href="group__intrinsic__SIMD__gr.html#gae0a649035f67627464fd80e7218c89d5">Ref_cm4_simd.txt</a> </li> <li>__SHSAX() : <a class="el" href="group__intrinsic__SIMD__gr.html#gafadbd89c36b5addcf1ca10dd392db3e9">Ref_cm4_simd.txt</a> </li> <li>__SHSUB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga31328467f0f91b8ff9ae9a01682ad3bf">Ref_cm4_simd.txt</a> </li> <li>__SHSUB8() : <a class="el" href="group__intrinsic__SIMD__gr.html#gac3ec7215b354d925a239f3b31df2b77b">Ref_cm4_simd.txt</a> </li> <li>__SMLAD() : <a class="el" href="group__intrinsic__SIMD__gr.html#gae0c86f3298532183f3a29f5bb454d354">Ref_cm4_simd.txt</a> </li> <li>__SMLADX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga9c286d330f4fb29b256335add91eec9f">Ref_cm4_simd.txt</a> </li> <li>__SMLALD() : <a class="el" href="group__intrinsic__SIMD__gr.html#gad80e9b20c1736fd798f897362273a146">Ref_cm4_simd.txt</a> </li> <li>__SMLALDX() : <a class="el" href="group__intrinsic__SIMD__gr.html#gad1adad1b3f2667328cc0db6c6b4f41cf">Ref_cm4_simd.txt</a> </li> <li>__SMLSD() : <a class="el" href="group__intrinsic__SIMD__gr.html#gaf4350af7f2030c36f43b2c104a9d16cd">Ref_cm4_simd.txt</a> </li> <li>__SMLSDX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga5290ce5564770ad124910d2583dc0a9e">Ref_cm4_simd.txt</a> </li> <li>__SMLSLD() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga5611f7314e0c8f53da377918dfbf42ee">Ref_cm4_simd.txt</a> </li> <li>__SMLSLDX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga83e69ef81057d3cbd06863d729385187">Ref_cm4_simd.txt</a> </li> <li>__SMMLA() : <a class="el" href="group__intrinsic__SIMD__gr.html#gaea60757232f740ec6b09980eebb614ff">Ref_cm4_simd.txt</a> </li> <li>__SMUAD() : <a class="el" href="group__intrinsic__SIMD__gr.html#gae326e368a1624d2dfb4b97c626939257">Ref_cm4_simd.txt</a> </li> <li>__SMUADX() : <a class="el" href="group__intrinsic__SIMD__gr.html#gaee6390f86965cb662500f690b0012092">Ref_cm4_simd.txt</a> </li> <li>__SMUSD() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga039142a5368840683cf329cb55b73f84">Ref_cm4_simd.txt</a> </li> <li>__SMUSDX() : <a class="el" href="group__intrinsic__SIMD__gr.html#gabb5bcba694bf17b141c32e6a8474f60e">Ref_cm4_simd.txt</a> </li> <li>__SSAT() : <a class="el" href="group__intrinsic__CPU__gr.html#ga8cfeb5ffe0e49ec6b29dafdde92e5118">Ref_cmInstr.txt</a> </li> <li>__SSAT16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga95e666b82216066bf6064d1244e6883c">Ref_cm4_simd.txt</a> </li> <li>__SSAX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga9d3bc5c539f9bd50f7d59ffa37ac6a65">Ref_cm4_simd.txt</a> </li> <li>__SSUB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga4262f73be75efbac6b46ab7c71aa6cbc">Ref_cm4_simd.txt</a> </li> <li>__SSUB8() : <a class="el" href="group__intrinsic__SIMD__gr.html#gaba63bb52e1e93fb527e26f3d474da12e">Ref_cm4_simd.txt</a> </li> <li>__STL() : <a class="el" href="group__intrinsic__CPU__gr.html#ga5429d7083fb8d30c43cecd3a861e1672">Ref_cmInstr.txt</a> </li> <li>__STLB() : <a class="el" href="group__intrinsic__CPU__gr.html#gace025d3a1f85d2ab9bae7288838d6bc8">Ref_cmInstr.txt</a> </li> <li>__STLEX() : <a class="el" href="group__intrinsic__CPU__gr.html#gae7f955b91595cfd82a03e4b437c59afe">Ref_cmInstr.txt</a> </li> <li>__STLEXB() : <a class="el" href="group__intrinsic__CPU__gr.html#ga590724a32a229978536fbbbd6cc82536">Ref_cmInstr.txt</a> </li> <li>__STLEXH() : <a class="el" href="group__intrinsic__CPU__gr.html#ga047c3bebca3d0ae348ab8370a046301d">Ref_cmInstr.txt</a> </li> <li>__STLH() : <a class="el" href="group__intrinsic__CPU__gr.html#ga25691650de536f9b248b15f6dc4a3e70">Ref_cmInstr.txt</a> </li> <li>__STRBT() : <a class="el" href="group__intrinsic__CPU__gr.html#gad41aa59c92c0a165b7f98428d3320cd5">Ref_cmInstr.txt</a> </li> <li>__STREXB() : <a class="el" href="group__intrinsic__CPU__gr.html#gaab6482d1f59f59e2b6b7efc1af391c99">Ref_cmInstr.txt</a> </li> <li>__STREXH() : <a class="el" href="group__intrinsic__CPU__gr.html#ga0a354bdf71caa52f081a4a54e84c8d2a">Ref_cmInstr.txt</a> </li> <li>__STREXW() : <a class="el" href="group__intrinsic__CPU__gr.html#ga335deaaa7991490e1450cb7d1e4c5197">Ref_cmInstr.txt</a> </li> <li>__STRHT() : <a class="el" href="group__intrinsic__CPU__gr.html#ga2b5d93b8e461755b1072a03df3f1722e">Ref_cmInstr.txt</a> </li> <li>__STRT() : <a class="el" href="group__intrinsic__CPU__gr.html#ga625bc4ac0b1d50de9bcd13d9f050030e">Ref_cmInstr.txt</a> </li> <li>__SXTAB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#gac540b4fc41d30778ba102d2a65db5589">Ref_cm4_simd.txt</a> </li> <li>__SXTB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga38dce3dd13ba212e80ec3cff4abeb11a">Ref_cm4_simd.txt</a> </li> <li>__TZ_get_BASEPRI_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga624509c924d2583f0d4dca6ab270f051">Ref_Trustzone.txt</a> </li> <li>__TZ_get_CONTROL_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga27bf1f88e794c30808ee73a29d46e358">Ref_Trustzone.txt</a> </li> <li>__TZ_get_FAULTMASK_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga578b41087f207e1a475daae6cc8a28dc">Ref_Trustzone.txt</a> </li> <li>__TZ_get_MSP_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#gab3aa15eb4f352e230b9f7a3e8856a9e9">Ref_Trustzone.txt</a> </li> <li>__TZ_get_MSPLIM_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#gada00853d3e49fa8d21f375c53d28fa51">Ref_Trustzone.txt</a> </li> <li>__TZ_get_PRIMASK_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga7cc3271c79e619f8838e8767df3cb509">Ref_Trustzone.txt</a> </li> <li>__TZ_get_PSP_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga40ff8336c6d09af6da1081d4e4adc126">Ref_Trustzone.txt</a> </li> <li>__TZ_get_PSPLIM_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga5da646ec291b6a183f38497ce92be51c">Ref_Trustzone.txt</a> </li> <li>__TZ_get_SP_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#gaaaf2aaf904b25ed17fd3e5e63f8e029b">Ref_Trustzone.txt</a> </li> <li>__TZ_set_BASEPRI_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga92c187f0b4d53627b59e0fd0bda0b0df">Ref_Trustzone.txt</a> </li> <li>__TZ_set_CONTROL_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga3eb150204e6d389d5b49065179b9cde5">Ref_Trustzone.txt</a> </li> <li>__TZ_set_FAULTMASK_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga4f0912db7bc65439d23817c1d372a7a4">Ref_Trustzone.txt</a> </li> <li>__TZ_set_MSP_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga41c3ac2d9af23c40647c053ad7d564e7">Ref_Trustzone.txt</a> </li> <li>__TZ_set_MSPLIM_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#gad2013f4d4311d6db253594a12d192617">Ref_Trustzone.txt</a> </li> <li>__TZ_set_PRIMASK_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga6686c2ab5756b5049fad1644e89b3340">Ref_Trustzone.txt</a> </li> <li>__TZ_set_PSP_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#gaea8db21c00cfa4144ee74dc65dbd7580">Ref_Trustzone.txt</a> </li> <li>__TZ_set_PSPLIM_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#ga81e0995ee0fd2a9dcd9e9681bc22c76f">Ref_Trustzone.txt</a> </li> <li>__TZ_set_SP_NS() : <a class="el" href="group__coreregister__trustzone__functions.html#gab7263167cb006aeeb04b68e579dae015">Ref_Trustzone.txt</a> </li> <li>__UADD16() : <a class="el" href="group__intrinsic__SIMD__gr.html#gaa1160f0cf76d6aa292fbad54a1aa6b74">Ref_cm4_simd.txt</a> </li> <li>__UADD8() : <a class="el" href="group__intrinsic__SIMD__gr.html#gab3d7fd00d113b20fb3741a17394da762">Ref_cm4_simd.txt</a> </li> <li>__UASX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga980353d2c72ebb879282e49f592fddc0">Ref_cm4_simd.txt</a> </li> <li>__UHADD16() : <a class="el" href="group__intrinsic__SIMD__gr.html#gabd0b0e2da2e6364e176d051687702b86">Ref_cm4_simd.txt</a> </li> <li>__UHADD8() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga3a14e5485e59bf0f23595b7c2a94eb0b">Ref_cm4_simd.txt</a> </li> <li>__UHASX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga028f0732b961fb6e5209326fb3855261">Ref_cm4_simd.txt</a> </li> <li>__UHSAX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga09e129e6613329aab87c89f1108b7ed7">Ref_cm4_simd.txt</a> </li> <li>__UHSUB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga1f7545b8dc33bb97982731cb9d427a69">Ref_cm4_simd.txt</a> </li> <li>__UHSUB8() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga48a55df1c3e73923b73819d7c19b392d">Ref_cm4_simd.txt</a> </li> <li>__UQADD16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga9e2cc5117e79578a08b25f1e89022966">Ref_cm4_simd.txt</a> </li> <li>__UQADD8() : <a class="el" href="group__intrinsic__SIMD__gr.html#gafa9af218db3934a692fb06fa728d8031">Ref_cm4_simd.txt</a> </li> <li>__UQASX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga5eff3ae5eabcd73f3049996ca391becb">Ref_cm4_simd.txt</a> </li> <li>__UQSAX() : <a class="el" href="group__intrinsic__SIMD__gr.html#gadecfdfabc328d8939d49d996f2fd4482">Ref_cm4_simd.txt</a> </li> <li>__UQSUB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga5ec4e2e231d15e5c692233feb3806187">Ref_cm4_simd.txt</a> </li> <li>__UQSUB8() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga9736fe816aec74fe886e7fb949734eab">Ref_cm4_simd.txt</a> </li> <li>__USAD8() : <a class="el" href="group__intrinsic__SIMD__gr.html#gac8855c07044239ea775c8128013204f0">Ref_cm4_simd.txt</a> </li> <li>__USADA8() : <a class="el" href="group__intrinsic__SIMD__gr.html#gad032bd21f013c5d29f5fcb6b0f02bc3f">Ref_cm4_simd.txt</a> </li> <li>__USAT() : <a class="el" href="group__intrinsic__CPU__gr.html#ga76bbe4374a5912362866cdc1ded4064a">Ref_cmInstr.txt</a> </li> <li>__USAT16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga967f516afff5900cf30f1a81907cdd89">Ref_cm4_simd.txt</a> </li> <li>__USAX() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga578a082747436772c482c96d7a58e45e">Ref_cm4_simd.txt</a> </li> <li>__USUB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#ga9f2b77e11fc4a77b26c36c423ed45b4e">Ref_cm4_simd.txt</a> </li> <li>__USUB8() : <a class="el" href="group__intrinsic__SIMD__gr.html#gacb7257dc3b8e9acbd0ef0e31ff87d4b8">Ref_cm4_simd.txt</a> </li> <li>__UXTAB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#gad25ce96db0f17096bbd815f4817faf09">Ref_cm4_simd.txt</a> </li> <li>__UXTB16() : <a class="el" href="group__intrinsic__SIMD__gr.html#gab41d713653b16f8d9fef44d14e397228">Ref_cm4_simd.txt</a> </li> <li>__WFE() : <a class="el" href="group__intrinsic__CPU__gr.html#gad3efec76c3bfa2b8528ded530386c563">Ref_cmInstr.txt</a> </li> <li>__WFI() : <a class="el" href="group__intrinsic__CPU__gr.html#gaed91dfbf3d7d7b7fba8d912fcbeaad88">Ref_cmInstr.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_func.html
HTML
apache-2.0
26,786
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li><a href="globals.html"><span>All</span></a></li> <li class="current"><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="globals_func.html#index__"><span>_</span></a></li> <li class="current"><a href="globals_func_a.html#index_a"><span>a</span></a></li> <li><a href="globals_func_i.html#index_i"><span>i</span></a></li> <li><a href="globals_func_n.html#index_n"><span>n</span></a></li> <li><a href="globals_func_s.html#index_s"><span>s</span></a></li> <li><a href="globals_func_t.html#index_t"><span>t</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_func_a.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> &#160; <h3><a class="anchor" id="index_a"></a>- a -</h3><ul> <li>ARM_MPU_ClrRegion() : <a class="el" href="group__mpu__functions.html#ga9dcb0afddf4ac351f33f3c7a5169c62c">Ref_MPU.txt</a> , <a class="el" href="group__mpu8__functions.html#ga9dcb0afddf4ac351f33f3c7a5169c62c">Ref_MPU8.txt</a> </li> <li>ARM_MPU_ClrRegion_NS() : <a class="el" href="group__mpu8__functions.html#gac526bc5bfcf048ce57a44c0c0cdadbe4">Ref_MPU8.txt</a> </li> <li>ARM_MPU_ClrRegionEx() : <a class="el" href="group__mpu8__functions.html#ga01fa1151c9ec0ba5de76f908c0999316">Ref_MPU8.txt</a> </li> <li>ARM_MPU_Disable() : <a class="el" href="group__mpu__functions.html#ga7cbc0a4a066ed90e85c8176228235d57">Ref_MPU.txt</a> , <a class="el" href="group__mpu8__functions.html#ga61814eba4652a0fdfb76bbe222086327">Ref_MPU8.txt</a> </li> <li>ARM_MPU_Disable_NS() : <a class="el" href="group__mpu8__functions.html#ga389f9b6049d176bc83f9964d3259b712">Ref_MPU8.txt</a> </li> <li>ARM_MPU_Enable() : <a class="el" href="group__mpu__functions.html#ga31406efd492ec9a091a70ffa2d8a42fb">Ref_MPU.txt</a> , <a class="el" href="group__mpu8__functions.html#ga5a3f40314553baccdeea551f86d9a997">Ref_MPU8.txt</a> </li> <li>ARM_MPU_Enable_NS() : <a class="el" href="group__mpu8__functions.html#ga5866c75d6deb9148a1e9af6337eec50a">Ref_MPU8.txt</a> </li> <li>ARM_MPU_Load() : <a class="el" href="group__mpu__functions.html#gafa27b26d5847fa8e465584e376b6078a">Ref_MPU.txt</a> , <a class="el" href="group__mpu8__functions.html#gaca76614e3091c7324aa9d60e634621bf">Ref_MPU8.txt</a> </li> <li>ARM_MPU_Load_NS() : <a class="el" href="group__mpu8__functions.html#ga7f8c6e09be98067d613e4df1832c543d">Ref_MPU8.txt</a> </li> <li>ARM_MPU_LoadEx() : <a class="el" href="group__mpu8__functions.html#gab6094419f2abd678f1f3b121cd115049">Ref_MPU8.txt</a> </li> <li>ARM_MPU_OrderedMemcpy() : <a class="el" href="group__mpu__functions.html#gac1a949403bf84eecaf407003fb553ae7">Ref_MPU.txt</a> , <a class="el" href="group__mpu8__functions.html#gac1a949403bf84eecaf407003fb553ae7">Ref_MPU8.txt</a> </li> <li>ARM_MPU_SetMemAttr() : <a class="el" href="group__mpu8__functions.html#gab5b3c0a53d19c09a5550f1d9071ae65c">Ref_MPU8.txt</a> </li> <li>ARM_MPU_SetMemAttr_NS() : <a class="el" href="group__mpu8__functions.html#ga5100a150a755902af2455a455a329ef9">Ref_MPU8.txt</a> </li> <li>ARM_MPU_SetMemAttrEx() : <a class="el" href="group__mpu8__functions.html#ga1799413f08a157d636a1491371c15ce2">Ref_MPU8.txt</a> </li> <li>ARM_MPU_SetRegion() : <a class="el" href="group__mpu8__functions.html#ga6d7f220015c070c0e469948c1775ee3d">Ref_MPU8.txt</a> , <a class="el" href="group__mpu__functions.html#ga16931f9ad84d7289e8218e169ae6db5d">Ref_MPU.txt</a> </li> <li>ARM_MPU_SetRegion_NS() : <a class="el" href="group__mpu8__functions.html#ga7566931ca9bb9f22d213a67ec5f8c745">Ref_MPU8.txt</a> </li> <li>ARM_MPU_SetRegionEx() : <a class="el" href="group__mpu8__functions.html#ga3d50ba8546252bea959e45c8fdf16993">Ref_MPU8.txt</a> , <a class="el" href="group__mpu__functions.html#ga042ba1a6a1a58795231459ac0410b809">Ref_MPU.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_func_a.html
HTML
apache-2.0
9,886
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li><a href="globals.html"><span>All</span></a></li> <li class="current"><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="globals_func.html#index__"><span>_</span></a></li> <li><a href="globals_func_a.html#index_a"><span>a</span></a></li> <li class="current"><a href="globals_func_i.html#index_i"><span>i</span></a></li> <li><a href="globals_func_n.html#index_n"><span>n</span></a></li> <li><a href="globals_func_s.html#index_s"><span>s</span></a></li> <li><a href="globals_func_t.html#index_t"><span>t</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_func_i.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> &#160; <h3><a class="anchor" id="index_i"></a>- i -</h3><ul> <li>ITM_CheckChar() : <a class="el" href="group__ITM__Debug__gr.html#ga7f9bbabd9756d1a7eafb2d9bf27e0535">Ref_Debug.txt</a> </li> <li>ITM_ReceiveChar() : <a class="el" href="group__ITM__Debug__gr.html#ga37b8f41cae703b5ff6947e271065558c">Ref_Debug.txt</a> </li> <li>ITM_SendChar() : <a class="el" href="group__ITM__Debug__gr.html#gaaa7c716331f74d644bf6bf25cd3392d1">Ref_Debug.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_func_i.html
HTML
apache-2.0
7,298
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li><a href="globals.html"><span>All</span></a></li> <li class="current"><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="globals_func.html#index__"><span>_</span></a></li> <li><a href="globals_func_a.html#index_a"><span>a</span></a></li> <li><a href="globals_func_i.html#index_i"><span>i</span></a></li> <li class="current"><a href="globals_func_n.html#index_n"><span>n</span></a></li> <li><a href="globals_func_s.html#index_s"><span>s</span></a></li> <li><a href="globals_func_t.html#index_t"><span>t</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_func_n.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> &#160; <h3><a class="anchor" id="index_n"></a>- n -</h3><ul> <li>NVIC_ClearPendingIRQ() : <a class="el" href="group__NVIC__gr.html#ga382ad6bedd6eecfdabd1b94dd128a01a">Ref_NVIC.txt</a> </li> <li>NVIC_ClearTargetState() : <a class="el" href="group__NVIC__gr.html#ga44b31316872e91bda1af7e17173de24b">Ref_NVIC.txt</a> </li> <li>NVIC_DecodePriority() : <a class="el" href="group__NVIC__gr.html#gad3cbca1be7a4726afa9448a9acd89377">Ref_NVIC.txt</a> </li> <li>NVIC_DisableIRQ() : <a class="el" href="group__NVIC__gr.html#ga736ba13a76eb37ef6e2c253be8b0331c">Ref_NVIC.txt</a> </li> <li>NVIC_EnableIRQ() : <a class="el" href="group__NVIC__gr.html#ga530ad9fda2ed1c8b70e439ecfe80591f">Ref_NVIC.txt</a> </li> <li>NVIC_EncodePriority() : <a class="el" href="group__NVIC__gr.html#ga0688c59605b119c53c71b2505ab23eb5">Ref_NVIC.txt</a> </li> <li>NVIC_GetActive() : <a class="el" href="group__NVIC__gr.html#gadf4252e600661fd762cfc0d1a9f5b892">Ref_NVIC.txt</a> </li> <li>NVIC_GetEnableIRQ() : <a class="el" href="group__NVIC__gr.html#ga72f102d31af0ee4aa7a6fb7a180840f3">Ref_NVIC.txt</a> </li> <li>NVIC_GetPendingIRQ() : <a class="el" href="group__NVIC__gr.html#ga95a8329a680b051ecf3ee8f516acc662">Ref_NVIC.txt</a> </li> <li>NVIC_GetPriority() : <a class="el" href="group__NVIC__gr.html#gab18fb9f6c5f4c70fdd73047f0f7c8395">Ref_NVIC.txt</a> </li> <li>NVIC_GetPriorityGrouping() : <a class="el" href="group__NVIC__gr.html#gaa81b19849367d3cdb95ac108c500fa78">Ref_NVIC.txt</a> </li> <li>NVIC_GetTargetState() : <a class="el" href="group__NVIC__gr.html#ga62b37611e1ccbac47d747c98ef302746">Ref_NVIC.txt</a> </li> <li>NVIC_GetVector() : <a class="el" href="group__NVIC__gr.html#gaebee9cad6724a5bac1857f0f1fb6d6af">Ref_NVIC.txt</a> </li> <li>NVIC_SetPendingIRQ() : <a class="el" href="group__NVIC__gr.html#ga3b885147ef9965ecede49614de8df9d2">Ref_NVIC.txt</a> </li> <li>NVIC_SetPriority() : <a class="el" href="group__NVIC__gr.html#ga5bb7f43ad92937c039dee3d36c3c2798">Ref_NVIC.txt</a> </li> <li>NVIC_SetPriorityGrouping() : <a class="el" href="group__NVIC__gr.html#gad78f447e891789b4d8f2e5b21eeda354">Ref_NVIC.txt</a> </li> <li>NVIC_SetTargetState() : <a class="el" href="group__NVIC__gr.html#gaf46218d01a6a3b70666ad0492a7f950a">Ref_NVIC.txt</a> </li> <li>NVIC_SetVector() : <a class="el" href="group__NVIC__gr.html#gab43c1c59d5c081f1bc725237f4b1f916">Ref_NVIC.txt</a> </li> <li>NVIC_SystemReset() : <a class="el" href="group__NVIC__gr.html#ga1b47d17e90b6a03e7bd1ec6a0d549b46">Ref_NVIC.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_func_n.html
HTML
apache-2.0
9,318
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li><a href="globals.html"><span>All</span></a></li> <li class="current"><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="globals_func.html#index__"><span>_</span></a></li> <li><a href="globals_func_a.html#index_a"><span>a</span></a></li> <li><a href="globals_func_i.html#index_i"><span>i</span></a></li> <li><a href="globals_func_n.html#index_n"><span>n</span></a></li> <li class="current"><a href="globals_func_s.html#index_s"><span>s</span></a></li> <li><a href="globals_func_t.html#index_t"><span>t</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_func_s.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> &#160; <h3><a class="anchor" id="index_s"></a>- s -</h3><ul> <li>SCB_CleanDCache() : <a class="el" href="group__Dcache__functions__m7.html#ga55583e3065c6eabca204b8b89b121c4c">core_cm7.txt</a> </li> <li>SCB_CleanDCache_by_Addr() : <a class="el" href="group__Dcache__functions__m7.html#ga696fadbf7b9cc71dad42fab61873a40d">core_cm7.txt</a> </li> <li>SCB_CleanInvalidateDCache() : <a class="el" href="group__Dcache__functions__m7.html#ga1b741def9e3b2ca97dc9ea49b8ce505c">core_cm7.txt</a> </li> <li>SCB_CleanInvalidateDCache_by_Addr() : <a class="el" href="group__Dcache__functions__m7.html#ga630131b2572eaa16b569ed364dfc895e">core_cm7.txt</a> </li> <li>SCB_DisableDCache() : <a class="el" href="group__Dcache__functions__m7.html#ga6468170f90d270caab8116e7a4f0b5fe">core_cm7.txt</a> </li> <li>SCB_DisableICache() : <a class="el" href="group__Icache__functions__m7.html#gaba757390852f95b3ac2d8638c717d8d8">core_cm7.txt</a> </li> <li>SCB_EnableDCache() : <a class="el" href="group__Dcache__functions__m7.html#ga63aa640d9006021a796a5dcf9c7180b6">core_cm7.txt</a> </li> <li>SCB_EnableICache() : <a class="el" href="group__Icache__functions__m7.html#gaf9e7c6c8e16ada1f95e5bf5a03505b68">core_cm7.txt</a> </li> <li>SCB_GetFPUType() : <a class="el" href="group__fpu__functions.html#ga6bcad99ce80a0e7e4ddc6f2379081756">Ref_FPU.txt</a> </li> <li>SCB_InvalidateDCache() : <a class="el" href="group__Dcache__functions__m7.html#gace2d30db08887d0bdb818b8a785a5ce6">core_cm7.txt</a> </li> <li>SCB_InvalidateDCache_by_Addr() : <a class="el" href="group__Dcache__functions__m7.html#ga503ef7ef58c0773defd15a82f6336c09">core_cm7.txt</a> </li> <li>SCB_InvalidateICache() : <a class="el" href="group__Icache__functions__m7.html#ga50d373a785edd782c5de5a3b55e30ff3">core_cm7.txt</a> </li> <li>SystemCoreClockUpdate() : <a class="el" href="group__system__init__gr.html#gae0c36a9591fe6e9c45ecb21a794f0f0f">Ref_SystemAndClock.txt</a> </li> <li>SystemInit() : <a class="el" href="group__system__init__gr.html#ga93f514700ccf00d08dbdcff7f1224eb2">Ref_SystemAndClock.txt</a> </li> <li>SysTick_Config() : <a class="el" href="group__SysTick__gr.html#gabe47de40e9b0ad465b752297a9d9f427">Ref_Systick.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_func_s.html
HTML
apache-2.0
9,024
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li><a href="globals.html"><span>All</span></a></li> <li class="current"><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="globals_func.html#index__"><span>_</span></a></li> <li><a href="globals_func_a.html#index_a"><span>a</span></a></li> <li><a href="globals_func_i.html#index_i"><span>i</span></a></li> <li><a href="globals_func_n.html#index_n"><span>n</span></a></li> <li><a href="globals_func_s.html#index_s"><span>s</span></a></li> <li class="current"><a href="globals_func_t.html#index_t"><span>t</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_func_t.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> &#160; <h3><a class="anchor" id="index_t"></a>- t -</h3><ul> <li>TZ_AllocModuleContext_S() : <a class="el" href="group__context__trustzone__functions.html#gacd016f166bee549a0d3e970132e64a90">Ref_Trustzone.txt</a> </li> <li>TZ_FreeModuleContext_S() : <a class="el" href="group__context__trustzone__functions.html#gac84f678fbe974f8b02c683e0b8046524">Ref_Trustzone.txt</a> </li> <li>TZ_InitContextSystem_S() : <a class="el" href="group__context__trustzone__functions.html#ga926e2ec472535a6d2b8125be1a79e3c0">Ref_Trustzone.txt</a> </li> <li>TZ_LoadContext_S() : <a class="el" href="group__context__trustzone__functions.html#ga4748f6bcdd5fed279ac5a6cd7eca2689">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_ClearPendingIRQ_NS() : <a class="el" href="group__nvic__trustzone__functions.html#ga3b30f8b602b593a806617b671a50731a">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_DisableIRQ_NS() : <a class="el" href="group__nvic__trustzone__functions.html#gabc58593dea7803c1f1e1ed3b098f497c">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_EnableIRQ_NS() : <a class="el" href="group__nvic__trustzone__functions.html#gaedea4c16dd4a0b792c7e9d1da4c49295">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_GetActive_NS() : <a class="el" href="group__nvic__trustzone__functions.html#ga1bffd79bd6365d83281883b6c4b0f218">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_GetEnableIRQ_NS() : <a class="el" href="group__nvic__trustzone__functions.html#ga57d2a6736704c4a39421ed1a2e7b689b">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_GetPendingIRQ_NS() : <a class="el" href="group__nvic__trustzone__functions.html#gab85bd0d55d746caf0e414be5284afe24">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_GetPriority_NS() : <a class="el" href="group__nvic__trustzone__functions.html#gade6a8784339946fdd50575d7e65a3268">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_GetPriorityGrouping_NS() : <a class="el" href="group__nvic__trustzone__functions.html#gaf5f578628bc8b7154b29577f6f6a87fd">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_SetPendingIRQ_NS() : <a class="el" href="group__nvic__trustzone__functions.html#gaccbc9aa0eacf4d4c3d3046edb9e02edd">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_SetPriority_NS() : <a class="el" href="group__nvic__trustzone__functions.html#ga2caf0df3603378c436c838138e42059a">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_SetPriorityGrouping_NS() : <a class="el" href="group__nvic__trustzone__functions.html#ga0d3b5db0685bd95cc8bd2f7ad0891d39">Ref_Trustzone.txt</a> </li> <li>TZ_SAU_Disable() : <a class="el" href="group__sau__trustzone__functions.html#ga42e201cea0a4b09f588a28b751f726fb">Ref_Trustzone.txt</a> </li> <li>TZ_SAU_Enable() : <a class="el" href="group__sau__trustzone__functions.html#ga187377409289e34838225ce801fb102c">Ref_Trustzone.txt</a> </li> <li>TZ_SAU_Setup() : <a class="el" href="group__sau__trustzone__functions.html#ga6093bc5939ea8924fbcfdffb8f0553f1">Ref_Trustzone.txt</a> </li> <li>TZ_StoreContext_S() : <a class="el" href="group__context__trustzone__functions.html#gac106570f4905f82922fd335aeb08a1bf">Ref_Trustzone.txt</a> </li> <li>TZ_SysTick_Config_NS() : <a class="el" href="group__systick__trustzone__functions.html#gad18a1b1a6796c652f2b35e728f2e2670">Ref_Trustzone.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_func_t.html
HTML
apache-2.0
9,986
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li class="current"><a href="globals.html"><span>All</span></a></li> <li><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="globals.html#index__"><span>_</span></a></li> <li><a href="globals_a.html#index_a"><span>a</span></a></li> <li><a href="globals_b.html#index_b"><span>b</span></a></li> <li><a href="globals_c.html#index_c"><span>c</span></a></li> <li><a href="globals_d.html#index_d"><span>d</span></a></li> <li class="current"><a href="globals_h.html#index_h"><span>h</span></a></li> <li><a href="globals_i.html#index_i"><span>i</span></a></li> <li><a href="globals_m.html#index_m"><span>m</span></a></li> <li><a href="globals_n.html#index_n"><span>n</span></a></li> <li><a href="globals_p.html#index_p"><span>p</span></a></li> <li><a href="globals_s.html#index_s"><span>s</span></a></li> <li><a href="globals_t.html#index_t"><span>t</span></a></li> <li><a href="globals_u.html#index_u"><span>u</span></a></li> <li><a href="globals_w.html#index_w"><span>w</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_h.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> <div class="textblock">Here is a list of all functions, variables, defines, enums, and typedefs with links to the files they belong to:</div> <h3><a class="anchor" id="index_h"></a>- h -</h3><ul> <li>HardFault_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8ab1a222a34a32f0ef5ac65e714efc1f85">Ref_NVIC.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_h.html
HTML
apache-2.0
7,701
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li class="current"><a href="globals.html"><span>All</span></a></li> <li><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="globals.html#index__"><span>_</span></a></li> <li><a href="globals_a.html#index_a"><span>a</span></a></li> <li><a href="globals_b.html#index_b"><span>b</span></a></li> <li><a href="globals_c.html#index_c"><span>c</span></a></li> <li><a href="globals_d.html#index_d"><span>d</span></a></li> <li><a href="globals_h.html#index_h"><span>h</span></a></li> <li class="current"><a href="globals_i.html#index_i"><span>i</span></a></li> <li><a href="globals_m.html#index_m"><span>m</span></a></li> <li><a href="globals_n.html#index_n"><span>n</span></a></li> <li><a href="globals_p.html#index_p"><span>p</span></a></li> <li><a href="globals_s.html#index_s"><span>s</span></a></li> <li><a href="globals_t.html#index_t"><span>t</span></a></li> <li><a href="globals_u.html#index_u"><span>u</span></a></li> <li><a href="globals_w.html#index_w"><span>w</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_i.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> <div class="textblock">Here is a list of all functions, variables, defines, enums, and typedefs with links to the files they belong to:</div> <h3><a class="anchor" id="index_i"></a>- i -</h3><ul> <li>IRQn_Type : <a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">Ref_NVIC.txt</a> </li> <li>ITM_CheckChar() : <a class="el" href="group__ITM__Debug__gr.html#ga7f9bbabd9756d1a7eafb2d9bf27e0535">Ref_Debug.txt</a> </li> <li>ITM_ReceiveChar() : <a class="el" href="group__ITM__Debug__gr.html#ga37b8f41cae703b5ff6947e271065558c">Ref_Debug.txt</a> </li> <li>ITM_RxBuffer : <a class="el" href="group__ITM__Debug__gr.html#ga12e68e55a7badc271b948d6c7230b2a8">Ref_Debug.txt</a> </li> <li>ITM_SendChar() : <a class="el" href="group__ITM__Debug__gr.html#gaaa7c716331f74d644bf6bf25cd3392d1">Ref_Debug.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_i.html
HTML
apache-2.0
8,176
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li class="current"><a href="globals.html"><span>All</span></a></li> <li><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="globals.html#index__"><span>_</span></a></li> <li><a href="globals_a.html#index_a"><span>a</span></a></li> <li><a href="globals_b.html#index_b"><span>b</span></a></li> <li><a href="globals_c.html#index_c"><span>c</span></a></li> <li><a href="globals_d.html#index_d"><span>d</span></a></li> <li><a href="globals_h.html#index_h"><span>h</span></a></li> <li><a href="globals_i.html#index_i"><span>i</span></a></li> <li class="current"><a href="globals_m.html#index_m"><span>m</span></a></li> <li><a href="globals_n.html#index_n"><span>n</span></a></li> <li><a href="globals_p.html#index_p"><span>p</span></a></li> <li><a href="globals_s.html#index_s"><span>s</span></a></li> <li><a href="globals_t.html#index_t"><span>t</span></a></li> <li><a href="globals_u.html#index_u"><span>u</span></a></li> <li><a href="globals_w.html#index_w"><span>w</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_m.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> <div class="textblock">Here is a list of all functions, variables, defines, enums, and typedefs with links to the files they belong to:</div> <h3><a class="anchor" id="index_m"></a>- m -</h3><ul> <li>MemoryManagement_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a33ff1cf7098de65d61b6354fee6cd5aa">Ref_NVIC.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_m.html
HTML
apache-2.0
7,708
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li class="current"><a href="globals.html"><span>All</span></a></li> <li><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="globals.html#index__"><span>_</span></a></li> <li><a href="globals_a.html#index_a"><span>a</span></a></li> <li><a href="globals_b.html#index_b"><span>b</span></a></li> <li><a href="globals_c.html#index_c"><span>c</span></a></li> <li><a href="globals_d.html#index_d"><span>d</span></a></li> <li><a href="globals_h.html#index_h"><span>h</span></a></li> <li><a href="globals_i.html#index_i"><span>i</span></a></li> <li><a href="globals_m.html#index_m"><span>m</span></a></li> <li class="current"><a href="globals_n.html#index_n"><span>n</span></a></li> <li><a href="globals_p.html#index_p"><span>p</span></a></li> <li><a href="globals_s.html#index_s"><span>s</span></a></li> <li><a href="globals_t.html#index_t"><span>t</span></a></li> <li><a href="globals_u.html#index_u"><span>u</span></a></li> <li><a href="globals_w.html#index_w"><span>w</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_n.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> <div class="textblock">Here is a list of all functions, variables, defines, enums, and typedefs with links to the files they belong to:</div> <h3><a class="anchor" id="index_n"></a>- n -</h3><ul> <li>NonMaskableInt_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8ade177d9c70c89e084093024b932a4e30">Ref_NVIC.txt</a> </li> <li>NVIC_ClearPendingIRQ() : <a class="el" href="group__NVIC__gr.html#ga382ad6bedd6eecfdabd1b94dd128a01a">Ref_NVIC.txt</a> </li> <li>NVIC_ClearTargetState() : <a class="el" href="group__NVIC__gr.html#ga44b31316872e91bda1af7e17173de24b">Ref_NVIC.txt</a> </li> <li>NVIC_DecodePriority() : <a class="el" href="group__NVIC__gr.html#gad3cbca1be7a4726afa9448a9acd89377">Ref_NVIC.txt</a> </li> <li>NVIC_DisableIRQ() : <a class="el" href="group__NVIC__gr.html#ga736ba13a76eb37ef6e2c253be8b0331c">Ref_NVIC.txt</a> </li> <li>NVIC_EnableIRQ() : <a class="el" href="group__NVIC__gr.html#ga530ad9fda2ed1c8b70e439ecfe80591f">Ref_NVIC.txt</a> </li> <li>NVIC_EncodePriority() : <a class="el" href="group__NVIC__gr.html#ga0688c59605b119c53c71b2505ab23eb5">Ref_NVIC.txt</a> </li> <li>NVIC_GetActive() : <a class="el" href="group__NVIC__gr.html#gadf4252e600661fd762cfc0d1a9f5b892">Ref_NVIC.txt</a> </li> <li>NVIC_GetEnableIRQ() : <a class="el" href="group__NVIC__gr.html#ga72f102d31af0ee4aa7a6fb7a180840f3">Ref_NVIC.txt</a> </li> <li>NVIC_GetPendingIRQ() : <a class="el" href="group__NVIC__gr.html#ga95a8329a680b051ecf3ee8f516acc662">Ref_NVIC.txt</a> </li> <li>NVIC_GetPriority() : <a class="el" href="group__NVIC__gr.html#gab18fb9f6c5f4c70fdd73047f0f7c8395">Ref_NVIC.txt</a> </li> <li>NVIC_GetPriorityGrouping() : <a class="el" href="group__NVIC__gr.html#gaa81b19849367d3cdb95ac108c500fa78">Ref_NVIC.txt</a> </li> <li>NVIC_GetTargetState() : <a class="el" href="group__NVIC__gr.html#ga62b37611e1ccbac47d747c98ef302746">Ref_NVIC.txt</a> </li> <li>NVIC_GetVector() : <a class="el" href="group__NVIC__gr.html#gaebee9cad6724a5bac1857f0f1fb6d6af">Ref_NVIC.txt</a> </li> <li>NVIC_SetPendingIRQ() : <a class="el" href="group__NVIC__gr.html#ga3b885147ef9965ecede49614de8df9d2">Ref_NVIC.txt</a> </li> <li>NVIC_SetPriority() : <a class="el" href="group__NVIC__gr.html#ga5bb7f43ad92937c039dee3d36c3c2798">Ref_NVIC.txt</a> </li> <li>NVIC_SetPriorityGrouping() : <a class="el" href="group__NVIC__gr.html#gad78f447e891789b4d8f2e5b21eeda354">Ref_NVIC.txt</a> </li> <li>NVIC_SetTargetState() : <a class="el" href="group__NVIC__gr.html#gaf46218d01a6a3b70666ad0492a7f950a">Ref_NVIC.txt</a> </li> <li>NVIC_SetVector() : <a class="el" href="group__NVIC__gr.html#gab43c1c59d5c081f1bc725237f4b1f916">Ref_NVIC.txt</a> </li> <li>NVIC_SystemReset() : <a class="el" href="group__NVIC__gr.html#ga1b47d17e90b6a03e7bd1ec6a0d549b46">Ref_NVIC.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_n.html
HTML
apache-2.0
10,114
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li class="current"><a href="globals.html"><span>All</span></a></li> <li><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="globals.html#index__"><span>_</span></a></li> <li><a href="globals_a.html#index_a"><span>a</span></a></li> <li><a href="globals_b.html#index_b"><span>b</span></a></li> <li><a href="globals_c.html#index_c"><span>c</span></a></li> <li><a href="globals_d.html#index_d"><span>d</span></a></li> <li><a href="globals_h.html#index_h"><span>h</span></a></li> <li><a href="globals_i.html#index_i"><span>i</span></a></li> <li><a href="globals_m.html#index_m"><span>m</span></a></li> <li><a href="globals_n.html#index_n"><span>n</span></a></li> <li class="current"><a href="globals_p.html#index_p"><span>p</span></a></li> <li><a href="globals_s.html#index_s"><span>s</span></a></li> <li><a href="globals_t.html#index_t"><span>t</span></a></li> <li><a href="globals_u.html#index_u"><span>u</span></a></li> <li><a href="globals_w.html#index_w"><span>w</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_p.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> <div class="textblock">Here is a list of all functions, variables, defines, enums, and typedefs with links to the files they belong to:</div> <h3><a class="anchor" id="index_p"></a>- p -</h3><ul> <li>PendSV_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a03c3cc89984928816d81793fc7bce4a2">Ref_NVIC.txt</a> </li> <li>PVD_STM_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a853e0f318108110e0527f29733d11f86">Ref_NVIC.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_p.html
HTML
apache-2.0
7,851
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li class="current"><a href="globals.html"><span>All</span></a></li> <li><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="globals.html#index__"><span>_</span></a></li> <li><a href="globals_a.html#index_a"><span>a</span></a></li> <li><a href="globals_b.html#index_b"><span>b</span></a></li> <li><a href="globals_c.html#index_c"><span>c</span></a></li> <li><a href="globals_d.html#index_d"><span>d</span></a></li> <li><a href="globals_h.html#index_h"><span>h</span></a></li> <li><a href="globals_i.html#index_i"><span>i</span></a></li> <li><a href="globals_m.html#index_m"><span>m</span></a></li> <li><a href="globals_n.html#index_n"><span>n</span></a></li> <li><a href="globals_p.html#index_p"><span>p</span></a></li> <li class="current"><a href="globals_s.html#index_s"><span>s</span></a></li> <li><a href="globals_t.html#index_t"><span>t</span></a></li> <li><a href="globals_u.html#index_u"><span>u</span></a></li> <li><a href="globals_w.html#index_w"><span>w</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_s.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> <div class="textblock">Here is a list of all functions, variables, defines, enums, and typedefs with links to the files they belong to:</div> <h3><a class="anchor" id="index_s"></a>- s -</h3><ul> <li>SCB_CleanDCache() : <a class="el" href="group__Dcache__functions__m7.html#ga55583e3065c6eabca204b8b89b121c4c">core_cm7.txt</a> </li> <li>SCB_CleanDCache_by_Addr() : <a class="el" href="group__Dcache__functions__m7.html#ga696fadbf7b9cc71dad42fab61873a40d">core_cm7.txt</a> </li> <li>SCB_CleanInvalidateDCache() : <a class="el" href="group__Dcache__functions__m7.html#ga1b741def9e3b2ca97dc9ea49b8ce505c">core_cm7.txt</a> </li> <li>SCB_CleanInvalidateDCache_by_Addr() : <a class="el" href="group__Dcache__functions__m7.html#ga630131b2572eaa16b569ed364dfc895e">core_cm7.txt</a> </li> <li>SCB_DisableDCache() : <a class="el" href="group__Dcache__functions__m7.html#ga6468170f90d270caab8116e7a4f0b5fe">core_cm7.txt</a> </li> <li>SCB_DisableICache() : <a class="el" href="group__Icache__functions__m7.html#gaba757390852f95b3ac2d8638c717d8d8">core_cm7.txt</a> </li> <li>SCB_EnableDCache() : <a class="el" href="group__Dcache__functions__m7.html#ga63aa640d9006021a796a5dcf9c7180b6">core_cm7.txt</a> </li> <li>SCB_EnableICache() : <a class="el" href="group__Icache__functions__m7.html#gaf9e7c6c8e16ada1f95e5bf5a03505b68">core_cm7.txt</a> </li> <li>SCB_GetFPUType() : <a class="el" href="group__fpu__functions.html#ga6bcad99ce80a0e7e4ddc6f2379081756">Ref_FPU.txt</a> </li> <li>SCB_InvalidateDCache() : <a class="el" href="group__Dcache__functions__m7.html#gace2d30db08887d0bdb818b8a785a5ce6">core_cm7.txt</a> </li> <li>SCB_InvalidateDCache_by_Addr() : <a class="el" href="group__Dcache__functions__m7.html#ga503ef7ef58c0773defd15a82f6336c09">core_cm7.txt</a> </li> <li>SCB_InvalidateICache() : <a class="el" href="group__Icache__functions__m7.html#ga50d373a785edd782c5de5a3b55e30ff3">core_cm7.txt</a> </li> <li>SecureFault_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a9cda5594d898247bfa9d16ad966724da">Ref_NVIC.txt</a> </li> <li>SVCall_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a4ce820b3cc6cf3a796b41aadc0cf1237">Ref_NVIC.txt</a> </li> <li>SystemCoreClock : <a class="el" href="group__system__init__gr.html#gaa3cd3e43291e81e795d642b79b6088e6">Ref_SystemAndClock.txt</a> </li> <li>SystemCoreClockUpdate() : <a class="el" href="group__system__init__gr.html#gae0c36a9591fe6e9c45ecb21a794f0f0f">Ref_SystemAndClock.txt</a> </li> <li>SystemInit() : <a class="el" href="group__system__init__gr.html#ga93f514700ccf00d08dbdcff7f1224eb2">Ref_SystemAndClock.txt</a> </li> <li>SysTick_Config() : <a class="el" href="group__SysTick__gr.html#gabe47de40e9b0ad465b752297a9d9f427">Ref_Systick.txt</a> </li> <li>SysTick_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a6dbff8f8543325f3474cbae2446776e7">Ref_NVIC.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_s.html
HTML
apache-2.0
10,262
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li class="current"><a href="globals.html"><span>All</span></a></li> <li><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="globals.html#index__"><span>_</span></a></li> <li><a href="globals_a.html#index_a"><span>a</span></a></li> <li><a href="globals_b.html#index_b"><span>b</span></a></li> <li><a href="globals_c.html#index_c"><span>c</span></a></li> <li><a href="globals_d.html#index_d"><span>d</span></a></li> <li><a href="globals_h.html#index_h"><span>h</span></a></li> <li><a href="globals_i.html#index_i"><span>i</span></a></li> <li><a href="globals_m.html#index_m"><span>m</span></a></li> <li><a href="globals_n.html#index_n"><span>n</span></a></li> <li><a href="globals_p.html#index_p"><span>p</span></a></li> <li><a href="globals_s.html#index_s"><span>s</span></a></li> <li class="current"><a href="globals_t.html#index_t"><span>t</span></a></li> <li><a href="globals_u.html#index_u"><span>u</span></a></li> <li><a href="globals_w.html#index_w"><span>w</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_t.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> <div class="textblock">Here is a list of all functions, variables, defines, enums, and typedefs with links to the files they belong to:</div> <h3><a class="anchor" id="index_t"></a>- t -</h3><ul> <li>TZ_AllocModuleContext_S() : <a class="el" href="group__context__trustzone__functions.html#gacd016f166bee549a0d3e970132e64a90">Ref_Trustzone.txt</a> </li> <li>TZ_FreeModuleContext_S() : <a class="el" href="group__context__trustzone__functions.html#gac84f678fbe974f8b02c683e0b8046524">Ref_Trustzone.txt</a> </li> <li>TZ_InitContextSystem_S() : <a class="el" href="group__context__trustzone__functions.html#ga926e2ec472535a6d2b8125be1a79e3c0">Ref_Trustzone.txt</a> </li> <li>TZ_LoadContext_S() : <a class="el" href="group__context__trustzone__functions.html#ga4748f6bcdd5fed279ac5a6cd7eca2689">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_ClearPendingIRQ_NS() : <a class="el" href="group__nvic__trustzone__functions.html#ga3b30f8b602b593a806617b671a50731a">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_DisableIRQ_NS() : <a class="el" href="group__nvic__trustzone__functions.html#gabc58593dea7803c1f1e1ed3b098f497c">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_EnableIRQ_NS() : <a class="el" href="group__nvic__trustzone__functions.html#gaedea4c16dd4a0b792c7e9d1da4c49295">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_GetActive_NS() : <a class="el" href="group__nvic__trustzone__functions.html#ga1bffd79bd6365d83281883b6c4b0f218">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_GetEnableIRQ_NS() : <a class="el" href="group__nvic__trustzone__functions.html#ga57d2a6736704c4a39421ed1a2e7b689b">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_GetPendingIRQ_NS() : <a class="el" href="group__nvic__trustzone__functions.html#gab85bd0d55d746caf0e414be5284afe24">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_GetPriority_NS() : <a class="el" href="group__nvic__trustzone__functions.html#gade6a8784339946fdd50575d7e65a3268">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_GetPriorityGrouping_NS() : <a class="el" href="group__nvic__trustzone__functions.html#gaf5f578628bc8b7154b29577f6f6a87fd">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_SetPendingIRQ_NS() : <a class="el" href="group__nvic__trustzone__functions.html#gaccbc9aa0eacf4d4c3d3046edb9e02edd">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_SetPriority_NS() : <a class="el" href="group__nvic__trustzone__functions.html#ga2caf0df3603378c436c838138e42059a">Ref_Trustzone.txt</a> </li> <li>TZ_NVIC_SetPriorityGrouping_NS() : <a class="el" href="group__nvic__trustzone__functions.html#ga0d3b5db0685bd95cc8bd2f7ad0891d39">Ref_Trustzone.txt</a> </li> <li>TZ_SAU_Disable() : <a class="el" href="group__sau__trustzone__functions.html#ga42e201cea0a4b09f588a28b751f726fb">Ref_Trustzone.txt</a> </li> <li>TZ_SAU_Enable() : <a class="el" href="group__sau__trustzone__functions.html#ga187377409289e34838225ce801fb102c">Ref_Trustzone.txt</a> </li> <li>TZ_SAU_Setup() : <a class="el" href="group__sau__trustzone__functions.html#ga6093bc5939ea8924fbcfdffb8f0553f1">Ref_Trustzone.txt</a> </li> <li>TZ_StoreContext_S() : <a class="el" href="group__context__trustzone__functions.html#gac106570f4905f82922fd335aeb08a1bf">Ref_Trustzone.txt</a> </li> <li>TZ_SysTick_Config_NS() : <a class="el" href="group__systick__trustzone__functions.html#gad18a1b1a6796c652f2b35e728f2e2670">Ref_Trustzone.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_t.html
HTML
apache-2.0
10,622
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li class="current"><a href="globals.html"><span>All</span></a></li> <li><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="globals.html#index__"><span>_</span></a></li> <li><a href="globals_a.html#index_a"><span>a</span></a></li> <li><a href="globals_b.html#index_b"><span>b</span></a></li> <li><a href="globals_c.html#index_c"><span>c</span></a></li> <li><a href="globals_d.html#index_d"><span>d</span></a></li> <li><a href="globals_h.html#index_h"><span>h</span></a></li> <li><a href="globals_i.html#index_i"><span>i</span></a></li> <li><a href="globals_m.html#index_m"><span>m</span></a></li> <li><a href="globals_n.html#index_n"><span>n</span></a></li> <li><a href="globals_p.html#index_p"><span>p</span></a></li> <li><a href="globals_s.html#index_s"><span>s</span></a></li> <li><a href="globals_t.html#index_t"><span>t</span></a></li> <li class="current"><a href="globals_u.html#index_u"><span>u</span></a></li> <li><a href="globals_w.html#index_w"><span>w</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_u.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> <div class="textblock">Here is a list of all functions, variables, defines, enums, and typedefs with links to the files they belong to:</div> <h3><a class="anchor" id="index_u"></a>- u -</h3><ul> <li>UsageFault_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a6895237c9443601ac832efa635dd8bbf">Ref_NVIC.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_u.html
HTML
apache-2.0
7,702
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li><a href="globals.html"><span>All</span></a></li> <li><a href="globals_func.html"><span>Functions</span></a></li> <li class="current"><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_vars.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> &#160;<ul> <li>ITM_RxBuffer : <a class="el" href="group__ITM__Debug__gr.html#ga12e68e55a7badc271b948d6c7230b2a8">Ref_Debug.txt</a> </li> <li>SystemCoreClock : <a class="el" href="group__system__init__gr.html#gaa3cd3e43291e81e795d642b79b6088e6">Ref_SystemAndClock.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_vars.html
HTML
apache-2.0
6,598
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Globals</title> <title>CMSIS-Core (Cortex-M): Globals</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow3" class="tabs2"> <ul class="tablist"> <li class="current"><a href="globals.html"><span>All</span></a></li> <li><a href="globals_func.html"><span>Functions</span></a></li> <li><a href="globals_vars.html"><span>Variables</span></a></li> <li><a href="globals_enum.html"><span>Enumerations</span></a></li> <li><a href="globals_eval.html"><span>Enumerator</span></a></li> <li><a href="globals_defs.html"><span>Macros</span></a></li> </ul> </div> <div id="navrow4" class="tabs3"> <ul class="tablist"> <li><a href="globals.html#index__"><span>_</span></a></li> <li><a href="globals_a.html#index_a"><span>a</span></a></li> <li><a href="globals_b.html#index_b"><span>b</span></a></li> <li><a href="globals_c.html#index_c"><span>c</span></a></li> <li><a href="globals_d.html#index_d"><span>d</span></a></li> <li><a href="globals_h.html#index_h"><span>h</span></a></li> <li><a href="globals_i.html#index_i"><span>i</span></a></li> <li><a href="globals_m.html#index_m"><span>m</span></a></li> <li><a href="globals_n.html#index_n"><span>n</span></a></li> <li><a href="globals_p.html#index_p"><span>p</span></a></li> <li><a href="globals_s.html#index_s"><span>s</span></a></li> <li><a href="globals_t.html#index_t"><span>t</span></a></li> <li><a href="globals_u.html#index_u"><span>u</span></a></li> <li class="current"><a href="globals_w.html#index_w"><span>w</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('globals_w.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="contents"> <div class="textblock">Here is a list of all functions, variables, defines, enums, and typedefs with links to the files they belong to:</div> <h3><a class="anchor" id="index_w"></a>- w -</h3><ul> <li>WWDG_STM_IRQn : <a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8aa62e040960b4beb6cba107e4703c12d2">Ref_NVIC.txt</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/globals_w.html
HTML
apache-2.0
7,700
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Core Register Access</title> <title>CMSIS-Core (Cortex-M): Core Register Access</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('group__Core__Register__gr.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">Core Register Access</div> </div> </div><!--header--> <div class="contents"> <p>Functions to access the Cortex-M core registers. <a href="#details">More...</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:ga963cf236b73219ce78e965deb01b81a7"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#ga963cf236b73219ce78e965deb01b81a7">__get_CONTROL</a> (void)</td></tr> <tr class="memdesc:ga963cf236b73219ce78e965deb01b81a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the CONTROL register. <a href="#ga963cf236b73219ce78e965deb01b81a7">More...</a><br/></td></tr> <tr class="separator:ga963cf236b73219ce78e965deb01b81a7"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gac64d37e7ff9de06437f9fb94bbab8b6c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#gac64d37e7ff9de06437f9fb94bbab8b6c">__set_CONTROL</a> (uint32_t control)</td></tr> <tr class="memdesc:gac64d37e7ff9de06437f9fb94bbab8b6c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the CONTROL Register. <a href="#gac64d37e7ff9de06437f9fb94bbab8b6c">More...</a><br/></td></tr> <tr class="separator:gac64d37e7ff9de06437f9fb94bbab8b6c"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga2c32fc5c7f8f07fb3d436c6f6fe4e8c8"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#ga2c32fc5c7f8f07fb3d436c6f6fe4e8c8">__get_IPSR</a> (void)</td></tr> <tr class="memdesc:ga2c32fc5c7f8f07fb3d436c6f6fe4e8c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the IPSR register. <a href="#ga2c32fc5c7f8f07fb3d436c6f6fe4e8c8">More...</a><br/></td></tr> <tr class="separator:ga2c32fc5c7f8f07fb3d436c6f6fe4e8c8"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga811c0012221ee918a75111ca84c4d5e7"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#ga811c0012221ee918a75111ca84c4d5e7">__get_APSR</a> (void)</td></tr> <tr class="memdesc:ga811c0012221ee918a75111ca84c4d5e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the APSR register. <a href="#ga811c0012221ee918a75111ca84c4d5e7">More...</a><br/></td></tr> <tr class="separator:ga811c0012221ee918a75111ca84c4d5e7"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga732e08184154f44a617963cc65ff95bd"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#ga732e08184154f44a617963cc65ff95bd">__get_xPSR</a> (void)</td></tr> <tr class="memdesc:ga732e08184154f44a617963cc65ff95bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the xPSR register. <a href="#ga732e08184154f44a617963cc65ff95bd">More...</a><br/></td></tr> <tr class="separator:ga732e08184154f44a617963cc65ff95bd"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga914dfa8eff7ca53380dd54cf1d8bebd9"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#ga914dfa8eff7ca53380dd54cf1d8bebd9">__get_PSP</a> (void)</td></tr> <tr class="memdesc:ga914dfa8eff7ca53380dd54cf1d8bebd9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the PSP register. <a href="#ga914dfa8eff7ca53380dd54cf1d8bebd9">More...</a><br/></td></tr> <tr class="separator:ga914dfa8eff7ca53380dd54cf1d8bebd9"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga48e5853f417e17a8a65080f6a605b743"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#ga48e5853f417e17a8a65080f6a605b743">__set_PSP</a> (uint32_t topOfProcStack)</td></tr> <tr class="memdesc:ga48e5853f417e17a8a65080f6a605b743"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the PSP register. <a href="#ga48e5853f417e17a8a65080f6a605b743">More...</a><br/></td></tr> <tr class="separator:ga48e5853f417e17a8a65080f6a605b743"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gab898559392ba027814e5bbb5a98b38d2"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#gab898559392ba027814e5bbb5a98b38d2">__get_MSP</a> (void)</td></tr> <tr class="memdesc:gab898559392ba027814e5bbb5a98b38d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the MSP register. <a href="#gab898559392ba027814e5bbb5a98b38d2">More...</a><br/></td></tr> <tr class="separator:gab898559392ba027814e5bbb5a98b38d2"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga0bf9564ebc1613a8faba014275dac2a4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#ga0bf9564ebc1613a8faba014275dac2a4">__set_MSP</a> (uint32_t topOfMainStack)</td></tr> <tr class="memdesc:ga0bf9564ebc1613a8faba014275dac2a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the MSP register. <a href="#ga0bf9564ebc1613a8faba014275dac2a4">More...</a><br/></td></tr> <tr class="separator:ga0bf9564ebc1613a8faba014275dac2a4"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga799b5d9a2ae75e459264c8512c7c0e02"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#ga799b5d9a2ae75e459264c8512c7c0e02">__get_PRIMASK</a> (void)</td></tr> <tr class="memdesc:ga799b5d9a2ae75e459264c8512c7c0e02"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the PRIMASK register bit. <a href="#ga799b5d9a2ae75e459264c8512c7c0e02">More...</a><br/></td></tr> <tr class="separator:ga799b5d9a2ae75e459264c8512c7c0e02"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga70b4e1a6c1c86eb913fb9d6e8400156f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#ga70b4e1a6c1c86eb913fb9d6e8400156f">__set_PRIMASK</a> (uint32_t priMask)</td></tr> <tr class="memdesc:ga70b4e1a6c1c86eb913fb9d6e8400156f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the Priority Mask bit. <a href="#ga70b4e1a6c1c86eb913fb9d6e8400156f">More...</a><br/></td></tr> <tr class="separator:ga70b4e1a6c1c86eb913fb9d6e8400156f"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga32da759f46e52c95bcfbde5012260667"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#ga32da759f46e52c95bcfbde5012260667">__get_BASEPRI</a> (void)</td></tr> <tr class="memdesc:ga32da759f46e52c95bcfbde5012260667"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the BASEPRI register [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#ga32da759f46e52c95bcfbde5012260667">More...</a><br/></td></tr> <tr class="separator:ga32da759f46e52c95bcfbde5012260667"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga360c73eb7ffb16088556f9278953b882"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#ga360c73eb7ffb16088556f9278953b882">__set_BASEPRI</a> (uint32_t basePri)</td></tr> <tr class="memdesc:ga360c73eb7ffb16088556f9278953b882"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the BASEPRI register [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#ga360c73eb7ffb16088556f9278953b882">More...</a><br/></td></tr> <tr class="separator:ga360c73eb7ffb16088556f9278953b882"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga62fa63d39cf22df348857d5f44ab64d9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#ga62fa63d39cf22df348857d5f44ab64d9">__set_BASEPRI_MAX</a> (uint32_t basePri)</td></tr> <tr class="memdesc:ga62fa63d39cf22df348857d5f44ab64d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Increase the BASEPRI register [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#ga62fa63d39cf22df348857d5f44ab64d9">More...</a><br/></td></tr> <tr class="separator:ga62fa63d39cf22df348857d5f44ab64d9"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaa78e4e6bf619a65e9f01b4af13fed3a8"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#gaa78e4e6bf619a65e9f01b4af13fed3a8">__get_FAULTMASK</a> (void)</td></tr> <tr class="memdesc:gaa78e4e6bf619a65e9f01b4af13fed3a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the FAULTMASK register [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#gaa78e4e6bf619a65e9f01b4af13fed3a8">More...</a><br/></td></tr> <tr class="separator:gaa78e4e6bf619a65e9f01b4af13fed3a8"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaa5587cc09031053a40a35c14ec36078a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#gaa5587cc09031053a40a35c14ec36078a">__set_FAULTMASK</a> (uint32_t faultMask)</td></tr> <tr class="memdesc:gaa5587cc09031053a40a35c14ec36078a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the FAULTMASK register [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#gaa5587cc09031053a40a35c14ec36078a">More...</a><br/></td></tr> <tr class="separator:gaa5587cc09031053a40a35c14ec36078a"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gad6d7eca9ddd1d9072dd7b020cfe64905"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#gad6d7eca9ddd1d9072dd7b020cfe64905">__get_FPSCR</a> (void)</td></tr> <tr class="memdesc:gad6d7eca9ddd1d9072dd7b020cfe64905"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the FPSCR register [only Cortex-M4 and Cortex-M7]. <a href="#gad6d7eca9ddd1d9072dd7b020cfe64905">More...</a><br/></td></tr> <tr class="separator:gad6d7eca9ddd1d9072dd7b020cfe64905"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga6f26bd75ca7e3247f27b272acc10536b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#ga6f26bd75ca7e3247f27b272acc10536b">__set_FPSCR</a> (uint32_t fpscr)</td></tr> <tr class="memdesc:ga6f26bd75ca7e3247f27b272acc10536b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the FPSC register [only for Cortex-M4 and Cortex-M7]. <a href="#ga6f26bd75ca7e3247f27b272acc10536b">More...</a><br/></td></tr> <tr class="separator:ga6f26bd75ca7e3247f27b272acc10536b"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga0f98dfbd252b89d12564472dbeba9c27"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#ga0f98dfbd252b89d12564472dbeba9c27">__enable_irq</a> (void)</td></tr> <tr class="memdesc:ga0f98dfbd252b89d12564472dbeba9c27"><td class="mdescLeft">&#160;</td><td class="mdescRight">Globally enables interrupts and configurable fault handlers. <a href="#ga0f98dfbd252b89d12564472dbeba9c27">More...</a><br/></td></tr> <tr class="separator:ga0f98dfbd252b89d12564472dbeba9c27"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaeb8e5f7564a8ea23678fe3c987b04013"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#gaeb8e5f7564a8ea23678fe3c987b04013">__disable_irq</a> (void)</td></tr> <tr class="memdesc:gaeb8e5f7564a8ea23678fe3c987b04013"><td class="mdescLeft">&#160;</td><td class="mdescRight">Globally disables interrupts and configurable fault handlers. <a href="#gaeb8e5f7564a8ea23678fe3c987b04013">More...</a><br/></td></tr> <tr class="separator:gaeb8e5f7564a8ea23678fe3c987b04013"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga6575d37863cec5d334864f93b5b783bf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#ga6575d37863cec5d334864f93b5b783bf">__enable_fault_irq</a> (void)</td></tr> <tr class="memdesc:ga6575d37863cec5d334864f93b5b783bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables interrupts and all fault handlers [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#ga6575d37863cec5d334864f93b5b783bf">More...</a><br/></td></tr> <tr class="separator:ga6575d37863cec5d334864f93b5b783bf"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga9d174f979b2f76fdb3228a9b338fd939"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#ga9d174f979b2f76fdb3228a9b338fd939">__disable_fault_irq</a> (void)</td></tr> <tr class="memdesc:ga9d174f979b2f76fdb3228a9b338fd939"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables interrupts and all fault handlers [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#ga9d174f979b2f76fdb3228a9b338fd939">More...</a><br/></td></tr> <tr class="separator:ga9d174f979b2f76fdb3228a9b338fd939"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga8b226929264e903c7019e326b42bef47"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#ga8b226929264e903c7019e326b42bef47">__get_PSPLIM</a> (void)</td></tr> <tr class="memdesc:ga8b226929264e903c7019e326b42bef47"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Process Stack Pointer Limit Devices without Armv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always in non-secure mode. <a href="#ga8b226929264e903c7019e326b42bef47">More...</a><br/></td></tr> <tr class="separator:ga8b226929264e903c7019e326b42bef47"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga4348d14fc5eefbfd34ab8c51be44a81b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#ga4348d14fc5eefbfd34ab8c51be44a81b">__set_PSPLIM</a> (uint32_t ProcStackPtrLimit)</td></tr> <tr class="memdesc:ga4348d14fc5eefbfd34ab8c51be44a81b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Process Stack Pointer Limit Devices without Armv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence the write is silently ignored in non-secure mode. <a href="#ga4348d14fc5eefbfd34ab8c51be44a81b">More...</a><br/></td></tr> <tr class="separator:ga4348d14fc5eefbfd34ab8c51be44a81b"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaf39856ca50fc88cf459031b44eb2521c"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#gaf39856ca50fc88cf459031b44eb2521c">__get_MSPLIM</a> (void)</td></tr> <tr class="memdesc:gaf39856ca50fc88cf459031b44eb2521c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Main Stack Pointer Limit Devices without Armv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always in non-secure mode. <a href="#gaf39856ca50fc88cf459031b44eb2521c">More...</a><br/></td></tr> <tr class="separator:gaf39856ca50fc88cf459031b44eb2521c"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga6809a07c5cb7410e361f3fba57f72172"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Core__Register__gr.html#ga6809a07c5cb7410e361f3fba57f72172">__set_MSPLIM</a> (uint32_t MainStackPtrLimit)</td></tr> <tr class="memdesc:ga6809a07c5cb7410e361f3fba57f72172"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Main Stack Pointer Limit Devices without Armv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence the write is silently ignored in non-secure mode. <a href="#ga6809a07c5cb7410e361f3fba57f72172">More...</a><br/></td></tr> <tr class="separator:ga6809a07c5cb7410e361f3fba57f72172"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Description</h2> <p>The following functions provide access to Cortex-M core registers. </p> <h2 class="groupheader">Function Documentation</h2> <a class="anchor" id="ga9d174f979b2f76fdb3228a9b338fd939"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __disable_fault_irq </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function disables interrupts and all fault handlers by setting FAULTMASK. The function uses the instruction <b>CPSID f</b>.</p> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>not for Cortex-M0, Cortex-M0+, or SC000.</li> <li>Can be executed in privileged mode only.</li> <li>An interrupt can enter pending state even if it is disabled. Disabling an interrupt only prevents the processor from taking that interrupt.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga6575d37863cec5d334864f93b5b783bf">__enable_fault_irq</a>; <a class="el" href="group__Core__Register__gr.html#ga360c73eb7ffb16088556f9278953b882" title="Set the BASEPRI register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__set_BASEPRI</a>; <a class="el" href="group__Core__Register__gr.html#gac64d37e7ff9de06437f9fb94bbab8b6c" title="Set the CONTROL Register. ">__set_CONTROL</a>; <a class="el" href="group__Core__Register__gr.html#gaa5587cc09031053a40a35c14ec36078a" title="Set the FAULTMASK register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__set_FAULTMASK</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gaeb8e5f7564a8ea23678fe3c987b04013"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __disable_irq </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function disables interrupts and all configurable fault handlers by setting PRIMASK. The function uses the instruction <b>CPSID i</b>.</p> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>Can be executed in privileged mode only.</li> <li>An interrupt can enter pending state even if it is disabled. Disabling an interrupt only prevents the processor from taking that interrupt.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga0f98dfbd252b89d12564472dbeba9c27">__enable_irq</a>; <a class="el" href="group__Core__Register__gr.html#ga360c73eb7ffb16088556f9278953b882" title="Set the BASEPRI register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__set_BASEPRI</a>; <a class="el" href="group__Core__Register__gr.html#gac64d37e7ff9de06437f9fb94bbab8b6c" title="Set the CONTROL Register. ">__set_CONTROL</a>; <a class="el" href="group__Core__Register__gr.html#ga70b4e1a6c1c86eb913fb9d6e8400156f" title="Set the Priority Mask bit. ">__set_PRIMASK</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga6575d37863cec5d334864f93b5b783bf"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __enable_fault_irq </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function enables interrupts and all fault handlers by clearing FAULTMASK. The function uses the instruction <b>CPSIE f</b>.</p> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>not for Cortex-M0, Cortex-M0+, or SC000.</li> <li>Can be executed in privileged mode only.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga9d174f979b2f76fdb3228a9b338fd939">__disable_fault_irq</a>; <a class="el" href="group__Core__Register__gr.html#ga360c73eb7ffb16088556f9278953b882" title="Set the BASEPRI register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__set_BASEPRI</a>; <a class="el" href="group__Core__Register__gr.html#gac64d37e7ff9de06437f9fb94bbab8b6c" title="Set the CONTROL Register. ">__set_CONTROL</a>; <a class="el" href="group__Core__Register__gr.html#gaa5587cc09031053a40a35c14ec36078a" title="Set the FAULTMASK register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__set_FAULTMASK</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga0f98dfbd252b89d12564472dbeba9c27"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __enable_irq </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function enables interrupts and all configurable fault handlers by clearing PRIMASK. The function uses the instruction <b>CPSIE i</b>.</p> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>Can be executed in privileged mode only.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#gaeb8e5f7564a8ea23678fe3c987b04013">__disable_irq</a>; <a class="el" href="group__Core__Register__gr.html#ga360c73eb7ffb16088556f9278953b882" title="Set the BASEPRI register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__set_BASEPRI</a>; <a class="el" href="group__Core__Register__gr.html#gac64d37e7ff9de06437f9fb94bbab8b6c" title="Set the CONTROL Register. ">__set_CONTROL</a>; <a class="el" href="group__Core__Register__gr.html#ga70b4e1a6c1c86eb913fb9d6e8400156f" title="Set the Priority Mask bit. ">__set_PRIMASK</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga811c0012221ee918a75111ca84c4d5e7"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __get_APSR </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function reads the Application Program Status Register (APSR) using the instruction <b>MRS</b>. <br/> <br/> The APSR contains the current state of the condition flags from instructions executed previously. The APSR is essential for controlling conditional branches. The following flags are used:</p> <ul> <li><b>N</b> (APSR[31]) (Negative flag)<ul> <li>=1 The instruction result has a negative value (when interpreted as signed integer).</li> <li>=0 The instruction result has a positive value or equal zero. <br/> <br/> </li> </ul> </li> <li><b>Z</b> (APSR[30]) (Zero flag)<ul> <li>=1 The instruction result is zero. Or, after a compare instruction, when the two values are the same. <br/> <br/> </li> </ul> </li> <li><b>C</b> (APSR[29]) (Carry or borrow flag)<ul> <li>=1 For unsigned additions, if an unsigned overflow occurred.</li> <li>=<em>inverse of borrow output status</em> For unsigned subtract operations. <br/> <br/> </li> </ul> </li> <li><b>V</b> (APSR[28]) (Overflow flag)<ul> <li>=1 A signed overflow occurred (for signed additions or subtractions). <br/> <br/> </li> </ul> </li> <li><b>Q</b> (APSR[27]) (DSP overflow or saturation flag) [not Cortex-M0]<ul> <li>This flag is a <em>sticky</em> flag. Saturating and certain mutliplying instructions can set the flag, but cannot clear it.</li> <li>=1 When saturation or an overflow occurred. <br/> <br/> </li> </ul> </li> <li><b>GE</b> (APSR[19:16]) (Greater than or Equal flags) [not Cortex-M0]<ul> <li>Can be set by the parallel add and subtract instructions.</li> <li>Are used by the <code>SEL</code> instruction to perform byte-based selection from two registers.</li> </ul> </li> </ul> <dl class="section return"><dt>Returns</dt><dd>APSR register value</dd></dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>Some instructions update all flags; some instructions update a subset of the flags.</li> <li>If a flag is not updated, the original value is preserved.</li> <li>Conditional instructions that are not executed have no effect on the flags.</li> <li>The CMSIS does not provide a function to update this register.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga732e08184154f44a617963cc65ff95bd">__get_xPSR</a>; <a class="el" href="unionAPSR__Type.html" title="Union type to access the Application Program Status Register (APSR). ">APSR_Type</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga32da759f46e52c95bcfbde5012260667"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __get_BASEPRI </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function returns the Base Priority Mask register (BASEPRI) using the instruction <b>MRS</b>. <br/> <br/> BASEPRI defines the minimum priority for exception processing. When BASEPRI is set to a non-zero value, it prevents the activation of all exceptions with the same or lower priority level as the BASEPRI value.</p> <dl class="section return"><dt>Returns</dt><dd>BASEPRI register value</dd></dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>Not for Cortex-M0, Cortex-M0+, or SC000.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga360c73eb7ffb16088556f9278953b882">__set_BASEPRI</a>; <a class="el" href="group__Core__Register__gr.html#ga62fa63d39cf22df348857d5f44ab64d9" title="Increase the BASEPRI register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__set_BASEPRI_MAX</a>; <a class="el" href="group__Core__Register__gr.html#gaa78e4e6bf619a65e9f01b4af13fed3a8" title="Read the FAULTMASK register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__get_FAULTMASK</a>; <a class="el" href="group__Core__Register__gr.html#ga799b5d9a2ae75e459264c8512c7c0e02" title="Read the PRIMASK register bit. ">__get_PRIMASK</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga963cf236b73219ce78e965deb01b81a7"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __get_CONTROL </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function reads the CONTROL register value using the instruction <b>MRS</b>. <br/> <br/> The CONTROL register controls the stack used and the privilege level for software execution when the processor is in thread mode and, if implemented, indicates whether the FPU state is active. This register uses the following bits: <br/> </p> <ul> <li><b>CONTROL</b>[2] [only Cortex-M4 and Cortex-M7]<ul> <li>=0 FPU not active</li> <li>=1 FPU active <br/> <br/> </li> </ul> </li> <li><b>CONTROL</b>[1]<ul> <li>=0 In handler mode - MSP is selected. No alternate stack possible for handler mode.</li> <li>=0 In thread mode - Default stack pointer MSP is used.</li> <li>=1 In thread mode - Alternate stack pointer PSP is used. <br/> <br/> </li> </ul> </li> <li><b>CONTROL</b>[0] [not Cortex-M0]<ul> <li>=0 In thread mode and privileged state.</li> <li>=1 In thread mode and user state.</li> </ul> </li> </ul> <dl class="section return"><dt>Returns</dt><dd>CONTROL register value</dd></dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>The processor can be in user state or privileged state when running in thread mode.</li> <li>Exception handlers always run in privileged state.</li> <li>On reset, the processor is in thread mode with privileged access rights.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#gac64d37e7ff9de06437f9fb94bbab8b6c">__set_CONTROL</a>; <a class="el" href="unionCONTROL__Type.html" title="Union type to access the Control Registers (CONTROL). ">CONTROL_Type</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gaa78e4e6bf619a65e9f01b4af13fed3a8"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __get_FAULTMASK </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function reads the Fault Mask register (FAULTMASK) value using the instruction <b>MRS</b>. <br/> <br/> FAULTMASK prevents activation of all exceptions except for the Non-Maskable Interrupt (NMI).</p> <dl class="section return"><dt>Returns</dt><dd>FAULTMASK register value</dd></dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>not for Cortex-M0, Cortex-M0+, or SC000.</li> <li>Is cleared automatically upon exiting the exception handler, except when returning from the NMI handler.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#gaa5587cc09031053a40a35c14ec36078a">__set_FAULTMASK</a>; <a class="el" href="group__Core__Register__gr.html#ga32da759f46e52c95bcfbde5012260667" title="Read the BASEPRI register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__get_BASEPRI</a>; <a class="el" href="group__Core__Register__gr.html#ga799b5d9a2ae75e459264c8512c7c0e02" title="Read the PRIMASK register bit. ">__get_PRIMASK</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gad6d7eca9ddd1d9072dd7b020cfe64905"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __get_FPSCR </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function reads the Floating-Point Status Control Register (FPSCR) value. <br/> <br/> FPSCR provides all necessary User level controls of the floating-point system.</p> <dl class="section return"><dt>Returns</dt><dd><ul> <li>FPSCR register value, when __FPU_PRESENT=1</li> <li>=0, when __FPU_PRESENT=0</li> </ul> </dd></dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>Only for Cortex-M4 and Cortex-M7.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga6f26bd75ca7e3247f27b272acc10536b">__set_FPSCR</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga2c32fc5c7f8f07fb3d436c6f6fe4e8c8"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __get_IPSR </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function reads the Interrupt Program Status Register (IPSR) using the instruction <b>MRS</b>. <br/> <br/> The ISPR contains the exception type number of the current Interrupt Service Routine (ISR). Each exception has an assocciated unique IRQn number. The following bits are used:</p> <ul> <li><b>ISR_NUMBER</b> (IPSR[8:0])<ul> <li>=0 Thread mode</li> <li>=1 Reserved</li> <li>=2 NMI</li> <li>=3 HardFault</li> <li>=4 MemManage</li> <li>=5 BusFault</li> <li>=6 UsageFault</li> <li>=7-10 Reserved</li> <li>=11 SVCall</li> <li>=12 Reserved for Debug</li> <li>=13 Reserved</li> <li>=14 PendSV</li> <li>=15 SysTick</li> <li>=16 IRQ0</li> <li>...</li> <li>=n+15 IRQ(n-1)</li> </ul> </li> </ul> <dl class="section return"><dt>Returns</dt><dd>ISPR register value</dd></dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>This register is read-only.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga732e08184154f44a617963cc65ff95bd">__get_xPSR</a>; <a class="el" href="unionIPSR__Type.html" title="Union type to access the Interrupt Program Status Register (IPSR). ">IPSR_Type</a></li> <li><a class="el" href="group__NVIC__gr.html">Interrupts and Exceptions (NVIC)</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gab898559392ba027814e5bbb5a98b38d2"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __get_MSP </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function reads the Main Status Pointer (MSP) value using the instruction <b>MRS</b>. <br/> <br/> Physically two different stack pointers (SP) exist:</p> <ul> <li>The Main Stack Pointer (MSP) is the default stack pointer after reset. It is also used when running exception handlers (handler mode).</li> <li>The Process Stack Pointer (PSP), which can be used only in thread mode.</li> </ul> <p>Register R13 banks the SP. The SP selection is determined by the bit[1] of the CONTROL register:</p> <ul> <li>=0 MSP is the current stack pointer. This is also the default SP. The initial value is loaded from the first 32-bit word of the vector table from the program memory.</li> <li>=1 PSP is the current stack pointer. The initial value is undefined.</li> </ul> <dl class="section return"><dt>Returns</dt><dd>MSP Register value</dd></dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>Only one of the two SPs is visible at a time.</li> <li>For many applications, the system can completely rely on the MSP.</li> <li>The PSP is normally used in designs with an OS where the stack memory for OS Kernel must be separated from the application code.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga0bf9564ebc1613a8faba014275dac2a4">__set_MSP</a>; <a class="el" href="group__Core__Register__gr.html#ga914dfa8eff7ca53380dd54cf1d8bebd9" title="Read the PSP register. ">__get_PSP</a>; <a class="el" href="group__Core__Register__gr.html#ga963cf236b73219ce78e965deb01b81a7" title="Read the CONTROL register. ">__get_CONTROL</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gaf39856ca50fc88cf459031b44eb2521c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __get_MSPLIM </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Returns the current value of the Main Stack Pointer Limit (MSPLIM). </p> <dl class="section return"><dt>Returns</dt><dd>MSPLIM Register value </dd></dl> <dl class="section note"><dt>Note</dt><dd>Only availabe for Armv8-M Architecture. </dd></dl> </div> </div> <a class="anchor" id="ga799b5d9a2ae75e459264c8512c7c0e02"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __get_PRIMASK </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function reads the Priority Mask register (PRIMASK) value using the instruction <b>MRS</b>. <br/> <br/> PRIMASK is a 1-bit-wide interrupt mask register. When set, it blocks all interrupts apart from the non-maskable interrupt (NMI) and the hard fault exception. The PRIMASK prevents activation of all exceptions with configurable priority.</p> <dl class="section return"><dt>Returns</dt><dd>PRIMASK register value<ul> <li>=0 no effect</li> <li>=1 prevents the activation of all exceptions with configurable priority</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga70b4e1a6c1c86eb913fb9d6e8400156f">__set_PRIMASK</a>; <a class="el" href="group__Core__Register__gr.html#ga32da759f46e52c95bcfbde5012260667" title="Read the BASEPRI register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__get_BASEPRI</a>; <a class="el" href="group__Core__Register__gr.html#gaa78e4e6bf619a65e9f01b4af13fed3a8" title="Read the FAULTMASK register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__get_FAULTMASK</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga914dfa8eff7ca53380dd54cf1d8bebd9"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __get_PSP </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function reads the Program Status Pointer (PSP) value using the instruction <b>MRS</b>. <br/> <br/> Physically two different stack pointers (SP) exist:</p> <ul> <li>The Main Stack Pointer (MSP) is the default stack pointer after reset. It is also used when running exception handlers (handler mode).</li> <li>The Process Stack Pointer (PSP), which can be used only in thread mode.</li> </ul> <p>Register R13 banks the SP. The SP selection is determined by the bit[1] of the CONTROL register:</p> <ul> <li>=0 MSP is the current stack pointer. This is also the default SP. The initial value is loaded from the first 32-bit word of the vector table from the program memory.</li> <li>=1 PSP is the current stack pointer. The initial value is undefined.</li> </ul> <dl class="section return"><dt>Returns</dt><dd>PSP register value</dd></dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>Only one of the two SPs is visible at a time.</li> <li>For many applications, the system can completely rely on the MSP.</li> <li>The PSP is normally used in designs with an OS where the stack memory for OS Kernel must be separated from the application code.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga48e5853f417e17a8a65080f6a605b743">__set_PSP</a>; <a class="el" href="group__Core__Register__gr.html#gab898559392ba027814e5bbb5a98b38d2" title="Read the MSP register. ">__get_MSP</a>; <a class="el" href="group__Core__Register__gr.html#ga963cf236b73219ce78e965deb01b81a7" title="Read the CONTROL register. ">__get_CONTROL</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga8b226929264e903c7019e326b42bef47"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __get_PSPLIM </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Returns the current value of the Process Stack Pointer Limit (PSPLIM). </p> <dl class="section return"><dt>Returns</dt><dd>PSPLIM Register value </dd></dl> <dl class="section note"><dt>Note</dt><dd>Only availabe for Armv8-M Architecture. </dd></dl> </div> </div> <a class="anchor" id="ga732e08184154f44a617963cc65ff95bd"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __get_xPSR </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function reads the combined Program Status Register (xPSR) using the instruction <b>MRS</b>. <br/> <br/> xPSR provides information about program execution and the APSR flags. It consists of the following PSRs: </p> <ul> <li>Application Program Status Register (APSR) </li> <li>Interrupt Program Status Register (IPSR) </li> <li>Execution Program Status Register (EPSR)</li> </ul> <p>In addition to the flags described in <a class="el" href="group__Core__Register__gr.html#ga811c0012221ee918a75111ca84c4d5e7">__get_APSR</a> and <a class="el" href="group__Core__Register__gr.html#ga2c32fc5c7f8f07fb3d436c6f6fe4e8c8">__get_IPSR</a>, the register provides the following flags:</p> <ul> <li><b>IT</b> (xPSR[26:25]) (If-Then condition instruction)<ul> <li>Contains up to four instructions following an IT instruction.</li> <li>Each instruction in the block is conditional.</li> <li>The conditions for the instructions are either all the same, or some can be the inverse of others. <br/> <br/> </li> </ul> </li> <li><b>T</b> (xPSR[24]) (Thumb bit)<ul> <li>=1 Indicates that that the processor is in Thumb state.</li> <li>=0 Attempting to execute instructions when the T bit is 0 results in a fault or lockup.</li> <li>The conditions for the instructions are either all the same, or some can be the inverse of others.</li> </ul> </li> </ul> <dl class="section return"><dt>Returns</dt><dd>xPSR register value</dd></dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>The CMSIS does not provide functions that access EPSR.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga811c0012221ee918a75111ca84c4d5e7">__get_APSR</a>; <a class="el" href="group__Core__Register__gr.html#ga2c32fc5c7f8f07fb3d436c6f6fe4e8c8" title="Read the IPSR register. ">__get_IPSR</a>; <a class="el" href="unionxPSR__Type.html" title="Union type to access the Special-Purpose Program Status Registers (xPSR). ">xPSR_Type</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga360c73eb7ffb16088556f9278953b882"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __set_BASEPRI </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>basePri</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function sets the Base Priority Mask register (BASEPRI) value using the instruction <b>MSR</b>. <br/> <br/> BASEPRI defines the minimum priority for exception processing. When BASEPRI is set to a non-zero value, it prevents the activation of all exceptions with the same or lower priority level as the BASEPRI value.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">basePri</td><td>BASEPRI value to set</td></tr> </table> </dd> </dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>Not for Cortex-M0, Cortex-M0+, or SC000.</li> <li>Cannot be set in user state.</li> <li>Useful for changing the masking level or disabling the masking.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga32da759f46e52c95bcfbde5012260667">__get_BASEPRI</a>; <a class="el" href="group__Core__Register__gr.html#ga62fa63d39cf22df348857d5f44ab64d9" title="Increase the BASEPRI register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__set_BASEPRI_MAX</a>; <a class="el" href="group__Core__Register__gr.html#gaa5587cc09031053a40a35c14ec36078a" title="Set the FAULTMASK register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__set_FAULTMASK</a>; <a class="el" href="group__Core__Register__gr.html#ga70b4e1a6c1c86eb913fb9d6e8400156f" title="Set the Priority Mask bit. ">__set_PRIMASK</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga62fa63d39cf22df348857d5f44ab64d9"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __set_BASEPRI_MAX </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>basePri</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function only increases the Base Priority Mask register (BASEPRI) value using the instruction <b>MSR</b>. The value is set only if BASEPRI masking is disabled, or the new value increases the BASEPRI priority level. <br/> <br/> BASEPRI defines the minimum priority for exception processing.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">basePri</td><td>BASEPRI value to set</td></tr> </table> </dd> </dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>Not for Cortex-M0, Cortex-M0+, or SC000.</li> <li>Cannot be set in user state.</li> <li>Useful for increasing the masking level.</li> <li>Has no effect when <em>basePri</em> is lower than the current value of BASEPRI.</li> <li>Use <a class="el" href="group__Core__Register__gr.html#ga360c73eb7ffb16088556f9278953b882">__set_BASEPRI</a> to lower the Base Priority Mask register.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga360c73eb7ffb16088556f9278953b882">__set_BASEPRI</a>; <a class="el" href="group__Core__Register__gr.html#ga32da759f46e52c95bcfbde5012260667" title="Read the BASEPRI register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__get_BASEPRI</a>; <a class="el" href="group__Core__Register__gr.html#gaa5587cc09031053a40a35c14ec36078a" title="Set the FAULTMASK register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__set_FAULTMASK</a>; <a class="el" href="group__Core__Register__gr.html#ga70b4e1a6c1c86eb913fb9d6e8400156f" title="Set the Priority Mask bit. ">__set_PRIMASK</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gac64d37e7ff9de06437f9fb94bbab8b6c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __set_CONTROL </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>control</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function sets the CONTROL register value using the instruction <b>MSR</b>. <br/> <br/> The CONTROL register controls the stack used and the privilege level for software execution when the processor is in thread mode and, if implemented, indicates whether the FPU state is active. This register uses the following bits: <br/> </p> <ul> <li><b>CONTROL</b>[2] [only Cortex-M4 and Cortex-M7]<ul> <li>=0 FPU not active</li> <li>=1 FPU active <br/> <br/> </li> </ul> </li> <li><b>CONTROL</b>[1]<ul> <li>Writeable only when the processor is in thread mode and privileged state (CONTROL[0]=0).</li> <li>=0 In handler mode - MSP is selected. No alternate stack pointer possible for handler mode.</li> <li>=0 In thread mode - Default stack pointer MSP is used.</li> <li>=1 In thread mode - Alternate stack pointer PSP is used. <br/> <br/> </li> </ul> </li> <li><b>CONTROL</b>[0] [not writeable for Cortex-M0]<ul> <li>Writeable only when the processor is in privileged state.</li> <li>Can be used to switch the processor to user state (thread mode).</li> <li>Once in user state, trigger an interrupt and change the state to privileged in the exception handler (the only way).</li> <li>=0 In thread mode and privileged state.</li> <li>=1 In thread mode and user state.</li> </ul> </li> </ul> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">control</td><td>CONTROL register value to set</td></tr> </table> </dd> </dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>The processor can be in user state or privileged state when running in thread mode.</li> <li>Exception handlers always run in privileged state.</li> <li>On reset, the processor is in thread mode with privileged access rights.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga963cf236b73219ce78e965deb01b81a7">__get_CONTROL</a>; <a class="el" href="group__Core__Register__gr.html#ga48e5853f417e17a8a65080f6a605b743" title="Set the PSP register. ">__set_PSP</a>; <a class="el" href="group__Core__Register__gr.html#ga0bf9564ebc1613a8faba014275dac2a4" title="Set the MSP register. ">__set_MSP</a>; <a class="el" href="unionCONTROL__Type.html" title="Union type to access the Control Registers (CONTROL). ">CONTROL_Type</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gaa5587cc09031053a40a35c14ec36078a"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __set_FAULTMASK </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>faultMask</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function sets the Fault Mask register (FAULTMASK) value using the instruction <b>MSR</b>. <br/> <br/> FAULTMASK prevents activation of all exceptions except for Non-Maskable Interrupt (NMI). FAULTMASK can be used to escalate a configurable fault handler (BusFault, usage fault, or memory management fault) to hard fault level without invoking a hard fault. This allows the fault handler to pretend to be the hard fault handler, whith the ability to:</p> <ol type="1"> <li><b>Mask BusFault</b> by setting the BFHFNMIGN in the Configuration Control register. It can be used to test the bus system without causing a lockup.</li> <li><b>Bypass the MPU</b>, allowing accessing the MPU protected memory location without reprogramming the MPU to just carry out a few transfers for fixing faults.</li> </ol> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">faultMask</td><td>FAULTMASK register value to set</td></tr> </table> </dd> </dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>not for Cortex-M0, Cortex-M0+, or SC000.</li> <li>Is cleared automatically upon exiting the exception handler, except when returning from the NMI handler.</li> <li>When set, it changes the effective current priority level to -1, so that even the hard fault handler is blocked.</li> <li>Can be used by fault handlers to change their priority to -1 to have access to some features for hard fault exceptions (see above).</li> <li>When set, lockups can still be caused by incorrect or undefined instructions, or by using SVC in the wrong priority level.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#gaa78e4e6bf619a65e9f01b4af13fed3a8">__get_FAULTMASK</a>; <a class="el" href="group__Core__Register__gr.html#ga360c73eb7ffb16088556f9278953b882" title="Set the BASEPRI register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__set_BASEPRI</a>; <a class="el" href="group__Core__Register__gr.html#ga70b4e1a6c1c86eb913fb9d6e8400156f" title="Set the Priority Mask bit. ">__set_PRIMASK</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga6f26bd75ca7e3247f27b272acc10536b"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __set_FPSCR </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>fpscr</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function sets the Floating-Point Status Control Register (FPSCR) value. <br/> <br/> FPSCR provides all necessary User level control of the floating-point system. <br/> </p> <ul> <li><b>N</b> (FPSC[31]) (Negative flag)<ul> <li>=1 The instruction result has a negative value (when interpreted as signed integer).</li> <li>=0 The instruction result has a positive value or equal zero. <br/> <br/> </li> </ul> </li> <li><b>Z</b> (FPSC[30]) (Zero flag)<ul> <li>=1 The instruction result is zero. Or, after a compare instruction, when the two values are the same. <br/> <br/> </li> </ul> </li> <li><b>C</b> (FPSC[29]) (Carry or borrow flag)<ul> <li>=1 For unsigned additions, if an unsigned overflow occurred.</li> <li>=<em>inverse of borrow output status</em> For unsigned subtract operations. <br/> <br/> </li> </ul> </li> <li><b>V</b> (FPSC[28]) (Overflow flag)<ul> <li>=1 A signed overflow occurred (for signed additions or subtractions). <br/> <br/> </li> </ul> </li> <li><b>AHP</b> (FPSC[26]) (Alternative half-precision flag)<ul> <li>=1 Alternative half-precision format selected.</li> <li>=0 IEEE half-precision format selected. <br/> <br/> </li> </ul> </li> <li><b>DN</b> (FPSC[25]) (Default NaN mode control flag)<ul> <li>=1 Any operation involving one or more NaNs returns the Default NaN.</li> <li>=0 NaN operands propagate through to the output of a floating-point operation. <br/> <br/> </li> </ul> </li> <li><b>FZ</b> (FPSC[24]) (Flush-to-zero mode control flag)<ul> <li>=1 Flush-to-zero mode enabled.</li> <li>=0 Flush-to-zero mode disabled. Behavior of the floating-point system is fully compliant with the IEEE 754 standard. <br/> <br/> </li> </ul> </li> <li><b>RMode</b> (FPSC[23:22]) (Rounding Mode control flags)<ul> <li>=0b00 Round to Nearest (RN) mode.</li> <li>=0b01 Round towards Plus Infinity (RP) mode.</li> <li>=0b10 Round towards Minus Infinity (RM) mode.</li> <li>=0b11 Round towards Zero (RZ) mode.</li> <li>The specified rounding mode is used by almost all floating-point instructions. <br/> <br/> </li> </ul> </li> <li><b>IDC</b> (FPSC[7]) (Input Denormal cumulative exception flags)<ul> <li>See Cumulative exception bits (FPSC[4:0]). <br/> <br/> </li> </ul> </li> <li><b>IXC</b> (FPSC[4]) (Inexact cumulative exception flag)<ul> <li>=1 Exception occurred.</li> <li>=0 Value has to be set explicitly.</li> <li>Flag is not cleared automatically. <br/> <br/> </li> </ul> </li> <li><b>UFC</b> (FPSC[3]) (Underflow cumulative exception flag)<ul> <li>=1 Exception occurred.</li> <li>=0 Value has to be set explicitly.</li> <li>Flag is not cleared automatically. <br/> <br/> </li> </ul> </li> <li><b>OFC</b> (FPSC[2]) (Overflow cumulative exception flag)<ul> <li>=1 Exception occurred.</li> <li>=0 Value has to be set explicitly.</li> <li>Flag is not cleared automatically. <br/> <br/> </li> </ul> </li> <li><b>DZC</b> (FPSC[1]) (Division by Zero cumulative exception flag)<ul> <li>=1 Exception occurred.</li> <li>=0 Value has to be set explicitly.</li> <li>Flag is not cleared automatically. <br/> <br/> </li> </ul> </li> <li><b>IOC</b> (FPSC[0]) (Invalid Operation cumulative exception flag)<ul> <li>=1 Exception occurred.</li> <li>=0 Value has to be set explicitly.</li> <li>Flag is not cleared automatically.</li> </ul> </li> </ul> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">fpscr</td><td>FPSCR value to set</td></tr> </table> </dd> </dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>Only for Cortex-M4 and Cortex-M7.</li> <li>The variable <b>__FPU_PRESENT</b> has to be set to 1.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#gad6d7eca9ddd1d9072dd7b020cfe64905">__get_FPSCR</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga0bf9564ebc1613a8faba014275dac2a4"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __set_MSP </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>topOfMainStack</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function sets the Main Status Pointer (MSP) value using the instruction <b>MSR</b>. <br/> <br/> Physically two different stack pointers (SP) exist:</p> <ul> <li>The Main Stack Pointer (MSP) is the default stack pointer after reset. It is also used when running exception handlers (handler mode).</li> <li>The Process Stack Pointer (PSP), which can be used only in thread mode.</li> </ul> <p>Register R13 banks the SP. The SP selection is determined by the bit[1] of the CONTROL register:</p> <ul> <li>=0 MSP is the current stack pointer. This is also the default SP. The initial value is loaded from the first 32-bit word of the vector table from the program memory.</li> <li>=1 PSP is the current stack pointer. The initial value is undefined.</li> </ul> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">topOfMainStack</td><td>MSP value to set</td></tr> </table> </dd> </dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>Only one of the two SPs is visible at a time.</li> <li>For many applications, the system can completely rely on the MSP.</li> <li>The PSP is normally used in designs with an OS where the stack memory for OS Kernel must be separated from the application code.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#gab898559392ba027814e5bbb5a98b38d2">__get_MSP</a>; <a class="el" href="group__Core__Register__gr.html#ga48e5853f417e17a8a65080f6a605b743" title="Set the PSP register. ">__set_PSP</a>; <a class="el" href="group__Core__Register__gr.html#gac64d37e7ff9de06437f9fb94bbab8b6c" title="Set the CONTROL Register. ">__set_CONTROL</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga6809a07c5cb7410e361f3fba57f72172"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">__set_MSPLIM </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>MainStackPtrLimit</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Assigns the given value to the Main Stack Pointer Limit (MSPLIM). </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">MainStackPtrLimit</td><td>Main Stack Pointer Limit value to set </td></tr> </table> </dd> </dl> <dl class="section note"><dt>Note</dt><dd>Only availabe for Armv8-M Architecture. </dd></dl> </div> </div> <a class="anchor" id="ga70b4e1a6c1c86eb913fb9d6e8400156f"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __set_PRIMASK </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>priMask</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function sets the Priority Mask register (PRIMASK) value using the instruction <b>MSR</b>. <br/> <br/> PRIMASK is a 1-bit-wide interrupt mask register. When set, it blocks all interrupts apart from the non-maskable interrupt (NMI) and the hard fault exception. The PRIMASK prevents activation of all exceptions with configurable priority.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">priMask</td><td>Priority Mask<ul> <li>=0 no effect</li> <li>=1 prevents the activation of all exceptions with configurable priority</li> </ul> </td></tr> </table> </dd> </dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>When set, PRIMASK effectively changes the current priority level to 0. This is the highest programmable level.</li> <li>When set and a fault occurs, the hard fault handler will be executed.</li> <li>Useful for temprorarily disabling all interrupts for timing critical tasks.</li> <li>Does not have the ability to mask BusFault or bypass MPU.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga799b5d9a2ae75e459264c8512c7c0e02">__get_PRIMASK</a>; <a class="el" href="group__Core__Register__gr.html#ga360c73eb7ffb16088556f9278953b882" title="Set the BASEPRI register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__set_BASEPRI</a>; <a class="el" href="group__Core__Register__gr.html#gaa5587cc09031053a40a35c14ec36078a" title="Set the FAULTMASK register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__set_FAULTMASK</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga48e5853f417e17a8a65080f6a605b743"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __set_PSP </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>topOfProcStack</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function sets the Program Status Pointer (PSP) value using the instruction <b>MSR</b>. <br/> <br/> Physically two different stack pointers (SP) exist:</p> <ul> <li>The Main Stack Pointer (MSP) is the default stack pointer after reset. It is also used when running exception handlers (handler mode).</li> <li>The Process Stack Pointer (PSP), which can be used only in thread mode.</li> </ul> <p>Register R13 banks the SP. The SP selection is determined by the bit[1] of the CONTROL register:</p> <ul> <li>=0 MSP is the current stack pointer. This is also the default SP. The initial value is loaded from the first 32-bit word of the vector table from the program memory.</li> <li>=1 PSP is the current stack pointer. The initial value is undefined.</li> </ul> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">topOfProcStack</td><td>PSP value to set</td></tr> </table> </dd> </dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>Only one of the two SPs is visible at a time.</li> <li>For many applications, the system can completely rely on the MSP.</li> <li>The PSP is normally used in designs with an OS where the stack memory for OS Kernel must be separated from the application code.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga914dfa8eff7ca53380dd54cf1d8bebd9">__get_PSP</a>; <a class="el" href="group__Core__Register__gr.html#ga0bf9564ebc1613a8faba014275dac2a4" title="Set the MSP register. ">__set_MSP</a>; <a class="el" href="group__Core__Register__gr.html#gac64d37e7ff9de06437f9fb94bbab8b6c" title="Set the CONTROL Register. ">__set_CONTROL</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga4348d14fc5eefbfd34ab8c51be44a81b"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __set_PSPLIM </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>ProcStackPtrLimit</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Assigns the given value to the Process Stack Pointer Limit (PSPLIM). </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">ProcStackPtrLimit</td><td>Process Stack Pointer Limit value to set </td></tr> </table> </dd> </dl> <dl class="section note"><dt>Note</dt><dd>Only availabe for Armv8-M Architecture. </dd></dl> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:25 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__Core__Register__gr.html
HTML
apache-2.0
72,674
var group__Core__Register__gr = [ [ "__disable_fault_irq", "group__Core__Register__gr.html#ga9d174f979b2f76fdb3228a9b338fd939", null ], [ "__disable_irq", "group__Core__Register__gr.html#gaeb8e5f7564a8ea23678fe3c987b04013", null ], [ "__enable_fault_irq", "group__Core__Register__gr.html#ga6575d37863cec5d334864f93b5b783bf", null ], [ "__enable_irq", "group__Core__Register__gr.html#ga0f98dfbd252b89d12564472dbeba9c27", null ], [ "__get_APSR", "group__Core__Register__gr.html#ga811c0012221ee918a75111ca84c4d5e7", null ], [ "__get_BASEPRI", "group__Core__Register__gr.html#ga32da759f46e52c95bcfbde5012260667", null ], [ "__get_CONTROL", "group__Core__Register__gr.html#ga963cf236b73219ce78e965deb01b81a7", null ], [ "__get_FAULTMASK", "group__Core__Register__gr.html#gaa78e4e6bf619a65e9f01b4af13fed3a8", null ], [ "__get_FPSCR", "group__Core__Register__gr.html#gad6d7eca9ddd1d9072dd7b020cfe64905", null ], [ "__get_IPSR", "group__Core__Register__gr.html#ga2c32fc5c7f8f07fb3d436c6f6fe4e8c8", null ], [ "__get_MSP", "group__Core__Register__gr.html#gab898559392ba027814e5bbb5a98b38d2", null ], [ "__get_MSPLIM", "group__Core__Register__gr.html#gaf39856ca50fc88cf459031b44eb2521c", null ], [ "__get_PRIMASK", "group__Core__Register__gr.html#ga799b5d9a2ae75e459264c8512c7c0e02", null ], [ "__get_PSP", "group__Core__Register__gr.html#ga914dfa8eff7ca53380dd54cf1d8bebd9", null ], [ "__get_PSPLIM", "group__Core__Register__gr.html#ga8b226929264e903c7019e326b42bef47", null ], [ "__get_xPSR", "group__Core__Register__gr.html#ga732e08184154f44a617963cc65ff95bd", null ], [ "__set_BASEPRI", "group__Core__Register__gr.html#ga360c73eb7ffb16088556f9278953b882", null ], [ "__set_BASEPRI_MAX", "group__Core__Register__gr.html#ga62fa63d39cf22df348857d5f44ab64d9", null ], [ "__set_CONTROL", "group__Core__Register__gr.html#gac64d37e7ff9de06437f9fb94bbab8b6c", null ], [ "__set_FAULTMASK", "group__Core__Register__gr.html#gaa5587cc09031053a40a35c14ec36078a", null ], [ "__set_FPSCR", "group__Core__Register__gr.html#ga6f26bd75ca7e3247f27b272acc10536b", null ], [ "__set_MSP", "group__Core__Register__gr.html#ga0bf9564ebc1613a8faba014275dac2a4", null ], [ "__set_MSPLIM", "group__Core__Register__gr.html#ga6809a07c5cb7410e361f3fba57f72172", null ], [ "__set_PRIMASK", "group__Core__Register__gr.html#ga70b4e1a6c1c86eb913fb9d6e8400156f", null ], [ "__set_PSP", "group__Core__Register__gr.html#ga48e5853f417e17a8a65080f6a605b743", null ], [ "__set_PSPLIM", "group__Core__Register__gr.html#ga4348d14fc5eefbfd34ab8c51be44a81b", null ] ];
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__Core__Register__gr.js
JavaScript
apache-2.0
2,620
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>D-Cache Functions</title> <title>CMSIS-Core (Cortex-M): D-Cache Functions</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('group__Dcache__functions__m7.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">D-Cache Functions<div class="ingroups"><a class="el" href="group__cache__functions__m7.html">Cache Functions (only Cortex-M7)</a></div></div> </div> </div><!--header--> <div class="contents"> <p>Functions for the data cache. <a href="#details">More...</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:ga63aa640d9006021a796a5dcf9c7180b6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Dcache__functions__m7.html#ga63aa640d9006021a796a5dcf9c7180b6">SCB_EnableDCache</a> (void)</td></tr> <tr class="memdesc:ga63aa640d9006021a796a5dcf9c7180b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable D-Cache. <a href="#ga63aa640d9006021a796a5dcf9c7180b6">More...</a><br/></td></tr> <tr class="separator:ga63aa640d9006021a796a5dcf9c7180b6"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga6468170f90d270caab8116e7a4f0b5fe"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Dcache__functions__m7.html#ga6468170f90d270caab8116e7a4f0b5fe">SCB_DisableDCache</a> (void)</td></tr> <tr class="memdesc:ga6468170f90d270caab8116e7a4f0b5fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable D-Cache. <a href="#ga6468170f90d270caab8116e7a4f0b5fe">More...</a><br/></td></tr> <tr class="separator:ga6468170f90d270caab8116e7a4f0b5fe"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gace2d30db08887d0bdb818b8a785a5ce6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Dcache__functions__m7.html#gace2d30db08887d0bdb818b8a785a5ce6">SCB_InvalidateDCache</a> (void)</td></tr> <tr class="memdesc:gace2d30db08887d0bdb818b8a785a5ce6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invalidate D-Cache. <a href="#gace2d30db08887d0bdb818b8a785a5ce6">More...</a><br/></td></tr> <tr class="separator:gace2d30db08887d0bdb818b8a785a5ce6"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga55583e3065c6eabca204b8b89b121c4c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Dcache__functions__m7.html#ga55583e3065c6eabca204b8b89b121c4c">SCB_CleanDCache</a> (void)</td></tr> <tr class="memdesc:ga55583e3065c6eabca204b8b89b121c4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clean D-Cache. <a href="#ga55583e3065c6eabca204b8b89b121c4c">More...</a><br/></td></tr> <tr class="separator:ga55583e3065c6eabca204b8b89b121c4c"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga1b741def9e3b2ca97dc9ea49b8ce505c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Dcache__functions__m7.html#ga1b741def9e3b2ca97dc9ea49b8ce505c">SCB_CleanInvalidateDCache</a> (void)</td></tr> <tr class="memdesc:ga1b741def9e3b2ca97dc9ea49b8ce505c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clean &amp; Invalidate D-Cache. <a href="#ga1b741def9e3b2ca97dc9ea49b8ce505c">More...</a><br/></td></tr> <tr class="separator:ga1b741def9e3b2ca97dc9ea49b8ce505c"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga503ef7ef58c0773defd15a82f6336c09"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Dcache__functions__m7.html#ga503ef7ef58c0773defd15a82f6336c09">SCB_InvalidateDCache_by_Addr</a> (uint32_t *addr, int32_t dsize)</td></tr> <tr class="memdesc:ga503ef7ef58c0773defd15a82f6336c09"><td class="mdescLeft">&#160;</td><td class="mdescRight">D-Cache Invalidate by address. <a href="#ga503ef7ef58c0773defd15a82f6336c09">More...</a><br/></td></tr> <tr class="separator:ga503ef7ef58c0773defd15a82f6336c09"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga696fadbf7b9cc71dad42fab61873a40d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Dcache__functions__m7.html#ga696fadbf7b9cc71dad42fab61873a40d">SCB_CleanDCache_by_Addr</a> (uint32_t *addr, int32_t dsize)</td></tr> <tr class="memdesc:ga696fadbf7b9cc71dad42fab61873a40d"><td class="mdescLeft">&#160;</td><td class="mdescRight">D-Cache Clean by address. <a href="#ga696fadbf7b9cc71dad42fab61873a40d">More...</a><br/></td></tr> <tr class="separator:ga696fadbf7b9cc71dad42fab61873a40d"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga630131b2572eaa16b569ed364dfc895e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Dcache__functions__m7.html#ga630131b2572eaa16b569ed364dfc895e">SCB_CleanInvalidateDCache_by_Addr</a> (uint32_t *addr, int32_t dsize)</td></tr> <tr class="memdesc:ga630131b2572eaa16b569ed364dfc895e"><td class="mdescLeft">&#160;</td><td class="mdescRight">D-Cache Clean and Invalidate by address. <a href="#ga630131b2572eaa16b569ed364dfc895e">More...</a><br/></td></tr> <tr class="separator:ga630131b2572eaa16b569ed364dfc895e"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Description</h2> <p>// close ICache functions </p> <h2 class="groupheader">Function Documentation</h2> <a class="anchor" id="ga55583e3065c6eabca204b8b89b121c4c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void SCB_CleanDCache </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function cleans the entire data cache. </p> </div> </div> <a class="anchor" id="ga696fadbf7b9cc71dad42fab61873a40d"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void SCB_CleanDCache_by_Addr </td> <td>(</td> <td class="paramtype">uint32_t *&#160;</td> <td class="paramname"><em>addr</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int32_t&#160;</td> <td class="paramname"><em>dsize</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">addr</td><td>address (aligned to 32-byte boundary) </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">dsize</td><td>size of memory block (in number of bytes)</td></tr> </table> </dd> </dl> <p>The function cleans a memory block of size <em>dsize</em> [bytes] starting at address <em>address</em>. The address is aligned to 32-byte boundry. </p> </div> </div> <a class="anchor" id="ga1b741def9e3b2ca97dc9ea49b8ce505c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void SCB_CleanInvalidateDCache </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function cleans and invalidates the entire data cache. </p> </div> </div> <a class="anchor" id="ga630131b2572eaa16b569ed364dfc895e"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void SCB_CleanInvalidateDCache_by_Addr </td> <td>(</td> <td class="paramtype">uint32_t *&#160;</td> <td class="paramname"><em>addr</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int32_t&#160;</td> <td class="paramname"><em>dsize</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">addr</td><td>address (aligned to 32-byte boundary) </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">dsize</td><td>size of memory block (in number of bytes)</td></tr> </table> </dd> </dl> <p>The function invalidates and cleans a memory block of size <em>dsize</em> [bytes] starting at address <em>address</em>. The address is aligned to 32-byte boundry. </p> </div> </div> <a class="anchor" id="ga6468170f90d270caab8116e7a4f0b5fe"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void SCB_DisableDCache </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function turns off the entire data cache.</p> <dl class="section note"><dt>Note</dt><dd>When disabling the data cache, you must clean (<a class="el" href="group__Dcache__functions__m7.html#ga55583e3065c6eabca204b8b89b121c4c">SCB_CleanDCache</a>) the entire cache to ensure that any dirty data is flushed to external memory. </dd></dl> </div> </div> <a class="anchor" id="ga63aa640d9006021a796a5dcf9c7180b6"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void SCB_EnableDCache </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function turns on the entire data cache. </p> <dl class="section note"><dt>Note</dt><dd>Before enabling the data cache, you must invalidate the entire data cache (<a class="el" href="group__Dcache__functions__m7.html#gace2d30db08887d0bdb818b8a785a5ce6">SCB_InvalidateDCache</a>), because external memory might have changed from when the cache was disabled.</dd> <dd> After reset, you must invalidate (<a class="el" href="group__Dcache__functions__m7.html#gace2d30db08887d0bdb818b8a785a5ce6">SCB_InvalidateDCache</a>) each cache before enabling it. </dd></dl> </div> </div> <a class="anchor" id="gace2d30db08887d0bdb818b8a785a5ce6"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void SCB_InvalidateDCache </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function invalidates the entire data cache.</p> <dl class="section note"><dt>Note</dt><dd>After reset, you must invalidate each cache before enabling (<a class="el" href="group__Dcache__functions__m7.html#ga63aa640d9006021a796a5dcf9c7180b6">SCB_EnableDCache</a>) it. </dd></dl> </div> </div> <a class="anchor" id="ga503ef7ef58c0773defd15a82f6336c09"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void SCB_InvalidateDCache_by_Addr </td> <td>(</td> <td class="paramtype">uint32_t *&#160;</td> <td class="paramname"><em>addr</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int32_t&#160;</td> <td class="paramname"><em>dsize</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">addr</td><td>address (aligned to 32-byte boundary) </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">dsize</td><td>size of memory block (in number of bytes)</td></tr> </table> </dd> </dl> <p>The function invalidates a memory block of size <em>dsize</em> [bytes] starting at address <em>address</em>. The address is aligned to 32-byte boundry. </p> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__Dcache__functions__m7.html
HTML
apache-2.0
20,372
var group__Dcache__functions__m7 = [ [ "SCB_CleanDCache", "group__Dcache__functions__m7.html#ga55583e3065c6eabca204b8b89b121c4c", null ], [ "SCB_CleanDCache_by_Addr", "group__Dcache__functions__m7.html#ga696fadbf7b9cc71dad42fab61873a40d", null ], [ "SCB_CleanInvalidateDCache", "group__Dcache__functions__m7.html#ga1b741def9e3b2ca97dc9ea49b8ce505c", null ], [ "SCB_CleanInvalidateDCache_by_Addr", "group__Dcache__functions__m7.html#ga630131b2572eaa16b569ed364dfc895e", null ], [ "SCB_DisableDCache", "group__Dcache__functions__m7.html#ga6468170f90d270caab8116e7a4f0b5fe", null ], [ "SCB_EnableDCache", "group__Dcache__functions__m7.html#ga63aa640d9006021a796a5dcf9c7180b6", null ], [ "SCB_InvalidateDCache", "group__Dcache__functions__m7.html#gace2d30db08887d0bdb818b8a785a5ce6", null ], [ "SCB_InvalidateDCache_by_Addr", "group__Dcache__functions__m7.html#ga503ef7ef58c0773defd15a82f6336c09", null ] ];
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__Dcache__functions__m7.js
JavaScript
apache-2.0
935
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Debug Access</title> <title>CMSIS-Core (Cortex-M): Debug Access</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('group__ITM__Debug__gr.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> &#124; <a href="#var-members">Variables</a> </div> <div class="headertitle"> <div class="title">Debug Access</div> </div> </div><!--header--> <div class="contents"> <p>Debug Access to the Instrumented Trace Macrocell (ITM) <a href="#details">More...</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:gaaa7c716331f74d644bf6bf25cd3392d1"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ITM__Debug__gr.html#gaaa7c716331f74d644bf6bf25cd3392d1">ITM_SendChar</a> (uint32_t ch)</td></tr> <tr class="memdesc:gaaa7c716331f74d644bf6bf25cd3392d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transmits a character via channel 0. <a href="#gaaa7c716331f74d644bf6bf25cd3392d1">More...</a><br/></td></tr> <tr class="separator:gaaa7c716331f74d644bf6bf25cd3392d1"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga37b8f41cae703b5ff6947e271065558c"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ITM__Debug__gr.html#ga37b8f41cae703b5ff6947e271065558c">ITM_ReceiveChar</a> (void)</td></tr> <tr class="memdesc:ga37b8f41cae703b5ff6947e271065558c"><td class="mdescLeft">&#160;</td><td class="mdescRight">ITM Receive Character. <a href="#ga37b8f41cae703b5ff6947e271065558c">More...</a><br/></td></tr> <tr class="separator:ga37b8f41cae703b5ff6947e271065558c"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga7f9bbabd9756d1a7eafb2d9bf27e0535"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ITM__Debug__gr.html#ga7f9bbabd9756d1a7eafb2d9bf27e0535">ITM_CheckChar</a> (void)</td></tr> <tr class="memdesc:ga7f9bbabd9756d1a7eafb2d9bf27e0535"><td class="mdescLeft">&#160;</td><td class="mdescRight">ITM Check Character. <a href="#ga7f9bbabd9756d1a7eafb2d9bf27e0535">More...</a><br/></td></tr> <tr class="separator:ga7f9bbabd9756d1a7eafb2d9bf27e0535"><td class="memSeparator" colspan="2">&#160;</td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> Variables</h2></td></tr> <tr class="memitem:ga12e68e55a7badc271b948d6c7230b2a8"><td class="memItemLeft" align="right" valign="top">volatile int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ITM__Debug__gr.html#ga12e68e55a7badc271b948d6c7230b2a8">ITM_RxBuffer</a></td></tr> <tr class="memdesc:ga12e68e55a7badc271b948d6c7230b2a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">external variable to receive characters <a href="#ga12e68e55a7badc271b948d6c7230b2a8">More...</a><br/></td></tr> <tr class="separator:ga12e68e55a7badc271b948d6c7230b2a8"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Description</h2> <p>CMSIS provides additional debug functions to enlarge the Debug Access. Data can be transmitted via a certain global buffer variable towards the target system.</p> <p>The Cortex-M3 / Cortex-M4 / Cortex-M7 incorporates the <b>Instrumented Trace Macrocell (ITM)</b> that provides together with the <b>Serial Wire Output (SWO)</b> trace capabilities for the microcontroller system. The ITM has 32 communication channels; two ITM communication channels are used by CMSIS to output the following information:</p> <ul> <li><b>ITM Channel 0</b>: implements the <a class="el" href="group__ITM__Debug__gr.html#gaaa7c716331f74d644bf6bf25cd3392d1">ITM_SendChar</a> function which can be used for printf-style output via the debug interface.</li> <li><b>ITM Channel 31</b>: is reserved for the RTOS kernel and can be used for kernel awareness debugging.</li> </ul> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>ITM channels have 4 groups with 8 channels each, whereby each group can be configured for access rights in the Unprivileged level.</li> <li>The ITM channel 0 can be enabled for the user task.</li> <li>ITM channel 31 can be accessed only in Privileged mode from the RTOS kernel itself. The ITM channel 31 has been selected for the RTOS kernel because some kernels may use the Privileged level for program execution.</li> </ul> </dd></dl> <hr/> <h1><a class="anchor" id="ITM_debug_uv"></a> ITM Debugger Support</h1> <p>A debugger may support a <b>Debug (printf) Viewer</b> window to display data.</p> <p><b>Direction: Microcontroller &ndash;&gt; Debugger:</b></p> <ul> <li>Characters received via ITM communication channel 0 are written in a printf-style to the <b>Debug (printf) Viewer</b> window.</li> </ul> <p><b>Direction: Debugger &ndash;&gt; Microcontroller:</b></p> <ul> <li>Check if <a class="el" href="group__ITM__Debug__gr.html#ga12e68e55a7badc271b948d6c7230b2a8">ITM_RxBuffer</a> variable is available (only performed once).</li> <li>Read the character from the <b>Debug (printf) Viewer</b> window.</li> <li>If <a class="el" href="group__ITM__Debug__gr.html#ga12e68e55a7badc271b948d6c7230b2a8">ITM_RxBuffer</a> is empty, write character to <a class="el" href="group__ITM__Debug__gr.html#ga12e68e55a7badc271b948d6c7230b2a8">ITM_RxBuffer</a>.</li> </ul> <dl class="section note"><dt>Note</dt><dd>The current solution does not use a buffer mechanism for transmitting the characters.</dd></dl> <hr/> <h1><a class="anchor" id="itm_debug_ex"></a> Example:</h1> <p>Example for the usage of the ITM Channel 31 for RTOS Kernels:</p> <div class="fragment"><div class="line"><span class="comment">// check if debugger connected and ITM channel enabled for tracing</span></div> <div class="line"><span class="keywordflow">if</span> ((CoreDebug-&gt;DEMCR &amp; CoreDebug_DEMCR_TRCENA) &amp;&amp;</div> <div class="line"> (ITM-&gt;TCR &amp; ITM_TCR_ITMENA) &amp;&amp;</div> <div class="line"> (ITM-&gt;TER &amp; (1UL &gt;&gt; 31))) {</div> <div class="line"> </div> <div class="line"> <span class="comment">// transmit trace data</span></div> <div class="line"> <span class="keywordflow">while</span> (ITM-&gt;PORT31_U32 == 0);</div> <div class="line"> ITM-&gt;PORT[31].u8 = task_id; <span class="comment">// id of next task</span></div> <div class="line"> <span class="keywordflow">while</span> (ITM-&gt;PORT[31].u32 == 0);</div> <div class="line"> ITM-&gt;PORT[31].u32 = task_status; <span class="comment">// status information</span></div> <div class="line">}</div> </div><!-- fragment --> <h2 class="groupheader">Function Documentation</h2> <a class="anchor" id="ga7f9bbabd9756d1a7eafb2d9bf27e0535"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int32_t ITM_CheckChar </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function reads the external variable <a class="el" href="group__ITM__Debug__gr.html#ga12e68e55a7badc271b948d6c7230b2a8">ITM_RxBuffer</a> and checks whether a character is available or not.</p> <dl class="section return"><dt>Returns</dt><dd><ul> <li>=0 - No character available</li> <li>=1 - Character available </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga37b8f41cae703b5ff6947e271065558c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int32_t ITM_ReceiveChar </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function inputs a character via the external variable <a class="el" href="group__ITM__Debug__gr.html#ga12e68e55a7badc271b948d6c7230b2a8">ITM_RxBuffer</a>. It returns when no debugger is connected that has booked the output. It is blocking when a debugger is connected, but the previously sent character has not been transmitted.</p> <dl class="section return"><dt>Returns</dt><dd><ul> <li>Received character</li> <li>=1 - No character received </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gaaa7c716331f74d644bf6bf25cd3392d1"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t ITM_SendChar </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>ch</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function transmits a character via the ITM channel 0. It returns when no debugger is connected that has booked the output. It is blocking when a debugger is connected, but the previously sent character has not been transmitted.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">ch</td><td>Character to transmit</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>Character to transmit </dd></dl> </div> </div> <h2 class="groupheader">Variable Documentation</h2> <a class="anchor" id="ga12e68e55a7badc271b948d6c7230b2a8"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">volatile int32_t ITM_RxBuffer</td> </tr> </table> </div><div class="memdoc"> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:25 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__ITM__Debug__gr.html
HTML
apache-2.0
15,497
var group__ITM__Debug__gr = [ [ "ITM_CheckChar", "group__ITM__Debug__gr.html#ga7f9bbabd9756d1a7eafb2d9bf27e0535", null ], [ "ITM_ReceiveChar", "group__ITM__Debug__gr.html#ga37b8f41cae703b5ff6947e271065558c", null ], [ "ITM_SendChar", "group__ITM__Debug__gr.html#gaaa7c716331f74d644bf6bf25cd3392d1", null ], [ "ITM_RxBuffer", "group__ITM__Debug__gr.html#ga12e68e55a7badc271b948d6c7230b2a8", null ] ];
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__ITM__Debug__gr.js
JavaScript
apache-2.0
415
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>I-Cache Functions</title> <title>CMSIS-Core (Cortex-M): I-Cache Functions</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('group__Icache__functions__m7.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">I-Cache Functions<div class="ingroups"><a class="el" href="group__cache__functions__m7.html">Cache Functions (only Cortex-M7)</a></div></div> </div> </div><!--header--> <div class="contents"> <p>Functions for the instruction cache. <a href="#details">More...</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:gaf9e7c6c8e16ada1f95e5bf5a03505b68"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Icache__functions__m7.html#gaf9e7c6c8e16ada1f95e5bf5a03505b68">SCB_EnableICache</a> (void)</td></tr> <tr class="memdesc:gaf9e7c6c8e16ada1f95e5bf5a03505b68"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable I-Cache. <a href="#gaf9e7c6c8e16ada1f95e5bf5a03505b68">More...</a><br/></td></tr> <tr class="separator:gaf9e7c6c8e16ada1f95e5bf5a03505b68"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaba757390852f95b3ac2d8638c717d8d8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Icache__functions__m7.html#gaba757390852f95b3ac2d8638c717d8d8">SCB_DisableICache</a> (void)</td></tr> <tr class="memdesc:gaba757390852f95b3ac2d8638c717d8d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable I-Cache. <a href="#gaba757390852f95b3ac2d8638c717d8d8">More...</a><br/></td></tr> <tr class="separator:gaba757390852f95b3ac2d8638c717d8d8"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga50d373a785edd782c5de5a3b55e30ff3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Icache__functions__m7.html#ga50d373a785edd782c5de5a3b55e30ff3">SCB_InvalidateICache</a> (void)</td></tr> <tr class="memdesc:ga50d373a785edd782c5de5a3b55e30ff3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invalidate I-Cache. <a href="#ga50d373a785edd782c5de5a3b55e30ff3">More...</a><br/></td></tr> <tr class="separator:ga50d373a785edd782c5de5a3b55e30ff3"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Description</h2> <h2 class="groupheader">Function Documentation</h2> <a class="anchor" id="gaba757390852f95b3ac2d8638c717d8d8"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void SCB_DisableICache </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function turns off the instruction cache. </p> </div> </div> <a class="anchor" id="gaf9e7c6c8e16ada1f95e5bf5a03505b68"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void SCB_EnableICache </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function turns on the instruction cache. </p> <dl class="section note"><dt>Note</dt><dd>Before enabling the instruction cache, you must invalidate (<a class="el" href="group__Icache__functions__m7.html#ga50d373a785edd782c5de5a3b55e30ff3">SCB_InvalidateICache</a>) the entire instruction cache if external memory might have changed since the cache was disabled. </dd> <dd> After reset, you must invalidate (<a class="el" href="group__Icache__functions__m7.html#ga50d373a785edd782c5de5a3b55e30ff3">SCB_InvalidateICache</a>) each cache before enabling it. </dd></dl> </div> </div> <a class="anchor" id="ga50d373a785edd782c5de5a3b55e30ff3"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> void SCB_InvalidateICache </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function invalidates the instruction cache. The instruction cache is never dirty so cache RAM errors are always recoverable by invalidating the cache and retrying the instruction. </p> <dl class="section note"><dt>Note</dt><dd>After reset, you must invalidate each cache before enabling (<a class="el" href="group__Icache__functions__m7.html#gaf9e7c6c8e16ada1f95e5bf5a03505b68">SCB_EnableICache</a>) it. </dd></dl> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__Icache__functions__m7.html
HTML
apache-2.0
11,296
var group__Icache__functions__m7 = [ [ "SCB_DisableICache", "group__Icache__functions__m7.html#gaba757390852f95b3ac2d8638c717d8d8", null ], [ "SCB_EnableICache", "group__Icache__functions__m7.html#gaf9e7c6c8e16ada1f95e5bf5a03505b68", null ], [ "SCB_InvalidateICache", "group__Icache__functions__m7.html#ga50d373a785edd782c5de5a3b55e30ff3", null ] ];
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__Icache__functions__m7.js
JavaScript
apache-2.0
361
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Interrupts and Exceptions (NVIC)</title> <title>CMSIS-Core (Cortex-M): Interrupts and Exceptions (NVIC)</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('group__NVIC__gr.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="summary"> <a href="#define-members">Macros</a> &#124; <a href="#enum-members">Enumerations</a> &#124; <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">Interrupts and Exceptions (NVIC)</div> </div> </div><!--header--> <div class="contents"> <p>Functions to access the Nested Vector Interrupt Controller (NVIC). <a href="#details">More...</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> Macros</h2></td></tr> <tr class="memitem:gadc48b4ed09386aab48fa6b9c96d9034c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#gadc48b4ed09386aab48fa6b9c96d9034c">CMSIS_NVIC_VIRTUAL</a></td></tr> <tr class="memdesc:gadc48b4ed09386aab48fa6b9c96d9034c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtualization of the NVIC API. <a href="#gadc48b4ed09386aab48fa6b9c96d9034c">More...</a><br/></td></tr> <tr class="separator:gadc48b4ed09386aab48fa6b9c96d9034c"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gad01d3aa220b50ef141b06c93888b268d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#gad01d3aa220b50ef141b06c93888b268d">CMSIS_VECTAB_VIRTUAL</a></td></tr> <tr class="memdesc:gad01d3aa220b50ef141b06c93888b268d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtualization of interrupt vector table access functions. <a href="#gad01d3aa220b50ef141b06c93888b268d">More...</a><br/></td></tr> <tr class="separator:gad01d3aa220b50ef141b06c93888b268d"><td class="memSeparator" colspan="2">&#160;</td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a> Enumerations</h2></td></tr> <tr class="memitem:ga7e1129cd8a196f4284d41db3e82ad5c8"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a> { <br/> &#160;&#160;<a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8ade177d9c70c89e084093024b932a4e30">NonMaskableInt_IRQn</a> = -14, <br/> &#160;&#160;<a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8ab1a222a34a32f0ef5ac65e714efc1f85">HardFault_IRQn</a> = -13, <br/> &#160;&#160;<a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a33ff1cf7098de65d61b6354fee6cd5aa">MemoryManagement_IRQn</a> = -12, <br/> &#160;&#160;<a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a8693500eff174f16119e96234fee73af">BusFault_IRQn</a> = -11, <br/> &#160;&#160;<a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a6895237c9443601ac832efa635dd8bbf">UsageFault_IRQn</a> = -10, <br/> &#160;&#160;<a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a9cda5594d898247bfa9d16ad966724da">SecureFault_IRQn</a> = -9, <br/> &#160;&#160;<a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a4ce820b3cc6cf3a796b41aadc0cf1237">SVCall_IRQn</a> = -5, <br/> &#160;&#160;<a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a8e033fcef7aed98a31c60a7de206722c">DebugMonitor_IRQn</a> = -4, <br/> &#160;&#160;<a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a03c3cc89984928816d81793fc7bce4a2">PendSV_IRQn</a> = -2, <br/> &#160;&#160;<a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a6dbff8f8543325f3474cbae2446776e7">SysTick_IRQn</a> = -1, <br/> &#160;&#160;<a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8aa62e040960b4beb6cba107e4703c12d2">WWDG_STM_IRQn</a> = 0, <br/> &#160;&#160;<a class="el" href="group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a853e0f318108110e0527f29733d11f86">PVD_STM_IRQn</a> = 1 <br/> }</td></tr> <tr class="memdesc:ga7e1129cd8a196f4284d41db3e82ad5c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Definition of IRQn numbers. <a href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">More...</a><br/></td></tr> <tr class="separator:ga7e1129cd8a196f4284d41db3e82ad5c8"><td class="memSeparator" colspan="2">&#160;</td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:gad78f447e891789b4d8f2e5b21eeda354"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#gad78f447e891789b4d8f2e5b21eeda354">NVIC_SetPriorityGrouping</a> (uint32_t PriorityGroup)</td></tr> <tr class="memdesc:gad78f447e891789b4d8f2e5b21eeda354"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set priority grouping [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#gad78f447e891789b4d8f2e5b21eeda354">More...</a><br/></td></tr> <tr class="separator:gad78f447e891789b4d8f2e5b21eeda354"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaa81b19849367d3cdb95ac108c500fa78"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#gaa81b19849367d3cdb95ac108c500fa78">NVIC_GetPriorityGrouping</a> (void)</td></tr> <tr class="memdesc:gaa81b19849367d3cdb95ac108c500fa78"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the priority grouping [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#gaa81b19849367d3cdb95ac108c500fa78">More...</a><br/></td></tr> <tr class="separator:gaa81b19849367d3cdb95ac108c500fa78"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga530ad9fda2ed1c8b70e439ecfe80591f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#ga530ad9fda2ed1c8b70e439ecfe80591f">NVIC_EnableIRQ</a> (<a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a> IRQn)</td></tr> <tr class="memdesc:ga530ad9fda2ed1c8b70e439ecfe80591f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable a device specific interrupt. <a href="#ga530ad9fda2ed1c8b70e439ecfe80591f">More...</a><br/></td></tr> <tr class="separator:ga530ad9fda2ed1c8b70e439ecfe80591f"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga72f102d31af0ee4aa7a6fb7a180840f3"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#ga72f102d31af0ee4aa7a6fb7a180840f3">NVIC_GetEnableIRQ</a> (<a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a> IRQn)</td></tr> <tr class="memdesc:ga72f102d31af0ee4aa7a6fb7a180840f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a device specific interrupt enable status. <a href="#ga72f102d31af0ee4aa7a6fb7a180840f3">More...</a><br/></td></tr> <tr class="separator:ga72f102d31af0ee4aa7a6fb7a180840f3"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga736ba13a76eb37ef6e2c253be8b0331c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#ga736ba13a76eb37ef6e2c253be8b0331c">NVIC_DisableIRQ</a> (<a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a> IRQn)</td></tr> <tr class="memdesc:ga736ba13a76eb37ef6e2c253be8b0331c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable a device specific interrupt. <a href="#ga736ba13a76eb37ef6e2c253be8b0331c">More...</a><br/></td></tr> <tr class="separator:ga736ba13a76eb37ef6e2c253be8b0331c"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga95a8329a680b051ecf3ee8f516acc662"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#ga95a8329a680b051ecf3ee8f516acc662">NVIC_GetPendingIRQ</a> (<a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a> IRQn)</td></tr> <tr class="memdesc:ga95a8329a680b051ecf3ee8f516acc662"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the pending device specific interrupt. <a href="#ga95a8329a680b051ecf3ee8f516acc662">More...</a><br/></td></tr> <tr class="separator:ga95a8329a680b051ecf3ee8f516acc662"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga3b885147ef9965ecede49614de8df9d2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#ga3b885147ef9965ecede49614de8df9d2">NVIC_SetPendingIRQ</a> (<a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a> IRQn)</td></tr> <tr class="memdesc:ga3b885147ef9965ecede49614de8df9d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set a device specific interrupt to pending. <a href="#ga3b885147ef9965ecede49614de8df9d2">More...</a><br/></td></tr> <tr class="separator:ga3b885147ef9965ecede49614de8df9d2"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga382ad6bedd6eecfdabd1b94dd128a01a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#ga382ad6bedd6eecfdabd1b94dd128a01a">NVIC_ClearPendingIRQ</a> (<a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a> IRQn)</td></tr> <tr class="memdesc:ga382ad6bedd6eecfdabd1b94dd128a01a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear a device specific interrupt from pending. <a href="#ga382ad6bedd6eecfdabd1b94dd128a01a">More...</a><br/></td></tr> <tr class="separator:ga382ad6bedd6eecfdabd1b94dd128a01a"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gadf4252e600661fd762cfc0d1a9f5b892"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#gadf4252e600661fd762cfc0d1a9f5b892">NVIC_GetActive</a> (<a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a> IRQn)</td></tr> <tr class="memdesc:gadf4252e600661fd762cfc0d1a9f5b892"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the device specific interrupt active status [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#gadf4252e600661fd762cfc0d1a9f5b892">More...</a><br/></td></tr> <tr class="separator:gadf4252e600661fd762cfc0d1a9f5b892"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga5bb7f43ad92937c039dee3d36c3c2798"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#ga5bb7f43ad92937c039dee3d36c3c2798">NVIC_SetPriority</a> (<a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a> IRQn, uint32_t priority)</td></tr> <tr class="memdesc:ga5bb7f43ad92937c039dee3d36c3c2798"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the priority for an interrupt. <a href="#ga5bb7f43ad92937c039dee3d36c3c2798">More...</a><br/></td></tr> <tr class="separator:ga5bb7f43ad92937c039dee3d36c3c2798"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gab18fb9f6c5f4c70fdd73047f0f7c8395"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#gab18fb9f6c5f4c70fdd73047f0f7c8395">NVIC_GetPriority</a> (<a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a> IRQn)</td></tr> <tr class="memdesc:gab18fb9f6c5f4c70fdd73047f0f7c8395"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the priority of an interrupt. <a href="#gab18fb9f6c5f4c70fdd73047f0f7c8395">More...</a><br/></td></tr> <tr class="separator:gab18fb9f6c5f4c70fdd73047f0f7c8395"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga0688c59605b119c53c71b2505ab23eb5"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#ga0688c59605b119c53c71b2505ab23eb5">NVIC_EncodePriority</a> (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority)</td></tr> <tr class="memdesc:ga0688c59605b119c53c71b2505ab23eb5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Encodes Priority [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#ga0688c59605b119c53c71b2505ab23eb5">More...</a><br/></td></tr> <tr class="separator:ga0688c59605b119c53c71b2505ab23eb5"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gad3cbca1be7a4726afa9448a9acd89377"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#gad3cbca1be7a4726afa9448a9acd89377">NVIC_DecodePriority</a> (uint32_t Priority, uint32_t PriorityGroup, uint32_t *pPreemptPriority, uint32_t *pSubPriority)</td></tr> <tr class="memdesc:gad3cbca1be7a4726afa9448a9acd89377"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decode the interrupt priority [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#gad3cbca1be7a4726afa9448a9acd89377">More...</a><br/></td></tr> <tr class="separator:gad3cbca1be7a4726afa9448a9acd89377"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaebee9cad6724a5bac1857f0f1fb6d6af"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#gaebee9cad6724a5bac1857f0f1fb6d6af">NVIC_GetVector</a> (<a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a> IRQn)</td></tr> <tr class="memdesc:gaebee9cad6724a5bac1857f0f1fb6d6af"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read Interrupt Vector [not for Cortex-M0, SC000]. <a href="#gaebee9cad6724a5bac1857f0f1fb6d6af">More...</a><br/></td></tr> <tr class="separator:gaebee9cad6724a5bac1857f0f1fb6d6af"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gab43c1c59d5c081f1bc725237f4b1f916"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#gab43c1c59d5c081f1bc725237f4b1f916">NVIC_SetVector</a> (<a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a> IRQn, uint32_t vector)</td></tr> <tr class="memdesc:gab43c1c59d5c081f1bc725237f4b1f916"><td class="mdescLeft">&#160;</td><td class="mdescRight">Modify Interrupt Vector [not for Cortex-M0, SC000]. <a href="#gab43c1c59d5c081f1bc725237f4b1f916">More...</a><br/></td></tr> <tr class="separator:gab43c1c59d5c081f1bc725237f4b1f916"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga1b47d17e90b6a03e7bd1ec6a0d549b46"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#ga1b47d17e90b6a03e7bd1ec6a0d549b46">NVIC_SystemReset</a> (void)</td></tr> <tr class="memdesc:ga1b47d17e90b6a03e7bd1ec6a0d549b46"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the system. <a href="#ga1b47d17e90b6a03e7bd1ec6a0d549b46">More...</a><br/></td></tr> <tr class="separator:ga1b47d17e90b6a03e7bd1ec6a0d549b46"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga62b37611e1ccbac47d747c98ef302746"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#ga62b37611e1ccbac47d747c98ef302746">NVIC_GetTargetState</a> (<a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a> IRQn)</td></tr> <tr class="memdesc:ga62b37611e1ccbac47d747c98ef302746"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Interrupt Target State. <a href="#ga62b37611e1ccbac47d747c98ef302746">More...</a><br/></td></tr> <tr class="separator:ga62b37611e1ccbac47d747c98ef302746"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaf46218d01a6a3b70666ad0492a7f950a"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#gaf46218d01a6a3b70666ad0492a7f950a">NVIC_SetTargetState</a> (<a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a> IRQn)</td></tr> <tr class="memdesc:gaf46218d01a6a3b70666ad0492a7f950a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Interrupt Target State. <a href="#gaf46218d01a6a3b70666ad0492a7f950a">More...</a><br/></td></tr> <tr class="separator:gaf46218d01a6a3b70666ad0492a7f950a"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga44b31316872e91bda1af7e17173de24b"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__NVIC__gr.html#ga44b31316872e91bda1af7e17173de24b">NVIC_ClearTargetState</a> (<a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a> IRQn)</td></tr> <tr class="memdesc:ga44b31316872e91bda1af7e17173de24b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear Interrupt Target State. <a href="#ga44b31316872e91bda1af7e17173de24b">More...</a><br/></td></tr> <tr class="separator:ga44b31316872e91bda1af7e17173de24b"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Description</h2> <p>This section explains how to use interrupts and exceptions and access functions for the Nested Vector Interrupt Controller (NVIC).</p> <p>Arm provides a template file <b>startup_<em>device</em></b> for each supported compiler. The file must be adapted by the silicon vendor to include interrupt vectors for all device-specific interrupt handlers. Each interrupt handler is defined as a <b><em>weak</em></b> function to an dummy handler. These interrupt handlers can be used directly in application software without being adapted by the programmer.</p> <p>The table below lists the core exception vectors of the various Cortex-M processors.</p> <table class="cmtable" summary="Core Exception Name"> <tr> <th>Exception Vector </th><th>IRQn<br/> Value </th><th>M0 </th><th>M0+ </th><th>M3 </th><th>M4 </th><th>M7 </th><th>SC000 </th><th>SC300 </th><th>Armv8-M<br/> Baseline </th><th>Armv8-M<br/> Mainline </th><th>Description </th></tr> <tr> <td><b>NonMaskableInt_IRQn</b> </td><td>-14 </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td>Non Maskable Interrupt </td></tr> <tr> <td><b>HardFault_IRQn</b> </td><td>-13 </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td>Hard Fault Interrupt </td></tr> <tr> <td><b>MemoryManagement_IRQn</b> </td><td>-12 </td><td>&#160; </td><td>&#160; </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td>&#160; </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td>&#160; </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td>Memory Management Interrupt </td></tr> <tr> <td><b>BusFault_IRQn</b> </td><td>-11 </td><td>&#160; </td><td>&#160; </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td>&#160; </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td>&#160; </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td>Bus Fault Interrupt </td></tr> <tr> <td><b>UsageFault_IRQn</b> </td><td>-10 </td><td>&#160; </td><td>&#160; </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td>&#160; </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td>&#160; </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td>Usage Fault Interrupt </td></tr> <tr> <td><b>SecureFault_IRQn</b> </td><td>-9 </td><td>&#160; </td><td>&#160; </td><td>&#160; </td><td>&#160; </td><td>&#160; </td><td>&#160; </td><td>&#160; </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td>Secure Fault Interrupt </td></tr> <tr> <td><b>SVCall_IRQn</b> </td><td>-5 </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td>SV Call Interrupt </td></tr> <tr> <td><b>DebugMonitor_IRQn</b> </td><td>-4 </td><td>&#160; </td><td>&#160; </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td>&#160; </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td>&#160; </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td>Debug Monitor Interrupt </td></tr> <tr> <td><b>PendSV_IRQn</b> </td><td>-2 </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td>Pend SV Interrupt </td></tr> <tr> <td><b>SysTick_IRQn</b> </td><td>-1 </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td><div class="image"> <img src="check.png" alt="available"/> </div> </td><td>System Tick Interrupt </td></tr> </table> <h1>Vector Table </h1> <p>The Vector Table defines the entry addresses of the processor exceptions and the device specific interrupts. It is typically located at the beginning of the program memory, however <a class="el" href="using_VTOR_pg.html">Using Interrupt Vector Remap</a> it can be relocated to RAM. The symbol <b>__Vectors</b> is the address of the vector table in the startup code and the register <b>SCB-&gt;VTOR</b> holds the start address of the vector table.</p> <p>An Armv8-M implementation with TrustZone provides two vector tables:</p> <ul> <li>vector table for Secure handlers</li> <li>vector table for Non-Secure handlers</li> </ul> <p>Refer to <a class="el" href="using_TrustZone_pg.html#Model_TrustZone">Programmers Model with TrustZone</a> for more information.</p> <h2>Processor Exceptions </h2> <p>At the beginning of the vector table, the initial stack value and the exception vectors of the processor are defined. The vector table below shows the exception vectors of a Armv8-M Mainline processor. Other processor variants may have fewer vectors.</p> <div class="fragment"><div class="line">__Vectors DCD __initial_sp ; Top of Stack initialization</div> <div class="line"> DCD Reset_Handler ; Reset Handler</div> <div class="line"> DCD NMI_Handler ; NMI Handler</div> <div class="line"> DCD HardFault_Handler ; Hard Fault Handler</div> <div class="line"> DCD MemManage_Handler ; MPU Fault Handler</div> <div class="line"> DCD BusFault_Handler ; Bus Fault Handler</div> <div class="line"> DCD UsageFault_Handler ; Usage Fault Handler</div> <div class="line"> DCD SecureFault_Handler ; Secure Fault Handler</div> <div class="line"> DCD 0 ; Reserved</div> <div class="line"> DCD 0 ; Reserved</div> <div class="line"> DCD 0 ; Reserved</div> <div class="line"> DCD SVC_Handler ; SVCall Handler</div> <div class="line"> DCD DebugMon_Handler ; Debug Monitor Handler</div> <div class="line"> DCD 0 ; Reserved</div> <div class="line"> DCD PendSV_Handler ; PendSV Handler</div> <div class="line"> DCD SysTick_Handler ; SysTick Handler</div> </div><!-- fragment --><h2>Device Specific Vectors </h2> <p>Following the processor exception vectors, the vector table contains also the device specific interrupt vectors.</p> <div class="fragment"><div class="line">; device specific interrupts</div> <div class="line"> DCD WWDG_IRQHandler ; Window Watchdog</div> <div class="line"> DCD PVD_IRQHandler ; PVD through EXTI Line detect</div> <div class="line"> DCD TAMPER_IRQHandler ; Tamper</div> </div><!-- fragment --><p>All device specific interrupts should have a default interrupt handler function that can be overwritten in user code. Below is an example for this default handler function.</p> <div class="fragment"><div class="line">Default_Handler PROC</div> <div class="line"> EXPORT WWDG_IRQHandler [WEAK]</div> <div class="line"> EXPORT PVD_IRQHandler [WEAK]</div> <div class="line"> EXPORT TAMPER_IRQHandler [WEAK]</div> <div class="line"> :</div> <div class="line"> :</div> <div class="line"> WWDG_IRQHandler</div> <div class="line"> PVD_IRQHandler</div> <div class="line"> TAMPER_IRQHandler</div> <div class="line"> :</div> <div class="line"> :</div> <div class="line"> B .</div> <div class="line"> ENDP</div> </div><!-- fragment --><p>The user application may simply define an interrupt handler function by using the handler name as shown below.</p> <div class="fragment"><div class="line"><span class="keywordtype">void</span> WWDG_IRQHandler(<span class="keywordtype">void</span>)</div> <div class="line">{</div> <div class="line"> ...</div> <div class="line">}</div> </div><!-- fragment --><h1>NVIC Function Usage </h1> <p>The code below shows the usage of various CMSIS NVIC functions with an LPC1700 device.</p> <h2>Code Example 1 </h2> <div class="fragment"><div class="line"><span class="preprocessor">#include &quot;LPC17xx.h&quot;</span></div> <div class="line"> </div> <div class="line">uint32_t priorityGroup; <span class="comment">/* Variables to store priority group and priority */</span></div> <div class="line">uint32_t priority;</div> <div class="line">uint32_t preemptPriority;</div> <div class="line">uint32_t subPriority;</div> <div class="line"> </div> <div class="line"><span class="keywordtype">int</span> main (<span class="keywordtype">void</span>) {</div> <div class="line"> <a class="code" href="group__NVIC__gr.html#gad78f447e891789b4d8f2e5b21eeda354">NVIC_SetPriorityGrouping</a>(5); <span class="comment">/* Set priority group to 5:</span></div> <div class="line"><span class="comment"> Bit[7..6] preempt priority Bits, </span></div> <div class="line"><span class="comment"> Bit[5..3] subpriority Bits </span></div> <div class="line"><span class="comment"> (valid for five priority bits) */</span></div> <div class="line"> </div> <div class="line"> priorityGroup = <a class="code" href="group__NVIC__gr.html#gaa81b19849367d3cdb95ac108c500fa78">NVIC_GetPriorityGrouping</a>(); <span class="comment">/* Get used priority grouping */</span></div> <div class="line"> </div> <div class="line"> priority = <a class="code" href="group__NVIC__gr.html#ga0688c59605b119c53c71b2505ab23eb5">NVIC_EncodePriority</a>(priorityGroup, 1, 6); <span class="comment">/* Encode priority with 6 for subpriority and 1 for preempt priority</span></div> <div class="line"><span class="comment"> Note: priority depends on the used priority grouping */</span></div> <div class="line"> <a class="code" href="group__NVIC__gr.html#ga5bb7f43ad92937c039dee3d36c3c2798">NVIC_SetPriority</a>(UART0_IRQn, priority); <span class="comment">/* Set new priority */</span></div> <div class="line"> </div> <div class="line"> priority = <a class="code" href="group__NVIC__gr.html#gab18fb9f6c5f4c70fdd73047f0f7c8395">NVIC_GetPriority</a>(UART0_IRQn); <span class="comment">/* Retrieve priority again */</span> </div> <div class="line"> <a class="code" href="group__NVIC__gr.html#gad3cbca1be7a4726afa9448a9acd89377">NVIC_DecodePriority</a>(priority, priorityGroup, &amp;preemptPriority, &amp;subPriority);</div> <div class="line"> </div> <div class="line"> <span class="keywordflow">while</span>(1);</div> <div class="line">}</div> </div><!-- fragment --><h2>Code Example 2 </h2> <div class="fragment"><div class="line"><span class="preprocessor">#include &quot;LPC17xx.h&quot;</span></div> <div class="line"> </div> <div class="line">uint32_t active; <span class="comment">/* Variable to store interrupt active state */</span></div> <div class="line"> </div> <div class="line"><span class="keywordtype">void</span> TIMER0_IRQHandler(<span class="keywordtype">void</span>) { <span class="comment">/* Timer 0 interrupt handler */</span></div> <div class="line"> </div> <div class="line"> <span class="keywordflow">if</span> (LPC_TIM0-&gt;IR &amp; (1 &lt;&lt; 0)) { <span class="comment">/* Check if interrupt for match channel 0 occured */</span> </div> <div class="line"> LPC_TIM0-&gt;IR |= (1 &lt;&lt; 0); <span class="comment">/* Acknowledge interrupt for match channel 0 occured */</span></div> <div class="line"> }</div> <div class="line"> active = <a class="code" href="group__NVIC__gr.html#gadf4252e600661fd762cfc0d1a9f5b892">NVIC_GetActive</a>(TIMER0_IRQn); <span class="comment">/* Get interrupt active state of timer 0 */</span></div> <div class="line">}</div> <div class="line"> </div> <div class="line"><span class="keywordtype">int</span> main (<span class="keywordtype">void</span>) {</div> <div class="line"> <span class="comment">/* Set match channel register MR0 to 1 millisecond */</span></div> <div class="line"> LPC_TIM0-&gt;MR0 = (((<a class="code" href="group__system__init__gr.html#gaa3cd3e43291e81e795d642b79b6088e6">SystemCoreClock</a> / 1000) / 4) - 1); <span class="comment">/* 1 ms? */</span></div> <div class="line"> </div> <div class="line"> LPC_TIM0-&gt;MCR = (3 &lt;&lt; 0); <span class="comment">/* Enable interrupt and reset for match channel MR0 */</span></div> <div class="line"> <a class="code" href="group__NVIC__gr.html#ga530ad9fda2ed1c8b70e439ecfe80591f">NVIC_EnableIRQ</a>(TIMER0_IRQn); <span class="comment">/* Enable NVIC interrupt for timer 0 */</span></div> <div class="line"> LPC_TIM0-&gt;TCR = (1 &lt;&lt; 0); <span class="comment">/* Enable timer 0 */</span></div> <div class="line"> </div> <div class="line"> <span class="keywordflow">while</span>(1);</div> <div class="line">}</div> </div><!-- fragment --><h1>NVIC API Virtualization </h1> <p>The CMSIS-Core has provisions for overriding NVIC APIs as required for implementing secure systems that control access to peripherals and related interrupts. These overrides allow an operating system to control the access privileges of application code to critical interrupts.</p> <p>The NVIC function virtualization is enabled with the following #define symbols:</p> <ul> <li><a class="el" href="group__NVIC__gr.html#gadc48b4ed09386aab48fa6b9c96d9034c">CMSIS_NVIC_VIRTUAL</a> enables overriding the CMSIS-Core (Cortex-M) NVIC functions.</li> <li><a class="el" href="group__NVIC__gr.html#gad01d3aa220b50ef141b06c93888b268d">CMSIS_VECTAB_VIRTUAL</a> enables overriding the CMSIS-Core (Cortex-M) interrupt vector table access functions. </li> </ul> <h2 class="groupheader">Macro Definition Documentation</h2> <a class="anchor" id="gadc48b4ed09386aab48fa6b9c96d9034c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define CMSIS_NVIC_VIRTUAL</td> </tr> </table> </div><div class="memdoc"> <p>When <a class="el" href="group__NVIC__gr.html#gadc48b4ed09386aab48fa6b9c96d9034c">CMSIS_NVIC_VIRTUAL</a> is defined, the NVIC access functions in the table below must be implemented for virtualizing NVIC access. These functions should be implemented in a separate source module. The original CMSIS-Core __NVIC functions are always available independent of <a class="el" href="group__NVIC__gr.html#gadc48b4ed09386aab48fa6b9c96d9034c">CMSIS_NVIC_VIRTUAL</a>.</p> <table class="doxtable"> <tr> <th>NVIC Access Functions </th><th>CMSIS-Core Functions </th></tr> <tr> <td>NVIC_EnableIRQ </td><td>__NVIC_EnableIRQ </td></tr> <tr> <td>NVIC_GetEnableIRQ </td><td>__NVIC_GetEnableIRQ </td></tr> <tr> <td>NVIC_DisableIRQ </td><td>__NVIC_DisableIRQ </td></tr> <tr> <td>NVIC_GetPendingIRQ </td><td>__NVIC_GetPendingIRQ </td></tr> <tr> <td>NVIC_SetPendingIRQ </td><td>__NVIC_SetPendingIRQ </td></tr> <tr> <td>NVIC_ClearPendingIRQ </td><td>__NVIC_ClearPendingIRQ </td></tr> <tr> <td>NVIC_GetActive </td><td>__NVIC_GetActive </td></tr> <tr> <td>NVIC_SetPriority </td><td>__NVIC_SetPriority </td></tr> <tr> <td>NVIC_GetPriority </td><td>__NVIC_GetPriority </td></tr> <tr> <td>NVIC_SetPriorityGrouping </td><td>__NVIC_SetPriorityGrouping </td></tr> <tr> <td>NVIC_GetPriorityGrouping </td><td>__NVIC_GetPriorityGrouping </td></tr> </table> </div> </div> <a class="anchor" id="gad01d3aa220b50ef141b06c93888b268d"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define CMSIS_VECTAB_VIRTUAL</td> </tr> </table> </div><div class="memdoc"> <p>When <a class="el" href="group__NVIC__gr.html#gadc48b4ed09386aab48fa6b9c96d9034c">CMSIS_NVIC_VIRTUAL</a> is defined, the functions in the table below must be replaced to virtualize the API access functions to the interrupt vector table. The NVIC vector table API should be implemented in a separate source module. This allows, for example, alternate implementations to relocate the vector table from flash to RAM on the first vector table update.</p> <p>The original CMSIS-Core functions are always available, but prefixed with __NVIC.</p> <table class="doxtable"> <tr> <th>Interrupt Vector Table Access </th><th>CMSIS-Core Functions </th></tr> <tr> <td>NVIC_GetVector </td><td>__NVIC_GetVector </td></tr> <tr> <td>NVIC_SetVector </td><td>__NVIC_SetVector </td></tr> </table> </div> </div> <h2 class="groupheader">Enumeration Type Documentation</h2> <a class="anchor" id="ga7e1129cd8a196f4284d41db3e82ad5c8"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a></td> </tr> </table> </div><div class="memdoc"> <p>The core exception enumeration names for IRQn values are defined in the file <b>device.h</b>.</p> <ul> <li>Negative IRQn values represent processor core exceptions (internal interrupts).</li> <li>Positive IRQn values represent device-specific exceptions (external interrupts).</li> <li>The first device-specific interrupt has the IRQn value 0.</li> </ul> <p>The table below describes the core exception names and their availability in various Cortex-M cores. </p> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga7e1129cd8a196f4284d41db3e82ad5c8ade177d9c70c89e084093024b932a4e30"></a>NonMaskableInt_IRQn</em>&#160;</td><td class="fielddoc"> <p>Exception 2: Non Maskable Interrupt. </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="gga7e1129cd8a196f4284d41db3e82ad5c8ab1a222a34a32f0ef5ac65e714efc1f85"></a>HardFault_IRQn</em>&#160;</td><td class="fielddoc"> <p>Exception 3: Hard Fault Interrupt. </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="gga7e1129cd8a196f4284d41db3e82ad5c8a33ff1cf7098de65d61b6354fee6cd5aa"></a>MemoryManagement_IRQn</em>&#160;</td><td class="fielddoc"> <p>Exception 4: Memory Management Interrupt [not on Cortex-M0 variants]. </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="gga7e1129cd8a196f4284d41db3e82ad5c8a8693500eff174f16119e96234fee73af"></a>BusFault_IRQn</em>&#160;</td><td class="fielddoc"> <p>Exception 5: Bus Fault Interrupt [not on Cortex-M0 variants]. </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="gga7e1129cd8a196f4284d41db3e82ad5c8a6895237c9443601ac832efa635dd8bbf"></a>UsageFault_IRQn</em>&#160;</td><td class="fielddoc"> <p>Exception 6: Usage Fault Interrupt [not on Cortex-M0 variants]. </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="gga7e1129cd8a196f4284d41db3e82ad5c8a9cda5594d898247bfa9d16ad966724da"></a>SecureFault_IRQn</em>&#160;</td><td class="fielddoc"> <p>Exception 7: Secure Fault Interrupt [only on Armv8-M]. </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="gga7e1129cd8a196f4284d41db3e82ad5c8a4ce820b3cc6cf3a796b41aadc0cf1237"></a>SVCall_IRQn</em>&#160;</td><td class="fielddoc"> <p>Exception 11: SV Call Interrupt. </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="gga7e1129cd8a196f4284d41db3e82ad5c8a8e033fcef7aed98a31c60a7de206722c"></a>DebugMonitor_IRQn</em>&#160;</td><td class="fielddoc"> <p>Exception 12: Debug Monitor Interrupt [not on Cortex-M0 variants]. </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="gga7e1129cd8a196f4284d41db3e82ad5c8a03c3cc89984928816d81793fc7bce4a2"></a>PendSV_IRQn</em>&#160;</td><td class="fielddoc"> <p>Exception 14: Pend SV Interrupt [not on Cortex-M0 variants]. </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="gga7e1129cd8a196f4284d41db3e82ad5c8a6dbff8f8543325f3474cbae2446776e7"></a>SysTick_IRQn</em>&#160;</td><td class="fielddoc"> <p>Exception 15: System Tick Interrupt. </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="gga7e1129cd8a196f4284d41db3e82ad5c8aa62e040960b4beb6cba107e4703c12d2"></a>WWDG_STM_IRQn</em>&#160;</td><td class="fielddoc"> <p>Device Interrupt 0: Window WatchDog Interrupt. </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="gga7e1129cd8a196f4284d41db3e82ad5c8a853e0f318108110e0527f29733d11f86"></a>PVD_STM_IRQn</em>&#160;</td><td class="fielddoc"> <p>Device Interrupt 1: PVD through EXTI Line detection Interrupt. </p> </td></tr> </table> </div> </div> <h2 class="groupheader">Function Documentation</h2> <a class="anchor" id="ga382ad6bedd6eecfdabd1b94dd128a01a"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void NVIC_ClearPendingIRQ </td> <td>(</td> <td class="paramtype"><a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>&#160;</td> <td class="paramname"><em>IRQn</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function removes the pending state of the specified device specific interrupt <em>IRQn</em>. <em>IRQn</em> cannot be a negative number.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Interrupt number</td></tr> </table> </dd> </dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>IRQn must not be negative.</li> <li>The registers that control the status of interrupts are called SETPEND and CLRPEND.</li> <li>An interrupt can have the status pending though it is not active.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__NVIC__gr.html#ga3b885147ef9965ecede49614de8df9d2">NVIC_SetPendingIRQ</a>; <a class="el" href="group__NVIC__gr.html#ga95a8329a680b051ecf3ee8f516acc662" title="Get the pending device specific interrupt. ">NVIC_GetPendingIRQ</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga44b31316872e91bda1af7e17173de24b"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t NVIC_ClearTargetState </td> <td>(</td> <td class="paramtype"><a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>&#160;</td> <td class="paramname"><em>IRQn</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Clears the interrupt target field in the non-secure NVIC when in secure state. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>External interrupt number. Value cannot be negative. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd><ul> <li>0 if interrupt is assigned to Secure</li> <li>1 if interrupt is assigned to Non Secure </li> </ul> </dd></dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>Only available for Armv8-M in secure state.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__NVIC__gr.html#ga62b37611e1ccbac47d747c98ef302746">NVIC_GetTargetState</a>; <a class="el" href="group__NVIC__gr.html#gaf46218d01a6a3b70666ad0492a7f950a" title="Set Interrupt Target State. ">NVIC_SetTargetState</a>; </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gad3cbca1be7a4726afa9448a9acd89377"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void NVIC_DecodePriority </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>Priority</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>PriorityGroup</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint32_t *&#160;</td> <td class="paramname"><em>pPreemptPriority</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint32_t *&#160;</td> <td class="paramname"><em>pSubPriority</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>This function decodes an interrupt priority value with the priority group <em>PriorityGroup</em> to preemptive priority value <em>pPreemptPriority</em> and subpriority value <em>pSubPriority</em>. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">Priority</td><td>Priority </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">PriorityGroup</td><td>Priority group </td></tr> <tr><td class="paramdir">[out]</td><td class="paramname">*pPreemptPriority</td><td>Preemptive priority value (starting from 0) </td></tr> <tr><td class="paramdir">[out]</td><td class="paramname">*pSubPriority</td><td>Subpriority value (starting from 0)</td></tr> </table> </dd> </dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>not for Cortex-M0, Cortex-M0+, or SC000.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__NVIC__gr.html#ga0688c59605b119c53c71b2505ab23eb5">NVIC_EncodePriority</a>; <a class="el" href="group__NVIC__gr.html#gab18fb9f6c5f4c70fdd73047f0f7c8395" title="Get the priority of an interrupt. ">NVIC_GetPriority</a>; <a class="el" href="group__NVIC__gr.html#gaa81b19849367d3cdb95ac108c500fa78" title="Read the priority grouping [not for Cortex-M0, Cortex-M0+, or SC000]. ">NVIC_GetPriorityGrouping</a>;</li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga736ba13a76eb37ef6e2c253be8b0331c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void NVIC_DisableIRQ </td> <td>(</td> <td class="paramtype"><a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>&#160;</td> <td class="paramname"><em>IRQn</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function disables the specified device specific interrupt <em>IRQn</em>. <em>IRQn</em> cannot be a negative value.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Number of the external interrupt to disable</td></tr> </table> </dd> </dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>IRQn must not be negative.</li> <li>The registers that control the enabling and disabling of interrupts are called SETENA and CLRENA.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__NVIC__gr.html#ga530ad9fda2ed1c8b70e439ecfe80591f">NVIC_EnableIRQ</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga530ad9fda2ed1c8b70e439ecfe80591f"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void NVIC_EnableIRQ </td> <td>(</td> <td class="paramtype"><a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>&#160;</td> <td class="paramname"><em>IRQn</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function enables the specified device specific interrupt <em>IRQn</em>. <em>IRQn</em> cannot be a negative value.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Interrupt number</td></tr> </table> </dd> </dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>IRQn must not be negative.</li> <li>The registers that control the enabling and disabling of interrupts are called SETENA and CLRENA.</li> <li>The number of supported interrupts depends on the implementation of the chip designer and can be read form the Interrupt Controller Type Register (ICTR) in granularities of 32: <br/> ICTR[4:0]<ul> <li>0 - 32 interrupts supported</li> <li>1 - 64 interrupts supported</li> <li>...</li> </ul> </li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__NVIC__gr.html#ga736ba13a76eb37ef6e2c253be8b0331c">NVIC_DisableIRQ</a>; <a class="el" href="structSCnSCB__Type.html" title="Structure type to access the System Control and ID Register not in the SCB. ">SCnSCB_Type</a>;</li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga0688c59605b119c53c71b2505ab23eb5"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t NVIC_EncodePriority </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>PriorityGroup</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>PreemptPriority</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>SubPriority</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>This function encodes the priority for an interrupt with the priority group <em>PriorityGroup</em>, preemptive priority value <em>PreemptPriority</em>, and subpriority value <em>SubPriority</em>. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">PriorityGroup</td><td>Priority group </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">PreemptPriority</td><td>Preemptive priority value (starting from 0) </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">SubPriority</td><td>Subpriority value (starting from 0)</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>Encoded priority for the interrupt</dd></dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>not for Cortex-M0, Cortex-M0+, or SC000.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__NVIC__gr.html#gad3cbca1be7a4726afa9448a9acd89377">NVIC_DecodePriority</a>; <a class="el" href="group__NVIC__gr.html#ga5bb7f43ad92937c039dee3d36c3c2798" title="Set the priority for an interrupt. ">NVIC_SetPriority</a>;</li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gadf4252e600661fd762cfc0d1a9f5b892"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t NVIC_GetActive </td> <td>(</td> <td class="paramtype"><a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>&#160;</td> <td class="paramname"><em>IRQn</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function reads the Interrupt Active Register (NVIC_IABR0-NVIC_IABR7) in NVIC and returns the active bit of the interrupt <em>IRQn</em>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Interrupt number</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd><ul> <li>0 Interrupt is not active</li> <li>1 Interrupt is active, or active and pending</li> </ul> </dd></dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>not for Cortex-M0, Cortex-M0+, or SC000.</li> <li>IRQn must not be negative.</li> <li>Each external interrupt has an active status bit. When the processor starts the interrupt handler the bit is set to 1 and cleared when the interrupt return is executed.</li> <li>When an ISR is preempted and the processor executes anohter interrupt handler, the previous interrupt is still defined as active.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga72f102d31af0ee4aa7a6fb7a180840f3"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t NVIC_GetEnableIRQ </td> <td>(</td> <td class="paramtype"><a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>&#160;</td> <td class="paramname"><em>IRQn</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function returns the interrupt enable status for the specified device specific interrupt <em>IRQn</em>. <em>IRQn</em> cannot be a negative value.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Interrupt number</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd><ul> <li>0 Interrupt is not enabled</li> <li>1 Interrupt is pending</li> </ul> </dd></dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>IRQn must not be negative.</li> <li>The registers that control the enabling and disabling of interrupts are called SETENA and CLRENA.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__NVIC__gr.html#ga530ad9fda2ed1c8b70e439ecfe80591f">NVIC_EnableIRQ</a>; <a class="el" href="group__NVIC__gr.html#ga736ba13a76eb37ef6e2c253be8b0331c" title="Disable a device specific interrupt. ">NVIC_DisableIRQ</a>;</li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga95a8329a680b051ecf3ee8f516acc662"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t NVIC_GetPendingIRQ </td> <td>(</td> <td class="paramtype"><a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>&#160;</td> <td class="paramname"><em>IRQn</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function returns the pending status of the specified device specific interrupt <em>IRQn</em>.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Interrupt number</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd><ul> <li>0 Interrupt is not pending</li> <li>1 Interrupt is pending</li> </ul> </dd></dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>IRQn must not be negative.</li> <li>The registers that control the status of interrupts are called SETPEND and CLRPEND.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__NVIC__gr.html#ga3b885147ef9965ecede49614de8df9d2">NVIC_SetPendingIRQ</a>; <a class="el" href="group__NVIC__gr.html#ga382ad6bedd6eecfdabd1b94dd128a01a" title="Clear a device specific interrupt from pending. ">NVIC_ClearPendingIRQ</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gab18fb9f6c5f4c70fdd73047f0f7c8395"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t NVIC_GetPriority </td> <td>(</td> <td class="paramtype"><a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>&#160;</td> <td class="paramname"><em>IRQn</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function reads the priority for the specified interrupt <em>IRQn</em>. <em>IRQn</em> can can specify any device specific interrupt, or processor exception.</p> <p>The returned priority value is automatically aligned to the implemented priority bits of the microcontroller.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Interrupt number</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>Interrupt priority</dd></dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>Each external interrupt has an associated priority-level register.</li> <li>Unimplemented bits are read as zero.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__NVIC__gr.html#ga5bb7f43ad92937c039dee3d36c3c2798">NVIC_SetPriority</a>; <a class="el" href="group__NVIC__gr.html#gaa81b19849367d3cdb95ac108c500fa78" title="Read the priority grouping [not for Cortex-M0, Cortex-M0+, or SC000]. ">NVIC_GetPriorityGrouping</a>; <a class="el" href="group__Core__Register__gr.html#ga32da759f46e52c95bcfbde5012260667" title="Read the BASEPRI register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__get_BASEPRI</a>;</li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gaa81b19849367d3cdb95ac108c500fa78"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t NVIC_GetPriorityGrouping </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function returns the priority grouping (flag PRIGROUP in AIRCR[10:8]).</p> <dl class="section return"><dt>Returns</dt><dd>Priority grouping field</dd></dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>not for Cortex-M0, Cortex-M0+, or SC000.</li> <li>By default, priority group setting is zero.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__NVIC__gr.html#gad78f447e891789b4d8f2e5b21eeda354">NVIC_SetPriorityGrouping</a>; <a class="el" href="group__NVIC__gr.html#gab18fb9f6c5f4c70fdd73047f0f7c8395" title="Get the priority of an interrupt. ">NVIC_GetPriority</a>; <a class="el" href="structSCB__Type.html" title="Structure type to access the System Control Block (SCB). ">SCB_Type</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga62b37611e1ccbac47d747c98ef302746"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t NVIC_GetTargetState </td> <td>(</td> <td class="paramtype"><a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>&#160;</td> <td class="paramname"><em>IRQn</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Reads the interrupt target field from the non-secure NVIC when in secure state. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>External interrupt number. Value cannot be negative. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd><ul> <li>0 if interrupt is assigned to Secure</li> <li>1 if interrupt is assigned to Non Secure </li> </ul> </dd></dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>Only available for Armv8-M in secure state.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__NVIC__gr.html#ga44b31316872e91bda1af7e17173de24b">NVIC_ClearTargetState</a>; <a class="el" href="group__NVIC__gr.html#gaf46218d01a6a3b70666ad0492a7f950a" title="Set Interrupt Target State. ">NVIC_SetTargetState</a>; </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gaebee9cad6724a5bac1857f0f1fb6d6af"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t NVIC_GetVector </td> <td>(</td> <td class="paramtype"><a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>&#160;</td> <td class="paramname"><em>IRQn</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function allows to read the address of an interrupt handler function.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Interrupt number</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>Address of interrupt handler function</dd></dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>For using this function with Cortex-M0+ processor based devices, the SBC-&gt;VTOR register must be implemented.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__NVIC__gr.html#gab43c1c59d5c081f1bc725237f4b1f916">NVIC_SetVector</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga3b885147ef9965ecede49614de8df9d2"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void NVIC_SetPendingIRQ </td> <td>(</td> <td class="paramtype"><a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>&#160;</td> <td class="paramname"><em>IRQn</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function sets the pending bit for the specified device specific interrupt <em>IRQn</em>. <em>IRQn</em> cannot be a negative value.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Interrupt number</td></tr> </table> </dd> </dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>IRQn must not be negative.</li> <li>The registers that control the status of interrupts are called SETPEND and CLRPEND.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__NVIC__gr.html#ga95a8329a680b051ecf3ee8f516acc662">NVIC_GetPendingIRQ</a>; <a class="el" href="group__NVIC__gr.html#ga382ad6bedd6eecfdabd1b94dd128a01a" title="Clear a device specific interrupt from pending. ">NVIC_ClearPendingIRQ</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga5bb7f43ad92937c039dee3d36c3c2798"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void NVIC_SetPriority </td> <td>(</td> <td class="paramtype"><a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>&#160;</td> <td class="paramname"><em>IRQn</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>priority</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Sets the priority for the interrupt specified by <em>IRQn</em>.<em>IRQn</em> can can specify any device specific interrupt, or processor exception. The <em>priority</em> specifies the interrupt priority value, whereby lower values indicate a higher priority. The default priority is 0 for every interrupt. This is the highest possible priority.</p> <p>The priority cannot be set for every core interrupt. HardFault and NMI have a fixed (negative) priority that is higher than any configurable exception or interrupt.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Interrupt Number </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">priority</td><td>Priority to set</td></tr> </table> </dd> </dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>The number of priority levels is configurable and depends on the implementation of the chip designer. To determine the number of bits implemented for interrupt priority-level registers, write <em>0xFF</em> to one of the priority-level register, then read back the value. For example, if the minimum number of 3 bits have been implemented, the read-back value is <em>0xE0</em>.</li> <li>Writes to unimplemented bits are ignored.</li> <li><b>For Cortex-M0</b>:<ul> <li>Dynamic switching of interrupt priority levels is not supported. The priority level of an interrupt should not be changed after it has been enabled.</li> <li>Supports 0 to 192 priority levels.</li> <li>Priority-level registers are 2 bit wide, occupying the two MSBs. Each Interrupt Priority Level Register is 1-byte wide.</li> </ul> </li> <li><b>For Cortex-M3, Cortex-M4, and Cortex-M7</b>:<ul> <li>Dynamic switching of interrupt priority levels is supported.</li> <li>Supports 0 to 255 priority levels.</li> <li>Priority-level registers have a maximum width of 8 bits and a minumum of 3 bits. Each register can be further devided into preempt priority level and subpriority level.</li> </ul> </li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__NVIC__gr.html#gab18fb9f6c5f4c70fdd73047f0f7c8395">NVIC_GetPriority</a>; <a class="el" href="group__NVIC__gr.html#gad78f447e891789b4d8f2e5b21eeda354" title="Set priority grouping [not for Cortex-M0, Cortex-M0+, or SC000]. ">NVIC_SetPriorityGrouping</a>; <a class="el" href="group__Core__Register__gr.html#ga360c73eb7ffb16088556f9278953b882" title="Set the BASEPRI register [not for Cortex-M0, Cortex-M0+, or SC000]. ">__set_BASEPRI</a>;</li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gad78f447e891789b4d8f2e5b21eeda354"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void NVIC_SetPriorityGrouping </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>PriorityGroup</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The function sets the priority grouping <em>PriorityGroup</em> using the required unlock sequence. <em>PriorityGroup</em> is assigned to the field PRIGROUP (register AIRCR[10:8]). This field determines the split of group priority from subpriority. Only values from 0..7 are used. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">PriorityGroup</td><td>Priority group</td></tr> </table> </dd> </dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>not for Cortex-M0, Cortex-M0+, or SC000.</li> <li>By default, priority group setting is zero.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__NVIC__gr.html#gaa81b19849367d3cdb95ac108c500fa78">NVIC_GetPriorityGrouping</a>; <a class="el" href="group__NVIC__gr.html#ga5bb7f43ad92937c039dee3d36c3c2798" title="Set the priority for an interrupt. ">NVIC_SetPriority</a>; <a class="el" href="structSCB__Type.html" title="Structure type to access the System Control Block (SCB). ">SCB_Type</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gaf46218d01a6a3b70666ad0492a7f950a"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t NVIC_SetTargetState </td> <td>(</td> <td class="paramtype"><a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>&#160;</td> <td class="paramname"><em>IRQn</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Sets the interrupt target field in the non-secure NVIC when in secure state. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>External interrupt number. Value cannot be negative. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd><ul> <li>0 if interrupt is assigned to Secure</li> <li>1 if interrupt is assigned to Non Secure </li> </ul> </dd></dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>Only available for Armv8-M in secure state.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__NVIC__gr.html#ga44b31316872e91bda1af7e17173de24b">NVIC_ClearTargetState</a>; <a class="el" href="group__NVIC__gr.html#ga62b37611e1ccbac47d747c98ef302746" title="Get Interrupt Target State. ">NVIC_GetTargetState</a>; </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gab43c1c59d5c081f1bc725237f4b1f916"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void NVIC_SetVector </td> <td>(</td> <td class="paramtype"><a class="el" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a>&#160;</td> <td class="paramname"><em>IRQn</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>vector</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>This function allows to change the address of an interrupt handler function.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Interrupt number </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">vector</td><td>Address of new interrupt handler function</td></tr> </table> </dd> </dl> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>Usage of this function requires vector relocation to RAM. Refer to <a class="el" href="using_VTOR_pg.html">Using Interrupt Vector Remap</a> for more information.<ul> <li>For using this function with Cortex-M0+ processor based devices, the SBC-&gt;VTOR register must be implemented.</li> </ul> </li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__NVIC__gr.html#gaebee9cad6724a5bac1857f0f1fb6d6af">NVIC_GetVector</a></li> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga1b47d17e90b6a03e7bd1ec6a0d549b46"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void NVIC_SystemReset </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function requests a system reset by setting the SYSRESETREQ flag in the AIRCR register.</p> <dl class="section remark"><dt>Remarks</dt><dd><ul> <li>In most microcontroller designs, setting the SYSRESETREQ flag resets the processor and most parts of the system, but should not affect the debug system.</li> </ul> </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> </li> </ul> </dd></dl> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:25 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__NVIC__gr.html
HTML
apache-2.0
81,429
var group__NVIC__gr = [ [ "CMSIS_NVIC_VIRTUAL", "group__NVIC__gr.html#gadc48b4ed09386aab48fa6b9c96d9034c", null ], [ "CMSIS_VECTAB_VIRTUAL", "group__NVIC__gr.html#gad01d3aa220b50ef141b06c93888b268d", null ], [ "IRQn_Type", "group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8", [ [ "NonMaskableInt_IRQn", "group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8ade177d9c70c89e084093024b932a4e30", null ], [ "HardFault_IRQn", "group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8ab1a222a34a32f0ef5ac65e714efc1f85", null ], [ "MemoryManagement_IRQn", "group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a33ff1cf7098de65d61b6354fee6cd5aa", null ], [ "BusFault_IRQn", "group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a8693500eff174f16119e96234fee73af", null ], [ "UsageFault_IRQn", "group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a6895237c9443601ac832efa635dd8bbf", null ], [ "SecureFault_IRQn", "group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a9cda5594d898247bfa9d16ad966724da", null ], [ "SVCall_IRQn", "group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a4ce820b3cc6cf3a796b41aadc0cf1237", null ], [ "DebugMonitor_IRQn", "group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a8e033fcef7aed98a31c60a7de206722c", null ], [ "PendSV_IRQn", "group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a03c3cc89984928816d81793fc7bce4a2", null ], [ "SysTick_IRQn", "group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a6dbff8f8543325f3474cbae2446776e7", null ], [ "WWDG_STM_IRQn", "group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8aa62e040960b4beb6cba107e4703c12d2", null ], [ "PVD_STM_IRQn", "group__NVIC__gr.html#gga7e1129cd8a196f4284d41db3e82ad5c8a853e0f318108110e0527f29733d11f86", null ] ] ], [ "NVIC_ClearPendingIRQ", "group__NVIC__gr.html#ga382ad6bedd6eecfdabd1b94dd128a01a", null ], [ "NVIC_ClearTargetState", "group__NVIC__gr.html#ga44b31316872e91bda1af7e17173de24b", null ], [ "NVIC_DecodePriority", "group__NVIC__gr.html#gad3cbca1be7a4726afa9448a9acd89377", null ], [ "NVIC_DisableIRQ", "group__NVIC__gr.html#ga736ba13a76eb37ef6e2c253be8b0331c", null ], [ "NVIC_EnableIRQ", "group__NVIC__gr.html#ga530ad9fda2ed1c8b70e439ecfe80591f", null ], [ "NVIC_EncodePriority", "group__NVIC__gr.html#ga0688c59605b119c53c71b2505ab23eb5", null ], [ "NVIC_GetActive", "group__NVIC__gr.html#gadf4252e600661fd762cfc0d1a9f5b892", null ], [ "NVIC_GetEnableIRQ", "group__NVIC__gr.html#ga72f102d31af0ee4aa7a6fb7a180840f3", null ], [ "NVIC_GetPendingIRQ", "group__NVIC__gr.html#ga95a8329a680b051ecf3ee8f516acc662", null ], [ "NVIC_GetPriority", "group__NVIC__gr.html#gab18fb9f6c5f4c70fdd73047f0f7c8395", null ], [ "NVIC_GetPriorityGrouping", "group__NVIC__gr.html#gaa81b19849367d3cdb95ac108c500fa78", null ], [ "NVIC_GetTargetState", "group__NVIC__gr.html#ga62b37611e1ccbac47d747c98ef302746", null ], [ "NVIC_GetVector", "group__NVIC__gr.html#gaebee9cad6724a5bac1857f0f1fb6d6af", null ], [ "NVIC_SetPendingIRQ", "group__NVIC__gr.html#ga3b885147ef9965ecede49614de8df9d2", null ], [ "NVIC_SetPriority", "group__NVIC__gr.html#ga5bb7f43ad92937c039dee3d36c3c2798", null ], [ "NVIC_SetPriorityGrouping", "group__NVIC__gr.html#gad78f447e891789b4d8f2e5b21eeda354", null ], [ "NVIC_SetTargetState", "group__NVIC__gr.html#gaf46218d01a6a3b70666ad0492a7f950a", null ], [ "NVIC_SetVector", "group__NVIC__gr.html#gab43c1c59d5c081f1bc725237f4b1f916", null ], [ "NVIC_SystemReset", "group__NVIC__gr.html#ga1b47d17e90b6a03e7bd1ec6a0d549b46", null ] ];
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__NVIC__gr.js
JavaScript
apache-2.0
3,635
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Systick Timer (SYSTICK)</title> <title>CMSIS-Core (Cortex-M): Systick Timer (SYSTICK)</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('group__SysTick__gr.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">Systick Timer (SYSTICK)</div> </div> </div><!--header--> <div class="contents"> <p>Initialize and start the SysTick timer. <a href="#details">More...</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:gabe47de40e9b0ad465b752297a9d9f427"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__SysTick__gr.html#gabe47de40e9b0ad465b752297a9d9f427">SysTick_Config</a> (uint32_t ticks)</td></tr> <tr class="memdesc:gabe47de40e9b0ad465b752297a9d9f427"><td class="mdescLeft">&#160;</td><td class="mdescRight">System Tick Timer Configuration. <a href="#gabe47de40e9b0ad465b752297a9d9f427">More...</a><br/></td></tr> <tr class="separator:gabe47de40e9b0ad465b752297a9d9f427"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Description</h2> <p>The System Tick Time (SysTick) generates interrupt requests on a regular basis. This allows an OS to carry out context switching to support multiple tasking. For applications that do not require an OS, the SysTick can be used for time keeping, time measurement, or as an interrupt source for tasks that need to be executed regularly.</p> <h1><a class="anchor" id="SysTick_code_ex_sec"></a> Code Example</h1> <p>The code below shows the usage of the function <a class="el" href="group__SysTick__gr.html#gabe47de40e9b0ad465b752297a9d9f427" title="System Tick Timer Configuration. ">SysTick_Config()</a> with an LPC1700.</p> <div class="fragment"><div class="line"><span class="preprocessor">#include &quot;LPC17xx.h&quot;</span></div> <div class="line"> </div> <div class="line"><span class="keyword">volatile</span> uint32_t msTicks = 0; <span class="comment">/* Variable to store millisecond ticks */</span></div> <div class="line"> </div> <div class="line"><span class="keywordtype">void</span> SysTick_Handler(<span class="keywordtype">void</span>) { <span class="comment">/* SysTick interrupt Handler. */</span></div> <div class="line"> msTicks++; <span class="comment">/* See startup file startup_LPC17xx.s for SysTick vector */</span> </div> <div class="line">}</div> <div class="line"> </div> <div class="line"><span class="keywordtype">int</span> main (<span class="keywordtype">void</span>) {</div> <div class="line"> uint32_t returnCode;</div> <div class="line"> </div> <div class="line"> returnCode = <a class="code" href="group__SysTick__gr.html#gabe47de40e9b0ad465b752297a9d9f427">SysTick_Config</a>(<a class="code" href="group__system__init__gr.html#gaa3cd3e43291e81e795d642b79b6088e6">SystemCoreClock</a> / 1000); <span class="comment">/* Configure SysTick to generate an interrupt every millisecond */</span></div> <div class="line"> </div> <div class="line"> <span class="keywordflow">if</span> (returnCode != 0) { <span class="comment">/* Check return code for errors */</span></div> <div class="line"> <span class="comment">// Error Handling </span></div> <div class="line"> }</div> <div class="line"> </div> <div class="line"> <span class="keywordflow">while</span>(1);</div> <div class="line">}</div> </div><!-- fragment --> <h2 class="groupheader">Function Documentation</h2> <a class="anchor" id="gabe47de40e9b0ad465b752297a9d9f427"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t SysTick_Config </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>ticks</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Initialises and starts the System Tick Timer and its interrupt. After this call, the SysTick timer creates interrupts with the specified time interval. Counter is in free running mode to generate periodical interrupts.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">ticks</td><td>Number of ticks between two interrupts</td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>0 - success </dd> <dd> 1 - failure</dd></dl> <dl class="section note"><dt>Note</dt><dd>When <b>#define __Vendor_SysTickConfig</b> is set to 1, the standard function <b>SysTick_Config</b> is excluded. In this case, the file <b><em>device</em>.h</b> must contain a vendor specific implementation of this function. </dd></dl> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:25 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__SysTick__gr.html
HTML
apache-2.0
10,684
var group__SysTick__gr = [ [ "SysTick_Config", "group__SysTick__gr.html#gabe47de40e9b0ad465b752297a9d9f427", null ] ];
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__SysTick__gr.js
JavaScript
apache-2.0
122
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Cache Functions (only Cortex-M7)</title> <title>CMSIS-Core (Cortex-M): Cache Functions (only Cortex-M7)</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('group__cache__functions__m7.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="summary"> <a href="#groups">Content</a> </div> <div class="headertitle"> <div class="title">Cache Functions (only Cortex-M7)</div> </div> </div><!--header--> <div class="contents"> <p>Functions for Instruction and Data Cache. <a href="#details">More...</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a> Content</h2></td></tr> <tr class="memitem:group__Icache__functions__m7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Icache__functions__m7.html">I-Cache Functions</a></td></tr> <tr class="memdesc:group__Icache__functions__m7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Functions for the instruction cache. <br/></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:group__Dcache__functions__m7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Dcache__functions__m7.html">D-Cache Functions</a></td></tr> <tr class="memdesc:group__Dcache__functions__m7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Functions for the data cache. <br/></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Description</h2> <p>Cortex-M7 processors include a memory system, which includes an optional MPU and Harvard data and instruction cache with ECC. The optional CPU cache has an instruction and data cache with sizes of <span class="XML-Token">[0;4;8;16;32;64]KB</span>. Both instruction and data cache RAM can be configured at implementation time to have Error Correcting Code (ECC) to protect the data stored in the memory from errors.</p> <p>All cache maintenance operations are executed by writing to registers in the memory mapped System Control Space (SCS) region of the internal PPB memory space.</p> <dl class="section note"><dt>Note</dt><dd>After reset, you must invalidate each cache before enabling it.</dd></dl> <p>The functions are grouped for:</p> <ul> <li><a class="el" href="group__Icache__functions__m7.html">I-Cache Functions</a></li> <li><a class="el" href="group__Dcache__functions__m7.html">D-Cache Functions</a> </li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__cache__functions__m7.html
HTML
apache-2.0
8,242
var group__cache__functions__m7 = [ [ "I-Cache Functions", "group__Icache__functions__m7.html", "group__Icache__functions__m7" ], [ "D-Cache Functions", "group__Dcache__functions__m7.html", "group__Dcache__functions__m7" ] ];
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__cache__functions__m7.js
JavaScript
apache-2.0
233
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Compiler Control</title> <title>CMSIS-Core (Cortex-M): Compiler Control</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('group__compiler__conntrol__gr.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="summary"> <a href="#define-members">Macros</a> </div> <div class="headertitle"> <div class="title">Compiler Control</div> </div> </div><!--header--> <div class="contents"> <p>Compiler agnostic #define symbols for generic C/C++ source code. <a href="#details">More...</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> Macros</h2></td></tr> <tr class="memitem:ga8be4ebde5d4dd91b161d206545ce59aa"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#ga8be4ebde5d4dd91b161d206545ce59aa">__ARM_ARCH_6M__</a></td></tr> <tr class="memdesc:ga8be4ebde5d4dd91b161d206545ce59aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set to 1 when generating code for Armv6-M (Cortex-M0, Cortex-M1) <a href="#ga8be4ebde5d4dd91b161d206545ce59aa">More...</a><br/></td></tr> <tr class="separator:ga8be4ebde5d4dd91b161d206545ce59aa"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga43e1af8bedda108dfc4f8584e6b278a2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#ga43e1af8bedda108dfc4f8584e6b278a2">__ARM_ARCH_7M__</a></td></tr> <tr class="memdesc:ga43e1af8bedda108dfc4f8584e6b278a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set to 1 when generating code for Armv7-M (Cortex-M3) <a href="#ga43e1af8bedda108dfc4f8584e6b278a2">More...</a><br/></td></tr> <tr class="separator:ga43e1af8bedda108dfc4f8584e6b278a2"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga43ab3e79ec5ecb615f1f2f6e83e7d48a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#ga43ab3e79ec5ecb615f1f2f6e83e7d48a">__ARM_ARCH_7EM__</a></td></tr> <tr class="memdesc:ga43ab3e79ec5ecb615f1f2f6e83e7d48a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set to 1 when generating code for Armv7-M (Cortex-M4) with FPU. <a href="#ga43ab3e79ec5ecb615f1f2f6e83e7d48a">More...</a><br/></td></tr> <tr class="separator:ga43ab3e79ec5ecb615f1f2f6e83e7d48a"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gab3f1284f4cdc6c5e5c9c9d4b8ec29b2a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#gab3f1284f4cdc6c5e5c9c9d4b8ec29b2a">__ARM_ARCH_8M_BASE__</a></td></tr> <tr class="memdesc:gab3f1284f4cdc6c5e5c9c9d4b8ec29b2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set to 1 when generating code for Armv8-M Baseline. <a href="#gab3f1284f4cdc6c5e5c9c9d4b8ec29b2a">More...</a><br/></td></tr> <tr class="separator:gab3f1284f4cdc6c5e5c9c9d4b8ec29b2a"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gad424c7143edd08c982dddad0ff65f4cd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#gad424c7143edd08c982dddad0ff65f4cd">__ARM_ARCH_8M_MAIN__</a></td></tr> <tr class="memdesc:gad424c7143edd08c982dddad0ff65f4cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set to 1 when generating code for Armv8-M Mainline. <a href="#gad424c7143edd08c982dddad0ff65f4cd">More...</a><br/></td></tr> <tr class="separator:gad424c7143edd08c982dddad0ff65f4cd"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga1378040bcf22428955c6e3ce9c2053cd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#ga1378040bcf22428955c6e3ce9c2053cd">__ASM</a></td></tr> <tr class="memdesc:ga1378040bcf22428955c6e3ce9c2053cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pass information from the compiler to the assembler. <a href="#ga1378040bcf22428955c6e3ce9c2053cd">More...</a><br/></td></tr> <tr class="separator:ga1378040bcf22428955c6e3ce9c2053cd"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gade2d8d7118f8ff49547f60aa0c3382bb"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#gade2d8d7118f8ff49547f60aa0c3382bb">__INLINE</a></td></tr> <tr class="memdesc:gade2d8d7118f8ff49547f60aa0c3382bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Recommend that function should be inlined by the compiler. <a href="#gade2d8d7118f8ff49547f60aa0c3382bb">More...</a><br/></td></tr> <tr class="separator:gade2d8d7118f8ff49547f60aa0c3382bb"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaba87361bfad2ae52cfe2f40c1a1dbf9c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a></td></tr> <tr class="memdesc:gaba87361bfad2ae52cfe2f40c1a1dbf9c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Define a static function that may be inlined by the compiler. <a href="#gaba87361bfad2ae52cfe2f40c1a1dbf9c">More...</a><br/></td></tr> <tr class="separator:gaba87361bfad2ae52cfe2f40c1a1dbf9c"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gab904513442afdf77d4f8c74f23cbb040"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#gab904513442afdf77d4f8c74f23cbb040">__STATIC_FORCEINLINE</a></td></tr> <tr class="memdesc:gab904513442afdf77d4f8c74f23cbb040"><td class="mdescLeft">&#160;</td><td class="mdescRight">Define a static function that should be always inlined by the compiler. <a href="#gab904513442afdf77d4f8c74f23cbb040">More...</a><br/></td></tr> <tr class="separator:gab904513442afdf77d4f8c74f23cbb040"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga153a4a31b276a9758959580538720a51"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#ga153a4a31b276a9758959580538720a51">__NO_RETURN</a></td></tr> <tr class="memdesc:ga153a4a31b276a9758959580538720a51"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inform the compiler that a function does not return. <a href="#ga153a4a31b276a9758959580538720a51">More...</a><br/></td></tr> <tr class="separator:ga153a4a31b276a9758959580538720a51"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga378ac21329d33f561f90265eef89f564"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#ga378ac21329d33f561f90265eef89f564">__RESTRICT</a></td></tr> <tr class="memdesc:ga378ac21329d33f561f90265eef89f564"><td class="mdescLeft">&#160;</td><td class="mdescRight">restrict pointer qualifier to enable additional optimizations. <a href="#ga378ac21329d33f561f90265eef89f564">More...</a><br/></td></tr> <tr class="separator:ga378ac21329d33f561f90265eef89f564"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga3e40e4c553fc11588f7a4c2a19e789e0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#ga3e40e4c553fc11588f7a4c2a19e789e0">__USED</a></td></tr> <tr class="memdesc:ga3e40e4c553fc11588f7a4c2a19e789e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inform that a variable shall be retained in executable image. <a href="#ga3e40e4c553fc11588f7a4c2a19e789e0">More...</a><br/></td></tr> <tr class="separator:ga3e40e4c553fc11588f7a4c2a19e789e0"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gac607bf387b29162be6a9b77fc7999539"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#gac607bf387b29162be6a9b77fc7999539">__WEAK</a></td></tr> <tr class="memdesc:gac607bf387b29162be6a9b77fc7999539"><td class="mdescLeft">&#160;</td><td class="mdescRight">Export a function or variable weakly to allow overwrites. <a href="#gac607bf387b29162be6a9b77fc7999539">More...</a><br/></td></tr> <tr class="separator:gac607bf387b29162be6a9b77fc7999539"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gabe8996d3d985ee1529475443cc635bf1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#gabe8996d3d985ee1529475443cc635bf1">__PACKED</a></td></tr> <tr class="memdesc:gabe8996d3d985ee1529475443cc635bf1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Request smallest possible alignment. <a href="#gabe8996d3d985ee1529475443cc635bf1">More...</a><br/></td></tr> <tr class="separator:gabe8996d3d985ee1529475443cc635bf1"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga4dbb70fab85207c27b581ecb6532b314"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#ga4dbb70fab85207c27b581ecb6532b314">__PACKED_STRUCT</a></td></tr> <tr class="memdesc:ga4dbb70fab85207c27b581ecb6532b314"><td class="mdescLeft">&#160;</td><td class="mdescRight">Request smallest possible alignment for a structure. <a href="#ga4dbb70fab85207c27b581ecb6532b314">More...</a><br/></td></tr> <tr class="separator:ga4dbb70fab85207c27b581ecb6532b314"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga27fd2ec6767ca1ab66d36b5cc0103268"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#ga27fd2ec6767ca1ab66d36b5cc0103268">__UNALIGNED_UINT32</a></td></tr> <tr class="memdesc:ga27fd2ec6767ca1ab66d36b5cc0103268"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer for unaligned access of a uint32_t variable. <a href="#ga27fd2ec6767ca1ab66d36b5cc0103268">More...</a><br/></td></tr> <tr class="separator:ga27fd2ec6767ca1ab66d36b5cc0103268"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gabe8693a7200e573101551d49a1772fb9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#gabe8693a7200e573101551d49a1772fb9">__UNALIGNED_UINT16_READ</a></td></tr> <tr class="memdesc:gabe8693a7200e573101551d49a1772fb9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer for unaligned read of a uint16_t variable. <a href="#gabe8693a7200e573101551d49a1772fb9">More...</a><br/></td></tr> <tr class="separator:gabe8693a7200e573101551d49a1772fb9"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gadb9cd73446f7e11e92383cd327a23407"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#gadb9cd73446f7e11e92383cd327a23407">__UNALIGNED_UINT16_WRITE</a></td></tr> <tr class="memdesc:gadb9cd73446f7e11e92383cd327a23407"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer for unaligned write of a uint16_t variable. <a href="#gadb9cd73446f7e11e92383cd327a23407">More...</a><br/></td></tr> <tr class="separator:gadb9cd73446f7e11e92383cd327a23407"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga254322c344d954c9f829719a50a88e87"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#ga254322c344d954c9f829719a50a88e87">__UNALIGNED_UINT32_READ</a></td></tr> <tr class="memdesc:ga254322c344d954c9f829719a50a88e87"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer for unaligned read of a uint32_t variable. <a href="#ga254322c344d954c9f829719a50a88e87">More...</a><br/></td></tr> <tr class="separator:ga254322c344d954c9f829719a50a88e87"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gabb2180285c417aa9120a360c51f64b4b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#gabb2180285c417aa9120a360c51f64b4b">__UNALIGNED_UINT32_WRITE</a></td></tr> <tr class="memdesc:gabb2180285c417aa9120a360c51f64b4b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer for unaligned write of a uint32_t variable. <a href="#gabb2180285c417aa9120a360c51f64b4b">More...</a><br/></td></tr> <tr class="separator:gabb2180285c417aa9120a360c51f64b4b"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga0c58caa5a273e2c21924509a45f8b849"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#ga0c58caa5a273e2c21924509a45f8b849">__ALIGNED</a></td></tr> <tr class="memdesc:ga0c58caa5a273e2c21924509a45f8b849"><td class="mdescLeft">&#160;</td><td class="mdescRight">Minimum alignment for a variable. <a href="#ga0c58caa5a273e2c21924509a45f8b849">More...</a><br/></td></tr> <tr class="separator:ga0c58caa5a273e2c21924509a45f8b849"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga6f053389e2958b5a239a54d4e4047bf5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#ga6f053389e2958b5a239a54d4e4047bf5">__COMPILER_BARRIER</a></td></tr> <tr class="memdesc:ga6f053389e2958b5a239a54d4e4047bf5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Barrier to prevent compiler from reordering instructions. <a href="#ga6f053389e2958b5a239a54d4e4047bf5">More...</a><br/></td></tr> <tr class="separator:ga6f053389e2958b5a239a54d4e4047bf5"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga72db8b026c5e100254080fefabd9fd88"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#ga72db8b026c5e100254080fefabd9fd88">__PROGRAM_START</a></td></tr> <tr class="memdesc:ga72db8b026c5e100254080fefabd9fd88"><td class="mdescLeft">&#160;</td><td class="mdescRight">Entry function into the user application or library startup. <a href="#ga72db8b026c5e100254080fefabd9fd88">More...</a><br/></td></tr> <tr class="separator:ga72db8b026c5e100254080fefabd9fd88"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga1002e751427b1189f92787d4e4eef965"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#ga1002e751427b1189f92787d4e4eef965">__INITIAL_SP</a></td></tr> <tr class="memdesc:ga1002e751427b1189f92787d4e4eef965"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compiler/linker symbol specifiying the location of the main stack (MSP). <a href="#ga1002e751427b1189f92787d4e4eef965">More...</a><br/></td></tr> <tr class="separator:ga1002e751427b1189f92787d4e4eef965"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga84b0bad4aa39632d3faea46aa1e102a8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#ga84b0bad4aa39632d3faea46aa1e102a8">__STACK_LIMIT</a></td></tr> <tr class="memdesc:ga84b0bad4aa39632d3faea46aa1e102a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compiler/linker symbol specifiying the limit of the main stack (MSP). <a href="#ga84b0bad4aa39632d3faea46aa1e102a8">More...</a><br/></td></tr> <tr class="separator:ga84b0bad4aa39632d3faea46aa1e102a8"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gab94ebeb20055f1848d7b707d3c7cfc5d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#gab94ebeb20055f1848d7b707d3c7cfc5d">__VECTOR_TABLE</a></td></tr> <tr class="memdesc:gab94ebeb20055f1848d7b707d3c7cfc5d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Symbol name used for the (static) interrupt vector table. <a href="#gab94ebeb20055f1848d7b707d3c7cfc5d">More...</a><br/></td></tr> <tr class="separator:gab94ebeb20055f1848d7b707d3c7cfc5d"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga4f65c96effa79fbd610fea43ee7d745b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__compiler__conntrol__gr.html#ga4f65c96effa79fbd610fea43ee7d745b">__VECTOR_TABLE_ATTRIBUTE</a></td></tr> <tr class="memdesc:ga4f65c96effa79fbd610fea43ee7d745b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Additional decl specs to be used when defining the (static) interrupt vector table. <a href="#ga4f65c96effa79fbd610fea43ee7d745b">More...</a><br/></td></tr> <tr class="separator:ga4f65c96effa79fbd610fea43ee7d745b"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Description</h2> <p>The CMSIS-Core provides the header file <b>cmsis_compiler.h</b> with consistent #define symbols for generate C or C++ source files that should be compiler agnostic. Each CMSIS compliant compiler should support the functionality described in this section.</p> <p>The header file <b>cmsis_compiler.h</b> is also included by each <a class="el" href="device_h_pg.html">Device Header File &lt;device.h&gt;</a> so that these definitions are available. </p> <h2 class="groupheader">Macro Definition Documentation</h2> <a class="anchor" id="ga0c58caa5a273e2c21924509a45f8b849"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __ALIGNED</td> </tr> </table> </div><div class="memdoc"> <p>Specifies a minimum alignment for a variable or structure field, measured in bytes.</p> <p><b>Code Example:</b> </p> <div class="fragment"><div class="line">uint32_t stack_space[0x100] <a class="code" href="group__compiler__conntrol__gr.html#ga0c58caa5a273e2c21924509a45f8b849">__ALIGNED</a>(8); <span class="comment">// 8-byte alignment required</span></div> </div><!-- fragment --> </div> </div> <a class="anchor" id="ga8be4ebde5d4dd91b161d206545ce59aa"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __ARM_ARCH_6M__</td> </tr> </table> </div><div class="memdoc"> <p>The <b>#define <b>ARM_ARCH_6M</b></b> is set to 1 when generating code for the Armv6-M architecture. This architecture is for example used by the Cortex-M0, Cortex-M0+, and Cortex-M1 processor. </p> </div> </div> <a class="anchor" id="ga43ab3e79ec5ecb615f1f2f6e83e7d48a"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __ARM_ARCH_7EM__</td> </tr> </table> </div><div class="memdoc"> <p>The <b>#define <b>ARM_ARCH_7EM</b></b> is set to 1 when generating code for the Armv7-M architecture with floating point extension. This architecture is for example used by the Cortex-M4 processor with FPU </p> </div> </div> <a class="anchor" id="ga43e1af8bedda108dfc4f8584e6b278a2"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __ARM_ARCH_7M__</td> </tr> </table> </div><div class="memdoc"> <p>The <b>#define <b>ARM_ARCH_7M</b></b> is set to 1 when generating code for the Armv7-M architecture. This architecture is for example used by the Cortex-M3 processor. </p> </div> </div> <a class="anchor" id="gab3f1284f4cdc6c5e5c9c9d4b8ec29b2a"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __ARM_ARCH_8M_BASE__</td> </tr> </table> </div><div class="memdoc"> <p>The <b>#define <b>ARM_ARCH_8M_BASE</b></b> is set to 1 when generating code for the Armv8-M architecture baseline variant. </p> </div> </div> <a class="anchor" id="gad424c7143edd08c982dddad0ff65f4cd"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __ARM_ARCH_8M_MAIN__</td> </tr> </table> </div><div class="memdoc"> <p>The <b>#define <b>ARM_ARCH_8M_MAIN</b></b> is set to 1 when generating code for the Armv8-M architecture mainline variant. </p> </div> </div> <a class="anchor" id="ga1378040bcf22428955c6e3ce9c2053cd"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __ASM</td> </tr> </table> </div><div class="memdoc"> <p>The <b>__ASM</b> keyword can declare or define an embedded assembly function or incorporate inline assembly into a function (shown in the code example below).</p> <p><b>Code Example:</b> </p> <div class="fragment"><div class="line"><span class="comment">// Reverse bit order of value</span></div> <div class="line"> </div> <div class="line">__attribute__( ( always_inline ) ) <a class="code" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> uint32_t <a class="code" href="group__intrinsic__CPU__gr.html#gad6f9f297f6b91a995ee199fbc796b863">__RBIT</a>(uint32_t value)</div> <div class="line">{</div> <div class="line"> uint32_t result;</div> <div class="line"> </div> <div class="line"> <a class="code" href="group__compiler__conntrol__gr.html#ga1378040bcf22428955c6e3ce9c2053cd">__ASM</a> <span class="keyword">volatile</span> (<span class="stringliteral">&quot;rbit %0, %1&quot;</span> : <span class="stringliteral">&quot;=r&quot;</span> (result) : <span class="stringliteral">&quot;r&quot;</span> (value) );</div> <div class="line"> <span class="keywordflow">return</span>(result);</div> <div class="line">}</div> </div><!-- fragment --> </div> </div> <a class="anchor" id="ga6f053389e2958b5a239a54d4e4047bf5"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __COMPILER_BARRIER</td> </tr> </table> </div><div class="memdoc"> <p>This barrier limits the compilers reordering optimizations. It prevents the compiler from swapping instructions resulting from code before and after the barrier.</p> <p><b>Code Example:</b> The assignments in the example are independent. Hence the compiler could choose a different order of execution, e.g. for a better pipeline utilization. Using the barrier in between prevents this type of reordering.</p> <div class="fragment"><div class="line"><span class="keywordtype">void</span> test (uint8_t *ptr) {</div> <div class="line"> var1 = 1;</div> <div class="line"> __COMPILE_BARRIER();</div> <div class="line"> var2 = var3 + 1;</div> <div class="line">}</div> </div><!-- fragment --> </div> </div> <a class="anchor" id="ga1002e751427b1189f92787d4e4eef965"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __INITIAL_SP</td> </tr> </table> </div><div class="memdoc"> <p>The address of the specified symbol is used to initialize the main stack pointer (MSP) during low level init. This is compiler/linker specific. CMSIS specifies common default for supported compilers.</p> <dl class="section note"><dt>Note</dt><dd>This define is only intended to be used by the <a class="el" href="startup_c_pg.html">Startup File startup_&lt;device&gt;.c</a>. </dd></dl> </div> </div> <a class="anchor" id="gade2d8d7118f8ff49547f60aa0c3382bb"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __INLINE</td> </tr> </table> </div><div class="memdoc"> <p>Inline functions offer a trade-off between code size and performance. By default, the compiler decides during optimization whether to inline code or not. The <b>__INLINE</b> attribute gives the compiler an hint to inline this function. Still, the compiler may decide not to inline the function. As the function is global an callable function is also generated.</p> <p><b>Code Example:</b> </p> <div class="fragment"><div class="line"><span class="keyword">const</span> uint32_t led_mask[] = {1U &lt;&lt; 4, 1U &lt;&lt; 5, 1U &lt;&lt; 6, 1U &lt;&lt; 7};</div> <div class="line"> </div> <div class="line"><span class="comment">/*------------------------------------------------------------------------------</span></div> <div class="line"><span class="comment"> Switch on LEDs</span></div> <div class="line"><span class="comment"> *------------------------------------------------------------------------------*/</span></div> <div class="line"><a class="code" href="group__compiler__conntrol__gr.html#gade2d8d7118f8ff49547f60aa0c3382bb">__INLINE</a> <span class="keyword">static</span> <span class="keywordtype">void</span> LED_On (uint32_t led) {</div> <div class="line"> </div> <div class="line"> PTD-&gt;PCOR = led_mask[led];</div> <div class="line">}</div> </div><!-- fragment --> </div> </div> <a class="anchor" id="ga153a4a31b276a9758959580538720a51"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __NO_RETURN</td> </tr> </table> </div><div class="memdoc"> <p>Informs the compiler that the function does not return. The compiler can then perform optimizations by removing code that is never reached.</p> <p><b>Code Example:</b> </p> <div class="fragment"><div class="line"><span class="comment">// OS idle demon (running when no other thread is ready to run).</span></div> <div class="line"> </div> <div class="line"><a class="code" href="group__compiler__conntrol__gr.html#ga153a4a31b276a9758959580538720a51">__NO_RETURN</a> <span class="keywordtype">void</span> os_idle_demon (<span class="keywordtype">void</span>);</div> </div><!-- fragment --> </div> </div> <a class="anchor" id="gabe8996d3d985ee1529475443cc635bf1"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __PACKED</td> </tr> </table> </div><div class="memdoc"> <p>Specifies that a type must have the smallest possible alignment.</p> <p><b>Code Example:</b> </p> <div class="fragment"><div class="line"><span class="keyword">struct </span>foo {</div> <div class="line"> uint8_t u8;</div> <div class="line"> uint32_t u32[2] <a class="code" href="group__compiler__conntrol__gr.html#gabe8996d3d985ee1529475443cc635bf1">__PACKED</a>;</div> <div class="line">};</div> </div><!-- fragment --> </div> </div> <a class="anchor" id="ga4dbb70fab85207c27b581ecb6532b314"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __PACKED_STRUCT</td> </tr> </table> </div><div class="memdoc"> <p>Specifies that a structure must have the smallest possible alignment.</p> <p><b>Code Example:</b> </p> <div class="fragment"><div class="line"><a class="code" href="group__compiler__conntrol__gr.html#ga4dbb70fab85207c27b581ecb6532b314">__PACKED_STRUCT</a> foo {</div> <div class="line"> uint8_t u8;</div> <div class="line"> uint32_t u32;</div> <div class="line"> uint16_t u16;</div> <div class="line">};</div> </div><!-- fragment --> </div> </div> <a class="anchor" id="ga72db8b026c5e100254080fefabd9fd88"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __PROGRAM_START</td> </tr> </table> </div><div class="memdoc"> <p>Gives the function to be jumped into right after low level initialization, i.e. SystemInit. This is compiler and library specific. CMSIS specifies common default for supported compilers.</p> <dl class="section note"><dt>Note</dt><dd>This define is only intended to be used by the <a class="el" href="startup_c_pg.html">Startup File startup_&lt;device&gt;.c</a>.</dd></dl> <p><b>Code Example:</b> </p> <div class="fragment"><div class="line"><span class="keywordtype">void</span> Reset_Handler(<span class="keywordtype">void</span>)</div> <div class="line">{</div> <div class="line"> <a class="code" href="group__system__init__gr.html#ga93f514700ccf00d08dbdcff7f1224eb2">SystemInit</a>(); <span class="comment">/* CMSIS System Initialization */</span></div> <div class="line"> <a class="code" href="group__compiler__conntrol__gr.html#ga72db8b026c5e100254080fefabd9fd88">__PROGRAM_START</a>(); <span class="comment">/* Enter PreMain (C library entry point) */</span></div> <div class="line">}</div> </div><!-- fragment --> </div> </div> <a class="anchor" id="ga378ac21329d33f561f90265eef89f564"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __RESTRICT</td> </tr> </table> </div><div class="memdoc"> <p>The __RESTRICT keyword corresponds to the <b>restrict</b> pointer qualifier that has been introduced in C99. __RESTRICT is a hint to the compiler that enables additional optimizations. It specifies that for the lifetime of the pointer, only the pointer itself or a value directly derived from it (such as pointer + 1) is used to access the object. The compiler may therefore ignore potential pointer aliasing effects and perform additional optimizations.</p> <dl class="section note"><dt>Note</dt><dd>For compilers that do not support the restrict keyword, __RESTRICT is defined as an empty macro and a warning is issued.</dd></dl> <p><b>Code Example:</b> </p> <div class="fragment"><div class="line"><a class="code" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="group__mpu__functions.html#gac1a949403bf84eecaf407003fb553ae7">ARM_MPU_OrderedMemcpy</a> (<span class="keyword">volatile</span> uint32_t* dst, <span class="keyword">const</span> uint32_t* <a class="code" href="group__compiler__conntrol__gr.html#ga378ac21329d33f561f90265eef89f564">__RESTRICT</a> src, uint32_t len)</div> <div class="line">{</div> <div class="line"> uint32_t i;</div> <div class="line"> <span class="keywordflow">for</span> (i = 0U; i &lt; len; ++i) </div> <div class="line"> {</div> <div class="line"> dst[i] = src[i]; <span class="comment">// Since src is restrict, the compiler can assume that dst and src are not overlapping may load multiple values at a time</span></div> <div class="line"> }</div> <div class="line">}</div> </div><!-- fragment --> </div> </div> <a class="anchor" id="ga84b0bad4aa39632d3faea46aa1e102a8"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __STACK_LIMIT</td> </tr> </table> </div><div class="memdoc"> <p>The address of the specified symbol is used to initialize the main stack pointer limit (MSPLIM on Armv8-M) during low level init. This is compiler/linker specific. CMSIS specifies common default for supported compilers.</p> <dl class="section note"><dt>Note</dt><dd>This define is only intended to be used by the <a class="el" href="startup_c_pg.html">Startup File startup_&lt;device&gt;.c</a>.</dd></dl> <p><b>Code Example:</b> </p> <div class="fragment"><div class="line"><span class="keywordtype">void</span> Reset_Handler(<span class="keywordtype">void</span>)</div> <div class="line">{</div> <div class="line"> <a class="code" href="group__Core__Register__gr.html#ga6809a07c5cb7410e361f3fba57f72172">__set_MSPLIM</a>((uint32_t)(&amp;<a class="code" href="group__compiler__conntrol__gr.html#ga84b0bad4aa39632d3faea46aa1e102a8">__STACK_LIMIT</a>));</div> <div class="line"> <span class="comment">// :</span></div> <div class="line"> <span class="comment">// :</span></div> <div class="line">}</div> </div><!-- fragment --> </div> </div> <a class="anchor" id="gab904513442afdf77d4f8c74f23cbb040"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __STATIC_FORCEINLINE</td> </tr> </table> </div><div class="memdoc"> <p>Defines a static function that should be always inlined by the compiler.</p> <dl class="section note"><dt>Note</dt><dd>For compilers that do not allow to force function inlining, the macro maps to <a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a>.</dd></dl> <p><b>Code Example:</b> </p> <div class="fragment"><div class="line">\\ Get Interrupt Vector</div> <div class="line"><a class="code" href="group__compiler__conntrol__gr.html#gab904513442afdf77d4f8c74f23cbb040">__STATIC_FORCEINLINE</a> uint32_t <a class="code" href="group__NVIC__gr.html#gaebee9cad6724a5bac1857f0f1fb6d6af">NVIC_GetVector</a>(<a class="code" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a> IRQn)</div> <div class="line">{</div> <div class="line"> uint32_t *vectors = (uint32_t *)SCB-&gt;VTOR;</div> <div class="line"> <span class="keywordflow">return</span> vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET];</div> <div class="line">}</div> </div><!-- fragment --> </div> </div> <a class="anchor" id="gaba87361bfad2ae52cfe2f40c1a1dbf9c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __STATIC_INLINE</td> </tr> </table> </div><div class="memdoc"> <p>Defines a static function that may be inlined by the compiler. If the compiler generates inline code for all calls to this functions, no additional function implementation is generated which may further optimize space.</p> <p><b>Code Example:</b> </p> <div class="fragment"><div class="line">\\ Get Interrupt Vector</div> <div class="line"><a class="code" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> uint32_t <a class="code" href="group__NVIC__gr.html#gaebee9cad6724a5bac1857f0f1fb6d6af">NVIC_GetVector</a>(<a class="code" href="group__NVIC__gr.html#ga7e1129cd8a196f4284d41db3e82ad5c8">IRQn_Type</a> IRQn)</div> <div class="line">{</div> <div class="line"> uint32_t *vectors = (uint32_t *)SCB-&gt;VTOR;</div> <div class="line"> <span class="keywordflow">return</span> vectors[(int32_t)IRQn + NVIC_USER_IRQ_OFFSET];</div> <div class="line">}</div> </div><!-- fragment --> </div> </div> <a class="anchor" id="gabe8693a7200e573101551d49a1772fb9"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __UNALIGNED_UINT16_READ</td> </tr> </table> </div><div class="memdoc"> <p>Defines a pointer to a uint16_t from an address that does not need to be aligned. This can then be used in read operations. The compiler will generate the appropriate access (aligned or non-aligned) depending on the underlying Arm processor core and compiler settings.</p> <p><b>Code Example:</b> </p> <div class="fragment"><div class="line">uint16_t val16;</div> <div class="line"> </div> <div class="line"><span class="keywordtype">void</span> test (uint8_t *ptr) {</div> <div class="line"> val16 = <a class="code" href="group__compiler__conntrol__gr.html#gabe8693a7200e573101551d49a1772fb9">__UNALIGNED_UINT16_READ</a>(ptr);</div> <div class="line">}</div> </div><!-- fragment --> </div> </div> <a class="anchor" id="gadb9cd73446f7e11e92383cd327a23407"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __UNALIGNED_UINT16_WRITE</td> </tr> </table> </div><div class="memdoc"> <p>Defines a pointer to a uint16_t from an address that does not need to be aligned. This can then be used in write operations. The compiler will generate the appropriate access (aligned or non-aligned) depending on the underlying Arm processor core and compiler settings.</p> <p><b>Code Example:</b> </p> <div class="fragment"><div class="line">uint16_t val16 = 0U;</div> <div class="line"> </div> <div class="line"><span class="keywordtype">void</span> test (uint8_t *ptr) {</div> <div class="line"> <a class="code" href="group__compiler__conntrol__gr.html#gadb9cd73446f7e11e92383cd327a23407">__UNALIGNED_UINT16_WRITE</a>(ptr, val16);</div> <div class="line">}</div> </div><!-- fragment --> </div> </div> <a class="anchor" id="ga27fd2ec6767ca1ab66d36b5cc0103268"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __UNALIGNED_UINT32</td> </tr> </table> </div><div class="memdoc"> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000001">Deprecated:</a></b></dt><dd>Do not use this macro. It has been superseded by <a class="el" href="group__compiler__conntrol__gr.html#ga254322c344d954c9f829719a50a88e87">__UNALIGNED_UINT32_READ</a>, <a class="el" href="group__compiler__conntrol__gr.html#gabb2180285c417aa9120a360c51f64b4b">__UNALIGNED_UINT32_WRITE</a> and will be removed in the future.</dd></dl> <p>Defines a pointer to a uint32_t from an address that does not need to be aligned. This can then be used in read/write operations. The compiler will generate the appropriate access (aligned or non-aligned) depending on the underlying Arm processor core and compiler settings.</p> <p><b>Code Example:</b> </p> <div class="fragment"><div class="line">uint32_t val32;</div> <div class="line"> </div> <div class="line"><span class="keywordtype">void</span> test (uint8_t *ptr) {</div> <div class="line"> <a class="code" href="group__compiler__conntrol__gr.html#ga27fd2ec6767ca1ab66d36b5cc0103268">__UNALIGNED_UINT32</a>(ptr) = val32;</div> <div class="line">}</div> </div><!-- fragment --> </div> </div> <a class="anchor" id="ga254322c344d954c9f829719a50a88e87"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __UNALIGNED_UINT32_READ</td> </tr> </table> </div><div class="memdoc"> <p>Defines a pointer to a uint32_t from an address that does not need to be aligned. This can then be used in read operations. The compiler will generate the appropriate access (aligned or non-aligned) depending on the underlying Arm processor core and compiler settings.</p> <p><b>Code Example:</b> </p> <div class="fragment"><div class="line">uint32_t val32;</div> <div class="line"> </div> <div class="line"><span class="keywordtype">void</span> test (uint8_t *ptr) {</div> <div class="line"> val32 = <a class="code" href="group__compiler__conntrol__gr.html#ga254322c344d954c9f829719a50a88e87">__UNALIGNED_UINT32_READ</a>(ptr);</div> <div class="line">}</div> </div><!-- fragment --> </div> </div> <a class="anchor" id="gabb2180285c417aa9120a360c51f64b4b"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __UNALIGNED_UINT32_WRITE</td> </tr> </table> </div><div class="memdoc"> <p>Defines a pointer to a uint32_t from an address that does not need to be aligned. This can then be used in write operations. The compiler will generate the appropriate access (aligned or non-aligned) depending on the underlying Arm processor core and compiler settings.</p> <p><b>Code Example:</b> </p> <div class="fragment"><div class="line">uint32_t val32 = 0U;</div> <div class="line"> </div> <div class="line"><span class="keywordtype">void</span> test (uint8_t *ptr) {</div> <div class="line"> <a class="code" href="group__compiler__conntrol__gr.html#gabb2180285c417aa9120a360c51f64b4b">__UNALIGNED_UINT32_WRITE</a>(ptr, val32);</div> <div class="line">}</div> </div><!-- fragment --> </div> </div> <a class="anchor" id="ga3e40e4c553fc11588f7a4c2a19e789e0"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __USED</td> </tr> </table> </div><div class="memdoc"> <p>Definitions tagged with <b>__USED</b> in the source code should be not removed by the linker when detected as unused.</p> <p><b>Code Example:</b> </p> <div class="fragment"><div class="line"><span class="comment">/* Export following variables for debugging */</span></div> <div class="line"><a class="code" href="group__compiler__conntrol__gr.html#ga3e40e4c553fc11588f7a4c2a19e789e0">__USED</a> uint32_t <span class="keyword">const</span> CMSIS_RTOS_API_Version = osCMSIS;</div> <div class="line"><a class="code" href="group__compiler__conntrol__gr.html#ga3e40e4c553fc11588f7a4c2a19e789e0">__USED</a> uint32_t <span class="keyword">const</span> CMSIS_RTOS_RTX_Version = osCMSIS_RTX;</div> <div class="line"><a class="code" href="group__compiler__conntrol__gr.html#ga3e40e4c553fc11588f7a4c2a19e789e0">__USED</a> uint32_t <span class="keyword">const</span> os_clockrate = OS_TICK;</div> <div class="line"><a class="code" href="group__compiler__conntrol__gr.html#ga3e40e4c553fc11588f7a4c2a19e789e0">__USED</a> uint32_t <span class="keyword">const</span> os_timernum = 0;</div> </div><!-- fragment --> </div> </div> <a class="anchor" id="gab94ebeb20055f1848d7b707d3c7cfc5d"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __VECTOR_TABLE</td> </tr> </table> </div><div class="memdoc"> <p>The given name is used for defining the static (compiler time) interrupt vector table. The name must comply with any compiler/linker conventions, e.g. if used for vector table relocation or debugger awareness. CMSIS specifies common default for supported compilers.</p> <dl class="section note"><dt>Note</dt><dd>This define is only intended to be used by the <a class="el" href="startup_c_pg.html">Startup File startup_&lt;device&gt;.c</a>. </dd></dl> </div> </div> <a class="anchor" id="ga4f65c96effa79fbd610fea43ee7d745b"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __VECTOR_TABLE_ATTRIBUTE</td> </tr> </table> </div><div class="memdoc"> <p>The given decl specs are used for defining the static (compiler time) interrupt vector table, e.g. to mark the table as used and force it into a specific linker section. CMSIS specifies common default for supported compilers.</p> <dl class="section note"><dt>Note</dt><dd>This define is only intended to be used by the <a class="el" href="startup_c_pg.html">Startup File startup_&lt;device&gt;.c</a>. </dd></dl> </div> </div> <a class="anchor" id="gac607bf387b29162be6a9b77fc7999539"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define __WEAK</td> </tr> </table> </div><div class="memdoc"> <p>Functions defined with <b>__WEAK</b> export their symbols weakly. A weakly defined function behaves like a normally defined function unless a non-weakly defined function of the same name is linked into the same image. If both a non-weakly defined function and a weakly defined function exist in the same image then all calls to the function resolve to call the non-weak function.</p> <p>Functions declared with <b>__WEAK</b> and then defined without <b>__WEAK</b> behave as non-weak functions.</p> <p><b>Code Example:</b> </p> <div class="fragment"><div class="line"><a class="code" href="group__compiler__conntrol__gr.html#gac607bf387b29162be6a9b77fc7999539">__WEAK</a> <span class="keywordtype">void</span> <a class="code" href="group__system__init__gr.html#ga93f514700ccf00d08dbdcff7f1224eb2">SystemInit</a>(<span class="keywordtype">void</span>)</div> <div class="line">{</div> <div class="line"> SystemCoreSetup();</div> <div class="line"> SystemCoreClockSetup(); </div> <div class="line">}</div> </div><!-- fragment --> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:25 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__compiler__conntrol__gr.html
HTML
apache-2.0
50,652
var group__compiler__conntrol__gr = [ [ "__ALIGNED", "group__compiler__conntrol__gr.html#ga0c58caa5a273e2c21924509a45f8b849", null ], [ "__ARM_ARCH_6M__", "group__compiler__conntrol__gr.html#ga8be4ebde5d4dd91b161d206545ce59aa", null ], [ "__ARM_ARCH_7EM__", "group__compiler__conntrol__gr.html#ga43ab3e79ec5ecb615f1f2f6e83e7d48a", null ], [ "__ARM_ARCH_7M__", "group__compiler__conntrol__gr.html#ga43e1af8bedda108dfc4f8584e6b278a2", null ], [ "__ARM_ARCH_8M_BASE__", "group__compiler__conntrol__gr.html#gab3f1284f4cdc6c5e5c9c9d4b8ec29b2a", null ], [ "__ARM_ARCH_8M_MAIN__", "group__compiler__conntrol__gr.html#gad424c7143edd08c982dddad0ff65f4cd", null ], [ "__ASM", "group__compiler__conntrol__gr.html#ga1378040bcf22428955c6e3ce9c2053cd", null ], [ "__COMPILER_BARRIER", "group__compiler__conntrol__gr.html#ga6f053389e2958b5a239a54d4e4047bf5", null ], [ "__INITIAL_SP", "group__compiler__conntrol__gr.html#ga1002e751427b1189f92787d4e4eef965", null ], [ "__INLINE", "group__compiler__conntrol__gr.html#gade2d8d7118f8ff49547f60aa0c3382bb", null ], [ "__NO_RETURN", "group__compiler__conntrol__gr.html#ga153a4a31b276a9758959580538720a51", null ], [ "__PACKED", "group__compiler__conntrol__gr.html#gabe8996d3d985ee1529475443cc635bf1", null ], [ "__PACKED_STRUCT", "group__compiler__conntrol__gr.html#ga4dbb70fab85207c27b581ecb6532b314", null ], [ "__PROGRAM_START", "group__compiler__conntrol__gr.html#ga72db8b026c5e100254080fefabd9fd88", null ], [ "__RESTRICT", "group__compiler__conntrol__gr.html#ga378ac21329d33f561f90265eef89f564", null ], [ "__STACK_LIMIT", "group__compiler__conntrol__gr.html#ga84b0bad4aa39632d3faea46aa1e102a8", null ], [ "__STATIC_FORCEINLINE", "group__compiler__conntrol__gr.html#gab904513442afdf77d4f8c74f23cbb040", null ], [ "__STATIC_INLINE", "group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c", null ], [ "__UNALIGNED_UINT16_READ", "group__compiler__conntrol__gr.html#gabe8693a7200e573101551d49a1772fb9", null ], [ "__UNALIGNED_UINT16_WRITE", "group__compiler__conntrol__gr.html#gadb9cd73446f7e11e92383cd327a23407", null ], [ "__UNALIGNED_UINT32", "group__compiler__conntrol__gr.html#ga27fd2ec6767ca1ab66d36b5cc0103268", null ], [ "__UNALIGNED_UINT32_READ", "group__compiler__conntrol__gr.html#ga254322c344d954c9f829719a50a88e87", null ], [ "__UNALIGNED_UINT32_WRITE", "group__compiler__conntrol__gr.html#gabb2180285c417aa9120a360c51f64b4b", null ], [ "__USED", "group__compiler__conntrol__gr.html#ga3e40e4c553fc11588f7a4c2a19e789e0", null ], [ "__VECTOR_TABLE", "group__compiler__conntrol__gr.html#gab94ebeb20055f1848d7b707d3c7cfc5d", null ], [ "__VECTOR_TABLE_ATTRIBUTE", "group__compiler__conntrol__gr.html#ga4f65c96effa79fbd610fea43ee7d745b", null ], [ "__WEAK", "group__compiler__conntrol__gr.html#gac607bf387b29162be6a9b77fc7999539", null ] ];
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__compiler__conntrol__gr.js
JavaScript
apache-2.0
2,903
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>RTOS Context Management</title> <title>CMSIS-Core (Cortex-M): RTOS Context Management</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('group__context__trustzone__functions.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">RTOS Context Management<div class="ingroups"><a class="el" href="group__trustzone__functions.html">TrustZone for Armv8-M/v8.1-M</a></div></div> </div> </div><!--header--> <div class="contents"> <p>RTOS Thread Context Management for Armv8-M TrustZone. <a href="#details">More...</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:ga926e2ec472535a6d2b8125be1a79e3c0"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__context__trustzone__functions.html#ga926e2ec472535a6d2b8125be1a79e3c0">TZ_InitContextSystem_S</a> (void)</td></tr> <tr class="memdesc:ga926e2ec472535a6d2b8125be1a79e3c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize secure context memory system. <a href="#ga926e2ec472535a6d2b8125be1a79e3c0">More...</a><br/></td></tr> <tr class="separator:ga926e2ec472535a6d2b8125be1a79e3c0"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gacd016f166bee549a0d3e970132e64a90"><td class="memItemLeft" align="right" valign="top">TZ_MemoryId_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__context__trustzone__functions.html#gacd016f166bee549a0d3e970132e64a90">TZ_AllocModuleContext_S</a> (TZ_ModuleId_t module)</td></tr> <tr class="memdesc:gacd016f166bee549a0d3e970132e64a90"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocate context memory for calling secure software modules in TrustZone. <a href="#gacd016f166bee549a0d3e970132e64a90">More...</a><br/></td></tr> <tr class="separator:gacd016f166bee549a0d3e970132e64a90"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gac84f678fbe974f8b02c683e0b8046524"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__context__trustzone__functions.html#gac84f678fbe974f8b02c683e0b8046524">TZ_FreeModuleContext_S</a> (TZ_MemoryId_t id)</td></tr> <tr class="memdesc:gac84f678fbe974f8b02c683e0b8046524"><td class="mdescLeft">&#160;</td><td class="mdescRight">Free context memory that was previously allocated with <a class="el" href="group__context__trustzone__functions.html#gacd016f166bee549a0d3e970132e64a90">TZ_AllocModuleContext_S</a>. <a href="#gac84f678fbe974f8b02c683e0b8046524">More...</a><br/></td></tr> <tr class="separator:gac84f678fbe974f8b02c683e0b8046524"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga4748f6bcdd5fed279ac5a6cd7eca2689"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__context__trustzone__functions.html#ga4748f6bcdd5fed279ac5a6cd7eca2689">TZ_LoadContext_S</a> (TZ_MemoryId_t id)</td></tr> <tr class="memdesc:ga4748f6bcdd5fed279ac5a6cd7eca2689"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load secure context (called on RTOS thread context switch) <a href="#ga4748f6bcdd5fed279ac5a6cd7eca2689">More...</a><br/></td></tr> <tr class="separator:ga4748f6bcdd5fed279ac5a6cd7eca2689"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gac106570f4905f82922fd335aeb08a1bf"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__context__trustzone__functions.html#gac106570f4905f82922fd335aeb08a1bf">TZ_StoreContext_S</a> (TZ_MemoryId_t id)</td></tr> <tr class="memdesc:gac106570f4905f82922fd335aeb08a1bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Store secure context (called on RTOS thread context switch) <a href="#gac106570f4905f82922fd335aeb08a1bf">More...</a><br/></td></tr> <tr class="separator:gac106570f4905f82922fd335aeb08a1bf"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Description</h2> <p>The CMSIS-Core provides the file <b>tz_context.h</b> which defines an API to standardize the context memory system for real-time operating systems. For more information refer to <a class="el" href="using_TrustZone_pg.html#RTOS_TrustZone">RTOS Thread Context Management</a>. </p> <h2 class="groupheader">Function Documentation</h2> <a class="anchor" id="gacd016f166bee549a0d3e970132e64a90"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">TZ_MemoryId_t TZ_AllocModuleContext_S </td> <td>(</td> <td class="paramtype">TZ_ModuleId_t&#160;</td> <td class="paramname"><em>module</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Allocates the secure memory regions for thread execution. The parameter <em>module</em> describes the set of secure functions that are called by the non-secure thread. Set <em>module</em> to zero if no secure calls are used/allowed. This leads to no secure memory to be assigned which results in zero being returned as memory id as well. This function should be called by an RTOS kernel at the start of a thread. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">module</td><td>A non-zero value identifies software modules called from non-secure mode. zero is used if no secure calls are used/allowed. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>value != 0 id TrustZone memory slot identify </dd> <dd> value 0 no memory available or internal error </dd></dl> </div> </div> <a class="anchor" id="gac84f678fbe974f8b02c683e0b8046524"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t TZ_FreeModuleContext_S </td> <td>(</td> <td class="paramtype">TZ_MemoryId_t&#160;</td> <td class="paramname"><em>id</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>De-allocates the secure memory regions. The parameter <em>id</em> refers to a TrustZone memory slot that has been obtained with <a class="el" href="group__context__trustzone__functions.html#gacd016f166bee549a0d3e970132e64a90">TZ_AllocModuleContext_S</a>. This function should be called by an RTOS kernel at the termination of a thread. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">id</td><td>TrustZone memory slot identifier </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>execution status (1: success, 0: error) </dd></dl> </div> </div> <a class="anchor" id="ga926e2ec472535a6d2b8125be1a79e3c0"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t TZ_InitContextSystem_S </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Initializes the memory allocation management for the secure memory regions. As a minimum the secure thread mode stack will be provided. </p> <dl class="section return"><dt>Returns</dt><dd>execution status (1: success, 0: error) </dd></dl> </div> </div> <a class="anchor" id="ga4748f6bcdd5fed279ac5a6cd7eca2689"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t TZ_LoadContext_S </td> <td>(</td> <td class="paramtype">TZ_MemoryId_t&#160;</td> <td class="paramname"><em>id</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Prepare the secure context for execution so that a thread in the non-secure state can call secure library modules. The parameter <em>id</em> refers to a TrustZone memory slot that has been obtained with <a class="el" href="group__context__trustzone__functions.html#gacd016f166bee549a0d3e970132e64a90">TZ_AllocModuleContext_S</a> which might be zero if not used. This function should be called by an RTOS kernel at thread context switch before running a thread. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">id</td><td>TrustZone memory slot identifier </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>execution status (1: success, 0: error) </dd></dl> </div> </div> <a class="anchor" id="gac106570f4905f82922fd335aeb08a1bf"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t TZ_StoreContext_S </td> <td>(</td> <td class="paramtype">TZ_MemoryId_t&#160;</td> <td class="paramname"><em>id</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Free the secure context that has been previously loaded with <a class="el" href="group__context__trustzone__functions.html#ga4748f6bcdd5fed279ac5a6cd7eca2689">TZ_LoadContext_S</a>. The parameter <em>id</em> refers to a TrustZone memory slot that has been obtained with <a class="el" href="group__context__trustzone__functions.html#gacd016f166bee549a0d3e970132e64a90">TZ_AllocModuleContext_S</a> which might be zero if not used. This function should be called by an RTOS kernel at thread context switch after running a thread. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">id</td><td>TrustZone memory slot identifier </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>execution status (1: success, 0: error) </dd></dl> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:26 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__context__trustzone__functions.html
HTML
apache-2.0
15,919
var group__context__trustzone__functions = [ [ "TZ_AllocModuleContext_S", "group__context__trustzone__functions.html#gacd016f166bee549a0d3e970132e64a90", null ], [ "TZ_FreeModuleContext_S", "group__context__trustzone__functions.html#gac84f678fbe974f8b02c683e0b8046524", null ], [ "TZ_InitContextSystem_S", "group__context__trustzone__functions.html#ga926e2ec472535a6d2b8125be1a79e3c0", null ], [ "TZ_LoadContext_S", "group__context__trustzone__functions.html#ga4748f6bcdd5fed279ac5a6cd7eca2689", null ], [ "TZ_StoreContext_S", "group__context__trustzone__functions.html#gac106570f4905f82922fd335aeb08a1bf", null ] ];
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__context__trustzone__functions.js
JavaScript
apache-2.0
636
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Core Register Access Functions</title> <title>CMSIS-Core (Cortex-M): Core Register Access Functions</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('group__coreregister__trustzone__functions.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">Core Register Access Functions<div class="ingroups"><a class="el" href="group__trustzone__functions.html">TrustZone for Armv8-M/v8.1-M</a></div></div> </div> </div><!--header--> <div class="contents"> <p>Core register Access functions related to TrustZone for Armv8-M. <a href="#details">More...</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:ga27bf1f88e794c30808ee73a29d46e358"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreregister__trustzone__functions.html#ga27bf1f88e794c30808ee73a29d46e358">__TZ_get_CONTROL_NS</a> (void)</td></tr> <tr class="memdesc:ga27bf1f88e794c30808ee73a29d46e358"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Control register (non-secure) <a href="#ga27bf1f88e794c30808ee73a29d46e358">More...</a><br/></td></tr> <tr class="separator:ga27bf1f88e794c30808ee73a29d46e358"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga3eb150204e6d389d5b49065179b9cde5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreregister__trustzone__functions.html#ga3eb150204e6d389d5b49065179b9cde5">__TZ_set_CONTROL_NS</a> (uint32_t control)</td></tr> <tr class="memdesc:ga3eb150204e6d389d5b49065179b9cde5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Control register (non-secure) <a href="#ga3eb150204e6d389d5b49065179b9cde5">More...</a><br/></td></tr> <tr class="separator:ga3eb150204e6d389d5b49065179b9cde5"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga40ff8336c6d09af6da1081d4e4adc126"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreregister__trustzone__functions.html#ga40ff8336c6d09af6da1081d4e4adc126">__TZ_get_PSP_NS</a> (void)</td></tr> <tr class="memdesc:ga40ff8336c6d09af6da1081d4e4adc126"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Process Stack Pointer (non-secure) <a href="#ga40ff8336c6d09af6da1081d4e4adc126">More...</a><br/></td></tr> <tr class="separator:ga40ff8336c6d09af6da1081d4e4adc126"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaea8db21c00cfa4144ee74dc65dbd7580"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreregister__trustzone__functions.html#gaea8db21c00cfa4144ee74dc65dbd7580">__TZ_set_PSP_NS</a> (uint32_t topOfProcStack)</td></tr> <tr class="memdesc:gaea8db21c00cfa4144ee74dc65dbd7580"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Process Stack Pointer (non-secure) <a href="#gaea8db21c00cfa4144ee74dc65dbd7580">More...</a><br/></td></tr> <tr class="separator:gaea8db21c00cfa4144ee74dc65dbd7580"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gab3aa15eb4f352e230b9f7a3e8856a9e9"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreregister__trustzone__functions.html#gab3aa15eb4f352e230b9f7a3e8856a9e9">__TZ_get_MSP_NS</a> (void)</td></tr> <tr class="memdesc:gab3aa15eb4f352e230b9f7a3e8856a9e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Main Stack Pointer (non-secure) <a href="#gab3aa15eb4f352e230b9f7a3e8856a9e9">More...</a><br/></td></tr> <tr class="separator:gab3aa15eb4f352e230b9f7a3e8856a9e9"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga41c3ac2d9af23c40647c053ad7d564e7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreregister__trustzone__functions.html#ga41c3ac2d9af23c40647c053ad7d564e7">__TZ_set_MSP_NS</a> (uint32_t topOfMainStack)</td></tr> <tr class="memdesc:ga41c3ac2d9af23c40647c053ad7d564e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Main Stack Pointer (non-secure) <a href="#ga41c3ac2d9af23c40647c053ad7d564e7">More...</a><br/></td></tr> <tr class="separator:ga41c3ac2d9af23c40647c053ad7d564e7"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaaaf2aaf904b25ed17fd3e5e63f8e029b"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreregister__trustzone__functions.html#gaaaf2aaf904b25ed17fd3e5e63f8e029b">__TZ_get_SP_NS</a> (void)</td></tr> <tr class="memdesc:gaaaf2aaf904b25ed17fd3e5e63f8e029b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Stack Pointer (non-secure) <a href="#gaaaf2aaf904b25ed17fd3e5e63f8e029b">More...</a><br/></td></tr> <tr class="separator:gaaaf2aaf904b25ed17fd3e5e63f8e029b"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gab7263167cb006aeeb04b68e579dae015"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreregister__trustzone__functions.html#gab7263167cb006aeeb04b68e579dae015">__TZ_set_SP_NS</a> (uint32_t topOfStack)</td></tr> <tr class="memdesc:gab7263167cb006aeeb04b68e579dae015"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Stack Pointer (non-secure) <a href="#gab7263167cb006aeeb04b68e579dae015">More...</a><br/></td></tr> <tr class="separator:gab7263167cb006aeeb04b68e579dae015"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga7cc3271c79e619f8838e8767df3cb509"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreregister__trustzone__functions.html#ga7cc3271c79e619f8838e8767df3cb509">__TZ_get_PRIMASK_NS</a> (void)</td></tr> <tr class="memdesc:ga7cc3271c79e619f8838e8767df3cb509"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Priority Mask (non-secure) <a href="#ga7cc3271c79e619f8838e8767df3cb509">More...</a><br/></td></tr> <tr class="separator:ga7cc3271c79e619f8838e8767df3cb509"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga6686c2ab5756b5049fad1644e89b3340"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreregister__trustzone__functions.html#ga6686c2ab5756b5049fad1644e89b3340">__TZ_set_PRIMASK_NS</a> (uint32_t priMask)</td></tr> <tr class="memdesc:ga6686c2ab5756b5049fad1644e89b3340"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Priority Mask (non-secure) <a href="#ga6686c2ab5756b5049fad1644e89b3340">More...</a><br/></td></tr> <tr class="separator:ga6686c2ab5756b5049fad1644e89b3340"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga624509c924d2583f0d4dca6ab270f051"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreregister__trustzone__functions.html#ga624509c924d2583f0d4dca6ab270f051">__TZ_get_BASEPRI_NS</a> (void)</td></tr> <tr class="memdesc:ga624509c924d2583f0d4dca6ab270f051"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Base Priority (non-secure) <a href="#ga624509c924d2583f0d4dca6ab270f051">More...</a><br/></td></tr> <tr class="separator:ga624509c924d2583f0d4dca6ab270f051"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga92c187f0b4d53627b59e0fd0bda0b0df"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreregister__trustzone__functions.html#ga92c187f0b4d53627b59e0fd0bda0b0df">__TZ_set_BASEPRI_NS</a> (uint32_t basePri)</td></tr> <tr class="memdesc:ga92c187f0b4d53627b59e0fd0bda0b0df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Base Priority (non-secure) <a href="#ga92c187f0b4d53627b59e0fd0bda0b0df">More...</a><br/></td></tr> <tr class="separator:ga92c187f0b4d53627b59e0fd0bda0b0df"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga578b41087f207e1a475daae6cc8a28dc"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreregister__trustzone__functions.html#ga578b41087f207e1a475daae6cc8a28dc">__TZ_get_FAULTMASK_NS</a> (void)</td></tr> <tr class="memdesc:ga578b41087f207e1a475daae6cc8a28dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Fault Mask (non-secure) <a href="#ga578b41087f207e1a475daae6cc8a28dc">More...</a><br/></td></tr> <tr class="separator:ga578b41087f207e1a475daae6cc8a28dc"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga4f0912db7bc65439d23817c1d372a7a4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreregister__trustzone__functions.html#ga4f0912db7bc65439d23817c1d372a7a4">__TZ_set_FAULTMASK_NS</a> (uint32_t faultMask)</td></tr> <tr class="memdesc:ga4f0912db7bc65439d23817c1d372a7a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Fault Mask (non-secure) <a href="#ga4f0912db7bc65439d23817c1d372a7a4">More...</a><br/></td></tr> <tr class="separator:ga4f0912db7bc65439d23817c1d372a7a4"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga5da646ec291b6a183f38497ce92be51c"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreregister__trustzone__functions.html#ga5da646ec291b6a183f38497ce92be51c">__TZ_get_PSPLIM_NS</a> (void)</td></tr> <tr class="memdesc:ga5da646ec291b6a183f38497ce92be51c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Process Stack Pointer Limit (non-secure) Devices without Armv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always. <a href="#ga5da646ec291b6a183f38497ce92be51c">More...</a><br/></td></tr> <tr class="separator:ga5da646ec291b6a183f38497ce92be51c"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga81e0995ee0fd2a9dcd9e9681bc22c76f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreregister__trustzone__functions.html#ga81e0995ee0fd2a9dcd9e9681bc22c76f">__TZ_set_PSPLIM_NS</a> (uint32_t ProcStackPtrLimit)</td></tr> <tr class="memdesc:ga81e0995ee0fd2a9dcd9e9681bc22c76f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Process Stack Pointer (non-secure) Devices without Armv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always. <a href="#ga81e0995ee0fd2a9dcd9e9681bc22c76f">More...</a><br/></td></tr> <tr class="separator:ga81e0995ee0fd2a9dcd9e9681bc22c76f"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gada00853d3e49fa8d21f375c53d28fa51"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreregister__trustzone__functions.html#gada00853d3e49fa8d21f375c53d28fa51">__TZ_get_MSPLIM_NS</a> (void)</td></tr> <tr class="memdesc:gada00853d3e49fa8d21f375c53d28fa51"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Main Stack Pointer Limit (non-secure) Devices without Armv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always. <a href="#gada00853d3e49fa8d21f375c53d28fa51">More...</a><br/></td></tr> <tr class="separator:gada00853d3e49fa8d21f375c53d28fa51"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gad2013f4d4311d6db253594a12d192617"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__coreregister__trustzone__functions.html#gad2013f4d4311d6db253594a12d192617">__TZ_set_MSPLIM_NS</a> (uint32_t MainStackPtrLimit)</td></tr> <tr class="memdesc:gad2013f4d4311d6db253594a12d192617"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Main Stack Pointer Limit (non-secure) Devices without Armv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure Stack Pointer Limit register hence zero is returned always. <a href="#gad2013f4d4311d6db253594a12d192617">More...</a><br/></td></tr> <tr class="separator:gad2013f4d4311d6db253594a12d192617"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Description</h2> <h2 class="groupheader">Function Documentation</h2> <a class="anchor" id="ga624509c924d2583f0d4dca6ab270f051"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __TZ_get_BASEPRI_NS </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Returns the current value of the non-secure Base Priority register when in secure state. </p> <dl class="section return"><dt>Returns</dt><dd>Base Priority register value </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga32da759f46e52c95bcfbde5012260667">__get_BASEPRI</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga27bf1f88e794c30808ee73a29d46e358"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __TZ_get_CONTROL_NS </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Returns the content of the non-secure Control register when in secure mode. </p> <dl class="section return"><dt>Returns</dt><dd>non-secure Control register value </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga963cf236b73219ce78e965deb01b81a7">__get_CONTROL</a>; <a class="el" href="unionCONTROL__Type.html" title="Union type to access the Control Registers (CONTROL). ">CONTROL_Type</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga578b41087f207e1a475daae6cc8a28dc"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __TZ_get_FAULTMASK_NS </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Returns the current value of the non-secure Fault Mask register when in secure state. </p> <dl class="section return"><dt>Returns</dt><dd>Fault Mask register value </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#gaa78e4e6bf619a65e9f01b4af13fed3a8">__get_FAULTMASK</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gab3aa15eb4f352e230b9f7a3e8856a9e9"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __TZ_get_MSP_NS </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Returns the current value of the non-secure Main Stack Pointer (MSP) when in secure state. </p> <dl class="section return"><dt>Returns</dt><dd>MSP register value </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#gab898559392ba027814e5bbb5a98b38d2">__get_MSP</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gada00853d3e49fa8d21f375c53d28fa51"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __TZ_get_MSPLIM_NS </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Returns the current value of the non-secure Main Stack Pointer Limit(MSPLIM) when in secure state. </p> <dl class="section return"><dt>Returns</dt><dd>MSPLIM register value </dd></dl> </div> </div> <a class="anchor" id="ga7cc3271c79e619f8838e8767df3cb509"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __TZ_get_PRIMASK_NS </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Returns the current state of the non-secure priority mask bit from the Priority Mask register when in secure state. </p> <dl class="section return"><dt>Returns</dt><dd>Priority Mask value </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga799b5d9a2ae75e459264c8512c7c0e02">__get_PRIMASK</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga40ff8336c6d09af6da1081d4e4adc126"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __TZ_get_PSP_NS </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Returns the current value of the non-secure Process Stack Pointer (PSP) when in secure state. </p> <dl class="section return"><dt>Returns</dt><dd>PSP register value </dd></dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga914dfa8eff7ca53380dd54cf1d8bebd9">__get_PSP</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga5da646ec291b6a183f38497ce92be51c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __TZ_get_PSPLIM_NS </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Returns the current value of the non-secure Process Stack Pointer Limit (PSPLIM) when in secure state. </p> <dl class="section return"><dt>Returns</dt><dd>PSPLIM register value </dd></dl> </div> </div> <a class="anchor" id="gaaaf2aaf904b25ed17fd3e5e63f8e029b"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __TZ_get_SP_NS </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Returns the current value of the non-secure Stack Pointer (SP) when in secure state. </p> <dl class="section return"><dt>Returns</dt><dd>SP register value </dd></dl> </div> </div> <a class="anchor" id="ga92c187f0b4d53627b59e0fd0bda0b0df"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __TZ_set_BASEPRI_NS </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>basePri</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Assigns the given value to the non-secure Base Priority register when in secure state. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">basePri</td><td>Base Priority value to set </td></tr> </table> </dd> </dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga360c73eb7ffb16088556f9278953b882">__set_BASEPRI</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga3eb150204e6d389d5b49065179b9cde5"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __TZ_set_CONTROL_NS </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>control</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Writes the given value to the non-secure Control register when in secure state. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">control</td><td>Control register value to set </td></tr> </table> </dd> </dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#gac64d37e7ff9de06437f9fb94bbab8b6c">__set_CONTROL</a>; <a class="el" href="unionCONTROL__Type.html" title="Union type to access the Control Registers (CONTROL). ">CONTROL_Type</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga4f0912db7bc65439d23817c1d372a7a4"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __TZ_set_FAULTMASK_NS </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>faultMask</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Assigns the given value to the non-secure Fault Mask register when in secure state. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">faultMask</td><td>Fault Mask value to set </td></tr> </table> </dd> </dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#gaa5587cc09031053a40a35c14ec36078a">__set_FAULTMASK</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga41c3ac2d9af23c40647c053ad7d564e7"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __TZ_set_MSP_NS </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>topOfMainStack</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Assigns the given value to the non-secure Main Stack Pointer (MSP) when in secure state. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">topOfMainStack</td><td>Main Stack Pointer value to set </td></tr> </table> </dd> </dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga0bf9564ebc1613a8faba014275dac2a4">__set_MSP</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gad2013f4d4311d6db253594a12d192617"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __TZ_set_MSPLIM_NS </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>MainStackPtrLimit</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Assigns the given value to the non-secure Main Stack Pointer Limit (MSPLIM) when in secure state. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">MainStackPtrLimit</td><td>Main Stack Pointer value to set </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ga6686c2ab5756b5049fad1644e89b3340"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __TZ_set_PRIMASK_NS </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>priMask</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Assigns the given value to the non-secure Priority Mask register when in secure state. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">priMask</td><td>Priority Mask </td></tr> </table> </dd> </dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga70b4e1a6c1c86eb913fb9d6e8400156f">__set_PRIMASK</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="gaea8db21c00cfa4144ee74dc65dbd7580"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __TZ_set_PSP_NS </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>topOfProcStack</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Assigns the given value to the non-secure Process Stack Pointer (PSP) when in secure state. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">topOfProcStack</td><td>Process Stack Pointer value to set </td></tr> </table> </dd> </dl> <dl class="section see"><dt>See Also</dt><dd><ul> <li><a class="el" href="group__Core__Register__gr.html#ga48e5853f417e17a8a65080f6a605b743">__set_PSP</a> </li> </ul> </dd></dl> </div> </div> <a class="anchor" id="ga81e0995ee0fd2a9dcd9e9681bc22c76f"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __TZ_set_PSPLIM_NS </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>ProcStackPtrLimit</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Assigns the given value to the non-secure Process Stack Pointer Limit (PSPLIM) when in secure state. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">ProcStackPtrLimit</td><td>Process Stack Pointer Limit value to set </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="gab7263167cb006aeeb04b68e579dae015"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __TZ_set_SP_NS </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>topOfStack</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Assigns the given value to the non-secure Stack Pointer (SP) when in secure state. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">topOfStack</td><td>Stack Pointer value to set </td></tr> </table> </dd> </dl> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:25 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__coreregister__trustzone__functions.html
HTML
apache-2.0
33,408
var group__coreregister__trustzone__functions = [ [ "__TZ_get_BASEPRI_NS", "group__coreregister__trustzone__functions.html#ga624509c924d2583f0d4dca6ab270f051", null ], [ "__TZ_get_CONTROL_NS", "group__coreregister__trustzone__functions.html#ga27bf1f88e794c30808ee73a29d46e358", null ], [ "__TZ_get_FAULTMASK_NS", "group__coreregister__trustzone__functions.html#ga578b41087f207e1a475daae6cc8a28dc", null ], [ "__TZ_get_MSP_NS", "group__coreregister__trustzone__functions.html#gab3aa15eb4f352e230b9f7a3e8856a9e9", null ], [ "__TZ_get_MSPLIM_NS", "group__coreregister__trustzone__functions.html#gada00853d3e49fa8d21f375c53d28fa51", null ], [ "__TZ_get_PRIMASK_NS", "group__coreregister__trustzone__functions.html#ga7cc3271c79e619f8838e8767df3cb509", null ], [ "__TZ_get_PSP_NS", "group__coreregister__trustzone__functions.html#ga40ff8336c6d09af6da1081d4e4adc126", null ], [ "__TZ_get_PSPLIM_NS", "group__coreregister__trustzone__functions.html#ga5da646ec291b6a183f38497ce92be51c", null ], [ "__TZ_get_SP_NS", "group__coreregister__trustzone__functions.html#gaaaf2aaf904b25ed17fd3e5e63f8e029b", null ], [ "__TZ_set_BASEPRI_NS", "group__coreregister__trustzone__functions.html#ga92c187f0b4d53627b59e0fd0bda0b0df", null ], [ "__TZ_set_CONTROL_NS", "group__coreregister__trustzone__functions.html#ga3eb150204e6d389d5b49065179b9cde5", null ], [ "__TZ_set_FAULTMASK_NS", "group__coreregister__trustzone__functions.html#ga4f0912db7bc65439d23817c1d372a7a4", null ], [ "__TZ_set_MSP_NS", "group__coreregister__trustzone__functions.html#ga41c3ac2d9af23c40647c053ad7d564e7", null ], [ "__TZ_set_MSPLIM_NS", "group__coreregister__trustzone__functions.html#gad2013f4d4311d6db253594a12d192617", null ], [ "__TZ_set_PRIMASK_NS", "group__coreregister__trustzone__functions.html#ga6686c2ab5756b5049fad1644e89b3340", null ], [ "__TZ_set_PSP_NS", "group__coreregister__trustzone__functions.html#gaea8db21c00cfa4144ee74dc65dbd7580", null ], [ "__TZ_set_PSPLIM_NS", "group__coreregister__trustzone__functions.html#ga81e0995ee0fd2a9dcd9e9681bc22c76f", null ], [ "__TZ_set_SP_NS", "group__coreregister__trustzone__functions.html#gab7263167cb006aeeb04b68e579dae015", null ] ];
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__coreregister__trustzone__functions.js
JavaScript
apache-2.0
2,221
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>FPU Functions</title> <title>CMSIS-Core (Cortex-M): FPU Functions</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('group__fpu__functions.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">FPU Functions</div> </div> </div><!--header--> <div class="contents"> <p>Functions that relate to the Floating-Point Arithmetic Unit. <a href="#details">More...</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:ga6bcad99ce80a0e7e4ddc6f2379081756"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__fpu__functions.html#ga6bcad99ce80a0e7e4ddc6f2379081756">SCB_GetFPUType</a> (void)</td></tr> <tr class="memdesc:ga6bcad99ce80a0e7e4ddc6f2379081756"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the FPU type. <a href="#ga6bcad99ce80a0e7e4ddc6f2379081756">More...</a><br/></td></tr> <tr class="separator:ga6bcad99ce80a0e7e4ddc6f2379081756"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Description</h2> <p>Some Cortex-M processors include optional floating-point arithmetic functionality, with support for single and double-precision arithmetic. The Cortex-M processor with FPU is an implementation of the single-precision and double-precision variant of the Armv7-M Architecture with Floating-Point Extension (FPv5). </p> <h2 class="groupheader">Function Documentation</h2> <a class="anchor" id="ga6bcad99ce80a0e7e4ddc6f2379081756"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__compiler__conntrol__gr.html#gaba87361bfad2ae52cfe2f40c1a1dbf9c">__STATIC_INLINE</a> uint32_t SCB_GetFPUType </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <dl class="section return"><dt>Returns</dt><dd><ul> <li><b>0</b>: No FPU</li> <li><b>1</b>: Single precision FPU</li> <li><b>2</b>: Double + Single precision FPU</li> </ul> </dd></dl> <p>The function returns the implemented FPU type. </p> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:25 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__fpu__functions.html
HTML
apache-2.0
8,196
var group__fpu__functions = [ [ "SCB_GetFPUType", "group__fpu__functions.html#ga6bcad99ce80a0e7e4ddc6f2379081756", null ] ];
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__fpu__functions.js
JavaScript
apache-2.0
128
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Intrinsic Functions for CPU Instructions</title> <title>CMSIS-Core (Cortex-M): Intrinsic Functions for CPU Instructions</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="cmsis.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <script type="text/javascript" src="printComponentTabs.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 46px;"> <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">CMSIS-Core (Cortex-M) &#160;<span id="projectnumber">Version 5.3.0</span> </div> <div id="projectbrief">CMSIS-Core support for Cortex-M processor-based devices</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <div id="CMSISnav" class="tabs1"> <ul class="tablist"> <script type="text/javascript"> <!-- writeComponentTabs.call(this); //--> </script> </ul> </div> <!-- Generated by Doxygen 1.8.6 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li> <li><a href="modules.html"><span>Reference</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('group__intrinsic__CPU__gr.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">Intrinsic Functions for CPU Instructions</div> </div> </div><!--header--> <div class="contents"> <p>Functions that generate specific Cortex-M CPU Instructions. <a href="#details">More...</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:gac71fad9f0a91980fecafcb450ee0a63e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#gac71fad9f0a91980fecafcb450ee0a63e">__NOP</a> (void)</td></tr> <tr class="memdesc:gac71fad9f0a91980fecafcb450ee0a63e"><td class="mdescLeft">&#160;</td><td class="mdescRight">No Operation. <a href="#gac71fad9f0a91980fecafcb450ee0a63e">More...</a><br/></td></tr> <tr class="separator:gac71fad9f0a91980fecafcb450ee0a63e"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaed91dfbf3d7d7b7fba8d912fcbeaad88"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#gaed91dfbf3d7d7b7fba8d912fcbeaad88">__WFI</a> (void)</td></tr> <tr class="memdesc:gaed91dfbf3d7d7b7fba8d912fcbeaad88"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wait For Interrupt. <a href="#gaed91dfbf3d7d7b7fba8d912fcbeaad88">More...</a><br/></td></tr> <tr class="separator:gaed91dfbf3d7d7b7fba8d912fcbeaad88"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gad3efec76c3bfa2b8528ded530386c563"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#gad3efec76c3bfa2b8528ded530386c563">__WFE</a> (void)</td></tr> <tr class="memdesc:gad3efec76c3bfa2b8528ded530386c563"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wait For Event. <a href="#gad3efec76c3bfa2b8528ded530386c563">More...</a><br/></td></tr> <tr class="separator:gad3efec76c3bfa2b8528ded530386c563"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga3c34da7eb16496ae2668a5b95fa441e7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga3c34da7eb16496ae2668a5b95fa441e7">__SEV</a> (void)</td></tr> <tr class="memdesc:ga3c34da7eb16496ae2668a5b95fa441e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send Event. <a href="#ga3c34da7eb16496ae2668a5b95fa441e7">More...</a><br/></td></tr> <tr class="separator:ga3c34da7eb16496ae2668a5b95fa441e7"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga92f5621626711931da71eaa8bf301af7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga92f5621626711931da71eaa8bf301af7">__BKPT</a> (uint8_t value)</td></tr> <tr class="memdesc:ga92f5621626711931da71eaa8bf301af7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Breakpoint. <a href="#ga92f5621626711931da71eaa8bf301af7">More...</a><br/></td></tr> <tr class="separator:ga92f5621626711931da71eaa8bf301af7"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga93c09b4709394d81977300d5f84950e5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga93c09b4709394d81977300d5f84950e5">__ISB</a> (void)</td></tr> <tr class="memdesc:ga93c09b4709394d81977300d5f84950e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Instruction Synchronization Barrier. <a href="#ga93c09b4709394d81977300d5f84950e5">More...</a><br/></td></tr> <tr class="separator:ga93c09b4709394d81977300d5f84950e5"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gacb2a8ca6eae1ba4b31161578b720c199"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#gacb2a8ca6eae1ba4b31161578b720c199">__DSB</a> (void)</td></tr> <tr class="memdesc:gacb2a8ca6eae1ba4b31161578b720c199"><td class="mdescLeft">&#160;</td><td class="mdescRight">Data Synchronization Barrier. <a href="#gacb2a8ca6eae1ba4b31161578b720c199">More...</a><br/></td></tr> <tr class="separator:gacb2a8ca6eae1ba4b31161578b720c199"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gab1c9b393641dc2d397b3408fdbe72b96"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#gab1c9b393641dc2d397b3408fdbe72b96">__DMB</a> (void)</td></tr> <tr class="memdesc:gab1c9b393641dc2d397b3408fdbe72b96"><td class="mdescLeft">&#160;</td><td class="mdescRight">Data Memory Barrier. <a href="#gab1c9b393641dc2d397b3408fdbe72b96">More...</a><br/></td></tr> <tr class="separator:gab1c9b393641dc2d397b3408fdbe72b96"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga4717abc17af5ba29b1e4c055e0a0d9b8"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga4717abc17af5ba29b1e4c055e0a0d9b8">__REV</a> (uint32_t value)</td></tr> <tr class="memdesc:ga4717abc17af5ba29b1e4c055e0a0d9b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reverse byte order (32 bit) <a href="#ga4717abc17af5ba29b1e4c055e0a0d9b8">More...</a><br/></td></tr> <tr class="separator:ga4717abc17af5ba29b1e4c055e0a0d9b8"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaeef6f853b6df3a365c838ee5b49a7a26"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#gaeef6f853b6df3a365c838ee5b49a7a26">__REV16</a> (uint32_t value)</td></tr> <tr class="memdesc:gaeef6f853b6df3a365c838ee5b49a7a26"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reverse byte order (16 bit) <a href="#gaeef6f853b6df3a365c838ee5b49a7a26">More...</a><br/></td></tr> <tr class="separator:gaeef6f853b6df3a365c838ee5b49a7a26"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga211618c03a0bf3264a7b22ad626d4f0a"><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga211618c03a0bf3264a7b22ad626d4f0a">__REVSH</a> (int16_t value)</td></tr> <tr class="memdesc:ga211618c03a0bf3264a7b22ad626d4f0a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reverse byte order (16 bit) <a href="#ga211618c03a0bf3264a7b22ad626d4f0a">More...</a><br/></td></tr> <tr class="separator:ga211618c03a0bf3264a7b22ad626d4f0a"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gad6f9f297f6b91a995ee199fbc796b863"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#gad6f9f297f6b91a995ee199fbc796b863">__RBIT</a> (uint32_t value)</td></tr> <tr class="memdesc:gad6f9f297f6b91a995ee199fbc796b863"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reverse bit order of value. <a href="#gad6f9f297f6b91a995ee199fbc796b863">More...</a><br/></td></tr> <tr class="separator:gad6f9f297f6b91a995ee199fbc796b863"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaf66beb577bb9d90424c3d1d7f684c024"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#gaf66beb577bb9d90424c3d1d7f684c024">__ROR</a> (uint32_t value, uint32_t shift)</td></tr> <tr class="memdesc:gaf66beb577bb9d90424c3d1d7f684c024"><td class="mdescLeft">&#160;</td><td class="mdescRight">Rotate a value right by a number of bits. <a href="#gaf66beb577bb9d90424c3d1d7f684c024">More...</a><br/></td></tr> <tr class="separator:gaf66beb577bb9d90424c3d1d7f684c024"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga9e3ac13d8dcf4331176b624cf6234a7e"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga9e3ac13d8dcf4331176b624cf6234a7e">__LDREXB</a> (volatile uint8_t *addr)</td></tr> <tr class="memdesc:ga9e3ac13d8dcf4331176b624cf6234a7e"><td class="mdescLeft">&#160;</td><td class="mdescRight">LDR Exclusive (8 bit) [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#ga9e3ac13d8dcf4331176b624cf6234a7e">More...</a><br/></td></tr> <tr class="separator:ga9e3ac13d8dcf4331176b624cf6234a7e"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga9feffc093d6f68b120d592a7a0d45a15"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga9feffc093d6f68b120d592a7a0d45a15">__LDREXH</a> (volatile uint16_t *addr)</td></tr> <tr class="memdesc:ga9feffc093d6f68b120d592a7a0d45a15"><td class="mdescLeft">&#160;</td><td class="mdescRight">LDR Exclusive (16 bit) [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#ga9feffc093d6f68b120d592a7a0d45a15">More...</a><br/></td></tr> <tr class="separator:ga9feffc093d6f68b120d592a7a0d45a15"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gabd78840a0f2464905b7cec791ebc6a4c"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#gabd78840a0f2464905b7cec791ebc6a4c">__LDREXW</a> (volatile uint32_t *addr)</td></tr> <tr class="memdesc:gabd78840a0f2464905b7cec791ebc6a4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">LDR Exclusive (32 bit) [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#gabd78840a0f2464905b7cec791ebc6a4c">More...</a><br/></td></tr> <tr class="separator:gabd78840a0f2464905b7cec791ebc6a4c"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaab6482d1f59f59e2b6b7efc1af391c99"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#gaab6482d1f59f59e2b6b7efc1af391c99">__STREXB</a> (uint8_t value, volatile uint8_t *addr)</td></tr> <tr class="memdesc:gaab6482d1f59f59e2b6b7efc1af391c99"><td class="mdescLeft">&#160;</td><td class="mdescRight">STR Exclusive (8 bit) [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#gaab6482d1f59f59e2b6b7efc1af391c99">More...</a><br/></td></tr> <tr class="separator:gaab6482d1f59f59e2b6b7efc1af391c99"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga0a354bdf71caa52f081a4a54e84c8d2a"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga0a354bdf71caa52f081a4a54e84c8d2a">__STREXH</a> (uint16_t value, volatile uint16_t *addr)</td></tr> <tr class="memdesc:ga0a354bdf71caa52f081a4a54e84c8d2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">STR Exclusive (16 bit) [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#ga0a354bdf71caa52f081a4a54e84c8d2a">More...</a><br/></td></tr> <tr class="separator:ga0a354bdf71caa52f081a4a54e84c8d2a"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga335deaaa7991490e1450cb7d1e4c5197"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga335deaaa7991490e1450cb7d1e4c5197">__STREXW</a> (uint32_t value, volatile uint32_t *addr)</td></tr> <tr class="memdesc:ga335deaaa7991490e1450cb7d1e4c5197"><td class="mdescLeft">&#160;</td><td class="mdescRight">STR Exclusive (32 bit) [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#ga335deaaa7991490e1450cb7d1e4c5197">More...</a><br/></td></tr> <tr class="separator:ga335deaaa7991490e1450cb7d1e4c5197"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga354c5ac8870cc3dfb823367af9c4b412"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga354c5ac8870cc3dfb823367af9c4b412">__CLREX</a> (void)</td></tr> <tr class="memdesc:ga354c5ac8870cc3dfb823367af9c4b412"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove the exclusive lock [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#ga354c5ac8870cc3dfb823367af9c4b412">More...</a><br/></td></tr> <tr class="separator:ga354c5ac8870cc3dfb823367af9c4b412"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga8cfeb5ffe0e49ec6b29dafdde92e5118"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga8cfeb5ffe0e49ec6b29dafdde92e5118">__SSAT</a> (int32_t value, uint32_t sat)</td></tr> <tr class="memdesc:ga8cfeb5ffe0e49ec6b29dafdde92e5118"><td class="mdescLeft">&#160;</td><td class="mdescRight">Signed Saturate [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#ga8cfeb5ffe0e49ec6b29dafdde92e5118">More...</a><br/></td></tr> <tr class="separator:ga8cfeb5ffe0e49ec6b29dafdde92e5118"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga76bbe4374a5912362866cdc1ded4064a"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga76bbe4374a5912362866cdc1ded4064a">__USAT</a> (uint32_t value, uint32_t sat)</td></tr> <tr class="memdesc:ga76bbe4374a5912362866cdc1ded4064a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unsigned Saturate [not for Cortex-M0, Cortex-M0+, or SC000]. <a href="#ga76bbe4374a5912362866cdc1ded4064a">More...</a><br/></td></tr> <tr class="separator:ga76bbe4374a5912362866cdc1ded4064a"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga90884c591ac5d73d6069334eba9d6c02"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga90884c591ac5d73d6069334eba9d6c02">__CLZ</a> (uint32_t value)</td></tr> <tr class="memdesc:ga90884c591ac5d73d6069334eba9d6c02"><td class="mdescLeft">&#160;</td><td class="mdescRight">Count leading zeros. <a href="#ga90884c591ac5d73d6069334eba9d6c02">More...</a><br/></td></tr> <tr class="separator:ga90884c591ac5d73d6069334eba9d6c02"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gac09134f1bf9c49db07282001afcc9380"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#gac09134f1bf9c49db07282001afcc9380">__RRX</a> (uint32_t value)</td></tr> <tr class="memdesc:gac09134f1bf9c49db07282001afcc9380"><td class="mdescLeft">&#160;</td><td class="mdescRight">Rotate Right with Extend (32 bit) <a href="#gac09134f1bf9c49db07282001afcc9380">More...</a><br/></td></tr> <tr class="separator:gac09134f1bf9c49db07282001afcc9380"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga9464d75db32846aa8295c3c3adfacb41"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga9464d75db32846aa8295c3c3adfacb41">__LDRBT</a> (uint8_t ptr)</td></tr> <tr class="memdesc:ga9464d75db32846aa8295c3c3adfacb41"><td class="mdescLeft">&#160;</td><td class="mdescRight">LDRT Unprivileged (8 bit) <a href="#ga9464d75db32846aa8295c3c3adfacb41">More...</a><br/></td></tr> <tr class="separator:ga9464d75db32846aa8295c3c3adfacb41"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gaa762b8bc5634ce38cb14d62a6b2aee32"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#gaa762b8bc5634ce38cb14d62a6b2aee32">__LDRHT</a> (uint16_t ptr)</td></tr> <tr class="memdesc:gaa762b8bc5634ce38cb14d62a6b2aee32"><td class="mdescLeft">&#160;</td><td class="mdescRight">LDRT Unprivileged (16 bit) <a href="#gaa762b8bc5634ce38cb14d62a6b2aee32">More...</a><br/></td></tr> <tr class="separator:gaa762b8bc5634ce38cb14d62a6b2aee32"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga616504f5da979ba8a073d428d6e8d5c7"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga616504f5da979ba8a073d428d6e8d5c7">__LDRT</a> (uint32_t ptr)</td></tr> <tr class="memdesc:ga616504f5da979ba8a073d428d6e8d5c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">LDRT Unprivileged (32 bit) <a href="#ga616504f5da979ba8a073d428d6e8d5c7">More...</a><br/></td></tr> <tr class="separator:ga616504f5da979ba8a073d428d6e8d5c7"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gad41aa59c92c0a165b7f98428d3320cd5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#gad41aa59c92c0a165b7f98428d3320cd5">__STRBT</a> (uint8_t value, uint8_t ptr)</td></tr> <tr class="memdesc:gad41aa59c92c0a165b7f98428d3320cd5"><td class="mdescLeft">&#160;</td><td class="mdescRight">STRT Unprivileged (8 bit) <a href="#gad41aa59c92c0a165b7f98428d3320cd5">More...</a><br/></td></tr> <tr class="separator:gad41aa59c92c0a165b7f98428d3320cd5"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga2b5d93b8e461755b1072a03df3f1722e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga2b5d93b8e461755b1072a03df3f1722e">__STRHT</a> (uint16_t value, uint16_t ptr)</td></tr> <tr class="memdesc:ga2b5d93b8e461755b1072a03df3f1722e"><td class="mdescLeft">&#160;</td><td class="mdescRight">STRT Unprivileged (16 bit) <a href="#ga2b5d93b8e461755b1072a03df3f1722e">More...</a><br/></td></tr> <tr class="separator:ga2b5d93b8e461755b1072a03df3f1722e"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga625bc4ac0b1d50de9bcd13d9f050030e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga625bc4ac0b1d50de9bcd13d9f050030e">__STRT</a> (uint32_t value, uint32_t ptr)</td></tr> <tr class="memdesc:ga625bc4ac0b1d50de9bcd13d9f050030e"><td class="mdescLeft">&#160;</td><td class="mdescRight">STRT Unprivileged (32 bit) <a href="#ga625bc4ac0b1d50de9bcd13d9f050030e">More...</a><br/></td></tr> <tr class="separator:ga625bc4ac0b1d50de9bcd13d9f050030e"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga263b9b2d9c06d731022873acddb6aa3f"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga263b9b2d9c06d731022873acddb6aa3f">__LDAB</a> (volatile uint8_t *ptr)</td></tr> <tr class="memdesc:ga263b9b2d9c06d731022873acddb6aa3f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load-Acquire (8 bit) <a href="#ga263b9b2d9c06d731022873acddb6aa3f">More...</a><br/></td></tr> <tr class="separator:ga263b9b2d9c06d731022873acddb6aa3f"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga5810ac0b87a37e321c2f909cd3860499"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga5810ac0b87a37e321c2f909cd3860499">__LDAH</a> (volatile uint16_t *ptr)</td></tr> <tr class="memdesc:ga5810ac0b87a37e321c2f909cd3860499"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load-Acquire (16 bit) <a href="#ga5810ac0b87a37e321c2f909cd3860499">More...</a><br/></td></tr> <tr class="separator:ga5810ac0b87a37e321c2f909cd3860499"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga22a24f416b65c2f5a82d9f1162d9394d"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga22a24f416b65c2f5a82d9f1162d9394d">__LDA</a> (volatile uint32_t *ptr)</td></tr> <tr class="memdesc:ga22a24f416b65c2f5a82d9f1162d9394d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load-Acquire (32 bit) <a href="#ga22a24f416b65c2f5a82d9f1162d9394d">More...</a><br/></td></tr> <tr class="separator:ga22a24f416b65c2f5a82d9f1162d9394d"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gace025d3a1f85d2ab9bae7288838d6bc8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#gace025d3a1f85d2ab9bae7288838d6bc8">__STLB</a> (uint8_t value, volatile uint8_t *ptr)</td></tr> <tr class="memdesc:gace025d3a1f85d2ab9bae7288838d6bc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Store-Release (8 bit) <a href="#gace025d3a1f85d2ab9bae7288838d6bc8">More...</a><br/></td></tr> <tr class="separator:gace025d3a1f85d2ab9bae7288838d6bc8"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga25691650de536f9b248b15f6dc4a3e70"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga25691650de536f9b248b15f6dc4a3e70">__STLH</a> (uint16_t value, volatile uint16_t *ptr)</td></tr> <tr class="memdesc:ga25691650de536f9b248b15f6dc4a3e70"><td class="mdescLeft">&#160;</td><td class="mdescRight">Store-Release (16 bit) <a href="#ga25691650de536f9b248b15f6dc4a3e70">More...</a><br/></td></tr> <tr class="separator:ga25691650de536f9b248b15f6dc4a3e70"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga5429d7083fb8d30c43cecd3a861e1672"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga5429d7083fb8d30c43cecd3a861e1672">__STL</a> (uint32_t value, volatile uint32_t *ptr)</td></tr> <tr class="memdesc:ga5429d7083fb8d30c43cecd3a861e1672"><td class="mdescLeft">&#160;</td><td class="mdescRight">Store-Release (32 bit) <a href="#ga5429d7083fb8d30c43cecd3a861e1672">More...</a><br/></td></tr> <tr class="separator:ga5429d7083fb8d30c43cecd3a861e1672"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga513beada40cdd7123281f22482603bcc"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga513beada40cdd7123281f22482603bcc">__LDAEXB</a> (volatile uint32_t *ptr)</td></tr> <tr class="memdesc:ga513beada40cdd7123281f22482603bcc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load-Acquire Exclusive (8 bit) <a href="#ga513beada40cdd7123281f22482603bcc">More...</a><br/></td></tr> <tr class="separator:ga513beada40cdd7123281f22482603bcc"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga426b61640fc68f21b21ae4dc2726f3b4"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga426b61640fc68f21b21ae4dc2726f3b4">__LDAEXH</a> (volatile uint32_t *ptr)</td></tr> <tr class="memdesc:ga426b61640fc68f21b21ae4dc2726f3b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load-Acquire Exclusive (16 bit) <a href="#ga426b61640fc68f21b21ae4dc2726f3b4">More...</a><br/></td></tr> <tr class="separator:ga426b61640fc68f21b21ae4dc2726f3b4"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga3c74d923529f664eda099d1b2668b3c1"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga3c74d923529f664eda099d1b2668b3c1">__LDAEX</a> (volatile uint32_t *ptr)</td></tr> <tr class="memdesc:ga3c74d923529f664eda099d1b2668b3c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load-Acquire Exclusive (32 bit) <a href="#ga3c74d923529f664eda099d1b2668b3c1">More...</a><br/></td></tr> <tr class="separator:ga3c74d923529f664eda099d1b2668b3c1"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga590724a32a229978536fbbbd6cc82536"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga590724a32a229978536fbbbd6cc82536">__STLEXB</a> (uint8_t value, volatile uint8_t *ptr)</td></tr> <tr class="memdesc:ga590724a32a229978536fbbbd6cc82536"><td class="mdescLeft">&#160;</td><td class="mdescRight">Store-Release Exclusive (8 bit) <a href="#ga590724a32a229978536fbbbd6cc82536">More...</a><br/></td></tr> <tr class="separator:ga590724a32a229978536fbbbd6cc82536"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:ga047c3bebca3d0ae348ab8370a046301d"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#ga047c3bebca3d0ae348ab8370a046301d">__STLEXH</a> (uint16_t value, volatile uint16_t *ptr)</td></tr> <tr class="memdesc:ga047c3bebca3d0ae348ab8370a046301d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Store-Release Exclusive (16 bit) <a href="#ga047c3bebca3d0ae348ab8370a046301d">More...</a><br/></td></tr> <tr class="separator:ga047c3bebca3d0ae348ab8370a046301d"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:gae7f955b91595cfd82a03e4b437c59afe"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__intrinsic__CPU__gr.html#gae7f955b91595cfd82a03e4b437c59afe">__STLEX</a> (uint32_t value, volatile uint32_t *ptr)</td></tr> <tr class="memdesc:gae7f955b91595cfd82a03e4b437c59afe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Store-Release Exclusive (32 bit) <a href="#gae7f955b91595cfd82a03e4b437c59afe">More...</a><br/></td></tr> <tr class="separator:gae7f955b91595cfd82a03e4b437c59afe"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Description</h2> <p>The following functions generate specific Cortex-M instructions that cannot be directly accessed by the C/C++ Compiler. Refer to the <a class="el" href="index.html#ref_man_sec">Cortex-M Reference Manuals</a> for detailed information about these Cortex-M instructions.</p> <dl class="section note"><dt>Note</dt><dd>When using the <b>Arm Compiler Version 5 Toolchain</b> the following <a class="el" href="group__intrinsic__CPU__gr.html">Intrinsic Functions for CPU Instructions</a> are implemented using the Embedded Assembler. As the Embedded Assembler may cause side effects (Refer to <b>Arm Compiler v5.xx User Guide - Using the Inline and Embedded Assemblers of the Arm Compiler</b> for more information) it is possible to disable the following intrinsic functions and therefore the usage of the Embedded Assembler with the <b><em>define __NO_EMBEDDED_ASM</em></b>:<ul> <li><a class="el" href="group__intrinsic__CPU__gr.html#gaeef6f853b6df3a365c838ee5b49a7a26">__REV16</a></li> <li><a class="el" href="group__intrinsic__CPU__gr.html#ga211618c03a0bf3264a7b22ad626d4f0a">__REVSH</a></li> <li><a class="el" href="group__intrinsic__CPU__gr.html#gac09134f1bf9c49db07282001afcc9380">__RRX</a> </li> </ul> </dd></dl> <h2 class="groupheader">Function Documentation</h2> <a class="anchor" id="ga92f5621626711931da71eaa8bf301af7"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __BKPT </td> <td>(</td> <td class="paramtype">uint8_t&#160;</td> <td class="paramname"><em>value</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function causes the processor to enter Debug state. Debug tools can use this to investigate system state when the instruction at a particular address is reached.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>is ignored by the processor. If required, a debugger can use it to obtain additional information about the breakpoint. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ga354c5ac8870cc3dfb823367af9c4b412"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __CLREX </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function removes the exclusive lock which is created by LDREX [not for Cortex-M0, Cortex-M0+, or SC000]. </p> </div> </div> <a class="anchor" id="ga90884c591ac5d73d6069334eba9d6c02"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint8_t __CLZ </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>value</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function counts the number of leading zeros of a data value.</p> <p>On Armv6-M (Cortex-M0, Cortex-M0+, and SC000) this function is not available as a core instruction instruction and thus __CLZ is implemented in software.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to count the leading zeros </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>number of leading zeros in value </dd></dl> </div> </div> <a class="anchor" id="gab1c9b393641dc2d397b3408fdbe72b96"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __DMB </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function ensures the apparent order of the explicit memory operations before and after the instruction, without ensuring their completion. </p> </div> </div> <a class="anchor" id="gacb2a8ca6eae1ba4b31161578b720c199"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __DSB </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function acts as a special kind of Data Memory Barrier. It completes when all explicit memory accesses before this instruction complete. </p> </div> </div> <a class="anchor" id="ga93c09b4709394d81977300d5f84950e5"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __ISB </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Instruction Synchronization Barrier flushes the pipeline in the processor, so that all instructions following the ISB are fetched from cache or memory, after the instruction has been completed. </p> </div> </div> <a class="anchor" id="ga22a24f416b65c2f5a82d9f1162d9394d"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __LDA </td> <td>(</td> <td class="paramtype">volatile uint32_t *&#160;</td> <td class="paramname"><em>ptr</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Executes a LDA instruction for 32 bit values. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>Pointer to data </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>value of type uint32_t at (*ptr) </dd></dl> <dl class="section note"><dt>Note</dt><dd>Only availabe for Armv8-M Architecture. </dd></dl> </div> </div> <a class="anchor" id="ga263b9b2d9c06d731022873acddb6aa3f"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint8_t __LDAB </td> <td>(</td> <td class="paramtype">volatile uint8_t *&#160;</td> <td class="paramname"><em>ptr</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Executes a LDAB instruction for 8 bit value. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>Pointer to data </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>value of type uint8_t at (*ptr) </dd></dl> <dl class="section note"><dt>Note</dt><dd>Only availabe for Armv8-M Architecture. </dd></dl> </div> </div> <a class="anchor" id="ga3c74d923529f664eda099d1b2668b3c1"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __LDAEX </td> <td>(</td> <td class="paramtype">volatile uint32_t *&#160;</td> <td class="paramname"><em>ptr</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Executes a LDA exclusive instruction for 32 bit values. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>Pointer to data </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>value of type uint32_t at (*ptr) </dd></dl> <dl class="section note"><dt>Note</dt><dd>Only availabe for Armv8-M Architecture. </dd></dl> </div> </div> <a class="anchor" id="ga513beada40cdd7123281f22482603bcc"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint8_t __LDAEXB </td> <td>(</td> <td class="paramtype">volatile uint32_t *&#160;</td> <td class="paramname"><em>ptr</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Executes a LDAB exclusive instruction for 8 bit value. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>Pointer to data </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>value of type uint8_t at (*ptr) </dd></dl> <dl class="section note"><dt>Note</dt><dd>Only availabe for Armv8-M Architecture. </dd></dl> </div> </div> <a class="anchor" id="ga426b61640fc68f21b21ae4dc2726f3b4"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint16_t __LDAEXH </td> <td>(</td> <td class="paramtype">volatile uint32_t *&#160;</td> <td class="paramname"><em>ptr</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Executes a LDAH exclusive instruction for 16 bit values. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>Pointer to data </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>value of type uint16_t at (*ptr) </dd></dl> <dl class="section note"><dt>Note</dt><dd>Only availabe for Armv8-M Architecture. </dd></dl> </div> </div> <a class="anchor" id="ga5810ac0b87a37e321c2f909cd3860499"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint16_t __LDAH </td> <td>(</td> <td class="paramtype">volatile uint16_t *&#160;</td> <td class="paramname"><em>ptr</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Executes a LDAH instruction for 16 bit values. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>Pointer to data </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>value of type uint16_t at (*ptr) </dd></dl> <dl class="section note"><dt>Note</dt><dd>Only availabe for Armv8-M Architecture. </dd></dl> </div> </div> <a class="anchor" id="ga9464d75db32846aa8295c3c3adfacb41"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint8_t __LDRBT </td> <td>(</td> <td class="paramtype">uint8_t&#160;</td> <td class="paramname"><em>ptr</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function executed an Unprivileged LDRT command for 8 bit value.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>Pointer to data </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>value of type uint8_t at (*ptr) </dd></dl> </div> </div> <a class="anchor" id="ga9e3ac13d8dcf4331176b624cf6234a7e"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint8_t __LDREXB </td> <td>(</td> <td class="paramtype">volatile uint8_t *&#160;</td> <td class="paramname"><em>addr</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function executed an exclusive LDR command for 8 bit value [not for Cortex-M0, Cortex-M0+, or SC000].</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">*addr</td><td>Pointer to data </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>value of type uint8_t at (*addr) </dd></dl> </div> </div> <a class="anchor" id="ga9feffc093d6f68b120d592a7a0d45a15"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint16_t __LDREXH </td> <td>(</td> <td class="paramtype">volatile uint16_t *&#160;</td> <td class="paramname"><em>addr</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function executed an exclusive LDR command for 16 bit values [not for Cortex-M0, Cortex-M0+, or SC000].</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">*addr</td><td>Pointer to data </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>value of type uint16_t at (*addr) </dd></dl> </div> </div> <a class="anchor" id="gabd78840a0f2464905b7cec791ebc6a4c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __LDREXW </td> <td>(</td> <td class="paramtype">volatile uint32_t *&#160;</td> <td class="paramname"><em>addr</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function executed an exclusive LDR command for 32 bit values [not for Cortex-M0, Cortex-M0+, or SC000].</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">*addr</td><td>Pointer to data </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>value of type uint32_t at (*addr) </dd></dl> </div> </div> <a class="anchor" id="gaa762b8bc5634ce38cb14d62a6b2aee32"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint16_t __LDRHT </td> <td>(</td> <td class="paramtype">uint16_t&#160;</td> <td class="paramname"><em>ptr</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function executed an Unprivileged LDRT command for 16 bit values.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>Pointer to data </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>value of type uint16_t at (*ptr) </dd></dl> </div> </div> <a class="anchor" id="ga616504f5da979ba8a073d428d6e8d5c7"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __LDRT </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>ptr</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function executed an Unprivileged LDRT command for 32 bit values.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>Pointer to data </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>value of type uint32_t at (*ptr) </dd></dl> </div> </div> <a class="anchor" id="gac71fad9f0a91980fecafcb450ee0a63e"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __NOP </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function does nothing. This instruction can be used for code alignment purposes. </p> </div> </div> <a class="anchor" id="gad6f9f297f6b91a995ee199fbc796b863"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __RBIT </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>value</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to reverse </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>Reversed value </dd></dl> </div> </div> <a class="anchor" id="ga4717abc17af5ba29b1e4c055e0a0d9b8"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __REV </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>value</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x78563412. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to reverse </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>Reversed value </dd></dl> </div> </div> <a class="anchor" id="gaeef6f853b6df3a365c838ee5b49a7a26"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __REV16 </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>value</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes 0x34127856. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to reverse </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>Reversed value </dd></dl> </div> </div> <a class="anchor" id="ga211618c03a0bf3264a7b22ad626d4f0a"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int16_t __REVSH </td> <td>(</td> <td class="paramtype">int16_t&#160;</td> <td class="paramname"><em>value</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For example, 0x0080 becomes 0x8000. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to reverse </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>Reversed value </dd></dl> </div> </div> <a class="anchor" id="gaf66beb577bb9d90424c3d1d7f684c024"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __ROR </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>shift</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>This function rotates a value right by a specified number of bits.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to be shifted right </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">shift</td><td>Number of bits in the range [1..31] </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>Rotated value </dd></dl> </div> </div> <a class="anchor" id="gac09134f1bf9c49db07282001afcc9380"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __RRX </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>value</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function moves each bit of a bitstring right by one bit. The carry input is shifted in at the left end of the bitstring.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to rotate </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>Rotated value </dd></dl> </div> </div> <a class="anchor" id="ga3c34da7eb16496ae2668a5b95fa441e7"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __SEV </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Send Event is a hint instruction. It causes an event to be signaled to the CPU. </p> </div> </div> <a class="anchor" id="ga8cfeb5ffe0e49ec6b29dafdde92e5118"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int32_t __SSAT </td> <td>(</td> <td class="paramtype">int32_t&#160;</td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>sat</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>This function saturates a signed value [not for Cortex-M0, Cortex-M0+, or SC000]. The Q bit is set if saturation occurs.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to be saturated </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">sat</td><td>Bit position to saturate to [1..32] </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>Saturated value </dd></dl> </div> </div> <a class="anchor" id="ga5429d7083fb8d30c43cecd3a861e1672"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __STL </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">volatile uint32_t *&#160;</td> <td class="paramname"><em>ptr</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Executes a STL instruction for 32 bit values. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to store </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>Pointer to location </td></tr> </table> </dd> </dl> <dl class="section note"><dt>Note</dt><dd>Only availabe for Armv8-M Architecture. </dd></dl> </div> </div> <a class="anchor" id="gace025d3a1f85d2ab9bae7288838d6bc8"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __STLB </td> <td>(</td> <td class="paramtype">uint8_t&#160;</td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">volatile uint8_t *&#160;</td> <td class="paramname"><em>ptr</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Executes a STLB instruction for 8 bit values. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to store </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>Pointer to location </td></tr> </table> </dd> </dl> <dl class="section note"><dt>Note</dt><dd>Only availabe for Armv8-M Architecture. </dd></dl> </div> </div> <a class="anchor" id="gae7f955b91595cfd82a03e4b437c59afe"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __STLEX </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">volatile uint32_t *&#160;</td> <td class="paramname"><em>ptr</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Executes a STL exclusive instruction for 32 bit values. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to store </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>Pointer to location </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>0 Function succeeded </dd> <dd> 1 Function failed </dd></dl> <dl class="section note"><dt>Note</dt><dd>Only availabe for Armv8-M Architecture. </dd></dl> </div> </div> <a class="anchor" id="ga590724a32a229978536fbbbd6cc82536"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __STLEXB </td> <td>(</td> <td class="paramtype">uint8_t&#160;</td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">volatile uint8_t *&#160;</td> <td class="paramname"><em>ptr</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Executes a STLB exclusive instruction for 8 bit values. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to store </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>Pointer to location </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>0 Function succeeded </dd> <dd> 1 Function failed </dd></dl> <dl class="section note"><dt>Note</dt><dd>Only availabe for Armv8-M Architecture. </dd></dl> </div> </div> <a class="anchor" id="ga047c3bebca3d0ae348ab8370a046301d"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __STLEXH </td> <td>(</td> <td class="paramtype">uint16_t&#160;</td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">volatile uint16_t *&#160;</td> <td class="paramname"><em>ptr</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Executes a STLH exclusive instruction for 16 bit values. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to store </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>Pointer to location </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>0 Function succeeded </dd> <dd> 1 Function failed </dd></dl> <dl class="section note"><dt>Note</dt><dd>Only availabe for Armv8-M Architecture. </dd></dl> </div> </div> <a class="anchor" id="ga25691650de536f9b248b15f6dc4a3e70"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __STLH </td> <td>(</td> <td class="paramtype">uint16_t&#160;</td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">volatile uint16_t *&#160;</td> <td class="paramname"><em>ptr</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Executes a STLH instruction for 16 bit values. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to store </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>Pointer to location </td></tr> </table> </dd> </dl> <dl class="section note"><dt>Note</dt><dd>Only availabe for Armv8-M Architecture. </dd></dl> </div> </div> <a class="anchor" id="gad41aa59c92c0a165b7f98428d3320cd5"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __STRBT </td> <td>(</td> <td class="paramtype">uint8_t&#160;</td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint8_t&#160;</td> <td class="paramname"><em>ptr</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>This function executed an Unprivileged STRT command for 8 bit values.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to store </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>Pointer to location </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="gaab6482d1f59f59e2b6b7efc1af391c99"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __STREXB </td> <td>(</td> <td class="paramtype">uint8_t&#160;</td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">volatile uint8_t *&#160;</td> <td class="paramname"><em>addr</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>This function executed an exclusive STR command for 8 bit values [not for Cortex-M0, Cortex-M0+, or SC000].</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to store </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">*addr</td><td>Pointer to location </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>0 Function succeeded </dd> <dd> 1 Function failed </dd></dl> </div> </div> <a class="anchor" id="ga0a354bdf71caa52f081a4a54e84c8d2a"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __STREXH </td> <td>(</td> <td class="paramtype">uint16_t&#160;</td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">volatile uint16_t *&#160;</td> <td class="paramname"><em>addr</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>This function executed an exclusive STR command for 16 bit values [not for Cortex-M0, Cortex-M0+, or SC000].</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to store </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">*addr</td><td>Pointer to location </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>0 Function succeeded </dd> <dd> 1 Function failed </dd></dl> </div> </div> <a class="anchor" id="ga335deaaa7991490e1450cb7d1e4c5197"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __STREXW </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">volatile uint32_t *&#160;</td> <td class="paramname"><em>addr</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>This function executed an exclusive STR command for 32 bit values [not for Cortex-M0, Cortex-M0+, or SC000].</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to store </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">*addr</td><td>Pointer to location </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>0 Function succeeded </dd> <dd> 1 Function failed </dd></dl> </div> </div> <a class="anchor" id="ga2b5d93b8e461755b1072a03df3f1722e"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __STRHT </td> <td>(</td> <td class="paramtype">uint16_t&#160;</td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint16_t&#160;</td> <td class="paramname"><em>ptr</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>This function executed an Unprivileged STRT command for 16 bit values.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to store </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>Pointer to location </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ga625bc4ac0b1d50de9bcd13d9f050030e"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __STRT </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>ptr</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>This function executed an Unprivileged STRT command for 32 bit values.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to store </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>Pointer to location </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ga76bbe4374a5912362866cdc1ded4064a"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">uint32_t __USAT </td> <td>(</td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">uint32_t&#160;</td> <td class="paramname"><em>sat</em>&#160;</td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>This function saturates an unsigned value [not for Cortex-M0, Cortex-M0+, or SC000]. The Q bit is set if saturation occurs.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>Value to be saturated </td></tr> <tr><td class="paramdir">[in]</td><td class="paramname">sat</td><td>Bit position to saturate to [0..31] </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>Saturated value </dd></dl> </div> </div> <a class="anchor" id="gad3efec76c3bfa2b8528ded530386c563"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __WFE </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Wait For Event is a hint instruction that permits the processor to enter a low-power state until an events occurs: </p> <ul> <li>If the <b>event register is 0</b>, then WFE suspends execution until one of the following events occurs:<ul> <li>An exception, unless masked by the exception mask registers or the current priority level.</li> <li>An exception enters the Pending state, if SEVONPEND in the System Control Register is set.</li> <li>A Debug Entry request, if Debug is enabled.</li> <li>An event signaled by a peripheral or another processor in a multiprocessor system using the SEV instruction.</li> </ul> </li> </ul> <ul> <li>If the <b>event register is 1</b>, then WFE clears it to 0 and returns immediately. </li> </ul> </div> </div> <a class="anchor" id="gaed91dfbf3d7d7b7fba8d912fcbeaad88"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void __WFI </td> <td>(</td> <td class="paramtype">void&#160;</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>WFI is a hint instruction that suspends execution until one of the following events occurs:</p> <ul> <li>A non-masked interrupt occurs and is taken.</li> <li>An interrupt masked by PRIMASK becomes pending.</li> <li>A Debug Entry request. </li> </ul> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="footer">Generated on Wed Jul 10 2019 15:20:25 for CMSIS-Core (Cortex-M) Version 5.3.0 by Arm Ltd. All rights reserved. <!-- <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 --> </li> </ul> </div> </body> </html>
YifuLiu/AliOS-Things
components/cmsis/docs/Core/html/group__intrinsic__CPU__gr.html
HTML
apache-2.0
72,641