ソースを参照

New formatting

Willy-JL 1 年間 前
コミット
fe2077c82e
100 ファイル変更434 行追加431 行削除
  1. 1 1
      2048/array_utils.c
  2. 5 5
      2048/game_2048.c
  3. 1 1
      air_arkanoid/engine/canvas.c
  4. 2 2
      air_arkanoid/engine/clock_timer.c
  5. 1 1
      air_arkanoid/engine/clock_timer.h
  6. 1 1
      air_arkanoid/engine/engine.h
  7. 1 1
      air_arkanoid/engine/entity.c
  8. 1 1
      air_arkanoid/engine/entity.h
  9. 1 1
      air_arkanoid/engine/entity_i.h
  10. 1 1
      air_arkanoid/engine/game_engine.c
  11. 1 1
      air_arkanoid/engine/game_engine.h
  12. 1 1
      air_arkanoid/engine/game_manager.c
  13. 1 1
      air_arkanoid/engine/game_manager.h
  14. 1 1
      air_arkanoid/engine/game_manager_i.h
  15. 2 2
      air_arkanoid/engine/level.c
  16. 1 1
      air_arkanoid/engine/level.h
  17. 1 1
      air_arkanoid/engine/level_i.h
  18. 1 1
      air_arkanoid/engine/main.c
  19. 1 1
      air_arkanoid/engine/sensors/ICM42688P/ICM42688P.h
  20. 144 144
      air_arkanoid/engine/sensors/ICM42688P/ICM42688P_regs.h
  21. 3 3
      air_arkanoid/engine/sensors/imu.c
  22. 1 1
      air_arkanoid/engine/sensors/imu.h
  23. 1 1
      air_arkanoid/engine/sprite.c
  24. 1 1
      air_arkanoid/engine/sprite.h
  25. 1 1
      air_arkanoid/engine/vector.c
  26. 1 1
      air_arkanoid/engine/vector.h
  27. 1 1
      air_arkanoid/fonts/fonts.c
  28. 1 1
      air_arkanoid/fonts/fonts.h
  29. 1 1
      air_arkanoid/game.c
  30. 1 1
      air_arkanoid/game.h
  31. 3 3
      air_arkanoid/game_settings.c
  32. 1 1
      air_arkanoid/game_settings.h
  33. 1 1
      air_arkanoid/levels/level_game.c
  34. 1 1
      air_arkanoid/levels/level_game.h
  35. 1 1
      air_arkanoid/levels/level_menu.c
  36. 1 1
      air_arkanoid/levels/level_menu.h
  37. 1 1
      air_arkanoid/levels/level_message.c
  38. 1 1
      air_arkanoid/levels/level_message.h
  39. 1 1
      air_arkanoid/levels/level_settings.c
  40. 1 1
      air_arkanoid/levels/level_settings.h
  41. 1 1
      air_labyrinth/engine/canvas.c
  42. 2 2
      air_labyrinth/engine/clock_timer.c
  43. 1 1
      air_labyrinth/engine/clock_timer.h
  44. 1 1
      air_labyrinth/engine/engine.h
  45. 1 1
      air_labyrinth/engine/entity.c
  46. 1 1
      air_labyrinth/engine/entity.h
  47. 1 1
      air_labyrinth/engine/entity_i.h
  48. 1 1
      air_labyrinth/engine/game_engine.c
  49. 1 1
      air_labyrinth/engine/game_engine.h
  50. 1 1
      air_labyrinth/engine/game_manager.c
  51. 1 1
      air_labyrinth/engine/game_manager.h
  52. 1 1
      air_labyrinth/engine/game_manager_i.h
  53. 3 3
      air_labyrinth/engine/level.c
  54. 1 1
      air_labyrinth/engine/level.h
  55. 1 1
      air_labyrinth/engine/level_i.h
  56. 1 1
      air_labyrinth/engine/main.c
  57. 1 1
      air_labyrinth/engine/sensors/ICM42688P/ICM42688P.h
  58. 144 144
      air_labyrinth/engine/sensors/ICM42688P/ICM42688P_regs.h
  59. 3 3
      air_labyrinth/engine/sensors/imu.c
  60. 1 1
      air_labyrinth/engine/sensors/imu.h
  61. 1 1
      air_labyrinth/engine/sprite.c
  62. 1 1
      air_labyrinth/engine/sprite.h
  63. 1 1
      air_labyrinth/engine/vector.c
  64. 1 1
      air_labyrinth/engine/vector.h
  65. 1 1
      air_labyrinth/game.c
  66. 3 3
      airmouse/tracking/calibration_data.h
  67. 1 1
      airmouse/tracking/imu/bmi160.c
  68. 1 1
      airmouse/tracking/imu/lsm6ds3trc.c
  69. 1 1
      airmouse/tracking/imu/lsm6dso.c
  70. 1 1
      airmouse/views/bt_mouse.c
  71. 6 3
      arkanoid/arkanoid_game.c
  72. 1 1
      atomicdiceroller/flipper_atomicdiceroller.c
  73. 1 1
      avr_isp/avr_isp_app_i.h
  74. 2 2
      avr_isp/helpers/avr_isp.c
  75. 1 1
      avr_isp/helpers/avr_isp.h
  76. 5 5
      avr_isp/helpers/avr_isp_types.h
  77. 2 2
      avr_isp/helpers/avr_isp_worker.c
  78. 2 2
      avr_isp/helpers/avr_isp_worker_rw.c
  79. 1 1
      avr_isp/helpers/avr_isp_worker_rw.h
  80. 4 4
      avr_isp/helpers/flipper_i32hex_file.c
  81. 1 1
      avr_isp/helpers/flipper_i32hex_file.h
  82. 1 1
      barcode_gen/encodings.c
  83. 1 1
      barcode_gen/encodings.h
  84. 3 3
      barcode_gen/views/create_view.c
  85. 1 1
      barcode_gen/views/message_view.c
  86. 1 1
      blackjack/blackjack.c
  87. 6 6
      blackjack/common/card.c
  88. 4 4
      blackjack/common/card.h
  89. 1 1
      blackjack/common/dml.c
  90. 1 1
      blackjack/common/dml.h
  91. 1 1
      blackjack/common/menu.c
  92. 1 1
      blackjack/common/menu.h
  93. 1 1
      blackjack/common/queue.c
  94. 1 1
      blackjack/common/queue.h
  95. 1 1
      blackjack/common/ui.c
  96. 2 2
      blackjack/common/ui.h
  97. 4 4
      blackjack/defines.h
  98. 2 2
      blackjack/ui.c
  99. 1 1
      blackjack/util.c
  100. 2 2
      blackjack/util.h

+ 1 - 1
2048/array_utils.c

@@ -37,4 +37,4 @@ void set_column_to_array(
     for(uint8_t i = 0; i < rows; i++) {
         arr[i][column_index] = src[i];
     }
-}
+}

+ 5 - 5
2048/game_2048.c

@@ -18,14 +18,14 @@
 #include "digits.h"
 #include "array_utils.h"
 
-#define CELLS_COUNT 4
+#define CELLS_COUNT     4
 #define CELL_INNER_SIZE 14
-#define FRAME_LEFT 10
-#define FRAME_TOP 1
-#define FRAME_SIZE 61
+#define FRAME_LEFT      10
+#define FRAME_TOP       1
+#define FRAME_SIZE      61
 
 #define SAVING_DIRECTORY STORAGE_APP_DATA_PATH_PREFIX
-#define SAVING_FILENAME SAVING_DIRECTORY "/game_2048.save"
+#define SAVING_FILENAME  SAVING_DIRECTORY "/game_2048.save"
 
 typedef enum {
     GameStateMenu,

+ 1 - 1
air_arkanoid/engine/canvas.c

@@ -25,4 +25,4 @@ size_t canvas_printf_width(Canvas* canvas, const char* format, ...) {
     furi_string_free(string);
 
     return size;
-}
+}

+ 2 - 2
air_arkanoid/engine/clock_timer.c

@@ -5,7 +5,7 @@
 #include <furi_hal_bus.h>
 #include <stm32wbxx_ll_tim.h>
 
-#define FURI_HAL_CLOCK_TIMER TIM2
+#define FURI_HAL_CLOCK_TIMER     TIM2
 #define FURI_HAL_CLOCK_TIMER_BUS FuriHalBusTIM2
 #define FURI_HAL_CLOCK_TIMER_IRQ FuriHalInterruptIdTIM2
 
@@ -50,4 +50,4 @@ void clock_timer_stop(void) {
 
     furi_hal_bus_disable(FURI_HAL_CLOCK_TIMER_BUS);
     furi_hal_interrupt_set_isr(FURI_HAL_CLOCK_TIMER_IRQ, NULL, NULL);
-}
+}

+ 1 - 1
air_arkanoid/engine/clock_timer.h

@@ -12,4 +12,4 @@ void clock_timer_stop(void);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_arkanoid/engine/engine.h

@@ -22,4 +22,4 @@ extern const Game game;
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_arkanoid/engine/entity.c

@@ -214,4 +214,4 @@ void entity_send_event(
         };
         receiver->description->event(receiver, manager, event, receiver->context);
     }
-}
+}

+ 1 - 1
air_arkanoid/engine/entity.h

@@ -62,4 +62,4 @@ void entity_send_event(
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_arkanoid/engine/entity_i.h

@@ -55,4 +55,4 @@ int32_t entities_get_count(void);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_arkanoid/engine/game_engine.c

@@ -196,4 +196,4 @@ float game_engine_get_delta_frames(GameEngine* engine) {
 
 void game_engine_show_fps_set(GameEngine* engine, bool show_fps) {
     engine->settings.show_fps = show_fps;
-}
+}

+ 1 - 1
air_arkanoid/engine/game_engine.h

@@ -85,4 +85,4 @@ void game_engine_show_fps_set(GameEngine* engine, bool show_fps);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_arkanoid/engine/game_manager.c

@@ -159,4 +159,4 @@ Sprite* game_manager_sprite_load(GameManager* manager, const char* path) {
     furi_string_free(path_full);
 
     return sprite;
-}
+}

+ 1 - 1
air_arkanoid/engine/game_manager.h

@@ -37,4 +37,4 @@ Sprite* game_manager_sprite_load(GameManager* manager, const char* path);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_arkanoid/engine/game_manager_i.h

@@ -21,4 +21,4 @@ void game_manager_game_context_set(GameManager* manager, void* context);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 2 - 2
air_arkanoid/engine/level.c

@@ -7,7 +7,7 @@
 LIST_DEF(EntityList, Entity*, M_POD_OPLIST);
 #define M_OPL_EntityList_t() LIST_OPLIST(EntityList)
 #define FOREACH(name, list) for \
-    M_EACH(name, list, EntityList_t)
+        M_EACH(name, list, EntityList_t)
 
 #define LEVEL_DEBUG(...) FURI_LOG_D("Level", __VA_ARGS__)
 #define LEVEL_ERROR(...) FURI_LOG_E("Level", __VA_ARGS__)
@@ -246,4 +246,4 @@ size_t level_entity_count(const Level* level, const EntityDescription* descripti
 
 void* level_context_get(Level* level) {
     return level->context;
-}
+}

+ 1 - 1
air_arkanoid/engine/level.h

@@ -75,4 +75,4 @@ void* level_context_get(Level* level);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_arkanoid/engine/level_i.h

@@ -23,4 +23,4 @@ void level_call_stop(Level* level);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_arkanoid/engine/main.c

@@ -51,4 +51,4 @@ int32_t game_app(void* p) {
     }
 
     return 0;
-}
+}

+ 1 - 1
air_arkanoid/engine/sensors/ICM42688P/ICM42688P.h

@@ -124,4 +124,4 @@ bool icm42688_fifo_read(ICM42688P* icm42688p, ICM42688PFifoPacket* data);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 144 - 144
air_arkanoid/engine/sensors/ICM42688P/ICM42688P_regs.h

@@ -3,174 +3,174 @@
 #define ICM42688_WHOAMI 0x47
 
 // Bank 0
-#define ICM42688_DEVICE_CONFIG 0x11
-#define ICM42688_DRIVE_CONFIG 0x13
-#define ICM42688_INT_CONFIG 0x14
-#define ICM42688_FIFO_CONFIG 0x16
-#define ICM42688_TEMP_DATA1 0x1D
-#define ICM42688_TEMP_DATA0 0x1E
-#define ICM42688_ACCEL_DATA_X1 0x1F
-#define ICM42688_ACCEL_DATA_X0 0x20
-#define ICM42688_ACCEL_DATA_Y1 0x21
-#define ICM42688_ACCEL_DATA_Y0 0x22
-#define ICM42688_ACCEL_DATA_Z1 0x23
-#define ICM42688_ACCEL_DATA_Z0 0x24
-#define ICM42688_GYRO_DATA_X1 0x25
-#define ICM42688_GYRO_DATA_X0 0x26
-#define ICM42688_GYRO_DATA_Y1 0x27
-#define ICM42688_GYRO_DATA_Y0 0x28
-#define ICM42688_GYRO_DATA_Z1 0x29
-#define ICM42688_GYRO_DATA_Z0 0x2A
-#define ICM42688_TMST_FSYNCH 0x2B
-#define ICM42688_TMST_FSYNCL 0x2C
-#define ICM42688_INT_STATUS 0x2D
-#define ICM42688_FIFO_COUNTH 0x2E
-#define ICM42688_FIFO_COUNTL 0x2F
-#define ICM42688_FIFO_DATA 0x30
-#define ICM42688_APEX_DATA0 0x31
-#define ICM42688_APEX_DATA1 0x32
-#define ICM42688_APEX_DATA2 0x33
-#define ICM42688_APEX_DATA3 0x34
-#define ICM42688_APEX_DATA4 0x35
-#define ICM42688_APEX_DATA5 0x36
-#define ICM42688_INT_STATUS2 0x37
-#define ICM42688_INT_STATUS3 0x38
-#define ICM42688_SIGNAL_PATH_RESET 0x4B
-#define ICM42688_INTF_CONFIG0 0x4C
-#define ICM42688_INTF_CONFIG1 0x4D
-#define ICM42688_PWR_MGMT0 0x4E
-#define ICM42688_GYRO_CONFIG0 0x4F
-#define ICM42688_ACCEL_CONFIG0 0x50
-#define ICM42688_GYRO_CONFIG1 0x51
+#define ICM42688_DEVICE_CONFIG      0x11
+#define ICM42688_DRIVE_CONFIG       0x13
+#define ICM42688_INT_CONFIG         0x14
+#define ICM42688_FIFO_CONFIG        0x16
+#define ICM42688_TEMP_DATA1         0x1D
+#define ICM42688_TEMP_DATA0         0x1E
+#define ICM42688_ACCEL_DATA_X1      0x1F
+#define ICM42688_ACCEL_DATA_X0      0x20
+#define ICM42688_ACCEL_DATA_Y1      0x21
+#define ICM42688_ACCEL_DATA_Y0      0x22
+#define ICM42688_ACCEL_DATA_Z1      0x23
+#define ICM42688_ACCEL_DATA_Z0      0x24
+#define ICM42688_GYRO_DATA_X1       0x25
+#define ICM42688_GYRO_DATA_X0       0x26
+#define ICM42688_GYRO_DATA_Y1       0x27
+#define ICM42688_GYRO_DATA_Y0       0x28
+#define ICM42688_GYRO_DATA_Z1       0x29
+#define ICM42688_GYRO_DATA_Z0       0x2A
+#define ICM42688_TMST_FSYNCH        0x2B
+#define ICM42688_TMST_FSYNCL        0x2C
+#define ICM42688_INT_STATUS         0x2D
+#define ICM42688_FIFO_COUNTH        0x2E
+#define ICM42688_FIFO_COUNTL        0x2F
+#define ICM42688_FIFO_DATA          0x30
+#define ICM42688_APEX_DATA0         0x31
+#define ICM42688_APEX_DATA1         0x32
+#define ICM42688_APEX_DATA2         0x33
+#define ICM42688_APEX_DATA3         0x34
+#define ICM42688_APEX_DATA4         0x35
+#define ICM42688_APEX_DATA5         0x36
+#define ICM42688_INT_STATUS2        0x37
+#define ICM42688_INT_STATUS3        0x38
+#define ICM42688_SIGNAL_PATH_RESET  0x4B
+#define ICM42688_INTF_CONFIG0       0x4C
+#define ICM42688_INTF_CONFIG1       0x4D
+#define ICM42688_PWR_MGMT0          0x4E
+#define ICM42688_GYRO_CONFIG0       0x4F
+#define ICM42688_ACCEL_CONFIG0      0x50
+#define ICM42688_GYRO_CONFIG1       0x51
 #define ICM42688_GYRO_ACCEL_CONFIG0 0x52
-#define ICM42688_ACCEL_CONFIG1 0x53
-#define ICM42688_TMST_CONFIG 0x54
-#define ICM42688_APEX_CONFIG0 0x56
-#define ICM42688_SMD_CONFIG 0x57
-#define ICM42688_FIFO_CONFIG1 0x5F
-#define ICM42688_FIFO_CONFIG2 0x60
-#define ICM42688_FIFO_CONFIG3 0x61
-#define ICM42688_FSYNC_CONFIG 0x62
-#define ICM42688_INT_CONFIG0 0x63
-#define ICM42688_INT_CONFIG1 0x64
-#define ICM42688_INT_SOURCE0 0x65
-#define ICM42688_INT_SOURCE1 0x66
-#define ICM42688_INT_SOURCE3 0x68
-#define ICM42688_INT_SOURCE4 0x69
-#define ICM42688_FIFO_LOST_PKT0 0x6C
-#define ICM42688_FIFO_LOST_PKT1 0x6D
-#define ICM42688_SELF_TEST_CONFIG 0x70
-#define ICM42688_WHO_AM_I 0x75
-#define ICM42688_REG_BANK_SEL 0x76
+#define ICM42688_ACCEL_CONFIG1      0x53
+#define ICM42688_TMST_CONFIG        0x54
+#define ICM42688_APEX_CONFIG0       0x56
+#define ICM42688_SMD_CONFIG         0x57
+#define ICM42688_FIFO_CONFIG1       0x5F
+#define ICM42688_FIFO_CONFIG2       0x60
+#define ICM42688_FIFO_CONFIG3       0x61
+#define ICM42688_FSYNC_CONFIG       0x62
+#define ICM42688_INT_CONFIG0        0x63
+#define ICM42688_INT_CONFIG1        0x64
+#define ICM42688_INT_SOURCE0        0x65
+#define ICM42688_INT_SOURCE1        0x66
+#define ICM42688_INT_SOURCE3        0x68
+#define ICM42688_INT_SOURCE4        0x69
+#define ICM42688_FIFO_LOST_PKT0     0x6C
+#define ICM42688_FIFO_LOST_PKT1     0x6D
+#define ICM42688_SELF_TEST_CONFIG   0x70
+#define ICM42688_WHO_AM_I           0x75
+#define ICM42688_REG_BANK_SEL       0x76
 
 // Bank 1
-#define ICM42688_SENSOR_CONFIG0 0x03
-#define ICM42688_GYRO_CONFIG_STATIC2 0x0B
-#define ICM42688_GYRO_CONFIG_STATIC3 0x0C
-#define ICM42688_GYRO_CONFIG_STATIC4 0x0D
-#define ICM42688_GYRO_CONFIG_STATIC5 0x0E
-#define ICM42688_GYRO_CONFIG_STATIC6 0x0F
-#define ICM42688_GYRO_CONFIG_STATIC7 0x10
-#define ICM42688_GYRO_CONFIG_STATIC8 0x11
-#define ICM42688_GYRO_CONFIG_STATIC9 0x12
+#define ICM42688_SENSOR_CONFIG0       0x03
+#define ICM42688_GYRO_CONFIG_STATIC2  0x0B
+#define ICM42688_GYRO_CONFIG_STATIC3  0x0C
+#define ICM42688_GYRO_CONFIG_STATIC4  0x0D
+#define ICM42688_GYRO_CONFIG_STATIC5  0x0E
+#define ICM42688_GYRO_CONFIG_STATIC6  0x0F
+#define ICM42688_GYRO_CONFIG_STATIC7  0x10
+#define ICM42688_GYRO_CONFIG_STATIC8  0x11
+#define ICM42688_GYRO_CONFIG_STATIC9  0x12
 #define ICM42688_GYRO_CONFIG_STATIC10 0x13
-#define ICM42688_XG_ST_DATA 0x5F
-#define ICM42688_YG_ST_DATA 0x60
-#define ICM42688_ZG_ST_DATA 0x61
-#define ICM42688_TMSTVAL0 0x62
-#define ICM42688_TMSTVAL1 0x63
-#define ICM42688_TMSTVAL2 0x64
-#define ICM42688_INTF_CONFIG4 0x7A
-#define ICM42688_INTF_CONFIG5 0x7B
-#define ICM42688_INTF_CONFIG6 0x7C
+#define ICM42688_XG_ST_DATA           0x5F
+#define ICM42688_YG_ST_DATA           0x60
+#define ICM42688_ZG_ST_DATA           0x61
+#define ICM42688_TMSTVAL0             0x62
+#define ICM42688_TMSTVAL1             0x63
+#define ICM42688_TMSTVAL2             0x64
+#define ICM42688_INTF_CONFIG4         0x7A
+#define ICM42688_INTF_CONFIG5         0x7B
+#define ICM42688_INTF_CONFIG6         0x7C
 
 // Bank 2
 #define ICM42688_ACCEL_CONFIG_STATIC2 0x03
 #define ICM42688_ACCEL_CONFIG_STATIC3 0x04
 #define ICM42688_ACCEL_CONFIG_STATIC4 0x05
-#define ICM42688_XA_ST_DATA 0x3B
-#define ICM42688_YA_ST_DATA 0x3C
-#define ICM42688_ZA_ST_DATA 0x3D
+#define ICM42688_XA_ST_DATA           0x3B
+#define ICM42688_YA_ST_DATA           0x3C
+#define ICM42688_ZA_ST_DATA           0x3D
 
 // Bank 4
-#define ICM42688_APEX_CONFIG1 0x40
-#define ICM42688_APEX_CONFIG2 0x41
-#define ICM42688_APEX_CONFIG3 0x42
-#define ICM42688_APEX_CONFIG4 0x43
-#define ICM42688_APEX_CONFIG5 0x44
-#define ICM42688_APEX_CONFIG6 0x45
-#define ICM42688_APEX_CONFIG7 0x46
-#define ICM42688_APEX_CONFIG8 0x47
-#define ICM42688_APEX_CONFIG9 0x48
+#define ICM42688_APEX_CONFIG1    0x40
+#define ICM42688_APEX_CONFIG2    0x41
+#define ICM42688_APEX_CONFIG3    0x42
+#define ICM42688_APEX_CONFIG4    0x43
+#define ICM42688_APEX_CONFIG5    0x44
+#define ICM42688_APEX_CONFIG6    0x45
+#define ICM42688_APEX_CONFIG7    0x46
+#define ICM42688_APEX_CONFIG8    0x47
+#define ICM42688_APEX_CONFIG9    0x48
 #define ICM42688_ACCEL_WOM_X_THR 0x4A
 #define ICM42688_ACCEL_WOM_Y_THR 0x4B
 #define ICM42688_ACCEL_WOM_Z_THR 0x4C
-#define ICM42688_INT_SOURCE6 0x4D
-#define ICM42688_INT_SOURCE7 0x4E
-#define ICM42688_INT_SOURCE8 0x4F
-#define ICM42688_INT_SOURCE9 0x50
-#define ICM42688_INT_SOURCE10 0x51
-#define ICM42688_OFFSET_USER0 0x77
-#define ICM42688_OFFSET_USER1 0x78
-#define ICM42688_OFFSET_USER2 0x79
-#define ICM42688_OFFSET_USER3 0x7A
-#define ICM42688_OFFSET_USER4 0x7B
-#define ICM42688_OFFSET_USER5 0x7C
-#define ICM42688_OFFSET_USER6 0x7D
-#define ICM42688_OFFSET_USER7 0x7E
-#define ICM42688_OFFSET_USER8 0x7F
+#define ICM42688_INT_SOURCE6     0x4D
+#define ICM42688_INT_SOURCE7     0x4E
+#define ICM42688_INT_SOURCE8     0x4F
+#define ICM42688_INT_SOURCE9     0x50
+#define ICM42688_INT_SOURCE10    0x51
+#define ICM42688_OFFSET_USER0    0x77
+#define ICM42688_OFFSET_USER1    0x78
+#define ICM42688_OFFSET_USER2    0x79
+#define ICM42688_OFFSET_USER3    0x7A
+#define ICM42688_OFFSET_USER4    0x7B
+#define ICM42688_OFFSET_USER5    0x7C
+#define ICM42688_OFFSET_USER6    0x7D
+#define ICM42688_OFFSET_USER7    0x7E
+#define ICM42688_OFFSET_USER8    0x7F
 
 // PWR_MGMT0
-#define ICM42688_PWR_TEMP_ON (0 << 5)
-#define ICM42688_PWR_TEMP_OFF (1 << 5)
-#define ICM42688_PWR_IDLE (1 << 4)
-#define ICM42688_PWR_GYRO_MODE_OFF (0 << 2)
-#define ICM42688_PWR_GYRO_MODE_LN (3 << 2)
+#define ICM42688_PWR_TEMP_ON        (0 << 5)
+#define ICM42688_PWR_TEMP_OFF       (1 << 5)
+#define ICM42688_PWR_IDLE           (1 << 4)
+#define ICM42688_PWR_GYRO_MODE_OFF  (0 << 2)
+#define ICM42688_PWR_GYRO_MODE_LN   (3 << 2)
 #define ICM42688_PWR_ACCEL_MODE_OFF (0 << 0)
-#define ICM42688_PWR_ACCEL_MODE_LP (2 << 0)
-#define ICM42688_PWR_ACCEL_MODE_LN (3 << 0)
+#define ICM42688_PWR_ACCEL_MODE_LP  (2 << 0)
+#define ICM42688_PWR_ACCEL_MODE_LN  (3 << 0)
 
 // GYRO_CONFIG0
-#define ICM42688_GFS_2000DPS (0x00 << 5)
-#define ICM42688_GFS_1000DPS (0x01 << 5)
-#define ICM42688_GFS_500DPS (0x02 << 5)
-#define ICM42688_GFS_250DPS (0x03 << 5)
-#define ICM42688_GFS_125DPS (0x04 << 5)
-#define ICM42688_GFS_62_5DPS (0x05 << 5)
-#define ICM42688_GFS_31_25DPS (0x06 << 5)
+#define ICM42688_GFS_2000DPS   (0x00 << 5)
+#define ICM42688_GFS_1000DPS   (0x01 << 5)
+#define ICM42688_GFS_500DPS    (0x02 << 5)
+#define ICM42688_GFS_250DPS    (0x03 << 5)
+#define ICM42688_GFS_125DPS    (0x04 << 5)
+#define ICM42688_GFS_62_5DPS   (0x05 << 5)
+#define ICM42688_GFS_31_25DPS  (0x06 << 5)
 #define ICM42688_GFS_15_625DPS (0x07 << 5)
 
-#define ICM42688_GODR_32kHz 0x01
-#define ICM42688_GODR_16kHz 0x02
-#define ICM42688_GODR_8kHz 0x03
-#define ICM42688_GODR_4kHz 0x04
-#define ICM42688_GODR_2kHz 0x05
-#define ICM42688_GODR_1kHz 0x06
-#define ICM42688_GODR_200Hz 0x07
-#define ICM42688_GODR_100Hz 0x08
-#define ICM42688_GODR_50Hz 0x09
-#define ICM42688_GODR_25Hz 0x0A
+#define ICM42688_GODR_32kHz  0x01
+#define ICM42688_GODR_16kHz  0x02
+#define ICM42688_GODR_8kHz   0x03
+#define ICM42688_GODR_4kHz   0x04
+#define ICM42688_GODR_2kHz   0x05
+#define ICM42688_GODR_1kHz   0x06
+#define ICM42688_GODR_200Hz  0x07
+#define ICM42688_GODR_100Hz  0x08
+#define ICM42688_GODR_50Hz   0x09
+#define ICM42688_GODR_25Hz   0x0A
 #define ICM42688_GODR_12_5Hz 0x0B
-#define ICM42688_GODR_500Hz 0x0F
+#define ICM42688_GODR_500Hz  0x0F
 
 // ACCEL_CONFIG0
 #define ICM42688_AFS_16G (0x00 << 5)
-#define ICM42688_AFS_8G (0x01 << 5)
-#define ICM42688_AFS_4G (0x02 << 5)
-#define ICM42688_AFS_2G (0x03 << 5)
+#define ICM42688_AFS_8G  (0x01 << 5)
+#define ICM42688_AFS_4G  (0x02 << 5)
+#define ICM42688_AFS_2G  (0x03 << 5)
 
-#define ICM42688_AODR_32kHz 0x01
-#define ICM42688_AODR_16kHz 0x02
-#define ICM42688_AODR_8kHz 0x03
-#define ICM42688_AODR_4kHz 0x04
-#define ICM42688_AODR_2kHz 0x05
-#define ICM42688_AODR_1kHz 0x06
-#define ICM42688_AODR_200Hz 0x07
-#define ICM42688_AODR_100Hz 0x08
-#define ICM42688_AODR_50Hz 0x09
-#define ICM42688_AODR_25Hz 0x0A
-#define ICM42688_AODR_12_5Hz 0x0B
-#define ICM42688_AODR_6_25Hz 0x0C
-#define ICM42688_AODR_3_125Hz 0x0D
+#define ICM42688_AODR_32kHz    0x01
+#define ICM42688_AODR_16kHz    0x02
+#define ICM42688_AODR_8kHz     0x03
+#define ICM42688_AODR_4kHz     0x04
+#define ICM42688_AODR_2kHz     0x05
+#define ICM42688_AODR_1kHz     0x06
+#define ICM42688_AODR_200Hz    0x07
+#define ICM42688_AODR_100Hz    0x08
+#define ICM42688_AODR_50Hz     0x09
+#define ICM42688_AODR_25Hz     0x0A
+#define ICM42688_AODR_12_5Hz   0x0B
+#define ICM42688_AODR_6_25Hz   0x0C
+#define ICM42688_AODR_3_125Hz  0x0D
 #define ICM42688_AODR_1_5625Hz 0x0E
-#define ICM42688_AODR_500Hz 0x0F
+#define ICM42688_AODR_500Hz    0x0F

+ 3 - 3
air_arkanoid/engine/sensors/imu.c

@@ -7,12 +7,12 @@
 #define ACCEL_GYRO_RATE DataRate100Hz
 
 #define FILTER_SAMPLE_FREQ 100.f
-#define FILTER_BETA 0.08f
+#define FILTER_BETA        0.08f
 
 #define SAMPLE_RATE_DIV 5
 
 #define SENSITIVITY_K 30.f
-#define EXP_RATE 1.1f
+#define EXP_RATE      1.1f
 
 #define IMU_CALI_AVG 64
 
@@ -323,4 +323,4 @@ float imu_roll_get(Imu* imu) {
 float imu_yaw_get(Imu* imu) {
     // we pretend that reading a float is an atomic operation
     return imu->thread->processed_data.yaw;
-}
+}

+ 1 - 1
air_arkanoid/engine/sensors/imu.h

@@ -12,4 +12,4 @@ float imu_pitch_get(Imu* imu);
 
 float imu_roll_get(Imu* imu);
 
-float imu_yaw_get(Imu* imu);
+float imu_yaw_get(Imu* imu);

+ 1 - 1
air_arkanoid/engine/sprite.c

@@ -66,4 +66,4 @@ void canvas_draw_sprite(Canvas* canvas, Sprite* sprite, int32_t x, int32_t y) {
     furi_check(sprite->height);
     furi_check(sprite->data);
     canvas_draw_xbm(canvas, x, y, sprite->width, sprite->height, sprite->data);
-}
+}

+ 1 - 1
air_arkanoid/engine/sprite.h

@@ -41,4 +41,4 @@ void canvas_draw_sprite(Canvas* canvas, Sprite* sprite, int32_t x, int32_t y);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_arkanoid/engine/vector.c

@@ -30,4 +30,4 @@ Vector vector_mulf(Vector a, float b) {
 
 Vector vector_divf(Vector a, float b) {
     return (Vector){.x = a.x / b, .y = a.y / b};
-}
+}

+ 1 - 1
air_arkanoid/engine/vector.h

@@ -29,4 +29,4 @@ Vector vector_divf(Vector a, float b);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_arkanoid/fonts/fonts.c

@@ -22,4 +22,4 @@ const uint8_t u8g2_font_u8glib_4_tr[681] =
     "r\6Z.+\1s\7[r*)\0t\7criE\1u\7[\62I\215\0v\7[\62I"
     "U\0w\10]:\31\250.\0x\6[\62\251\3y\7\343\61i\304\21z\6[\62\62\12{\10\363"
     "q\252\314 \12|\5\361)\7}\11\363\61\62\203\230\222\2~\7\324wI%\0\177\7l\66C\232"
-    "C\0\0\0\4\377\377\0";
+    "C\0\0\0\4\377\377\0";

+ 1 - 1
air_arkanoid/fonts/fonts.h

@@ -1,4 +1,4 @@
 #pragma once
 #include <stdint.h>
 
-extern const uint8_t u8g2_font_u8glib_4_tr[];
+extern const uint8_t u8g2_font_u8glib_4_tr[];

+ 1 - 1
air_arkanoid/game.c

@@ -70,4 +70,4 @@ void game_sound_play(GameContext* context, const NotificationSequence* sequence)
     if(context->settings.sound) {
         notification_message(context->app, sequence);
     }
-}
+}

+ 1 - 1
air_arkanoid/game.h

@@ -32,4 +32,4 @@ void game_switch_show_fps(GameContext* context);
 
 void game_sound_play(GameContext* context, const NotificationSequence* sequence);
 
-extern const NotificationSequence sequence_sound_menu;
+extern const NotificationSequence sequence_sound_menu;

+ 3 - 3
air_arkanoid/game_settings.c

@@ -2,9 +2,9 @@
 #include "game_settings.h"
 #include <lib/toolbox/saved_struct.h>
 
-#define SETTINGS_PATH APP_DATA_PATH("settings.bin")
+#define SETTINGS_PATH    APP_DATA_PATH("settings.bin")
 #define SETTINGS_VERSION (0)
-#define SETTINGS_MAGIC (0x69)
+#define SETTINGS_MAGIC   (0x69)
 
 bool game_settings_load(Settings* settings) {
     furi_assert(settings);
@@ -18,4 +18,4 @@ bool game_settings_save(Settings* settings) {
 
     return saved_struct_save(
         SETTINGS_PATH, settings, sizeof(Settings), SETTINGS_MAGIC, SETTINGS_VERSION);
-}
+}

+ 1 - 1
air_arkanoid/game_settings.h

@@ -3,4 +3,4 @@
 
 bool game_settings_save(Settings* settings);
 
-bool game_settings_load(Settings* settings);
+bool game_settings_load(Settings* settings);

+ 1 - 1
air_arkanoid/levels/level_game.c

@@ -354,4 +354,4 @@ const LevelBehaviour level_game = {
     .start = level_game_start,
     .stop = level_game_stop,
     .context_size = 0,
-};
+};

+ 1 - 1
air_arkanoid/levels/level_game.h

@@ -1,4 +1,4 @@
 #pragma once
 #include "../game.h"
 
-extern const LevelBehaviour level_game;
+extern const LevelBehaviour level_game;

+ 1 - 1
air_arkanoid/levels/level_menu.c

@@ -198,4 +198,4 @@ const LevelBehaviour level_menu = {
     .start = level_menu_start,
     .stop = NULL,
     .context_size = sizeof(LevelMenuContext),
-};
+};

+ 1 - 1
air_arkanoid/levels/level_menu.h

@@ -1,4 +1,4 @@
 #pragma once
 #include "../game.h"
 
-extern const LevelBehaviour level_menu;
+extern const LevelBehaviour level_menu;

+ 1 - 1
air_arkanoid/levels/level_message.c

@@ -54,4 +54,4 @@ const LevelBehaviour level_message = {
     .start = NULL,
     .stop = NULL,
     .context_size = sizeof(LevelMessageContext),
-};
+};

+ 1 - 1
air_arkanoid/levels/level_message.h

@@ -5,4 +5,4 @@ extern const LevelBehaviour level_message;
 
 typedef struct {
     FuriString* message;
-} LevelMessageContext;
+} LevelMessageContext;

+ 1 - 1
air_arkanoid/levels/level_settings.c

@@ -220,4 +220,4 @@ const LevelBehaviour level_settings = {
     .start = NULL,
     .stop = NULL,
     .context_size = 0,
-};
+};

+ 1 - 1
air_arkanoid/levels/level_settings.h

@@ -1,4 +1,4 @@
 #pragma once
 #include "../game.h"
 
-extern const LevelBehaviour level_settings;
+extern const LevelBehaviour level_settings;

+ 1 - 1
air_labyrinth/engine/canvas.c

@@ -60,4 +60,4 @@ void canvas_draw_str_aligned_outline(
     canvas_draw_str_aligned(canvas, x - 0, y - 1, h, v, cstr);
     canvas_invert_color(canvas);
     canvas_draw_str_aligned(canvas, x, y, h, v, cstr);
-}
+}

+ 2 - 2
air_labyrinth/engine/clock_timer.c

@@ -5,7 +5,7 @@
 #include <furi_hal_bus.h>
 #include <stm32wbxx_ll_tim.h>
 
-#define FURI_HAL_CLOCK_TIMER TIM2
+#define FURI_HAL_CLOCK_TIMER     TIM2
 #define FURI_HAL_CLOCK_TIMER_BUS FuriHalBusTIM2
 #define FURI_HAL_CLOCK_TIMER_IRQ FuriHalInterruptIdTIM2
 
@@ -50,4 +50,4 @@ void clock_timer_stop(void) {
 
     furi_hal_bus_disable(FURI_HAL_CLOCK_TIMER_BUS);
     furi_hal_interrupt_set_isr(FURI_HAL_CLOCK_TIMER_IRQ, NULL, NULL);
-}
+}

+ 1 - 1
air_labyrinth/engine/clock_timer.h

@@ -12,4 +12,4 @@ void clock_timer_stop(void);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_labyrinth/engine/engine.h

@@ -22,4 +22,4 @@ extern const Game game;
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_labyrinth/engine/entity.c

@@ -213,4 +213,4 @@ void entity_send_event(
         };
         receiver->description->event(receiver, manager, event, receiver->context);
     }
-}
+}

+ 1 - 1
air_labyrinth/engine/entity.h

@@ -62,4 +62,4 @@ void entity_send_event(
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_labyrinth/engine/entity_i.h

@@ -55,4 +55,4 @@ int32_t entities_get_count(void);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_labyrinth/engine/game_engine.c

@@ -218,4 +218,4 @@ float game_engine_get_delta_frames(GameEngine* engine) {
 
 void game_engine_show_fps_set(GameEngine* engine, bool show_fps) {
     engine->settings.show_fps = show_fps;
-}
+}

+ 1 - 1
air_labyrinth/engine/game_engine.h

@@ -85,4 +85,4 @@ void game_engine_show_fps_set(GameEngine* engine, bool show_fps);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_labyrinth/engine/game_manager.c

@@ -171,4 +171,4 @@ Level* game_manager_entity_level_get(GameManager* manager, Entity* entity) {
         LevelList_next(it);
     }
     return NULL;
-}
+}

+ 1 - 1
air_labyrinth/engine/game_manager.h

@@ -56,4 +56,4 @@ Sprite* game_manager_sprite_load(GameManager* manager, const char* path);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_labyrinth/engine/game_manager_i.h

@@ -21,4 +21,4 @@ void game_manager_game_context_set(GameManager* manager, void* context);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 3 - 3
air_labyrinth/engine/level.c

@@ -7,10 +7,10 @@
 LIST_DEF(EntityList, Entity*, M_POD_OPLIST);
 #define M_OPL_EntityList_t() LIST_OPLIST(EntityList)
 #define FOREACH(name, list) for \
-    M_EACH(name, list, EntityList_t)
+        M_EACH(name, list, EntityList_t)
 
 #define LEVEL_DEBUG(...) FURI_LOG_D("Level", __VA_ARGS__)
-#define LEVEL_INFO(...) FURI_LOG_I("Level", __VA_ARGS__)
+#define LEVEL_INFO(...)  FURI_LOG_I("Level", __VA_ARGS__)
 #define LEVEL_ERROR(...) FURI_LOG_E("Level", __VA_ARGS__)
 
 struct Level {
@@ -306,4 +306,4 @@ bool level_contains_entity(const Level* level, const Entity* entity) {
         }
     }
     return false;
-}
+}

+ 1 - 1
air_labyrinth/engine/level.h

@@ -100,4 +100,4 @@ bool level_contains_entity(const Level* level, const Entity* entity);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_labyrinth/engine/level_i.h

@@ -23,4 +23,4 @@ void level_call_stop(Level* level);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_labyrinth/engine/main.c

@@ -51,4 +51,4 @@ int32_t game_app(void* p) {
     }
 
     return 0;
-}
+}

+ 1 - 1
air_labyrinth/engine/sensors/ICM42688P/ICM42688P.h

@@ -124,4 +124,4 @@ bool icm42688_fifo_read(ICM42688P* icm42688p, ICM42688PFifoPacket* data);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 144 - 144
air_labyrinth/engine/sensors/ICM42688P/ICM42688P_regs.h

@@ -3,174 +3,174 @@
 #define ICM42688_WHOAMI 0x47
 
 // Bank 0
-#define ICM42688_DEVICE_CONFIG 0x11
-#define ICM42688_DRIVE_CONFIG 0x13
-#define ICM42688_INT_CONFIG 0x14
-#define ICM42688_FIFO_CONFIG 0x16
-#define ICM42688_TEMP_DATA1 0x1D
-#define ICM42688_TEMP_DATA0 0x1E
-#define ICM42688_ACCEL_DATA_X1 0x1F
-#define ICM42688_ACCEL_DATA_X0 0x20
-#define ICM42688_ACCEL_DATA_Y1 0x21
-#define ICM42688_ACCEL_DATA_Y0 0x22
-#define ICM42688_ACCEL_DATA_Z1 0x23
-#define ICM42688_ACCEL_DATA_Z0 0x24
-#define ICM42688_GYRO_DATA_X1 0x25
-#define ICM42688_GYRO_DATA_X0 0x26
-#define ICM42688_GYRO_DATA_Y1 0x27
-#define ICM42688_GYRO_DATA_Y0 0x28
-#define ICM42688_GYRO_DATA_Z1 0x29
-#define ICM42688_GYRO_DATA_Z0 0x2A
-#define ICM42688_TMST_FSYNCH 0x2B
-#define ICM42688_TMST_FSYNCL 0x2C
-#define ICM42688_INT_STATUS 0x2D
-#define ICM42688_FIFO_COUNTH 0x2E
-#define ICM42688_FIFO_COUNTL 0x2F
-#define ICM42688_FIFO_DATA 0x30
-#define ICM42688_APEX_DATA0 0x31
-#define ICM42688_APEX_DATA1 0x32
-#define ICM42688_APEX_DATA2 0x33
-#define ICM42688_APEX_DATA3 0x34
-#define ICM42688_APEX_DATA4 0x35
-#define ICM42688_APEX_DATA5 0x36
-#define ICM42688_INT_STATUS2 0x37
-#define ICM42688_INT_STATUS3 0x38
-#define ICM42688_SIGNAL_PATH_RESET 0x4B
-#define ICM42688_INTF_CONFIG0 0x4C
-#define ICM42688_INTF_CONFIG1 0x4D
-#define ICM42688_PWR_MGMT0 0x4E
-#define ICM42688_GYRO_CONFIG0 0x4F
-#define ICM42688_ACCEL_CONFIG0 0x50
-#define ICM42688_GYRO_CONFIG1 0x51
+#define ICM42688_DEVICE_CONFIG      0x11
+#define ICM42688_DRIVE_CONFIG       0x13
+#define ICM42688_INT_CONFIG         0x14
+#define ICM42688_FIFO_CONFIG        0x16
+#define ICM42688_TEMP_DATA1         0x1D
+#define ICM42688_TEMP_DATA0         0x1E
+#define ICM42688_ACCEL_DATA_X1      0x1F
+#define ICM42688_ACCEL_DATA_X0      0x20
+#define ICM42688_ACCEL_DATA_Y1      0x21
+#define ICM42688_ACCEL_DATA_Y0      0x22
+#define ICM42688_ACCEL_DATA_Z1      0x23
+#define ICM42688_ACCEL_DATA_Z0      0x24
+#define ICM42688_GYRO_DATA_X1       0x25
+#define ICM42688_GYRO_DATA_X0       0x26
+#define ICM42688_GYRO_DATA_Y1       0x27
+#define ICM42688_GYRO_DATA_Y0       0x28
+#define ICM42688_GYRO_DATA_Z1       0x29
+#define ICM42688_GYRO_DATA_Z0       0x2A
+#define ICM42688_TMST_FSYNCH        0x2B
+#define ICM42688_TMST_FSYNCL        0x2C
+#define ICM42688_INT_STATUS         0x2D
+#define ICM42688_FIFO_COUNTH        0x2E
+#define ICM42688_FIFO_COUNTL        0x2F
+#define ICM42688_FIFO_DATA          0x30
+#define ICM42688_APEX_DATA0         0x31
+#define ICM42688_APEX_DATA1         0x32
+#define ICM42688_APEX_DATA2         0x33
+#define ICM42688_APEX_DATA3         0x34
+#define ICM42688_APEX_DATA4         0x35
+#define ICM42688_APEX_DATA5         0x36
+#define ICM42688_INT_STATUS2        0x37
+#define ICM42688_INT_STATUS3        0x38
+#define ICM42688_SIGNAL_PATH_RESET  0x4B
+#define ICM42688_INTF_CONFIG0       0x4C
+#define ICM42688_INTF_CONFIG1       0x4D
+#define ICM42688_PWR_MGMT0          0x4E
+#define ICM42688_GYRO_CONFIG0       0x4F
+#define ICM42688_ACCEL_CONFIG0      0x50
+#define ICM42688_GYRO_CONFIG1       0x51
 #define ICM42688_GYRO_ACCEL_CONFIG0 0x52
-#define ICM42688_ACCEL_CONFIG1 0x53
-#define ICM42688_TMST_CONFIG 0x54
-#define ICM42688_APEX_CONFIG0 0x56
-#define ICM42688_SMD_CONFIG 0x57
-#define ICM42688_FIFO_CONFIG1 0x5F
-#define ICM42688_FIFO_CONFIG2 0x60
-#define ICM42688_FIFO_CONFIG3 0x61
-#define ICM42688_FSYNC_CONFIG 0x62
-#define ICM42688_INT_CONFIG0 0x63
-#define ICM42688_INT_CONFIG1 0x64
-#define ICM42688_INT_SOURCE0 0x65
-#define ICM42688_INT_SOURCE1 0x66
-#define ICM42688_INT_SOURCE3 0x68
-#define ICM42688_INT_SOURCE4 0x69
-#define ICM42688_FIFO_LOST_PKT0 0x6C
-#define ICM42688_FIFO_LOST_PKT1 0x6D
-#define ICM42688_SELF_TEST_CONFIG 0x70
-#define ICM42688_WHO_AM_I 0x75
-#define ICM42688_REG_BANK_SEL 0x76
+#define ICM42688_ACCEL_CONFIG1      0x53
+#define ICM42688_TMST_CONFIG        0x54
+#define ICM42688_APEX_CONFIG0       0x56
+#define ICM42688_SMD_CONFIG         0x57
+#define ICM42688_FIFO_CONFIG1       0x5F
+#define ICM42688_FIFO_CONFIG2       0x60
+#define ICM42688_FIFO_CONFIG3       0x61
+#define ICM42688_FSYNC_CONFIG       0x62
+#define ICM42688_INT_CONFIG0        0x63
+#define ICM42688_INT_CONFIG1        0x64
+#define ICM42688_INT_SOURCE0        0x65
+#define ICM42688_INT_SOURCE1        0x66
+#define ICM42688_INT_SOURCE3        0x68
+#define ICM42688_INT_SOURCE4        0x69
+#define ICM42688_FIFO_LOST_PKT0     0x6C
+#define ICM42688_FIFO_LOST_PKT1     0x6D
+#define ICM42688_SELF_TEST_CONFIG   0x70
+#define ICM42688_WHO_AM_I           0x75
+#define ICM42688_REG_BANK_SEL       0x76
 
 // Bank 1
-#define ICM42688_SENSOR_CONFIG0 0x03
-#define ICM42688_GYRO_CONFIG_STATIC2 0x0B
-#define ICM42688_GYRO_CONFIG_STATIC3 0x0C
-#define ICM42688_GYRO_CONFIG_STATIC4 0x0D
-#define ICM42688_GYRO_CONFIG_STATIC5 0x0E
-#define ICM42688_GYRO_CONFIG_STATIC6 0x0F
-#define ICM42688_GYRO_CONFIG_STATIC7 0x10
-#define ICM42688_GYRO_CONFIG_STATIC8 0x11
-#define ICM42688_GYRO_CONFIG_STATIC9 0x12
+#define ICM42688_SENSOR_CONFIG0       0x03
+#define ICM42688_GYRO_CONFIG_STATIC2  0x0B
+#define ICM42688_GYRO_CONFIG_STATIC3  0x0C
+#define ICM42688_GYRO_CONFIG_STATIC4  0x0D
+#define ICM42688_GYRO_CONFIG_STATIC5  0x0E
+#define ICM42688_GYRO_CONFIG_STATIC6  0x0F
+#define ICM42688_GYRO_CONFIG_STATIC7  0x10
+#define ICM42688_GYRO_CONFIG_STATIC8  0x11
+#define ICM42688_GYRO_CONFIG_STATIC9  0x12
 #define ICM42688_GYRO_CONFIG_STATIC10 0x13
-#define ICM42688_XG_ST_DATA 0x5F
-#define ICM42688_YG_ST_DATA 0x60
-#define ICM42688_ZG_ST_DATA 0x61
-#define ICM42688_TMSTVAL0 0x62
-#define ICM42688_TMSTVAL1 0x63
-#define ICM42688_TMSTVAL2 0x64
-#define ICM42688_INTF_CONFIG4 0x7A
-#define ICM42688_INTF_CONFIG5 0x7B
-#define ICM42688_INTF_CONFIG6 0x7C
+#define ICM42688_XG_ST_DATA           0x5F
+#define ICM42688_YG_ST_DATA           0x60
+#define ICM42688_ZG_ST_DATA           0x61
+#define ICM42688_TMSTVAL0             0x62
+#define ICM42688_TMSTVAL1             0x63
+#define ICM42688_TMSTVAL2             0x64
+#define ICM42688_INTF_CONFIG4         0x7A
+#define ICM42688_INTF_CONFIG5         0x7B
+#define ICM42688_INTF_CONFIG6         0x7C
 
 // Bank 2
 #define ICM42688_ACCEL_CONFIG_STATIC2 0x03
 #define ICM42688_ACCEL_CONFIG_STATIC3 0x04
 #define ICM42688_ACCEL_CONFIG_STATIC4 0x05
-#define ICM42688_XA_ST_DATA 0x3B
-#define ICM42688_YA_ST_DATA 0x3C
-#define ICM42688_ZA_ST_DATA 0x3D
+#define ICM42688_XA_ST_DATA           0x3B
+#define ICM42688_YA_ST_DATA           0x3C
+#define ICM42688_ZA_ST_DATA           0x3D
 
 // Bank 4
-#define ICM42688_APEX_CONFIG1 0x40
-#define ICM42688_APEX_CONFIG2 0x41
-#define ICM42688_APEX_CONFIG3 0x42
-#define ICM42688_APEX_CONFIG4 0x43
-#define ICM42688_APEX_CONFIG5 0x44
-#define ICM42688_APEX_CONFIG6 0x45
-#define ICM42688_APEX_CONFIG7 0x46
-#define ICM42688_APEX_CONFIG8 0x47
-#define ICM42688_APEX_CONFIG9 0x48
+#define ICM42688_APEX_CONFIG1    0x40
+#define ICM42688_APEX_CONFIG2    0x41
+#define ICM42688_APEX_CONFIG3    0x42
+#define ICM42688_APEX_CONFIG4    0x43
+#define ICM42688_APEX_CONFIG5    0x44
+#define ICM42688_APEX_CONFIG6    0x45
+#define ICM42688_APEX_CONFIG7    0x46
+#define ICM42688_APEX_CONFIG8    0x47
+#define ICM42688_APEX_CONFIG9    0x48
 #define ICM42688_ACCEL_WOM_X_THR 0x4A
 #define ICM42688_ACCEL_WOM_Y_THR 0x4B
 #define ICM42688_ACCEL_WOM_Z_THR 0x4C
-#define ICM42688_INT_SOURCE6 0x4D
-#define ICM42688_INT_SOURCE7 0x4E
-#define ICM42688_INT_SOURCE8 0x4F
-#define ICM42688_INT_SOURCE9 0x50
-#define ICM42688_INT_SOURCE10 0x51
-#define ICM42688_OFFSET_USER0 0x77
-#define ICM42688_OFFSET_USER1 0x78
-#define ICM42688_OFFSET_USER2 0x79
-#define ICM42688_OFFSET_USER3 0x7A
-#define ICM42688_OFFSET_USER4 0x7B
-#define ICM42688_OFFSET_USER5 0x7C
-#define ICM42688_OFFSET_USER6 0x7D
-#define ICM42688_OFFSET_USER7 0x7E
-#define ICM42688_OFFSET_USER8 0x7F
+#define ICM42688_INT_SOURCE6     0x4D
+#define ICM42688_INT_SOURCE7     0x4E
+#define ICM42688_INT_SOURCE8     0x4F
+#define ICM42688_INT_SOURCE9     0x50
+#define ICM42688_INT_SOURCE10    0x51
+#define ICM42688_OFFSET_USER0    0x77
+#define ICM42688_OFFSET_USER1    0x78
+#define ICM42688_OFFSET_USER2    0x79
+#define ICM42688_OFFSET_USER3    0x7A
+#define ICM42688_OFFSET_USER4    0x7B
+#define ICM42688_OFFSET_USER5    0x7C
+#define ICM42688_OFFSET_USER6    0x7D
+#define ICM42688_OFFSET_USER7    0x7E
+#define ICM42688_OFFSET_USER8    0x7F
 
 // PWR_MGMT0
-#define ICM42688_PWR_TEMP_ON (0 << 5)
-#define ICM42688_PWR_TEMP_OFF (1 << 5)
-#define ICM42688_PWR_IDLE (1 << 4)
-#define ICM42688_PWR_GYRO_MODE_OFF (0 << 2)
-#define ICM42688_PWR_GYRO_MODE_LN (3 << 2)
+#define ICM42688_PWR_TEMP_ON        (0 << 5)
+#define ICM42688_PWR_TEMP_OFF       (1 << 5)
+#define ICM42688_PWR_IDLE           (1 << 4)
+#define ICM42688_PWR_GYRO_MODE_OFF  (0 << 2)
+#define ICM42688_PWR_GYRO_MODE_LN   (3 << 2)
 #define ICM42688_PWR_ACCEL_MODE_OFF (0 << 0)
-#define ICM42688_PWR_ACCEL_MODE_LP (2 << 0)
-#define ICM42688_PWR_ACCEL_MODE_LN (3 << 0)
+#define ICM42688_PWR_ACCEL_MODE_LP  (2 << 0)
+#define ICM42688_PWR_ACCEL_MODE_LN  (3 << 0)
 
 // GYRO_CONFIG0
-#define ICM42688_GFS_2000DPS (0x00 << 5)
-#define ICM42688_GFS_1000DPS (0x01 << 5)
-#define ICM42688_GFS_500DPS (0x02 << 5)
-#define ICM42688_GFS_250DPS (0x03 << 5)
-#define ICM42688_GFS_125DPS (0x04 << 5)
-#define ICM42688_GFS_62_5DPS (0x05 << 5)
-#define ICM42688_GFS_31_25DPS (0x06 << 5)
+#define ICM42688_GFS_2000DPS   (0x00 << 5)
+#define ICM42688_GFS_1000DPS   (0x01 << 5)
+#define ICM42688_GFS_500DPS    (0x02 << 5)
+#define ICM42688_GFS_250DPS    (0x03 << 5)
+#define ICM42688_GFS_125DPS    (0x04 << 5)
+#define ICM42688_GFS_62_5DPS   (0x05 << 5)
+#define ICM42688_GFS_31_25DPS  (0x06 << 5)
 #define ICM42688_GFS_15_625DPS (0x07 << 5)
 
-#define ICM42688_GODR_32kHz 0x01
-#define ICM42688_GODR_16kHz 0x02
-#define ICM42688_GODR_8kHz 0x03
-#define ICM42688_GODR_4kHz 0x04
-#define ICM42688_GODR_2kHz 0x05
-#define ICM42688_GODR_1kHz 0x06
-#define ICM42688_GODR_200Hz 0x07
-#define ICM42688_GODR_100Hz 0x08
-#define ICM42688_GODR_50Hz 0x09
-#define ICM42688_GODR_25Hz 0x0A
+#define ICM42688_GODR_32kHz  0x01
+#define ICM42688_GODR_16kHz  0x02
+#define ICM42688_GODR_8kHz   0x03
+#define ICM42688_GODR_4kHz   0x04
+#define ICM42688_GODR_2kHz   0x05
+#define ICM42688_GODR_1kHz   0x06
+#define ICM42688_GODR_200Hz  0x07
+#define ICM42688_GODR_100Hz  0x08
+#define ICM42688_GODR_50Hz   0x09
+#define ICM42688_GODR_25Hz   0x0A
 #define ICM42688_GODR_12_5Hz 0x0B
-#define ICM42688_GODR_500Hz 0x0F
+#define ICM42688_GODR_500Hz  0x0F
 
 // ACCEL_CONFIG0
 #define ICM42688_AFS_16G (0x00 << 5)
-#define ICM42688_AFS_8G (0x01 << 5)
-#define ICM42688_AFS_4G (0x02 << 5)
-#define ICM42688_AFS_2G (0x03 << 5)
+#define ICM42688_AFS_8G  (0x01 << 5)
+#define ICM42688_AFS_4G  (0x02 << 5)
+#define ICM42688_AFS_2G  (0x03 << 5)
 
-#define ICM42688_AODR_32kHz 0x01
-#define ICM42688_AODR_16kHz 0x02
-#define ICM42688_AODR_8kHz 0x03
-#define ICM42688_AODR_4kHz 0x04
-#define ICM42688_AODR_2kHz 0x05
-#define ICM42688_AODR_1kHz 0x06
-#define ICM42688_AODR_200Hz 0x07
-#define ICM42688_AODR_100Hz 0x08
-#define ICM42688_AODR_50Hz 0x09
-#define ICM42688_AODR_25Hz 0x0A
-#define ICM42688_AODR_12_5Hz 0x0B
-#define ICM42688_AODR_6_25Hz 0x0C
-#define ICM42688_AODR_3_125Hz 0x0D
+#define ICM42688_AODR_32kHz    0x01
+#define ICM42688_AODR_16kHz    0x02
+#define ICM42688_AODR_8kHz     0x03
+#define ICM42688_AODR_4kHz     0x04
+#define ICM42688_AODR_2kHz     0x05
+#define ICM42688_AODR_1kHz     0x06
+#define ICM42688_AODR_200Hz    0x07
+#define ICM42688_AODR_100Hz    0x08
+#define ICM42688_AODR_50Hz     0x09
+#define ICM42688_AODR_25Hz     0x0A
+#define ICM42688_AODR_12_5Hz   0x0B
+#define ICM42688_AODR_6_25Hz   0x0C
+#define ICM42688_AODR_3_125Hz  0x0D
 #define ICM42688_AODR_1_5625Hz 0x0E
-#define ICM42688_AODR_500Hz 0x0F
+#define ICM42688_AODR_500Hz    0x0F

+ 3 - 3
air_labyrinth/engine/sensors/imu.c

@@ -7,12 +7,12 @@
 #define ACCEL_GYRO_RATE DataRate100Hz
 
 #define FILTER_SAMPLE_FREQ 100.f
-#define FILTER_BETA 0.08f
+#define FILTER_BETA        0.08f
 
 #define SAMPLE_RATE_DIV 5
 
 #define SENSITIVITY_K 30.f
-#define EXP_RATE 1.1f
+#define EXP_RATE      1.1f
 
 #define IMU_CALI_AVG 64
 
@@ -325,4 +325,4 @@ float imu_roll_get(Imu* imu) {
 float imu_yaw_get(Imu* imu) {
     // we pretend that reading a float is an atomic operation
     return imu->thread->lefty ? -imu->thread->processed_data.yaw : imu->thread->processed_data.yaw;
-}
+}

+ 1 - 1
air_labyrinth/engine/sensors/imu.h

@@ -12,4 +12,4 @@ float imu_pitch_get(Imu* imu);
 
 float imu_roll_get(Imu* imu);
 
-float imu_yaw_get(Imu* imu);
+float imu_yaw_get(Imu* imu);

+ 1 - 1
air_labyrinth/engine/sprite.c

@@ -66,4 +66,4 @@ void canvas_draw_sprite(Canvas* canvas, Sprite* sprite, int32_t x, int32_t y) {
     furi_check(sprite->height);
     furi_check(sprite->data);
     canvas_draw_xbm(canvas, x, y, sprite->width, sprite->height, sprite->data);
-}
+}

+ 1 - 1
air_labyrinth/engine/sprite.h

@@ -41,4 +41,4 @@ void canvas_draw_sprite(Canvas* canvas, Sprite* sprite, int32_t x, int32_t y);
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_labyrinth/engine/vector.c

@@ -59,4 +59,4 @@ Vector vector_rand() {
     float x = (rand() % __INT_MAX__) / (float)__INT_MAX__;
     float y = (rand() % __INT_MAX__) / (float)__INT_MAX__;
     return (Vector){x, y};
-}
+}

+ 1 - 1
air_labyrinth/engine/vector.h

@@ -53,4 +53,4 @@ Vector vector_rand();
 
 #ifdef __cplusplus
 }
-#endif
+#endif

+ 1 - 1
air_labyrinth/game.c

@@ -368,4 +368,4 @@ const Game game = {
     .start = game_start, // will be called once, when game starts
     .stop = game_stop, // will be called once, when game stops
     .context_size = sizeof(GameContext), // size of game context
-};
+};

+ 3 - 3
airmouse/tracking/calibration_data.h

@@ -6,10 +6,10 @@
 
 #include "util/vector.h"
 
-#define CALIBRATION_DATA_VER (1)
+#define CALIBRATION_DATA_VER       (1)
 #define CALIBRATION_DATA_FILE_NAME "calibration.data"
-#define CALIBRATION_DATA_PATH EXT_PATH("apps_data/air_mouse/" CALIBRATION_DATA_FILE_NAME)
-#define CALIBRATION_DATA_MAGIC (0x23)
+#define CALIBRATION_DATA_PATH      EXT_PATH("apps_data/air_mouse/" CALIBRATION_DATA_FILE_NAME)
+#define CALIBRATION_DATA_MAGIC     (0x23)
 
 #define CALIBRATION_DATA_SAVE(x)   \
     saved_struct_save(             \

+ 1 - 1
airmouse/tracking/imu/bmi160.c

@@ -1,7 +1,7 @@
 #include "imu.h"
 #include "../../lib/bmi160-api/bmi160.h"
 
-#define BMI160_TAG "BMI160"
+#define BMI160_TAG      "BMI160"
 #define BMI160_DEV_ADDR (0x69 << 1)
 
 struct bmi160_dev bmi160dev;

+ 1 - 1
airmouse/tracking/imu/lsm6ds3trc.c

@@ -1,7 +1,7 @@
 #include "imu.h"
 #include "../../lib/lsm6ds3tr-api/lsm6ds3tr-c_reg.h"
 
-#define LSM6DS3_TAG "LSM6DS3"
+#define LSM6DS3_TAG         "LSM6DS3"
 #define LSM6DS3_DEV_ADDRESS (0x6A << 1)
 
 stmdev_ctx_t lsm6ds3trc_ctx;

+ 1 - 1
airmouse/tracking/imu/lsm6dso.c

@@ -1,7 +1,7 @@
 #include "imu.h"
 #include "../../lib/lsm6dso-api/lsm6dso_reg.h"
 
-#define LSM6DSO_TAG "LSM6DO"
+#define LSM6DSO_TAG         "LSM6DO"
 #define LSM6DSO_DEV_ADDRESS (0x6B << 1)
 
 stmdev_ctx_t lsm6dso_ctx;

+ 1 - 1
airmouse/views/bt_mouse.c

@@ -50,7 +50,7 @@ static const BleProfileHidParams ble_hid_params = {
 
 #define BT_MOUSE_FLAG_INPUT_EVENT (1UL << 0)
 #define BT_MOUSE_FLAG_KILL_THREAD (1UL << 1)
-#define BT_MOUSE_FLAG_ALL (BT_MOUSE_FLAG_INPUT_EVENT | BT_MOUSE_FLAG_KILL_THREAD)
+#define BT_MOUSE_FLAG_ALL         (BT_MOUSE_FLAG_INPUT_EVENT | BT_MOUSE_FLAG_KILL_THREAD)
 
 #define MOUSE_SCROLL 2
 

+ 6 - 3
arkanoid/arkanoid_game.c

@@ -9,11 +9,14 @@
 
 #define TAG "Arkanoid"
 
-#define FLIPPER_LCD_WIDTH 128
+#define FLIPPER_LCD_WIDTH  128
 #define FLIPPER_LCD_HEIGHT 64
-#define MAX_SPEED 3
+#define MAX_SPEED          3
 
-typedef enum { EventTypeTick, EventTypeKey } EventType;
+typedef enum {
+    EventTypeTick,
+    EventTypeKey
+} EventType;
 
 typedef struct {
     //Brick Bounds used in collision detection

+ 1 - 1
atomicdiceroller/flipper_atomicdiceroller.c

@@ -487,4 +487,4 @@ int32_t flipper_atomicdiceroller_app() {
     furi_record_close(RECORD_EXPANSION);
 
     return 0;
-}
+}

+ 1 - 1
avr_isp/avr_isp_app_i.h

@@ -41,4 +41,4 @@ typedef struct {
     AvrIspError error;
 } AvrIspApp;
 
-bool avr_isp_load_from_file(AvrIspApp* app);
+bool avr_isp_load_from_file(AvrIspApp* app);

+ 2 - 2
avr_isp/helpers/avr_isp.c

@@ -5,7 +5,7 @@
 #include <furi.h>
 
 #define AVR_ISP_PROG_TX_RX_BUF_SIZE 320
-#define TAG "AvrIsp"
+#define TAG                         "AvrIsp"
 
 struct AvrIsp {
     AvrIspSpiSw* spi;
@@ -493,4 +493,4 @@ void avr_isp_write_extended_addr(AvrIsp* instance, uint8_t extended_addr) {
 
     avr_isp_spi_transaction(instance, AVR_ISP_EXTENDED_ADDR(extended_addr));
     furi_delay_ms(10);
-}
+}

+ 1 - 1
avr_isp/helpers/avr_isp.h

@@ -67,4 +67,4 @@ uint8_t avr_isp_read_fuse_extended(AvrIsp* instance);
 
 bool avr_isp_write_fuse_extended(AvrIsp* instance, uint8_t efuse);
 
-void avr_isp_write_extended_addr(AvrIsp* instance, uint8_t extended_addr);
+void avr_isp_write_extended_addr(AvrIsp* instance, uint8_t extended_addr);

+ 5 - 5
avr_isp/helpers/avr_isp_types.h

@@ -4,12 +4,12 @@
 #include <furi_hal.h>
 
 #define AVR_ISP_VERSION_APP FAP_VERSION
-#define AVR_ISP_DEVELOPED "SkorP"
-#define AVR_ISP_GITHUB "https://github.com/flipperdevices/flipperzero-good-faps"
+#define AVR_ISP_DEVELOPED   "SkorP"
+#define AVR_ISP_GITHUB      "https://github.com/flipperdevices/flipperzero-good-faps"
 
 #define AVR_ISP_APP_FILE_VERSION 1
-#define AVR_ISP_APP_FILE_TYPE "Flipper Dump AVR"
-#define AVR_ISP_APP_EXTENSION ".avr"
+#define AVR_ISP_APP_FILE_TYPE    "Flipper Dump AVR"
+#define AVR_ISP_APP_EXTENSION    ".avr"
 
 typedef enum {
     //AvrIspViewVariableItemList,
@@ -29,4 +29,4 @@ typedef enum {
     AvrIspErrorWriting,
     AvrIspErrorVerification,
     AvrIspErrorWritingFuse,
-} AvrIspError;
+} AvrIspError;

+ 2 - 2
avr_isp/helpers/avr_isp_worker.c

@@ -39,8 +39,8 @@ struct AvrIspWorker {
 #include <cli/cli.h>
 #include <furi_hal_usb_cdc.h>
 
-#define AVR_ISP_VCP_CDC_CH 1
-#define AVR_ISP_VCP_CDC_PKT_LEN CDC_DATA_SZ
+#define AVR_ISP_VCP_CDC_CH           1
+#define AVR_ISP_VCP_CDC_PKT_LEN      CDC_DATA_SZ
 #define AVR_ISP_VCP_UART_RX_BUF_SIZE (AVR_ISP_VCP_CDC_PKT_LEN * 5)
 
 static void vcp_on_cdc_tx_complete(void* context);

+ 2 - 2
avr_isp/helpers/avr_isp_worker_rw.c

@@ -12,7 +12,7 @@
 
 #define TAG "AvrIspWorkerRW"
 
-#define NAME_PATERN_FLASH_FILE "flash.hex"
+#define NAME_PATERN_FLASH_FILE  "flash.hex"
 #define NAME_PATERN_EEPROM_FILE "eeprom.hex"
 
 struct AvrIspWorkerRW {
@@ -1154,4 +1154,4 @@ void avr_isp_worker_rw_write_fuse_start(
     instance->file_path = file_path;
     instance->file_name = file_name;
     furi_thread_flags_set(furi_thread_get_id(instance->thread), AvrIspWorkerRWEvtWritingFuse);
-}
+}

+ 1 - 1
avr_isp/helpers/avr_isp_worker_rw.h

@@ -96,4 +96,4 @@ bool avr_isp_worker_rw_write_fuse(
 void avr_isp_worker_rw_write_fuse_start(
     AvrIspWorkerRW* instance,
     const char* file_path,
-    const char* file_name);
+    const char* file_name);

+ 4 - 4
avr_isp/helpers/flipper_i32hex_file.c

@@ -11,9 +11,9 @@
 
 #define COUNT_BYTE_PAYLOAD 32 //how much payload will be used
 
-#define I32HEX_TYPE_DATA 0x00
-#define I32HEX_TYPE_END_OF_FILE 0x01
-#define I32HEX_TYPE_EXT_LINEAR_ADDR 0x04
+#define I32HEX_TYPE_DATA              0x00
+#define I32HEX_TYPE_END_OF_FILE       0x01
+#define I32HEX_TYPE_EXT_LINEAR_ADDR   0x04
 #define I32HEX_TYPE_START_LINEAR_ADDR 0x05
 
 struct FlipperI32HexFile {
@@ -318,4 +318,4 @@ FlipperI32HexFileRet flipper_i32hex_file_i32hex_to_bin_get_data(
     }
 
     return ret;
-}
+}

+ 1 - 1
avr_isp/helpers/flipper_i32hex_file.h

@@ -52,4 +52,4 @@ bool flipper_i32hex_file_check(FlipperI32HexFile* instance);
 FlipperI32HexFileRet flipper_i32hex_file_i32hex_to_bin_get_data(
     FlipperI32HexFile* instance,
     uint8_t* data,
-    uint32_t data_size);
+    uint32_t data_size);

+ 1 - 1
barcode_gen/encodings.c

@@ -49,4 +49,4 @@ const char UPC_EAN_R_CODES[10][8] = {
     "1000100", // 7
     "1001000", // 8
     "1110100" // 9
-};
+};

+ 1 - 1
barcode_gen/encodings.h

@@ -3,4 +3,4 @@
 extern const char EAN_13_STRUCTURE_CODES[10][6];
 extern const char UPC_EAN_L_CODES[10][8];
 extern const char EAN_G_CODES[10][8];
-extern const char UPC_EAN_R_CODES[10][8];
+extern const char UPC_EAN_R_CODES[10][8];

+ 3 - 3
barcode_gen/views/create_view.c

@@ -2,8 +2,8 @@
 #include "create_view.h"
 #include <math.h>
 
-#define LINE_HEIGHT 16
-#define TEXT_PADDING 4
+#define LINE_HEIGHT      16
+#define TEXT_PADDING     4
 #define TOTAL_MENU_ITEMS 5
 
 typedef enum {
@@ -491,4 +491,4 @@ void create_view_free(CreateView* create_view_object) {
 View* create_get_view(CreateView* create_view_object) {
     furi_assert(create_view_object);
     return create_view_object->view;
-}
+}

+ 1 - 1
barcode_gen/views/message_view.c

@@ -63,4 +63,4 @@ void message_view_free(MessageView* message_view_object) {
 View* message_get_view(MessageView* message_view_object) {
     furi_assert(message_view_object);
     return message_view_object->view;
-}
+}

+ 1 - 1
blackjack/blackjack.c

@@ -635,4 +635,4 @@ free_and_exit:
     furi_message_queue_free(event_queue);
 
     return return_code;
-}
+}

+ 6 - 6
blackjack/common/card.c

@@ -2,11 +2,11 @@
 #include "dml.h"
 #include "ui.h"
 
-#define CARD_DRAW_X_START 108
-#define CARD_DRAW_Y_START 38
-#define CARD_DRAW_X_SPACE 10
-#define CARD_DRAW_Y_SPACE 8
-#define CARD_DRAW_X_OFFSET 4
+#define CARD_DRAW_X_START          108
+#define CARD_DRAW_Y_START          38
+#define CARD_DRAW_X_SPACE          10
+#define CARD_DRAW_Y_SPACE          8
+#define CARD_DRAW_X_OFFSET         4
 #define CARD_DRAW_FIRST_ROW_LENGTH 7
 
 uint8_t pips[4][3] = {
@@ -350,4 +350,4 @@ void add_hand_region(Hand* to, Hand* from) {
             add_to_hand(to, from->cards[i]);
         }
     }
-}
+}

+ 4 - 4
blackjack/common/card.h

@@ -5,10 +5,10 @@
 #include <stdlib.h>
 #include "dml.h"
 
-#define CARD_HEIGHT 23
+#define CARD_HEIGHT      23
 #define CARD_HALF_HEIGHT 11
-#define CARD_WIDTH 17
-#define CARD_HALF_WIDTH 8
+#define CARD_WIDTH       17
+#define CARD_HALF_WIDTH  8
 
 //region types
 typedef struct {
@@ -189,4 +189,4 @@ int first_non_flipped_card(Hand hand);
 
 void extract_hand_region(Hand* hand, Hand* to, uint8_t start_index);
 
-void add_hand_region(Hand* to, Hand* from);
+void add_hand_region(Hand* to, Hand* from);

+ 1 - 1
blackjack/common/dml.c

@@ -50,4 +50,4 @@ float vector_dot(Vector a, Vector b) {
     Vector _a = vector_normalized(a);
     Vector _b = vector_normalized(b);
     return _a.x * _b.x + _a.y * _b.y;
-}
+}

+ 1 - 1
blackjack/common/dml.h

@@ -11,7 +11,7 @@ typedef struct {
 
 #define min(a, b) ((a) < (b) ? (a) : (b))
 #define max(a, b) ((a) > (b) ? (a) : (b))
-#define abs(x) ((x) > 0 ? (x) : -(x))
+#define abs(x)    ((x) > 0 ? (x) : -(x))
 
 /**
  * Lerp function

+ 1 - 1
blackjack/common/menu.c

@@ -100,4 +100,4 @@ void render_menu(Menu* menu, Canvas* canvas, uint8_t pos_x, uint8_t pos_y) {
             canvas_draw_dot(canvas, center + j, pos_y + 14 - i);
         }
     }
-}
+}

+ 1 - 1
blackjack/common/menu.h

@@ -74,4 +74,4 @@ void activate_menu(Menu* menu, void* state);
  * @param pos_x     X position to draw
  * @param pos_y     Y position to draw
  */
-void render_menu(Menu* menu, Canvas* canvas, uint8_t pos_x, uint8_t pos_y);
+void render_menu(Menu* menu, Canvas* canvas, uint8_t pos_x, uint8_t pos_y);

+ 1 - 1
blackjack/common/queue.c

@@ -66,4 +66,4 @@ void enqueue(
     next->start = start;
     next->duration = duration;
     next->next = NULL;
-}
+}

+ 1 - 1
blackjack/common/queue.h

@@ -67,4 +67,4 @@ bool run_queue(QueueState* queue_state, void* app_state);
  * @param app_state     Your application state
  * @param canvas        Pointer to Flipper's canvas object
  */
-void render_queue(const QueueState* queue_state, const void* app_state, Canvas* const canvas);
+void render_queue(const QueueState* queue_state, const void* app_state, Canvas* const canvas);

+ 1 - 1
blackjack/common/ui.c

@@ -255,4 +255,4 @@ void draw_icon_clip_flipped(
                 set_pixel(canvas, x + w - i - 1, y + h - j - 1, drawMode);
         }
     }
-}
+}

+ 2 - 2
blackjack/common/ui.h

@@ -3,7 +3,7 @@
 #include <furi.h>
 #include <gui/canvas.h>
 
-#define SCREEN_WIDTH 128
+#define SCREEN_WIDTH  128
 #define SCREEN_HEIGHT 64
 
 typedef enum {
@@ -102,4 +102,4 @@ bool in_screen(int16_t x, int16_t y);
 void ui_cleanup();
 uint8_t* get_buffer(Canvas* const canvas);
 uint8_t* make_buffer();
-void clone_buffer(uint8_t* canvas, uint8_t* data);
+void clone_buffer(uint8_t* canvas, uint8_t* data);

+ 4 - 4
blackjack/defines.h

@@ -12,10 +12,10 @@
 #define APP_NAME "Blackjack"
 
 #define CONF_ANIMATION_DURATION "AnimationDuration"
-#define CONF_MESSAGE_DURATION "MessageDuration"
-#define CONF_STARTING_MONEY "StartingMoney"
-#define CONF_ROUND_PRICE "RoundPrice"
-#define CONF_SOUND_EFFECTS "SoundEffects"
+#define CONF_MESSAGE_DURATION   "MessageDuration"
+#define CONF_STARTING_MONEY     "StartingMoney"
+#define CONF_ROUND_PRICE        "RoundPrice"
+#define CONF_SOUND_EFFECTS      "SoundEffects"
 
 typedef enum {
     EventTypeTick,

+ 2 - 2
blackjack/ui.c

@@ -3,7 +3,7 @@
 
 #include "ui.h"
 
-#define LINE_HEIGHT 16
+#define LINE_HEIGHT  16
 #define ITEM_PADDING 4
 
 const char MoneyMul[4] = {'K', 'B', 'T', 'S'};
@@ -183,4 +183,4 @@ void settings_page(Canvas* const canvas, const GameState* gameState) {
     //              true,
     //              gameState->selectedMenu == 5
     //    );
-}
+}

+ 1 - 1
blackjack/util.c

@@ -121,4 +121,4 @@ Settings load_settings() {
     flipper_format_free(file);
     furi_record_close(RECORD_STORAGE);
     return settings;
-}
+}

+ 2 - 2
blackjack/util.h

@@ -1,7 +1,7 @@
 #pragma once
 #include "defines.h"
-#define CONFIG_FILE_HEADER "Blackjack config file"
+#define CONFIG_FILE_HEADER  "Blackjack config file"
 #define CONFIG_FILE_VERSION 1
 
 void save_settings(Settings settings);
-Settings load_settings();
+Settings load_settings();

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません