fix violations

Signed-off-by: Andy Liu <jie.liu@telink-semi.com>
This commit is contained in:
Andy Liu
2022-05-22 00:25:04 +08:00
parent 5cf5583bdf
commit 000d51826e
5 changed files with 23 additions and 24 deletions
-1
View File
@@ -14,4 +14,3 @@
# limitations under the License.
orsource "*/Kconfig.liteos_m.board"
+10 -8
View File
@@ -16,16 +16,18 @@
*
*****************************************************************************/
#pragma once
#ifndef APP_CONFIG_H
#define APP_CONFIG_H
#define MASTER_MAX_NUM 4
#define SLAVE_MAX_NUM 4
#define MASTER_MAX_NUM 4
#define SLAVE_MAX_NUM 4
/* Feature Configuration */
#define FLASH_SIZE_CONFIG FLASH_SIZE_2M
///////////////////////// Feature Configuration////////////////////////////////////////////////
#define FLASH_SIZE_CONFIG FLASH_SIZE_2M //very important, user need confirm !!!
///////////////////////// DEBUG Configuration ////////////////////////////////////////////////
#define UART_PRINT_DEBUG_ENABLE 1 //printf
/* DEBUG Configuration */
#define UART_PRINT_DEBUG_ENABLE 1
#include "../common/default_config.h"
#endif // APP_CONFIG_H
+9 -10
View File
@@ -23,15 +23,15 @@
#ifndef _TARGET_CONFIG_H
#define _TARGET_CONFIG_H
#include "soc.h"
#include "memmap_config.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif /* __cplusplus */
#endif /* __cplusplus */
#include "soc.h"
#include "memmap_config.h"
/*=============================================================================
System clock module configuration
=============================================================================*/
@@ -81,9 +81,9 @@ extern "C" {
Memory module configuration
=============================================================================*/
#define LOSCFG_SYS_HEAP_SIZE OS_SYS_MEM_SIZE
#define LOSCFG_SYS_EXTERNAL_HEAP 1
#define OS_SYS_MEM_SIZE ((UINT32)(__los_heap_size__))
#define LOSCFG_SYS_HEAP_ADDR (VOID *)(__los_heap_addr_start__)
#define LOSCFG_SYS_EXTERNAL_HEAP 1
#define OS_SYS_MEM_SIZE ((UINT32)(__los_heap_size__))
#define LOSCFG_SYS_HEAP_ADDR (VOID *)(__los_heap_addr_start__)
#define LOSCFG_BASE_MEM_NODE_INTEGRITY_CHECK 0
#define LOSCFG_BASE_MEM_NODE_SIZE_CHECK 1
#define LOSCFG_MEM_MUL_POOL 0
@@ -105,10 +105,9 @@ extern "C" {
#define LOSCFG_FAMILY_B91 1
#define LOSCFG_TELINK_B91_CPU_FREQ 48000000
#define LOSCFG_POWER_MODE_LDO_1P4_LDO_1P8 1
#define LOSCFG_VBAT_TYPE_MAX_VALUE_GREATER_THAN_3V6 1
#define LOSCFG_TELINK_B91_CPU_FREQ 48000000
#define LOSCFG_POWER_MODE_LDO_1P4_LDO_1P8 1
#define LOSCFG_VBAT_TYPE_MAX_VALUE_GREATER_THAN_3V6 1
#ifdef __cplusplus
#if __cplusplus
@@ -31,8 +31,6 @@ extern "C" {
extern VOID HalIrqDisable(UINT32 vector);
extern VOID HalIrqEnable(UINT32 vector);
extern VOID HalSetLocalInterPri(UINT32 vector, UINT16 prior);
//
// extern VOID HalClockInit(OS_TICK_HANDLER handler, UINT32 period);
#ifdef __cplusplus
#if __cplusplus
@@ -18,6 +18,7 @@
#ifndef _SOC_H
#define _SOC_H
#include "soc_common.h"
/*
@@ -28,12 +29,12 @@
#define MTIMERCMP 0xE6000008
#define MTIMER 0xE6000000
#define RISCV_SYS_MAX_IRQ 11
#define RISCV_SYS_MAX_IRQ 11
/*
/*
* Because of strange implementation of los_interrupt.c in kernel sum of
* (RISCV_SYS_MAX_IRQ + RISCV_PLIC_VECTOR_CNT) should be at least 25
*/
#define RISCV_PLIC_VECTOR_CNT 14
#define RISCV_PLIC_VECTOR_CNT 14
#endif