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.

386 satır
7.3KB

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