bsp.c 745 B

1234567891011121314151617181920212223242526272829
  1. #include "bsp/shark_bsp.h"
  2. #include "bsp/gpio.h"
  3. #if defined CONFIG_BOARD_SP700
  4. const char iap_board_name[] __attribute__((at(0x08002800))) = "SP700";
  5. #elif defined CONFIG_BOARD_SP600
  6. const char iap_board_name[] __attribute__((at(0x08002800))) = "SP600";
  7. #endif
  8. const char iap_fw_version[] __attribute__((at(0x08002A00))) = "1.0";
  9. const char iap_fw_name[] __attribute__((at(0x08002C00))) = "App";
  10. extern void system_clock_config(void);
  11. extern void SystemCoreClockUpdate(void);
  12. //all board's low level init is here
  13. void bsp_init(void){
  14. wdog_start(4);
  15. gpio_init();
  16. DCDC_VOL_OPEN(1);
  17. system_clock_config(); //after dcdc open, MCU can run on full speed
  18. SystemCoreClockUpdate();
  19. }
  20. void wdog_start(int timeout){
  21. }
  22. void wdog_reload(void){
  23. }