Select one of the symbols to view example projects that use it.
 
Outline
#define __COMMON_H
Includes
#include "stm32f4xx.h"
#include "stm324xg_eval.h"
#define TX_TIMEOUT
#define RX_TIMEOUT
#define IS_CAP_LETTER
#define IS_LC_LETTER
#define IS_09
#define ISVALIDHEX
#define ISVALIDDEC
#define CONVERTDEC
#define CONVERTHEX_ALPHA
#define CONVERTHEX
Int2Str(uint8_t *, uint32_t);
Str2Int(uint8_t *, uint32_t *);
Serial_PutString(uint8_t *);
Serial_PutByte(uint8_t);
Files
loading...
CodeScopeSTM32 Libraries and SamplesIAP_Maininc/common.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file IAP/IAP_Main/Inc/common.h * @author MCD Application Team * @brief This file provides all the headers of the common functions. ****************************************************************************** * @attention * * Copyright (c) 2017 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __COMMON_H #define __COMMON_H /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx.h" #include "stm324xg_eval.h" Includes /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /* Constants used by Serial Command Line Mode */ #define TX_TIMEOUT ((uint32_t)100) #define RX_TIMEOUT ((uint32_t)0xFFFFFFFF) /* Exported macro ------------------------------------------------------------*/ #define IS_CAP_LETTER(c) (((c) >= 'A') && ((c) <= 'F')) #define IS_LC_LETTER(c) (((c) >= 'a') && ((c) <= 'f')) #define IS_09(c) (((c) >= '0') && ((c) <= '9')) #define ISVALIDHEX(c) (IS_CAP_LETTER(c) || IS_LC_LETTER(c) || IS_09(c)) #define ISVALIDDEC(c) IS_09(c) #define CONVERTDEC(c) (c - '0') #define CONVERTHEX_ALPHA(c) (IS_CAP_LETTER(c) ? ((c) - 'A'+10) : ((c) - 'a'+10)) #define CONVERTHEX(c) (IS_09(c) ? ((c) - '0') : CONVERTHEX_ALPHA(c)) 10 defines /* Exported functions ------------------------------------------------------- */ void Int2Str(uint8_t *p_str, uint32_t intnum); uint32_t Str2Int(uint8_t *inputstr, uint32_t *intnum); void Serial_PutString(uint8_t *p_string); HAL_StatusTypeDef Serial_PutByte(uint8_t param); /* ... */ #endif /* __COMMON_H */ /*******************(C)COPYRIGHT 2016 STMicroelectronics *****END OF FILE******/