Drop git module

This commit is contained in:
Ben V. Brown
2022-04-02 18:15:57 +11:00
parent 8bd6e0983e
commit f004fab4c5
4 changed files with 78 additions and 48 deletions

View File

@@ -24,16 +24,8 @@
#ifndef __BL602_CONFIG_H__
#define __BL602_CONFIG_H__
#if defined(bl602_iot)
#include "bl602_iot/peripheral_config.h"
#include "bl602_iot/clock_config.h"
#include "bl602_iot/pinmux_config.h"
#elif defined(bl602_boot2)
#include "bl602_boot2/peripheral_config.h"
#include "bl602_boot2/clock_config.h"
#include "bl602_boot2/pinmux_config.h"
#else
#error "do not find board,please check your board name"
#endif
#include "clock_config.h"
#include "peripheral_config.h"
#include "pinmux_config.h"
#endif

View File

@@ -24,32 +24,26 @@
#ifndef _CLOCK_CONFIG_H
#define _CLOCK_CONFIG_H
#define XTAL_TYPE EXTERNAL_XTAL_40M
#define XTAL_32K_TYPE INTERNAL_RC_32K
#define BSP_ROOT_CLOCK_SOURCE ROOT_CLOCK_SOURCE_PLL_160M
#define XTAL_TYPE EXTERNAL_XTAL_32M
#define XTAL_32K_TYPE INTERNAL_RC_32K
#define BSP_ROOT_CLOCK_SOURCE ROOT_CLOCK_SOURCE_PLL_160M
#define ROOT_CLOCK_SOURCE_AUPLL 8 // Used to shut up compiler as its undefined for bl60x
#define BSP_FCLK_DIV 0
#define BSP_BCLK_DIV 1
#define BSP_FCLK_DIV 0
#define BSP_BCLK_DIV 1
#define BSP_USING_UART0
#define BSP_USING_I2C0
#define BSP_USING_ADC0
#if defined(BSP_USING_UART0) || defined(BSP_USING_UART1)
#define BSP_UART_CLOCK_SOURCE ROOT_CLOCK_SOURCE_PLL_160M
#define BSP_UART_CLOCK_DIV 0
#endif
#if defined(BSP_USING_I2C0)
#define BSP_I2C_CLOCK_SOURCE ROOT_CLOCK_SOURCE_BCLK
#define BSP_I2C_CLOCK_DIV 0
#endif
#if defined(BSP_USING_SPI0)
#define BSP_SPI_CLOCK_SOURCE ROOT_CLOCK_SOURCE_BCLK
#define BSP_SPI_CLOCK_DIV 0
#endif
#if defined(BSP_USING_ADC0)
#define BSP_ADC_CLOCK_SOURCE ROOT_CLOCK_SOURCE_XCLK
#define BSP_ADC_CLOCK_DIV 0
#endif
#if defined(BSP_USING_DAC0)
#define BSP_DAC_CLOCK_SOURCE ROOT_CLOCK_SOURCE_AUPLL
#define BSP_DAC_CLOCK_DIV 1
#endif
#define BSP_I2C_CLOCK_SOURCE ROOT_CLOCK_SOURCE_BCLK
#define BSP_I2C_CLOCK_DIV 0
#define BSP_SPI_CLOCK_SOURCE ROOT_CLOCK_SOURCE_BCLK
#define BSP_SPI_CLOCK_DIV 0
#define BSP_ADC_CLOCK_SOURCE ROOT_CLOCK_SOURCE_XCLK
#define BSP_ADC_CLOCK_DIV 0
#define BSP_DAC_CLOCK_SOURCE ROOT_CLOCK_SOURCE_AUPLL
#define BSP_DAC_CLOCK_DIV 1
#endif