Advertisement
teplofizik

main.c (flash)

Jun 7th, 2013
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.53 KB | None | 0 0
  1. //
  2. //
  3. //
  4.  
  5. #include "drivers.h"
  6. #include "bsp.h"
  7.  
  8. #include "main/test.h"
  9.  
  10. // Пусть модули сами решают, что им надо иметь в дефолтной конфигурации
  11. static void ResetSettings(void)
  12. {
  13.     Settings.Value2 = false;
  14.    
  15.     test_ResetSettings();
  16. }
  17.  
  18. int main(void)
  19. {
  20.     drivers_Init();
  21.     bsp_Init();
  22.    
  23.     settings_Init(&ResetSettings);
  24.     test_Init();
  25.    
  26.     while(1)
  27.     {
  28.         drivers_Main();
  29.         bsp_Main();
  30.        
  31.         test_Main();
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement