constants.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 2015-2021 Espressif Systems (Shanghai) CO LTD
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. # Control-key characters
  15. CTRL_A = '\x01'
  16. CTRL_B = '\x02'
  17. CTRL_F = '\x06'
  18. CTRL_H = '\x08'
  19. CTRL_R = '\x12'
  20. CTRL_T = '\x14'
  21. CTRL_Y = '\x19'
  22. CTRL_P = '\x10'
  23. CTRL_X = '\x18'
  24. CTRL_L = '\x0c'
  25. CTRL_RBRACKET = '\x1d' # Ctrl+]
  26. # Command parsed from console inputs
  27. CMD_STOP = 1
  28. CMD_RESET = 2
  29. CMD_MAKE = 3
  30. CMD_APP_FLASH = 4
  31. CMD_OUTPUT_TOGGLE = 5
  32. CMD_TOGGLE_LOGGING = 6
  33. CMD_ENTER_BOOT = 7
  34. # Tags for tuples in queues
  35. TAG_KEY = 0
  36. TAG_SERIAL = 1
  37. TAG_SERIAL_FLUSH = 2
  38. TAG_CMD = 3
  39. __version__ = '1.1'