1.优化引用符号。

This commit is contained in:
MacRsh
2023-05-15 09:48:52 +08:00
parent b9c366d0a9
commit 401fd583dd
23 changed files with 29 additions and 28 deletions

View File

@@ -1,4 +1,4 @@
#include <board.h>
#include "board.h"
void mr_hw_interrupt_disable(void)
{

View File

@@ -1,7 +1,7 @@
#ifndef _MR_CONFIG_H_
#define _MR_CONFIG_H_
#include <board.h>
#include "board.h"
//<<< Config switch >>>
#define MR_CONF_DISABLE 0

View File

@@ -8,7 +8,7 @@
* 2023-04-23 MacRsh first version
*/
#include <device/adc/adc.h>
#include "device/adc/adc.h"
#if (MR_CONF_DEVICE_ADC == MR_CONF_ENABLE)

View File

@@ -11,7 +11,7 @@
#ifndef _ADC_H_
#define _ADC_H_
#include <mrlib.h>
#include "mrlib.h"
#if (MR_CONF_DEVICE_ADC == MR_CONF_ENABLE)

View File

@@ -8,7 +8,7 @@
* 2023-04-23 MacRsh first version
*/
#include <device/dac/dac.h>
#include "device/dac/dac.h"
#if (MR_CONF_DEVICE_DAC == MR_CONF_ENABLE)

View File

@@ -11,7 +11,7 @@
#ifndef _DAC_H_
#define _DAC_H_
#include <mrlib.h>
#include "mrlib.h"
#if (MR_CONF_DEVICE_DAC == MR_CONF_ENABLE)

View File

@@ -8,7 +8,7 @@
* 2023-04-23 MacRsh first version
*/
#include <device/i2c/i2c.h>
#include "device/i2c/i2c.h"
#if (MR_CONF_DEVICE_I2C == MR_CONF_ENABLE)

View File

@@ -11,7 +11,7 @@
#ifndef _I2C_H_
#define _I2C_H_
#include <mrlib.h>
#include "mrlib.h"
#if (MR_CONF_DEVICE_I2C == MR_CONF_ENABLE)

View File

@@ -8,7 +8,7 @@
* 2023-04-23 MacRsh first version
*/
#include <device/serial/serial.h>
#include "device/serial/serial.h"
#if (MR_CONF_DEVICE_SERIAL == MR_CONF_ENABLE)

View File

@@ -11,7 +11,7 @@
#ifndef _SERIAL_H_
#define _SERIAL_H_
#include <mrlib.h>
#include "mrlib.h"
#if (MR_CONF_DEVICE_SERIAL == MR_CONF_ENABLE)

View File

@@ -8,7 +8,7 @@
* 2023-04-23 MacRsh first version
*/
#include <device/spi/spi.h>
#include "device/spi/spi.h"
#undef LOG_TAG
#define LOG_TAG "spi"

View File

@@ -11,7 +11,7 @@
#ifndef _SPI_H_
#define _SPI_H_
#include <mrlib.h>
#include "mrlib.h"
#if (MR_CONF_DEVICE_SPI == MR_CONF_ENABLE)

View File

@@ -8,7 +8,7 @@
* 2023-04-23 MacRsh first version
*/
#include <device/timer/timer.h>
#include "device/timer/timer.h"
#if (MR_CONF_DEVICE_TIMER == MR_CONF_ENABLE)

View File

@@ -11,7 +11,7 @@
#ifndef _TIMER_H_
#define _TIMER_H_
#include <mrlib.h>
#include "mrlib.h"
#if (MR_CONF_DEVICE_TIMER == MR_CONF_ENABLE)

View File

@@ -11,14 +11,14 @@
#ifndef _MR_DRV_H_
#define _MR_DRV_H_
#include <mrconfig.h>
#include "mrconfig.h"
#if (MR_CONF_DEVICE_SERIAL == MR_CONF_ENABLE)
#include <drv_uart.h>
#include "drv_uart.h"
#endif
#if (MR_CONF_DEVICE_PIN == MR_CONF_ENABLE)
#include <drv_gpio.h>
#include "drv_gpio.h"
#endif
#endif

View File

@@ -11,9 +11,9 @@
#ifndef _MR_LIB_H_
#define _MR_LIB_H_
#include <mrdef.h>
#include <mrservice.h>
#include <mrlog.h>
#include "mrdef.h"
#include "mrservice.h"
#include "mrlog.h"
/**
* Export hardware functions
@@ -34,6 +34,7 @@ mr_size_t mr_avl_get_length(mr_avl_t tree);
/**
* Export kservice functions
*/
void mr_auto_init(void);
mr_uint32_t mr_strhase(const char *str);
mr_uint32_t mr_strnhase(const char *str, mr_size_t length);
@@ -140,4 +141,4 @@ mr_err_t mr_at_cmd_create(const char *at_cmd,
mr_err_t mr_at_cmd_delete(mr_uint32_t at_cmd, mr_manager_t manager);
void mr_at_parser_isr(mr_manager_t manager, char data);
#endif
#endif

View File

@@ -11,7 +11,7 @@
#ifndef _MR_LOG_H_
#define _MR_LOG_H_
#include <mrdef.h>
#include "mrdef.h"
#define MR_LOG_A(TAG, FORMAT, ...) mr_log_output(MR_CONF_LOG_LEVEL_ASSERT, TAG, FORMAT, ##__VA_ARGS__)
#define MR_LOG_E(TAG, FORMAT, ...) mr_log_output(MR_CONF_LOG_LEVEL_ERROR, TAG, FORMAT, ##__VA_ARGS__)

View File

@@ -11,7 +11,7 @@
#ifndef _MR_SERVE_H_
#define _MR_SERVE_H_
#include <mrdef.h>
#include "mrdef.h"
#define mr_struct_of(ptr, type, member) \
((type *)((char *)(ptr) - (unsigned long)(&((type *)0)->member)))

View File

@@ -8,7 +8,7 @@
* 2023-04-23 MacRsh first version
*/
#include <mrlib.h>
#include "mrlib.h"
#undef LOG_TAG
#define LOG_TAG "device"

View File

@@ -8,7 +8,7 @@
* 2023-04-23 MacRsh first version
*/
#include <mrlib.h>
#include "mrlib.h"
/**
* @brief This function initialize the fifo.

View File

@@ -8,7 +8,7 @@
* 2023-04-23 MacRsh first version
*/
#include <mrlib.h>
#include "mrlib.h"
static struct mr_container mr_kernel_container[_MR_CONTAINER_TYPE_MASK] =
{

View File

@@ -8,7 +8,7 @@
* 2023-04-23 MacRsh first version
*/
#include <mrlib.h>
#include "mrlib.h"
static char *log_level_name[] =
{

View File

@@ -8,7 +8,7 @@
* 2023-04-23 MacRsh first version
*/
#include <mrlib.h>
#include "mrlib.h"
#undef LOG_TAG
#define LOG_TAG "manager"