修复mico-sdk错误

This commit is contained in:
nhkefus
2025-03-11 15:54:45 +08:00
parent 3422912129
commit 2ccb892a1c
2152 changed files with 664341 additions and 702636 deletions

View File

@@ -1,41 +1,41 @@
/**
******************************************************************************
* @file portmacro.c
* @author William Xu
* @version V1.0.0
* @date 06-Jun-2017
* @brief This file provide the NoRTOS portable MACROS
******************************************************************************
*
* UNPUBLISHED PROPRIETARY SOURCE CODE
* Copyright (c) 2017 MXCHIP Inc.
*
* The contents of this file may not be disclosed to third parties, copied or
* duplicated in any form, in whole or in part, without the prior written
* permission of MXCHIP Corporation.
******************************************************************************
*/
#ifndef PORTMACRO_H
#define PORTMACRO_H
#ifdef __cplusplus
extern "C" {
#endif
#define DISABLE_INTERRUPTS() do { __asm("CPSID i"); } while (0)
#define ENABLE_INTERRUPTS() do { __asm("CPSIE i"); } while (0)
#ifdef __cplusplus
}
#endif
#endif
/**
******************************************************************************
* @file portmacro.c
* @author William Xu
* @version V1.0.0
* @date 06-Jun-2017
* @brief This file provide the NoRTOS portable MACROS
******************************************************************************
*
* UNPUBLISHED PROPRIETARY SOURCE CODE
* Copyright (c) 2017 MXCHIP Inc.
*
* The contents of this file may not be disclosed to third parties, copied or
* duplicated in any form, in whole or in part, without the prior written
* permission of MXCHIP Corporation.
******************************************************************************
*/
#ifndef PORTMACRO_H
#define PORTMACRO_H
#ifdef __cplusplus
extern "C" {
#endif
#define DISABLE_INTERRUPTS() do { __asm("CPSID i"); } while (0)
#define ENABLE_INTERRUPTS() do { __asm("CPSIE i"); } while (0)
#ifdef __cplusplus
}
#endif
#endif