#include "bsp/shark_bsp.h" #include "bsp/gpio.h" #include "bsp/uart.h" #include "bsp/AT24CXX.h" #include "bsp/shark_rtc.h" #include "bsp/clock.h" #if defined CONFIG_BOARD_SP700 const char iap_board_name[] __attribute__((at(0x08002800))) = "SP700"; #elif defined CONFIG_BOARD_SP600 const char iap_board_name[] __attribute__((at(0x08002800))) = "SP600"; #endif const char iap_fw_version[] __attribute__((at(0x08002A00))) = "1.0"; const char iap_fw_name[] __attribute__((at(0x08002C00))) = "App"; extern void system_clock_config(void); extern void SystemCoreClockUpdate(void); #define ALARM_TEST 1 //all board's low level init is here void bsp_init(void){ wdog_start(4); shark_rtc_init(); gpio_init(); DCDC_VOL_OPEN(1); delay_us(100); system_clock_config(); //after dcdc open, MCU can run on full speed SystemCoreClockUpdate(); shark_uart_init(SHARK_UART0); shark_uart_init(SHARK_UART1); AT24CXX_Init(); } void wdog_start(int timeout){ } void wdog_reload(void){ }