This is the entry in peripherals.h for both errors
// Lookup table for digits 0-9 (0 = ON, 1 = OFF)
const uint32_t CA_LUT[10] = {
//0: A, B, C, D, E, F are ON; G, DP are OFF
~((1<<SEG_A)|(1<<SEG_B)|(1<<SEG_C)|(1<<SEG_D)|(1<<SEG_E)|(1<<SEG_F)),
// 1: B, C are ON
~((1<<SEG_B)|(1<<SEG_C)),
// 2: A, B, D, E, G are ON
~((1<<SEG_A)|(1<<SEG_B)|(1<<SEG_D)|(1<<SEG_E)|(1<<SEG_G)),
// 3: A, B, C, D, G are ON
~((1<<SEG_A)|(1<<SEG_B)|(1<<SEG_C)|(1<<SEG_D)|(1<<SEG_G)),
// 4: B, C, F, G are ON
~((1<<SEG_B)|(1<<SEG_C)|(1<<SEG_F)|(1<<SEG_G)),
// 5: A, C, D, F, G are ON
~((1<<SEG_A)|(1<<SEG_C)|(1<<SEG_D)|(1<<SEG_F)|(1<<SEG_G)),
// 6: A, C, D, E, F, G are ON
~((1<<SEG_A)|(1<<SEG_C)|(1<<SEG_D)|(1<<SEG_E)|(1<<SEG_F)|(1<<SEG_G)),
// 7: A, B, C are ON
~((1<<SEG_A)|(1<<SEG_B)|(1<<SEG_C)),
// 8: All segments ON (A-G)
~((1<<SEG_A)|(1<<SEG_B)|(1<<SEG_C)|(1<<SEG_D)|(1<<SEG_E)|(1<<SEG_F)|(1<<SEG_G)),
// 9: A, B, C, D, F, G are ON
~((1<<SEG_A)|(1<<SEG_B)|(1<<SEG_C)|(1<<SEG_D)|(1<<SEG_F)|(1<<SEG_G))
};
// Global variables holding the current numbers to be printed on Digits 1, 2, and 3
volatile uint8_t display_buffer[3] = {1, 2, 3}; // E.g., displays "123"
Both errors are used in main.c :-
uint8_t numeric_value = display_buffer[current_digit];
uint32_t segment_pattern = CA_LUT[numeric_value];
#include "peripherals.h" appears only in the following files: -
main.c, peripherals.c,
AS I mentioned I am coming over from CodeWarrior, so my knowledge of MCUX is probably dangerous (?????). I'm not sure whether a 7-segment display is a peripheral device (peripherals.h and c) or a declaration for a number of pins (pin_mux.h and c), but that can be sorted out later.