123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef __PLATFORM_H
- #define __PLATFORM_H
- /*
- *********************************************************************************************************
- * HARDWARE PLATFORM
- *********************************************************************************************************
- */
- #include "xinc_m0.h"
- #include "bsp_register_macro.h"
- #include "bsp_com_spi.h"
- #include "bsp_uart.h"
- #include "bsp_pwm.h"
- #include "bsp_gpio.h"
- #include "bsp_spi_master.h"
- #include "stdio.h"
- #include "bsp_wdog.h"
- #include "test_config.h"
- #include "string.h"
- /*
- *********************************************************************************************************
- * PLATFORM DEFINES
- *********************************************************************************************************
- */
- #define CORE_CLK 32000000ul /* Set Processor frequency */
- #define TICKS_PER_SEC 100ul /* Set the number of ticks in one second */
- /*
- *********************************************************************************************************
- * GLOBAL FUNCTION
- *********************************************************************************************************
- */
- #define AT_USE_UART 1
- #define AT_BUFF_LEN 100
- #define PIN_32_16
- #define __ASSERT(a) while(!(a))
- void delay_us(uint32_t nus);
- void delay_ms(uint32_t nms);
- void data_sent(uint8_t *buffer,uint16_t length);//Óû§Êý¾Ý·¢ËÍ ble->ÊÖ»ú
- #endif
|