applications.c 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. #include "applications.h"
  2. #ifdef APP_TEST
  3. void flipper_test_app(void* p);
  4. #endif
  5. void application_blink(void* p);
  6. void application_uart_write(void* p);
  7. void application_ipc_display(void* p);
  8. void application_ipc_widget(void* p);
  9. void application_input_dump(void* p);
  10. void display_u8g2(void* p);
  11. void u8g2_example(void* p);
  12. void input_task(void* p);
  13. void menu_task(void* p);
  14. void coreglitch_demo_0(void* p);
  15. void u8g2_qrcode(void* p);
  16. void fatfs_list(void* p);
  17. void gui_task(void* p);
  18. void backlight_control(void* p);
  19. void irda(void* p);
  20. void app_loader(void* p);
  21. void cc1101_workaround(void* p);
  22. void lf_rfid_workaround(void* p);
  23. void nfc_task(void* p);
  24. void dolphin_task(void* p);
  25. void power_task(void* p);
  26. void bt_task(void* p);
  27. void sd_card_test(void* p);
  28. void application_vibro(void* p);
  29. void app_gpio_test(void* p);
  30. void app_ibutton(void* p);
  31. void cli_task(void* p);
  32. void music_player(void* p);
  33. void sdnfc(void* p);
  34. void floopper_bloopper(void* p);
  35. void sd_filesystem(void* p);
  36. const FuriApplication FLIPPER_SERVICES[] = {
  37. #ifdef APP_DISPLAY
  38. {.app = display_u8g2, .name = "display_u8g2", .icon = A_Plugins_14},
  39. #endif
  40. #ifdef APP_CLI
  41. {.app = cli_task, .name = "cli_task", .icon = A_Plugins_14},
  42. #endif
  43. #ifdef APP_EXAMPLE_BLINK
  44. {.app = application_blink, .name = "blink", .icon = A_Plugins_14},
  45. #endif
  46. #ifdef APP_INPUT
  47. {.app = input_task, .name = "input_task", .icon = A_Plugins_14},
  48. #endif
  49. #ifdef APP_EXAMPLE_INPUT_DUMP
  50. {.app = application_input_dump, .name = "input dump", .icon = A_Plugins_14},
  51. #endif
  52. #ifdef APP_GUI
  53. {.app = backlight_control, .name = "backlight_control", .icon = A_Plugins_14},
  54. {.app = gui_task, .name = "gui_task", .icon = A_Plugins_14},
  55. #endif
  56. #ifdef APP_MENU
  57. {.app = menu_task, .name = "menu_task", .icon = A_Plugins_14},
  58. {.app = app_loader, .name = "app_loader", .icon = A_Plugins_14},
  59. #endif
  60. #ifdef APP_SD_FILESYSTEM
  61. {.app = sd_filesystem, .name = "sd_filesystem", .icon = A_Plugins_14},
  62. #endif
  63. #ifdef APP_DOLPHIN
  64. {.app = dolphin_task, .name = "dolphin_task", .icon = A_Plugins_14},
  65. #endif
  66. #ifdef APP_POWER
  67. {.app = power_task, .name = "power_task", .icon = A_Plugins_14},
  68. #endif
  69. #ifdef APP_BT
  70. {.app = bt_task, .name = "bt_task", .icon = A_Plugins_14},
  71. #endif
  72. #ifdef APP_CC1101
  73. {.app = cc1101_workaround, .name = "cc1101 workaround", .icon = A_Plugins_14},
  74. #endif
  75. #ifdef APP_LF_RFID
  76. {.app = lf_rfid_workaround, .name = "lf rfid workaround", .icon = A_Plugins_14},
  77. #endif
  78. #ifdef APP_IRDA
  79. {.app = irda, .name = "irda", .icon = A_Plugins_14},
  80. #endif
  81. #ifdef APP_NFC
  82. {.app = nfc_task, .name = "nfc_task", .icon = A_Plugins_14},
  83. #endif
  84. #ifdef APP_TEST
  85. {.app = flipper_test_app, .name = "test app", .icon = A_Plugins_14},
  86. #endif
  87. #ifdef APP_EXAMPLE_IPC
  88. {.app = application_ipc_display, .name = "ipc display", .icon = A_Plugins_14},
  89. {.app = application_ipc_widget, .name = "ipc widget", .icon = A_Plugins_14},
  90. #endif
  91. #ifdef APP_EXAMPLE_QRCODE
  92. {.app = u8g2_qrcode, .name = "u8g2_qrcode", .icon = A_Plugins_14},
  93. #endif
  94. #ifdef APP_EXAMPLE_FATFS
  95. {.app = fatfs_list, .name = "fatfs_list", .icon = A_Plugins_14},
  96. #endif
  97. #ifdef APP_EXAMPLE_DISPLAY
  98. {.app = u8g2_example, .name = "u8g2_example", .icon = A_Plugins_14},
  99. #endif
  100. #ifdef APP_SPEAKER_DEMO
  101. {.app = coreglitch_demo_0, .name = "coreglitch_demo_0", .icon = A_Plugins_14},
  102. #endif
  103. #ifdef APP_SD_TEST
  104. {.app = sd_card_test, .name = "sd_card_test", .icon = A_Plugins_14},
  105. #endif
  106. #ifdef APP_MUSIC_PLAYER
  107. {.app = music_player, .name = "music player", .icon = A_Plugins_14},
  108. #endif
  109. #ifdef APP_IBUTTON
  110. {.app = app_ibutton, .name = "ibutton", .icon = A_Plugins_14},
  111. #endif
  112. #ifdef APP_GPIO_DEMO
  113. {.app = app_gpio_test, .name = "gpio test", .icon = A_Plugins_14},
  114. #endif
  115. #ifdef APP_FLOOPPER_BLOOPPER
  116. {.app = floopper_bloopper, .name = "Floopper Bloopper", .icon = A_Games_14},
  117. #endif
  118. #ifdef APP_SDNFC
  119. {.app = sdnfc, .name = "sdnfc", .icon = A_Plugins_14},
  120. #endif
  121. };
  122. size_t FLIPPER_SERVICES_size() {
  123. return sizeof(FLIPPER_SERVICES) / sizeof(FuriApplication);
  124. }
  125. // Main menu APP
  126. const FuriApplication FLIPPER_APPS[] = {
  127. #ifdef BUILD_CC1101
  128. {.app = cc1101_workaround, .name = "Sub-1 GHz", .icon = A_Sub1ghz_14},
  129. #endif
  130. #ifdef BUILD_LF_RFID
  131. {.app = lf_rfid_workaround, .name = "125 kHz RFID", .icon = A_125khz_14},
  132. #endif
  133. #ifdef BUILD_IRDA
  134. {.app = irda, .name = "Infrared", .icon = A_Infrared_14},
  135. #endif
  136. #ifdef BUILD_IBUTTON
  137. {.app = app_ibutton, .name = "iButton", .icon = A_iButton_14},
  138. #endif
  139. #ifdef BUILD_GPIO_DEMO
  140. {.app = app_gpio_test, .name = "GPIO", .icon = A_GPIO_14},
  141. #endif
  142. };
  143. size_t FLIPPER_APPS_size() {
  144. return sizeof(FLIPPER_APPS) / sizeof(FuriApplication);
  145. }
  146. // Plugin menu
  147. const FuriApplication FLIPPER_PLUGINS[] = {
  148. #ifdef BUILD_EXAMPLE_BLINK
  149. {.app = application_blink, .name = "blink", .icon = A_Plugins_14},
  150. #endif
  151. #ifdef BUILD_EXAMPLE_INPUT_DUMP
  152. {.app = application_input_dump, .name = "input dump", .icon = A_Plugins_14},
  153. #endif
  154. #ifdef BUILD_SPEAKER_DEMO
  155. {.app = coreglitch_demo_0, .name = "coreglitch_demo_0", .icon = A_Plugins_14},
  156. #endif
  157. #ifdef BUILD_SD_TEST
  158. {.app = sd_card_test, .name = "sd_card_test", .icon = A_Plugins_14},
  159. #endif
  160. #ifdef BUILD_VIBRO_DEMO
  161. {.app = application_vibro, .name = "application_vibro", .icon = A_Plugins_14},
  162. #endif
  163. #ifdef BUILD_MUSIC_PLAYER
  164. {.app = music_player, .name = "music player", .icon = A_Plugins_14},
  165. #endif
  166. #ifdef BUILD_FLOOPPER_BLOOPPER
  167. {.app = floopper_bloopper, .name = "Floopper Bloopper", .icon = A_Games_14},
  168. #endif
  169. #ifdef BUILD_SDNFC
  170. {.app = sdnfc, .name = "sdnfc", .icon = A_Plugins_14},
  171. #endif
  172. };
  173. size_t FLIPPER_PLUGINS_size() {
  174. return sizeof(FLIPPER_PLUGINS) / sizeof(FuriApplication);
  175. }