bsp.c 552 B

12345678910111213141516171819202122232425
  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. //all board's low level init is here
  11. void bsp_init(void){
  12. wdog_start(4);
  13. gpio_init();
  14. }
  15. void wdog_start(int timeout){
  16. }
  17. void wdog_reload(void){
  18. }