Previous version which works for my stm32f401 Nucleo board
Fork of X_NUCLEO_IDB0XA1 by
BlueNRG_HCI/includes/compiler.h@72:730717ed87de, 2015-06-10 (annotated)
- Committer:
- Silvio Lucio Oliva
- Date:
- Wed Jun 10 15:35:32 2015 +0200
- Revision:
- 72:730717ed87de
- Parent:
- 70:d20d30f59b1c
Add support to IAR and relative prj files
Signed-off-by: Silvio Lucio Oliva <silvio.oliva@st.com>
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Silvio Lucio Oliva |
70:d20d30f59b1c | 1 | /******************** (C) COPYRIGHT 2012 STMicroelectronics ******************** |
Silvio Lucio Oliva |
70:d20d30f59b1c | 2 | * File Name : compiler.h |
Silvio Lucio Oliva |
70:d20d30f59b1c | 3 | * Author : AMS - HEA&RF BU |
Silvio Lucio Oliva |
70:d20d30f59b1c | 4 | * Version : V1.0.0 |
Silvio Lucio Oliva |
70:d20d30f59b1c | 5 | * Date : 19-July-2012 |
Silvio Lucio Oliva |
70:d20d30f59b1c | 6 | * Description : Compiler-dependent macros. |
Silvio Lucio Oliva |
70:d20d30f59b1c | 7 | ******************************************************************************** |
Silvio Lucio Oliva |
70:d20d30f59b1c | 8 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS |
Silvio Lucio Oliva |
70:d20d30f59b1c | 9 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. |
Silvio Lucio Oliva |
70:d20d30f59b1c | 10 | * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, |
Silvio Lucio Oliva |
70:d20d30f59b1c | 11 | * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE |
Silvio Lucio Oliva |
70:d20d30f59b1c | 12 | * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING |
Silvio Lucio Oliva |
70:d20d30f59b1c | 13 | * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. |
Silvio Lucio Oliva |
70:d20d30f59b1c | 14 | *******************************************************************************/ |
Silvio Lucio Oliva |
70:d20d30f59b1c | 15 | |
Silvio Lucio Oliva |
70:d20d30f59b1c | 16 | #ifndef DOXYGEN_SHOULD_SKIP_THIS |
Silvio Lucio Oliva |
70:d20d30f59b1c | 17 | |
Silvio Lucio Oliva |
70:d20d30f59b1c | 18 | #ifdef __ICCARM__ |
Silvio Lucio Oliva |
70:d20d30f59b1c | 19 | #define PACKED |
Silvio Lucio Oliva |
70:d20d30f59b1c | 20 | #else |
Silvio Lucio Oliva |
70:d20d30f59b1c | 21 | #ifdef __GNUC__ |
Silvio Lucio Oliva |
70:d20d30f59b1c | 22 | #undef __packed |
Silvio Lucio Oliva |
70:d20d30f59b1c | 23 | #define __packed |
Silvio Lucio Oliva |
70:d20d30f59b1c | 24 | #define PACKED __attribute__((packed)) |
Silvio Lucio Oliva |
70:d20d30f59b1c | 25 | #else |
Silvio Lucio Oliva |
70:d20d30f59b1c | 26 | #define PACKED |
Silvio Lucio Oliva |
70:d20d30f59b1c | 27 | #define __packed |
Silvio Lucio Oliva |
70:d20d30f59b1c | 28 | #endif |
Silvio Lucio Oliva |
70:d20d30f59b1c | 29 | #endif |
Silvio Lucio Oliva |
70:d20d30f59b1c | 30 | |
Silvio Lucio Oliva |
70:d20d30f59b1c | 31 | /* Change this define to 1 if zero-length arrays are not supported by your compiler. */ |
Silvio Lucio Oliva |
72:730717ed87de | 32 | #define VARIABLE_SIZE 1 |
Silvio Lucio Oliva |
70:d20d30f59b1c | 33 | |
Silvio Lucio Oliva |
70:d20d30f59b1c | 34 | #endif /* DOXYGEN_SHOULD_SKIP_THIS */ |