Teensy 4.1 core updated for C++20
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

533 líneas
11KB

  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. size_t LITERAL1
  11. # teensy specific functions
  12. elapsedMillis LITERAL1
  13. elapsedMicros LITERAL1
  14. readString KEYWORD2
  15. readStringUntil KEYWORD2
  16. analogReadRes KEYWORD2
  17. analogReadResolution KEYWORD2
  18. analogReadAveraging KEYWORD2
  19. analogWriteRes KEYWORD2
  20. analogWriteResolution KEYWORD2
  21. analogWriteFrequency KEYWORD2
  22. touchRead KEYWORD2
  23. Teensy3Clock KEYWORD2
  24. IntervalTimer KEYWORD2
  25. printf KEYWORD2
  26. digitalWriteFast KEYWORD2
  27. digitalReadFast KEYWORD2
  28. digitalToggleFast KEYWORD2
  29. digitalToggle KEYWORD2
  30. transmitterEnable KEYWORD2
  31. attachRts KEYWORD2
  32. attachCts KEYWORD2
  33. PROGMEM LITERAL1
  34. FLASHMEM LITERAL1
  35. DMAMEM LITERAL1
  36. EXTMEM LITERAL1
  37. FASTRUN LITERAL1
  38. Serial4 KEYWORD1
  39. Serial5 KEYWORD1
  40. Serial6 KEYWORD1
  41. Serial7 KEYWORD1
  42. Serial8 KEYWORD1
  43. SerialUSB1 KEYWORD1
  44. SerialUSB2 KEYWORD1
  45. setRX KEYWORD2
  46. setTX KEYWORD2
  47. write9bit KEYWORD2
  48. addMemoryForRead KEYWORD2
  49. addMemoryForWrite KEYWORD2
  50. clear KEYWORD2
  51. EventResponder LITERAL1
  52. EventResponderRef LITERAL1
  53. attachImmediate KEYWORD2
  54. triggerEvent KEYWORD2
  55. clearEvent KEYWORD2
  56. getStatus KEYWORD2
  57. getData KEYWORD2
  58. setContext KEYWORD2
  59. getContext KEYWORD2
  60. waitForEvent KEYWORD2
  61. MillisTimer LITERAL1
  62. beginRepeating KEYWORD2
  63. delayNanoseconds KEYWORD2
  64. extmem_malloc KEYWORD2
  65. extmem_free KEYWORD2
  66. extmem_calloc KEYWORD2
  67. extmem_realloc KEYWORD2
  68. strcasecmp KEYWORD2
  69. # removed by Arduino 1.0, now also removed from Teensyduino
  70. #BYTE LITERAL1
  71. # Arduino constants
  72. A0 LITERAL1
  73. A1 LITERAL1
  74. A2 LITERAL1
  75. A3 LITERAL1
  76. A4 LITERAL1
  77. A5 LITERAL1
  78. A6 LITERAL1
  79. A7 LITERAL1
  80. A8 LITERAL1
  81. A9 LITERAL1
  82. A10 LITERAL1
  83. A11 LITERAL1
  84. A12 LITERAL1
  85. A13 LITERAL1
  86. A14 LITERAL1
  87. A15 LITERAL1
  88. A16 LITERAL1
  89. A17 LITERAL1
  90. A18 LITERAL1
  91. A19 LITERAL1
  92. A20 LITERAL1
  93. A21 LITERAL1
  94. A22 LITERAL1
  95. A23 LITERAL1
  96. A24 LITERAL1
  97. A25 LITERAL1
  98. A26 LITERAL1
  99. SS LITERAL1
  100. MOSI LITERAL1
  101. MISO LITERAL1
  102. SCK LITERAL1
  103. SDA LITERAL1
  104. SCL LITERAL1
  105. NUM_DIGITAL_PINS LITERAL1
  106. NUM_ANALOG_INPUTS LITERAL1
  107. analogInputToDigitalPin KEYWORD2
  108. digitalPinHasPWM KEYWORD2
  109. NOT_AN_INTERRUPT LITERAL1
  110. digitalPinToInterrupt KEYWORD2
  111. # HardwareSerial modes
  112. SERIAL_7E1 LITERAL1
  113. SERIAL_7O1 LITERAL1
  114. SERIAL_8N1 LITERAL1
  115. SERIAL_8E1 LITERAL1
  116. SERIAL_8O1 LITERAL1
  117. SERIAL_7E1_RXINV LITERAL1
  118. SERIAL_7O1_RXINV LITERAL1
  119. SERIAL_8N1_RXINV LITERAL1
  120. SERIAL_8E1_RXINV LITERAL1
  121. SERIAL_8O1_RXINV LITERAL1
  122. SERIAL_7E1_TXINV LITERAL1
  123. SERIAL_7O1_TXINV LITERAL1
  124. SERIAL_8N1_TXINV LITERAL1
  125. SERIAL_8E1_TXINV LITERAL1
  126. SERIAL_8O1_TXINV LITERAL1
  127. SERIAL_7E1_RXINV_TXINV LITERAL1
  128. SERIAL_7O1_RXINV_TXINV LITERAL1
  129. SERIAL_8N1_RXINV_TXINV LITERAL1
  130. SERIAL_8E1_RXINV_TXINV LITERAL1
  131. SERIAL_8O1_RXINV_TXINV LITERAL1
  132. SERIAL_8E2 LITERAL1
  133. SERIAL_8O2 LITERAL1
  134. SERIAL_8E2_RXINV LITERAL1
  135. SERIAL_8O2_RXINV LITERAL1
  136. SERIAL_8E2_TXINV LITERAL1
  137. SERIAL_8O2_TXINV LITERAL1
  138. SERIAL_8E2_RXINV_TXINV LITERAL1
  139. SERIAL_8O2_RXINV_TXINV LITERAL1
  140. SERIAL_8N2 LITERAL1
  141. SERIAL_8N2_RXINV LITERAL1
  142. SERIAL_8N2_TXINV LITERAL1
  143. SERIAL_8N2_RXINV_TXINV LITERAL1
  144. SERIAL_9N1 LITERAL1
  145. SERIAL_9E1 LITERAL1
  146. SERIAL_9O1 LITERAL1
  147. SERIAL_9N1_RXINV LITERAL1
  148. SERIAL_9E1_RXINV LITERAL1
  149. SERIAL_9O1_RXINV LITERAL1
  150. SERIAL_9N1_TXINV LITERAL1
  151. SERIAL_9E1_TXINV LITERAL1
  152. SERIAL_9O1_TXINV LITERAL1
  153. SERIAL_9N1_RXINV_TXINV LITERAL1
  154. SERIAL_9E1_RXINV_TXINV LITERAL1
  155. SERIAL_9O1_RXINV_TXINV LITERAL1
  156. # Teensy 3.x advanced pin states
  157. OUTPUT_OPENDRAIN LITERAL1
  158. INPUT_PULLUP LITERAL1
  159. INPUT_PULLDOWN LITERAL1
  160. INPUT_DISABLE LITERAL1
  161. # String functions
  162. copy KEYWORD2
  163. append KEYWORD2
  164. # Teensy 2.0 pin names
  165. PIN_A0 LITERAL1
  166. PIN_A1 LITERAL1
  167. PIN_A2 LITERAL1
  168. PIN_A3 LITERAL1
  169. PIN_A4 LITERAL1
  170. PIN_A5 LITERAL1
  171. PIN_A6 LITERAL1
  172. PIN_A7 LITERAL1
  173. PIN_B0 LITERAL1
  174. PIN_B1 LITERAL1
  175. PIN_B2 LITERAL1
  176. PIN_B3 LITERAL1
  177. PIN_B4 LITERAL1
  178. PIN_B5 LITERAL1
  179. PIN_B6 LITERAL1
  180. PIN_B7 LITERAL1
  181. PIN_C0 LITERAL1
  182. PIN_C1 LITERAL1
  183. PIN_C2 LITERAL1
  184. PIN_C3 LITERAL1
  185. PIN_C4 LITERAL1
  186. PIN_C5 LITERAL1
  187. PIN_C6 LITERAL1
  188. PIN_C7 LITERAL1
  189. PIN_D0 LITERAL1
  190. PIN_D1 LITERAL1
  191. PIN_D2 LITERAL1
  192. PIN_D3 LITERAL1
  193. PIN_D4 LITERAL1
  194. PIN_D5 LITERAL1
  195. PIN_D6 LITERAL1
  196. PIN_D7 LITERAL1
  197. PIN_E0 LITERAL1
  198. PIN_E1 LITERAL1
  199. PIN_E2 LITERAL1
  200. PIN_E3 LITERAL1
  201. PIN_E4 LITERAL1
  202. PIN_E5 LITERAL1
  203. PIN_E6 LITERAL1
  204. PIN_E7 LITERAL1
  205. PIN_F0 LITERAL1
  206. PIN_F1 LITERAL1
  207. PIN_F2 LITERAL1
  208. PIN_F3 LITERAL1
  209. PIN_F4 LITERAL1
  210. PIN_F5 LITERAL1
  211. PIN_F6 LITERAL1
  212. PIN_F7 LITERAL1
  213. PIN_SS LITERAL1
  214. PIN_SCLK LITERAL1
  215. PIN_MOSI LITERAL1
  216. PIN_MISO LITERAL1
  217. PIN_LED LITERAL1
  218. ANALOG_0 LITERAL1 AnalogRead
  219. ANALOG_1 LITERAL1 AnalogRead
  220. ANALOG_2 LITERAL1 AnalogRead
  221. ANALOG_3 LITERAL1 AnalogRead
  222. ANALOG_4 LITERAL1 AnalogRead
  223. ANALOG_5 LITERAL1 AnalogRead
  224. ANALOG_6 LITERAL1 AnalogRead
  225. ANALOG_7 LITERAL1 AnalogRead
  226. ANALOG_1_TO_0_X10 LITERAL1 AnalogRead
  227. ANALOG_1_TO_0_X200 LITERAL1 AnalogRead
  228. ANALOG_3_TO_2_X10 LITERAL1 AnalogRead
  229. ANALOG_3_TO_2_X200 LITERAL1 AnalogRead
  230. ANALOG_0_TO_1 LITERAL1 AnalogRead
  231. ANALOG_2_TO_1 LITERAL1 AnalogRead
  232. ANALOG_3_TO_1 LITERAL1 AnalogRead
  233. ANALOG_4_TO_1 LITERAL1 AnalogRead
  234. ANALOG_5_TO_1 LITERAL1 AnalogRead
  235. ANALOG_6_TO_1 LITERAL1 AnalogRead
  236. ANALOG_7_TO_1 LITERAL1 AnalogRead
  237. ANALOG_0_TO_2 LITERAL1 AnalogRead
  238. ANALOG_1_TO_2 LITERAL1 AnalogRead
  239. ANALOG_3_TO_2 LITERAL1 AnalogRead
  240. ANALOG_4_TO_2 LITERAL1 AnalogRead
  241. ANALOG_5_TO_2 LITERAL1 AnalogRead
  242. ANALOG_1_1V LITERAL1 AnalogRead
  243. ANALOG_0V LITERAL1 AnalogRead
  244. # USB Serial
  245. send_now KEYWORD2
  246. baud KEYWORD2
  247. stopbits KEYWORD2
  248. paritytype KEYWORD2
  249. numbits KEYWORD2
  250. dtr KEYWORD2
  251. rts KEYWORD2
  252. # USB Keyboard
  253. write_unicode KEYWORD2
  254. set_modifier KEYWORD2
  255. set_key1 KEYWORD2
  256. set_key2 KEYWORD2
  257. set_key3 KEYWORD2
  258. set_key4 KEYWORD2
  259. set_key5 KEYWORD2
  260. set_key6 KEYWORD2
  261. set_media KEYWORD2
  262. MODIFIERKEY_CTRL LITERAL1
  263. MODIFIERKEY_SHIFT LITERAL1
  264. MODIFIERKEY_ALT LITERAL1
  265. MODIFIERKEY_GUI LITERAL1
  266. MODIFIERKEY_LEFT_CTRL LITERAL1
  267. MODIFIERKEY_LEFT_SHIFT LITERAL1
  268. MODIFIERKEY_LEFT_ALT LITERAL1
  269. MODIFIERKEY_LEFT_GUI LITERAL1
  270. MODIFIERKEY_RIGHT_CTRL LITERAL1
  271. MODIFIERKEY_RIGHT_SHIFT LITERAL1
  272. MODIFIERKEY_RIGHT_ALT LITERAL1
  273. MODIFIERKEY_RIGHT_GUI LITERAL1
  274. KEY_MEDIA_VOLUME_INC LITERAL1
  275. KEY_MEDIA_VOLUME_DEC LITERAL1
  276. KEY_MEDIA_MUTE LITERAL1
  277. KEY_MEDIA_PLAY_PAUSE LITERAL1
  278. KEY_MEDIA_NEXT_TRACK LITERAL1
  279. KEY_MEDIA_PREV_TRACK LITERAL1
  280. KEY_MEDIA_STOP LITERAL1
  281. KEY_MEDIA_EJECT LITERAL1
  282. KEY_MEDIA_PLAY LITERAL1
  283. KEY_MEDIA_PAUSE LITERAL1
  284. KEY_MEDIA_RECORD LITERAL1
  285. KEY_MEDIA_REWIND LITERAL1
  286. KEY_MEDIA_FAST_FORWARD LITERAL1
  287. KEY_MEDIA_PLAY_SKIP LITERAL1
  288. KEY_SYSTEM_POWER_DOWN LITERAL1
  289. KEY_SYSTEM_SLEEP LITERAL1
  290. KEY_SYSTEM_WAKE_UP LITERAL1
  291. KEY_A LITERAL1
  292. KEY_B LITERAL1
  293. KEY_C LITERAL1
  294. KEY_D LITERAL1
  295. KEY_E LITERAL1
  296. KEY_F LITERAL1
  297. KEY_G LITERAL1
  298. KEY_H LITERAL1
  299. KEY_I LITERAL1
  300. KEY_J LITERAL1
  301. KEY_K LITERAL1
  302. KEY_L LITERAL1
  303. KEY_M LITERAL1
  304. KEY_N LITERAL1
  305. KEY_O LITERAL1
  306. KEY_P LITERAL1
  307. KEY_Q LITERAL1
  308. KEY_R LITERAL1
  309. KEY_S LITERAL1
  310. KEY_T LITERAL1
  311. KEY_U LITERAL1
  312. KEY_V LITERAL1
  313. KEY_W LITERAL1
  314. KEY_X LITERAL1
  315. KEY_Y LITERAL1
  316. KEY_Z LITERAL1
  317. KEY_1 LITERAL1
  318. KEY_2 LITERAL1
  319. KEY_3 LITERAL1
  320. KEY_4 LITERAL1
  321. KEY_5 LITERAL1
  322. KEY_6 LITERAL1
  323. KEY_7 LITERAL1
  324. KEY_8 LITERAL1
  325. KEY_9 LITERAL1
  326. KEY_0 LITERAL1
  327. KEY_ENTER LITERAL1
  328. KEY_ESC LITERAL1
  329. KEY_BACKSPACE LITERAL1
  330. KEY_TAB LITERAL1
  331. KEY_SPACE LITERAL1
  332. KEY_MINUS LITERAL1
  333. KEY_EQUAL LITERAL1
  334. KEY_LEFT_BRACE LITERAL1
  335. KEY_RIGHT_BRACE LITERAL1
  336. KEY_BACKSLASH LITERAL1
  337. KEY_NON_US_NUM LITERAL1
  338. KEY_SEMICOLON LITERAL1
  339. KEY_QUOTE LITERAL1
  340. KEY_TILDE LITERAL1
  341. KEY_COMMA LITERAL1
  342. KEY_PERIOD LITERAL1
  343. KEY_SLASH LITERAL1
  344. KEY_CAPS_LOCK LITERAL1
  345. KEY_F1 LITERAL1
  346. KEY_F2 LITERAL1
  347. KEY_F3 LITERAL1
  348. KEY_F4 LITERAL1
  349. KEY_F5 LITERAL1
  350. KEY_F6 LITERAL1
  351. KEY_F7 LITERAL1
  352. KEY_F8 LITERAL1
  353. KEY_F9 LITERAL1
  354. KEY_F10 LITERAL1
  355. KEY_F11 LITERAL1
  356. KEY_F12 LITERAL1
  357. KEY_PRINTSCREEN LITERAL1
  358. KEY_SCROLL_LOCK LITERAL1
  359. KEY_PAUSE LITERAL1
  360. KEY_INSERT LITERAL1
  361. KEY_HOME LITERAL1
  362. KEY_PAGE_UP LITERAL1
  363. KEY_DELETE LITERAL1
  364. KEY_END LITERAL1
  365. KEY_PAGE_DOWN LITERAL1
  366. KEY_RIGHT LITERAL1
  367. KEY_LEFT LITERAL1
  368. KEY_DOWN LITERAL1
  369. KEY_UP LITERAL1
  370. KEY_NUM_LOCK LITERAL1
  371. KEYPAD_SLASH LITERAL1
  372. KEYPAD_ASTERIX LITERAL1
  373. KEYPAD_MINUS LITERAL1
  374. KEYPAD_PLUS LITERAL1
  375. KEYPAD_ENTER LITERAL1
  376. KEYPAD_1 LITERAL1
  377. KEYPAD_2 LITERAL1
  378. KEYPAD_3 LITERAL1
  379. KEYPAD_4 LITERAL1
  380. KEYPAD_5 LITERAL1
  381. KEYPAD_6 LITERAL1
  382. KEYPAD_7 LITERAL1
  383. KEYPAD_8 LITERAL1
  384. KEYPAD_9 LITERAL1
  385. KEYPAD_0 LITERAL1
  386. KEYPAD_PERIOD LITERAL1
  387. KEY_UP_ARROW LITERAL1
  388. KEY_DOWN_ARROW LITERAL1
  389. KEY_LEFT_ARROW LITERAL1
  390. KEY_RIGHT_ARROW LITERAL1
  391. KEY_RETURN LITERAL1
  392. KEY_LEFT_CTRL LITERAL1
  393. KEY_LEFT_SHIFT LITERAL1
  394. KEY_LEFT_ALT LITERAL1
  395. KEY_LEFT_GUI LITERAL1
  396. KEY_RIGHT_CTRL LITERAL1
  397. KEY_RIGHT_SHIFT LITERAL1
  398. KEY_RIGHT_ALT LITERAL1
  399. KEY_RIGHT_GUI LITERAL1
  400. # USB Mouse
  401. moveTo KEYWORD2
  402. screenSize KEYWORD2
  403. scroll KEYWORD2
  404. set_buttons KEYWORD2
  405. isPressed KEYWORD2
  406. MOUSE_LEFT LITERAL1
  407. MOUSE_MIDDLE LITERAL1
  408. MOUSE_RIGHT LITERAL1
  409. MOUSE_ALL LITERAL1
  410. MOUSE_BACK LITERAL1
  411. MOUSE_FORWARD LITERAL1
  412. # USB Joystick
  413. Joystick KEYWORD1
  414. button KEYWORD2
  415. X KEYWORD2
  416. Y KEYWORD2
  417. position KEYWORD2
  418. Z KEYWORD2
  419. Xrotate KEYWORD2
  420. Yrotate KEYWORD2
  421. Zrotate KEYWORD2
  422. sliderLeft KEYWORD2
  423. sliderRight KEYWORD2
  424. slider KEYWORD2
  425. hat KEYWORD2
  426. useManualSend KEYWORD2
  427. # USB Disk
  428. Disk KEYWORD1
  429. claim KEYWORD2
  430. readSector KEYWORD2
  431. writeSector KEYWORD2
  432. releaseReadOnly KEYWORD2
  433. # USB MIDI
  434. usbMIDI KEYWORD1
  435. sendNoteOff KEYWORD2
  436. sendNoteOn KEYWORD2
  437. sendAfterTouchPoly KEYWORD2
  438. sendPolyPressure KEYWORD2
  439. sendControlChange KEYWORD2
  440. sendProgramChange KEYWORD2
  441. sendAfterTouch KEYWORD2
  442. sendPitchBend KEYWORD2
  443. sendSysEx KEYWORD2
  444. sendRealTime KEYWORD2
  445. sendTimeCodeQuarterFrame KEYWORD2
  446. sendSongPosition KEYWORD2
  447. sendSongSelect KEYWORD2
  448. sendTuneRequest KEYWORD2
  449. beginRpn KEYWORD2
  450. sendRpnValue KEYWORD2
  451. sendRpnValue KEYWORD2
  452. sendRpnIncrement KEYWORD2
  453. sendRpnDecrement KEYWORD2
  454. endRpn KEYWORD2
  455. beginNrpn KEYWORD2
  456. sendNrpnValue KEYWORD2
  457. sendNrpnValue KEYWORD2
  458. sendNrpnIncrement KEYWORD2
  459. sendNrpnDecrement KEYWORD2
  460. endNrpn KEYWORD2
  461. send KEYWORD2
  462. analog2velocity KEYWORD2
  463. getType KEYWORD2
  464. getCable KEYWORD2
  465. getChannel KEYWORD2
  466. getData1 KEYWORD2
  467. getData2 KEYWORD2
  468. getSysExArray KEYWORD2
  469. setHandleNoteOff KEYWORD2
  470. setHandleNoteOn KEYWORD2
  471. setHandleVelocityChange KEYWORD2
  472. setHandleControlChange KEYWORD2
  473. setHandleProgramChange KEYWORD2
  474. setHandleAfterTouch KEYWORD2
  475. setHandlePitchChange KEYWORD2
  476. NoteOff LITERAL1
  477. NoteOn LITERAL1
  478. AfterTouchPoly LITERAL1
  479. ControlChange LITERAL1
  480. ProgramChange LITERAL1
  481. AfterTouchChannel LITERAL1
  482. PitchBend LITERAL1
  483. SystemExclusive LITERAL1
  484. TimeCodeQuarterFrame LITERAL1
  485. SongPosition LITERAL1
  486. SongSelect LITERAL1
  487. TuneRequest LITERAL1
  488. Clock LITERAL1
  489. Start LITERAL1
  490. Continue LITERAL1
  491. Stop LITERAL1
  492. ActiveSensing LITERAL1
  493. SystemReset LITERAL1
  494. midiEventPacket_t LITERAL1
  495. MidiUSB KEYWORD1
  496. sendMIDI KEYWORD2
  497. # USB RawHID
  498. RawHID KEYWORD1
  499. recv KEYWORD2
  500. send KEYWORD2
  501. # USB Flight Sim Controls
  502. FlightSim KEYWORD1
  503. FlightSimCommand KEYWORD2
  504. FlightSimInteger KEYWORD2
  505. FlightSimFloat KEYWORD2
  506. FlightSimElapsedFrames KEYWORD2
  507. FlightSimData KEYWORD2
  508. FlightSimEvent KEYWORD2
  509. onChange KEYWORD2
  510. update KEYWORD2
  511. isEnabled KEYWORD2
  512. getFrameCount KEYWORD2
  513. XPlaneRef KEYWORD2
  514. # USB Touchscreen
  515. TouchscreenUSB KEYWORD1