Index: Common.h =================================================================== diff -u -r7afc56a34c697e69faedaeffb3910b12d7d0628f -r0f360f63d0d90953ff43d086f01f055246aea907 --- Common.h (.../Common.h) (revision 7afc56a34c697e69faedaeffb3910b12d7d0628f) +++ Common.h (.../Common.h) (revision 0f360f63d0d90953ff43d086f01f055246aea907) @@ -7,8 +7,8 @@ * * @file Common.h * -* @author (last) Sean Nash -* @date (last) 12-Nov-2021 +* @author (last) Dara Navaei +* @date (last) 04-Jan-2022 * * @author (original) Sean * @date (original) 04-Feb-2020 @@ -119,6 +119,9 @@ #define BITS_12_FULL_SCALE 4096 ///< Full scale range for 12 bit ADC or DAC #define BITS_14_FULL_SCALE 16384 ///< Full scale range for 14 bit ADC or DAC #define BITS_16_FULL_SCALE 65536 ///< Full scale range for 16 bit ADC or DAC +#define LR_OFFSET_WORD_IN_STACK 22 ///< Offset of the link register from the STACK_MARKER +#define STACK_MARKER 0xCAFECAFE ///< Location in the stack to determine the offset in word from the Link Register +#define LR_OFFSET_ADJUSTMENT 4 ///< Adjust the content of the LR so that the Memory Access Violation does not get call continously // **** Common Macros ****