From 387d1ffc16ce9e050403baee0ed07f3d9accf632 Mon Sep 17 00:00:00 2001 From: chen <15335560115@163.com> Date: 星期五, 04 七月 2025 14:55:15 +0800 Subject: [PATCH] 初步移植完成0.6.8SDK,但发送有len太长未找到原因 --- keil/include/drivers/mk_common.h | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/keil/include/drivers/mk_common.h b/keil/include/drivers/mk_common.h index e04a638..891a10d 100644 --- a/keil/include/drivers/mk_common.h +++ b/keil/include/drivers/mk_common.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019-2023 Beijing Hanwei Innovation Technology Ltd. Co. and + * Copyright (c) 2019-2025 Beijing Hanwei Innovation Technology Ltd. Co. and * its subsidiaries and affiliates (collectly called MKSEMI). * * All rights reserved. @@ -40,10 +40,6 @@ #ifndef MK_COMMON_H_ #define MK_COMMON_H_ - -#ifdef __cplusplus -extern "C" { -#endif #include <stddef.h> #include <stdint.h> @@ -145,6 +141,9 @@ // check RAM address and Word alignment #define CHK_RAM_WORD_ADDR(x) (((uint32_t)(x)&0xFFFC0003) == SRAM_BASE) +/** The minimum power down time, 65X 32768 ticks, 1983us(~2000us) */ +#define POWER_DOWN_TIME_TICK_MIN (65U) + /// interrupt priority enum IRQ_PRIORITY_LEVEL_T { @@ -152,8 +151,13 @@ IRQ_PRIORITY_HIGH = 1, IRQ_PRIORITY_NORMAL = 2, IRQ_PRIORITY_LOW = 3, + IRQ_PRIORITY_NONE = 4, }; +#ifdef __cplusplus +extern "C" { +#endif + /** * @brief Disable global interrupt. * -- Gitblit v1.9.3