Teensy 4.1 core updated for C++20
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

436 lines
8.3KB

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