config BSP_USING_GPIO
    bool "Enable GPIO"
    select OS_USING_PIN
    default y

config BSP_USING_LED
    bool "Enable LED"
    select BSP_USING_GPIO
    default y

menuconfig BSP_USING_UART
    bool "Enable UART"
    default n
    select OS_USING_SERIAL
    if BSP_USING_UART
        config BSP_USING_UART0
            bool "Enable UART0"
            default y

        config BSP_USING_UART1
            bool "Enable UART1"
            default n
			
		config BSP_USING_UART2
            bool "Enable UART2"
            default n
			
		config BSP_USING_UART3
            bool "Enable UART3"
            default n
			
		config BSP_USING_UART4
            bool "Enable UART4"
            default n
			
		config BSP_USING_UART5
            bool "Enable UART5"
            default n
    endif

config BSP_USING_ON_CHIP_FLASH
    bool "Enable on-chip FLASH"
    default n

menuconfig BSP_USING_SPI
    bool "Enable SPI BUS"
    default n
    select OS_USING_SPI
    if BSP_USING_SPI
        config BSP_USING_SPI1
            bool "Enable SPI1 BUS"
            default n

        config BSP_USING_SPI2
            bool "Enable SPI2 BUS"
            default n
    endif

menuconfig BSP_USING_I2C
	bool "Enable I2C BUS"
	default n
	select OS_USING_I2C
	select OS_USING_I2C_BITOPS
	select OS_USING_PIN

	menuconfig BSP_USING_I2C1
		depends on BSP_USING_I2C
		bool "Enable I2C1 BUS (software simulation)"
		default n
		if BSP_USING_I2C1
			comment "Notice: PA14 --> 13; PA15 --> 14"
			config BSP_I2C1_SCL_PIN
				int "i2c1 scl pin number"
				range 1 96
				default 13
			config BSP_I2C1_SDA_PIN
				int "I2C1 sda pin number"
				range 1 96
				default 14
		endif


menuconfig BSP_USING_TIM
    bool "Enable timer"
    default n
    select OS_USING_HWTIMER 
    if BSP_USING_TIM
        config OS_USING_BSTIMER1
            bool "Enable BSTIMER1"
            default n
        config OS_USING_BSTIMER2
            bool "Enable BSTIMER2"
            default n
    endif

menuconfig BSP_USING_PWM
    bool "Enable pwm"
    default n
    select OS_USING_PWM
    if BSP_USING_PWM
    menuconfig BSP_USING_PWM1
        bool "Enable timer1 output pwm"
        default n
        if BSP_USING_PWM1
            config BSP_USING_PWM1_CH1
                bool "Enable PWM1 channel1"
                default n
        endif
    endif

menuconfig BSP_USING_ADC
    bool "Enable ADC"
    default n
    select OS_USING_ADC
    if BSP_USING_ADC
        config BSP_USING_ADC1
            bool "Enable ADC1"
            default n
    endif

menuconfig BSP_USING_ONCHIP_RTC
    bool "Enable RTC"
    select OS_USING_RTC
    default n
    if BSP_USING_ONCHIP_RTC
		config BSP_RTC_USING_32768
			bool "RTC USING 32768"
			default n
    endif

config BSP_USING_WDT
    bool "Enable Watchdog Timer"
    select OS_USING_WDT
    default n
