unable to read port memory
KeyInputMemory[column_count] = (uint16_t)(GPIOB->IDR); uint16_t mask = 0x0FFF; KeyInputMemory[column_count] &= mask; if (KeyInputMemory[column_count] == StoredKeyInput[column_count]) { // KeyInputCounter[column_count]++; ...