mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-23 13:18:59 +00:00
[refactor] remove bflb_platform.h from bl602 and bl702 driver,include it in anywhere used
This commit is contained in:
parent
e212f9de4a
commit
9c67a54e24
173 changed files with 1188 additions and 975 deletions
|
@ -20,6 +20,7 @@
|
|||
* under the License.
|
||||
*
|
||||
*/
|
||||
#include "bflb_platform.h"
|
||||
#include "hal_spi.h"
|
||||
#include "hal_gpio.h"
|
||||
#include "hal_dma.h"
|
||||
|
|
|
@ -20,8 +20,9 @@
|
|||
* under the License.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "bflb_platform.h"
|
||||
#include "GSL61xx.h"
|
||||
|
||||
uint8_t image[120 * 104];
|
||||
|
||||
void main(void)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
set(BSP_COMMON_DIR ${CMAKE_SOURCE_DIR}/bsp/bsp_common)
|
||||
set(TARGET_REQUIRED_PRIVATE_INCLUDE ${BSP_COMMON_DIR}/es8388 ${BSP_COMMON_DIR}/wm8978 ${BSP_COMMON_DIR}/spi_sd)
|
||||
set(TARGET_REQUIRED_SRCS ${BSP_COMMON_DIR}/es8388/bsp_es8388.c ${BSP_COMMON_DIR}/wm8978/wm8978.c )
|
||||
set(TARGET_REQUIRED_SRCS ${BSP_COMMON_DIR}/es8388/bsp_es8388.c ${BSP_COMMON_DIR}/wm8978/bsp_wm8978.c )
|
||||
set(mains main.c)
|
||||
generate_bin()
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
* under the License.
|
||||
*
|
||||
*/
|
||||
#include "bflb_platform.h"
|
||||
#include "hal_spi.h"
|
||||
#include "hal_i2c.h"
|
||||
#include "hal_uart.h"
|
||||
|
@ -39,7 +40,7 @@
|
|||
#if (AUTIO_MODULE_TYPE == AUTIO_ES8388)
|
||||
#include "bsp_es8388.h"
|
||||
#elif (AUTIO_MODULE_TYPE == AUTIO_WM8978)
|
||||
#include "wm8978.h"
|
||||
#include "bsp_wm8978.h"
|
||||
#else
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
set(BSP_COMMON_DIR ${CMAKE_SOURCE_DIR}/bsp/bsp_common)
|
||||
set(TARGET_REQUIRED_PRIVATE_INCLUDE ${BSP_COMMON_DIR}/es8388 ${BSP_COMMON_DIR}/wm8978 ${BSP_COMMON_DIR}/spi_sd)
|
||||
set(TARGET_REQUIRED_SRCS ${BSP_COMMON_DIR}/es8388/bsp_es8388.c ${BSP_COMMON_DIR}/wm8978/wm8978.c )
|
||||
set(TARGET_REQUIRED_SRCS ${BSP_COMMON_DIR}/es8388/bsp_es8388.c ${BSP_COMMON_DIR}/wm8978/bsp_wm8978.c )
|
||||
set(mains main.c)
|
||||
generate_bin()
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
* under the License.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "bflb_platform.h"
|
||||
#include "bl702_glb.h"
|
||||
#include "bl702_spi.h"
|
||||
#include "hal_spi.h"
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
* under the License.
|
||||
*
|
||||
*/
|
||||
#include "bflb_platform.h"
|
||||
#include "hal_spi.h"
|
||||
#include "hal_gpio.h"
|
||||
#include "hal_dma.h"
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
* 关于 romfs 文件系统相关,请查看 components/romfs/genromfs/readme.md 文档
|
||||
* 本例程是使用四分之一图片,通过镜像旋转到完整图片
|
||||
*/
|
||||
|
||||
#include "bflb_platform.h"
|
||||
#include "hal_spi.h"
|
||||
#include "hal_gpio.h"
|
||||
#include "hal_dma.h"
|
||||
|
|
|
@ -20,9 +20,11 @@
|
|||
* under the License.
|
||||
*
|
||||
*/
|
||||
#include "bflb_platform.h"
|
||||
#include "hal_spi.h"
|
||||
#include "hal_gpio.h"
|
||||
#include "hal_dma.h"
|
||||
|
||||
#define TRANSFER_LEN 256
|
||||
static uint32_t txBuff[TRANSFER_LEN] = { 0 };
|
||||
static uint32_t rxBuff[TRANSFER_LEN] = { 0 };
|
||||
|
|
|
@ -1,3 +1,26 @@
|
|||
/**
|
||||
* @file main.c
|
||||
* @brief
|
||||
*
|
||||
* Copyright (c) 2021 Bouffalolab team
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership. The
|
||||
* ASF licenses this file to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance with the
|
||||
* License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*
|
||||
*/
|
||||
#include "bflb_platform.h"
|
||||
#include "hal_spi.h"
|
||||
#include "hal_gpio.h"
|
||||
#include "ssd1306.h"
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
* under the License.
|
||||
*
|
||||
*/
|
||||
#include "bflb_platform.h"
|
||||
#include "hal_spi.h"
|
||||
#include "hal_gpio.h"
|
||||
#include "hal_dma.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue