1 /* 2 * Copyright (c) 2023 HPMicro 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 8 #ifndef _USER_CONFIG_H 9 #define _USER_CONFIG_H 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 #define E2P_DEBUG_LEVEL (1) 16 #define E2P_CRITICAL_ENTER() do { disable_global_irq(CSR_MSTATUS_MIE_MASK); } while(0) 17 #define E2P_CRITICAL_EXIT() do { enable_global_irq(CSR_MSTATUS_MIE_MASK); } while(0) 18 19 #define EEPROM_MAX_VAR_CNT (100) 20 21 #ifdef __cplusplus 22 } 23 #endif 24 25 #endif