acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
lv_cmsis_pack.txt (3434B)
1 /**************************************************************************** 2 * Copyright 2022 Gorgon Meducer (Email:embedded_zhuoran@hotmail.com) * 3 * * 4 * Licensed under the Apache License, Version 2.0 (the "License"); * 5 * you may not use this file except in compliance with the License. * 6 * You may obtain a copy of the License at * 7 * * 8 * http://www.apache.org/licenses/LICENSE-2.0 * 9 * * 10 * Unless required by applicable law or agreed to in writing, software * 11 * distributed under the License is distributed on an "AS IS" BASIS, * 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * 13 * See the License for the specific language governing permissions and * 14 * limitations under the License. * 15 * * 16 ****************************************************************************/ 17 18 /** 19 * @file lv_cmsis_pack.c 20 * 21 * @brief This file will only be used by cmsis-pack. 22 */ 23 24 /********************* 25 * INCLUDES 26 *********************/ 27 #include "RTE_Components.h" 28 #include <time.h> 29 30 /********************* 31 * DEFINES 32 *********************/ 33 34 /********************** 35 * TYPEDEFS 36 **********************/ 37 38 /********************** 39 * STATIC PROTOTYPES 40 **********************/ 41 42 /********************** 43 * STATIC VARIABLES 44 **********************/ 45 46 /********************** 47 * MACROS 48 **********************/ 49 50 /*! \name The macros to identify the compiler */ 51 /*! @{ */ 52 53 /*! \note for IAR */ 54 #undef __IS_COMPILER_IAR__ 55 #if defined(__IAR_SYSTEMS_ICC__) 56 # define __IS_COMPILER_IAR__ 1 57 #endif 58 59 /*! \note for arm compiler 5 */ 60 #undef __IS_COMPILER_ARM_COMPILER_5__ 61 #if ((__ARMCC_VERSION >= 5000000) && (__ARMCC_VERSION < 6000000)) 62 # define __IS_COMPILER_ARM_COMPILER_5__ 1 63 #endif 64 /*! @} */ 65 66 /*! \note for arm compiler 6 */ 67 68 #undef __IS_COMPILER_ARM_COMPILER_6__ 69 #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) 70 # define __IS_COMPILER_ARM_COMPILER_6__ 1 71 #endif 72 73 #undef __IS_COMPILER_ARM_COMPILER__ 74 #if defined(__IS_COMPILER_ARM_COMPILER_5__) && __IS_COMPILER_ARM_COMPILER_5__ \ 75 || defined(__IS_COMPILER_ARM_COMPILER_6__) && __IS_COMPILER_ARM_COMPILER_6__ 76 77 # define __IS_COMPILER_ARM_COMPILER__ 1 78 79 #endif 80 81 82 #undef __IS_COMPILER_LLVM__ 83 #if defined(__clang__) && !__IS_COMPILER_ARM_COMPILER_6__ 84 # define __IS_COMPILER_LLVM__ 1 85 #else 86 /*! \note for gcc */ 87 # undef __IS_COMPILER_GCC__ 88 # if defined(__GNUC__) && !( defined(__IS_COMPILER_ARM_COMPILER__) \ 89 || defined(__IS_COMPILER_LLVM__)) 90 # define __IS_COMPILER_GCC__ 1 91 # endif 92 /*! @} */ 93 #endif 94 /*! @} */ 95 96 97 /********************** 98 * GLOBAL FUNCTIONS 99 **********************/ 100 101 /* only arm compilers will use microLib that doesn't implement time() */ 102 #if defined(__MICROLIB) 103 __attribute__((weak)) 104 _ARMABI time_t time(time_t * time) 105 { 106 return (time_t)(-1); 107 } 108 #endif 109 110 /* when people don't want to use src/extra */ 111 __attribute__((weak)) 112 void lv_extra_init(void) 113 { 114 } 115