[refactor] remove bflb_platform.h from bl602 and bl702 driver,include it in anywhere used

This commit is contained in:
jzlv 2021-10-19 20:04:23 +08:00
parent e212f9de4a
commit 9c67a54e24
173 changed files with 1188 additions and 975 deletions

View file

@ -20,6 +20,7 @@
* under the License.
*
*/
#include "bflb_platform.h"
#include "hal_spi.h"
#include "hal_gpio.h"
#include "hal_dma.h"

View file

@ -20,8 +20,9 @@
* under the License.
*
*/
#include "bflb_platform.h"
#include "GSL61xx.h"
uint8_t image[120 * 104];
void main(void)

View file

@ -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()

View file

@ -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

View file

@ -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()

View file

@ -20,7 +20,7 @@
* under the License.
*
*/
#include "bflb_platform.h"
#include "bl702_glb.h"
#include "bl702_spi.h"
#include "hal_spi.h"

View file

@ -20,6 +20,7 @@
* under the License.
*
*/
#include "bflb_platform.h"
#include "hal_spi.h"
#include "hal_gpio.h"
#include "hal_dma.h"

View file

@ -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"

View file

@ -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 };

View file

@ -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"

View file

@ -20,6 +20,7 @@
* under the License.
*
*/
#include "bflb_platform.h"
#include "hal_spi.h"
#include "hal_gpio.h"
#include "hal_dma.h"