/*
*************************************************************
 Copyright (C), 2016-2020 smartlinkMicro. Co., Ltd.  All rights reserved.
 Filename:
 Complier:    ARM-MDK 5.xx
 Target OS:   none
 Target HW:
 Author:        htyi
 Version :      V1.0.0
 Date:
 Description:
 History:
     <author>     <time>     <version >   <desc>

*************************************************************
*/
#include <string.h>
#include "main.h"
#include "stm32f0xx_conf.h"
#include "utilities.h"
#include "usart.h"
#include "spi.h"

#include "XX522.h"
int main(void) {
    INT_EXTI_Config();
    uart_init(115200);
    DEV_SPI_Init();
    Init_LED();
    
    Sl2x23_spi_test();  //spi½Ó¿Ú²âÊÔ¼Ä´æÆ÷
    while(1) {
        Sl2x23_demo();  //Sl2x23_demo
        delay_1ms(500);
    }
}
