Teensy 4.1 core updated for C++20
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

415 linhas
7.8KB

  1. # language keywords - Arduino doesn't define these, but probably should
  2. volatile LITERAL2
  3. constexpr LITERAL2
  4. alignas LITERAL2
  5. alignof LITERAL2
  6. nullptr LITERAL2
  7. noexcept LITERAL2
  8. static_assert LITERAL2
  9. thread_local LITERAL2
  10. # teensy specific functions
  11. elapsedMillis LITERAL2
  12. elapsedMicros LITERAL2
  13. readString KEYWORD2
  14. readStringUntil KEYWORD2
  15. analogReadRes KEYWORD2
  16. analogReadResolution KEYWORD2
  17. analogReadAveraging KEYWORD2
  18. analogWriteRes KEYWORD2
  19. analogWriteResolution KEYWORD2
  20. analogWriteFrequency KEYWORD2
  21. touchRead KEYWORD2
  22. Teensy3Clock KEYWORD2
  23. IntervalTimer KEYWORD2
  24. printf KEYWORD2
  25. digitalWriteFast KEYWORD2
  26. digitalReadFast KEYWORD2
  27. transmitterEnable KEYWORD2
  28. attachRts KEYWORD2
  29. attachCts KEYWORD2
  30. PROGMEM LITERAL2
  31. DMAMEM LITERAL2
  32. FASTRUN LITERAL2
  33. Serial4 KEYWORD1
  34. Serial5 KEYWORD1
  35. Serial6 KEYWORD1
  36. setRX KEYWORD2
  37. setTX KEYWORD2
  38. write9bit KEYWORD2
  39. clear KEYWORD2
  40. # removed by Arduino 1.0, but still in Teensyduino
  41. BYTE LITERAL2
  42. # Arduino constants
  43. A0 LITERAL1
  44. A1 LITERAL1
  45. A2 LITERAL1
  46. A3 LITERAL1
  47. A4 LITERAL1
  48. A5 LITERAL1
  49. A6 LITERAL1
  50. A7 LITERAL1
  51. A8 LITERAL1
  52. A9 LITERAL1
  53. A10 LITERAL1
  54. A11 LITERAL1
  55. A12 LITERAL1
  56. A13 LITERAL1
  57. A14 LITERAL1
  58. A15 LITERAL1
  59. A16 LITERAL1
  60. A17 LITERAL1
  61. A18 LITERAL1
  62. A19 LITERAL1
  63. A20 LITERAL1
  64. A21 LITERAL1
  65. A22 LITERAL1
  66. A23 LITERAL1
  67. A24 LITERAL1
  68. A25 LITERAL1
  69. A26 LITERAL1
  70. SS LITERAL1
  71. MOSI LITERAL1
  72. MISO LITERAL1
  73. SCK LITERAL1
  74. SDA LITERAL1
  75. SCL LITERAL1
  76. NUM_DIGITAL_PINS LITERAL1
  77. NUM_ANALOG_INPUTS LITERAL1
  78. analogInputToDigitalPin KEYWORD2
  79. digitalPinHasPWM KEYWORD2
  80. NOT_AN_INTERRUPT LITERAL1
  81. digitalPinToInterrupt KEYWORD2
  82. # Teensy 3.x advanced pin states
  83. OUTPUT_OPENDRAIN LITERAL1
  84. INPUT_PULLUP LITERAL1
  85. INPUT_PULLDOWN LITERAL1
  86. INPUT_DISABLE LITERAL1
  87. # String functions
  88. copy KEYWORD2
  89. append KEYWORD2
  90. # Teensy 2.0 pin names
  91. PIN_A0 LITERAL1
  92. PIN_A1 LITERAL1
  93. PIN_A2 LITERAL1
  94. PIN_A3 LITERAL1
  95. PIN_A4 LITERAL1
  96. PIN_A5 LITERAL1
  97. PIN_A6 LITERAL1
  98. PIN_A7 LITERAL1
  99. PIN_B0 LITERAL1
  100. PIN_B1 LITERAL1
  101. PIN_B2 LITERAL1
  102. PIN_B3 LITERAL1
  103. PIN_B4 LITERAL1
  104. PIN_B5 LITERAL1
  105. PIN_B6 LITERAL1
  106. PIN_B7 LITERAL1
  107. PIN_C0 LITERAL1
  108. PIN_C1 LITERAL1
  109. PIN_C2 LITERAL1
  110. PIN_C3 LITERAL1
  111. PIN_C4 LITERAL1
  112. PIN_C5 LITERAL1
  113. PIN_C6 LITERAL1
  114. PIN_C7 LITERAL1
  115. PIN_D0 LITERAL1
  116. PIN_D1 LITERAL1
  117. PIN_D2 LITERAL1
  118. PIN_D3 LITERAL1
  119. PIN_D4 LITERAL1
  120. PIN_D5 LITERAL1
  121. PIN_D6 LITERAL1
  122. PIN_D7 LITERAL1
  123. PIN_E0 LITERAL1
  124. PIN_E1 LITERAL1
  125. PIN_E2 LITERAL1
  126. PIN_E3 LITERAL1
  127. PIN_E4 LITERAL1
  128. PIN_E5 LITERAL1
  129. PIN_E6 LITERAL1
  130. PIN_E7 LITERAL1
  131. PIN_F0 LITERAL1
  132. PIN_F1 LITERAL1
  133. PIN_F2 LITERAL1
  134. PIN_F3 LITERAL1
  135. PIN_F4 LITERAL1
  136. PIN_F5 LITERAL1
  137. PIN_F6 LITERAL1
  138. PIN_F7 LITERAL1
  139. PIN_SS LITERAL1
  140. PIN_SCLK LITERAL1
  141. PIN_MOSI LITERAL1
  142. PIN_MISO LITERAL1
  143. PIN_LED LITERAL1
  144. ANALOG_0 LITERAL1 AnalogRead
  145. ANALOG_1 LITERAL1 AnalogRead
  146. ANALOG_2 LITERAL1 AnalogRead
  147. ANALOG_3 LITERAL1 AnalogRead
  148. ANALOG_4 LITERAL1 AnalogRead
  149. ANALOG_5 LITERAL1 AnalogRead
  150. ANALOG_6 LITERAL1 AnalogRead
  151. ANALOG_7 LITERAL1 AnalogRead
  152. ANALOG_1_TO_0_X10 LITERAL1 AnalogRead
  153. ANALOG_1_TO_0_X200 LITERAL1 AnalogRead
  154. ANALOG_3_TO_2_X10 LITERAL1 AnalogRead
  155. ANALOG_3_TO_2_X200 LITERAL1 AnalogRead
  156. ANALOG_0_TO_1 LITERAL1 AnalogRead
  157. ANALOG_2_TO_1 LITERAL1 AnalogRead
  158. ANALOG_3_TO_1 LITERAL1 AnalogRead
  159. ANALOG_4_TO_1 LITERAL1 AnalogRead
  160. ANALOG_5_TO_1 LITERAL1 AnalogRead
  161. ANALOG_6_TO_1 LITERAL1 AnalogRead
  162. ANALOG_7_TO_1 LITERAL1 AnalogRead
  163. ANALOG_0_TO_2 LITERAL1 AnalogRead
  164. ANALOG_1_TO_2 LITERAL1 AnalogRead
  165. ANALOG_3_TO_2 LITERAL1 AnalogRead
  166. ANALOG_4_TO_2 LITERAL1 AnalogRead
  167. ANALOG_5_TO_2 LITERAL1 AnalogRead
  168. ANALOG_1_1V LITERAL1 AnalogRead
  169. ANALOG_0V LITERAL1 AnalogRead
  170. # USB Serial
  171. send_now KEYWORD2
  172. baud KEYWORD2
  173. stopbits KEYWORD2
  174. paritytype KEYWORD2
  175. numbits KEYWORD2
  176. dtr KEYWORD2
  177. rts KEYWORD2
  178. # USB Keyboard
  179. write_unicode KEYWORD2
  180. set_modifier KEYWORD2
  181. set_key1 KEYWORD2
  182. set_key2 KEYWORD2
  183. set_key3 KEYWORD2
  184. set_key4 KEYWORD2
  185. set_key5 KEYWORD2
  186. set_key6 KEYWORD2
  187. set_media KEYWORD2
  188. MODIFIERKEY_CTRL LITERAL1
  189. MODIFIERKEY_SHIFT LITERAL1
  190. MODIFIERKEY_ALT LITERAL1
  191. MODIFIERKEY_GUI LITERAL1
  192. MODIFIERKEY_LEFT_CTRL LITERAL1
  193. MODIFIERKEY_LEFT_SHIFT LITERAL1
  194. MODIFIERKEY_LEFT_ALT LITERAL1
  195. MODIFIERKEY_LEFT_GUI LITERAL1
  196. MODIFIERKEY_RIGHT_CTRL LITERAL1
  197. MODIFIERKEY_RIGHT_SHIFT LITERAL1
  198. MODIFIERKEY_RIGHT_ALT LITERAL1
  199. MODIFIERKEY_RIGHT_GUI LITERAL1
  200. KEY_MEDIA_VOLUME_INC LITERAL1
  201. KEY_MEDIA_VOLUME_DEC LITERAL1
  202. KEY_MEDIA_MUTE LITERAL1
  203. KEY_MEDIA_PLAY_PAUSE LITERAL1
  204. KEY_MEDIA_NEXT_TRACK LITERAL1
  205. KEY_MEDIA_PREV_TRACK LITERAL1
  206. KEY_MEDIA_STOP LITERAL1
  207. KEY_MEDIA_EJECT LITERAL1
  208. KEY_A LITERAL1
  209. KEY_B LITERAL1
  210. KEY_C LITERAL1
  211. KEY_D LITERAL1
  212. KEY_E LITERAL1
  213. KEY_F LITERAL1
  214. KEY_G LITERAL1
  215. KEY_H LITERAL1
  216. KEY_I LITERAL1
  217. KEY_J LITERAL1
  218. KEY_K LITERAL1
  219. KEY_L LITERAL1
  220. KEY_M LITERAL1
  221. KEY_N LITERAL1
  222. KEY_O LITERAL1
  223. KEY_P LITERAL1
  224. KEY_Q LITERAL1
  225. KEY_R LITERAL1
  226. KEY_S LITERAL1
  227. KEY_T LITERAL1
  228. KEY_U LITERAL1
  229. KEY_V LITERAL1
  230. KEY_W LITERAL1
  231. KEY_X LITERAL1
  232. KEY_Y LITERAL1
  233. KEY_Z LITERAL1
  234. KEY_1 LITERAL1
  235. KEY_2 LITERAL1
  236. KEY_3 LITERAL1
  237. KEY_4 LITERAL1
  238. KEY_5 LITERAL1
  239. KEY_6 LITERAL1
  240. KEY_7 LITERAL1
  241. KEY_8 LITERAL1
  242. KEY_9 LITERAL1
  243. KEY_0 LITERAL1
  244. KEY_ENTER LITERAL1
  245. KEY_ESC LITERAL1
  246. KEY_BACKSPACE LITERAL1
  247. KEY_TAB LITERAL1
  248. KEY_SPACE LITERAL1
  249. KEY_MINUS LITERAL1
  250. KEY_EQUAL LITERAL1
  251. KEY_LEFT_BRACE LITERAL1
  252. KEY_RIGHT_BRACE LITERAL1
  253. KEY_BACKSLASH LITERAL1
  254. KEY_NON_US_NUM LITERAL1
  255. KEY_SEMICOLON LITERAL1
  256. KEY_QUOTE LITERAL1
  257. KEY_TILDE LITERAL1
  258. KEY_COMMA LITERAL1
  259. KEY_PERIOD LITERAL1
  260. KEY_SLASH LITERAL1
  261. KEY_CAPS_LOCK LITERAL1
  262. KEY_F1 LITERAL1
  263. KEY_F2 LITERAL1
  264. KEY_F3 LITERAL1
  265. KEY_F4 LITERAL1
  266. KEY_F5 LITERAL1
  267. KEY_F6 LITERAL1
  268. KEY_F7 LITERAL1
  269. KEY_F8 LITERAL1
  270. KEY_F9 LITERAL1
  271. KEY_F10 LITERAL1
  272. KEY_F11 LITERAL1
  273. KEY_F12 LITERAL1
  274. KEY_PRINTSCREEN LITERAL1
  275. KEY_SCROLL_LOCK LITERAL1
  276. KEY_PAUSE LITERAL1
  277. KEY_INSERT LITERAL1
  278. KEY_HOME LITERAL1
  279. KEY_PAGE_UP LITERAL1
  280. KEY_DELETE LITERAL1
  281. KEY_END LITERAL1
  282. KEY_PAGE_DOWN LITERAL1
  283. KEY_RIGHT LITERAL1
  284. KEY_LEFT LITERAL1
  285. KEY_DOWN LITERAL1
  286. KEY_UP LITERAL1
  287. KEY_NUM_LOCK LITERAL1
  288. KEYPAD_SLASH LITERAL1
  289. KEYPAD_ASTERIX LITERAL1
  290. KEYPAD_MINUS LITERAL1
  291. KEYPAD_PLUS LITERAL1
  292. KEYPAD_ENTER LITERAL1
  293. KEYPAD_1 LITERAL1
  294. KEYPAD_2 LITERAL1
  295. KEYPAD_3 LITERAL1
  296. KEYPAD_4 LITERAL1
  297. KEYPAD_5 LITERAL1
  298. KEYPAD_6 LITERAL1
  299. KEYPAD_7 LITERAL1
  300. KEYPAD_8 LITERAL1
  301. KEYPAD_9 LITERAL1
  302. KEYPAD_0 LITERAL1
  303. KEYPAD_PERIOD LITERAL1
  304. KEY_UP_ARROW LITERAL1
  305. KEY_DOWN_ARROW LITERAL1
  306. KEY_LEFT_ARROW LITERAL1
  307. KEY_RIGHT_ARROW LITERAL1
  308. KEY_RETURN LITERAL1
  309. KEY_LEFT_CTRL LITERAL1
  310. KEY_LEFT_SHIFT LITERAL1
  311. KEY_LEFT_ALT LITERAL1
  312. KEY_LEFT_GUI LITERAL1
  313. KEY_RIGHT_CTRL LITERAL1
  314. KEY_RIGHT_SHIFT LITERAL1
  315. KEY_RIGHT_ALT LITERAL1
  316. KEY_RIGHT_GUI LITERAL1
  317. # USB Mouse
  318. moveTo KEYWORD2
  319. screenSize KEYWORD2
  320. scroll KEYWORD2
  321. set_buttons KEYWORD2
  322. isPressed KEYWORD2
  323. MOUSE_LEFT LITERAL1
  324. MOUSE_MIDDLE LITERAL1
  325. MOUSE_RIGHT LITERAL1
  326. MOUSE_ALL LITERAL1
  327. MOUSE_BACK LITERAL1
  328. MOUSE_FORWARD LITERAL1
  329. # USB Joystick
  330. Joystick KEYWORD1
  331. button KEYWORD2
  332. X KEYWORD2
  333. Y KEYWORD2
  334. position KEYWORD2
  335. Z KEYWORD2
  336. Xrotate KEYWORD2
  337. Yrotate KEYWORD2
  338. Zrotate KEYWORD2
  339. sliderLeft KEYWORD2
  340. sliderRight KEYWORD2
  341. slider KEYWORD2
  342. hat KEYWORD2
  343. useManualSend KEYWORD2
  344. # USB Disk
  345. Disk KEYWORD1
  346. claim KEYWORD2
  347. readSector KEYWORD2
  348. writeSector KEYWORD2
  349. releaseReadOnly KEYWORD2
  350. # USB MIDI
  351. usbMIDI KEYWORD1
  352. sendNoteOff KEYWORD2
  353. sendNoteOn KEYWORD2
  354. sendPolyPressure KEYWORD2
  355. sendControlChange KEYWORD2
  356. sendProgramChange KEYWORD2
  357. sendAfterTouch KEYWORD2
  358. sendPitchBend KEYWORD2
  359. sendSysEx KEYWORD2
  360. analog2velocity KEYWORD2
  361. getType KEYWORD2
  362. getChannel KEYWORD2
  363. getData1 KEYWORD2
  364. getData2 KEYWORD2
  365. getSysExArray KEYWORD2
  366. setHandleNoteOff KEYWORD2
  367. setHandleNoteOn KEYWORD2
  368. setHandleVelocityChange KEYWORD2
  369. setHandleControlChange KEYWORD2
  370. setHandleProgramChange KEYWORD2
  371. setHandleAfterTouch KEYWORD2
  372. setHandlePitchChange KEYWORD2
  373. setHandlePitchChange KEYWORD2
  374. NoteOff LITERAL1
  375. NoteOn LITERAL1
  376. AfterTouchPoly LITERAL1
  377. ControlChange LITERAL1
  378. ProgramChange LITERAL1
  379. AfterTouchChannel LITERAL1
  380. PitchBend LITERAL1
  381. SystemExclusive LITERAL1
  382. # USB RawHID
  383. RawHID KEYWORD1
  384. recv KEYWORD2
  385. send KEYWORD2
  386. # USB Flight Sim Controls
  387. FlightSim KEYWORD1
  388. FlightSimCommand KEYWORD2
  389. FlightSimInteger KEYWORD2
  390. FlightSimFloat KEYWORD2
  391. FlightSimElapsedFrames KEYWORD2
  392. onChange KEYWORD2
  393. update KEYWORD2
  394. isEnabled KEYWORD2
  395. getFrameCount KEYWORD2
  396. XPlaneRef KEYWORD2
  397. # USB Touchscreen
  398. TouchscreenUSB KEYWORD1