add tos_slist.h, rename tos.h to tos_k.h

This commit is contained in:
daishengdong
2020-01-03 17:25:38 +08:00
parent af07f199d9
commit c9556307df
268 changed files with 900 additions and 742 deletions

View File

@@ -1,4 +1,4 @@
#include "tos.h"
#include "tos_k.h"
#include "tos_hal.h"
#include "n32g020xx_common.h"
#include "n32g020xx.h"
@@ -53,7 +53,7 @@ __API__ int tos_hal_uart_init(hal_uart_t *uart, hal_uart_port_t port)
uart->private_uart = &huart2;
huart0.channel = UART_CH2;
uart->private_uart = &huart2;
}
}
return 0;
}

View File

@@ -1,4 +1,4 @@
#include "tos.h"
#include "tos_k.h"
#include "tos_hal.h"
#include "stm32f1xx_hal.h"
#include "usart.h"

View File

@@ -1,4 +1,4 @@
#include "tos.h"
#include "tos_k.h"
#include "tos_hal.h"
#include "stm32f4xx_hal.h"
#include "sdio.h"

View File

@@ -1,4 +1,4 @@
#include "tos.h"
#include "tos_k.h"
#include "tos_hal.h"
#include "stm32f4xx_hal.h"
#include "usart.h"

View File

@@ -1,4 +1,4 @@
#include "tos.h"
#include "tos_k.h"
#include "tos_hal.h"
#include "stm32f7xx_hal.h"
#include "sdmmc.h"

View File

@@ -1,4 +1,4 @@
#include "tos.h"
#include "tos_k.h"
#include "tos_hal.h"
#include "stm32l0xx_hal.h"
#include "usart.h"
@@ -14,7 +14,7 @@ __API__ int tos_hal_uart_init(hal_uart_t *uart, hal_uart_port_t port)
} else if (port == HAL_UART_PORT_2) {
uart->private_uart = &huart2;
MX_USART2_UART_Init();
}
}
return 0;
}

View File

@@ -1,4 +1,4 @@
#include "tos.h"
#include "tos_k.h"
#include "tos_hal.h"
#include "stm32l4xx_hal.h"
#include "usart.h"

View File

@@ -60,7 +60,7 @@
#include "system_hc32l136.h"
#include "sysctrl.h"
//#include "gpio.h"
#include "tos.h"
#include "tos_k.h"
/* C binding of definitions if building with C++ compiler */
#ifdef __cplusplus
extern "C"
@@ -110,7 +110,7 @@ extern "C"
******************************************************************************
** \brief IRQ name definition for all type MCUs
******************************************************************************/
#define PORTA_IRQHandler(void) IRQ000_Handler(void)
#define PORTB_IRQHandler(void) IRQ001_Handler(void)
#define PORTC_IRQHandler(void) IRQ002_Handler(void)