mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Drop git module
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user