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.

84 lines
3.2KB

  1. #!/usr/bin/python2.5
  2. #
  3. # Copyright 2014 Olivier Gillet.
  4. #
  5. # Author: Olivier Gillet (ol.gillet@gmail.com)
  6. #
  7. # Permission is hereby granted, free of charge, to any person obtaining a copy
  8. # of this software and associated documentation files (the "Software"), to deal
  9. # in the Software without restriction, including without limitation the rights
  10. # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  11. # copies of the Software, and to permit persons to whom the Software is
  12. # furnished to do so, subject to the following conditions:
  13. #
  14. # The above copyright notice and this permission notice shall be included in
  15. # all copies or substantial portions of the Software.
  16. #
  17. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  20. # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  21. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  22. # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  23. # THE SOFTWARE.
  24. #
  25. # See http://creativecommons.org/licenses/MIT/ for more information.
  26. #
  27. # -----------------------------------------------------------------------------
  28. #
  29. # Master resources file.
  30. header = """// Copyright 2013 Olivier Gillet.
  31. //
  32. // Author: Olivier Gillet (ol.gillet@gmail.com)
  33. //
  34. // Permission is hereby granted, free of charge, to any person obtaining a copy
  35. // of this software and associated documentation files (the "Software"), to deal
  36. // in the Software without restriction, including without limitation the rights
  37. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  38. // copies of the Software, and to permit persons to whom the Software is
  39. // furnished to do so, subject to the following conditions:
  40. //
  41. // The above copyright notice and this permission notice shall be included in
  42. // all copies or substantial portions of the Software.
  43. //
  44. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  45. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  46. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  47. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  48. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  49. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  50. // THE SOFTWARE.
  51. //
  52. // See http://creativecommons.org/licenses/MIT/ for more information.
  53. //
  54. // -----------------------------------------------------------------------------
  55. //
  56. // Resources definitions.
  57. //
  58. // Automatically generated with:
  59. // make resources
  60. """
  61. namespace = 'frames'
  62. target = 'frames'
  63. includes = """
  64. #include "stmlib/stmlib.h"
  65. """
  66. import lookup_tables
  67. import waveforms
  68. types = ['uint8_t', 'uint16_t']
  69. create_specialized_manager = True
  70. resources = [
  71. ('dummy', 'string', 'STR', 'char', str, False),
  72. (lookup_tables.lookup_tables,
  73. 'lookup_table', 'LUT', 'uint16_t', int, False),
  74. (lookup_tables.lookup_tables_32,
  75. 'lookup_table_hr', 'LUT', 'uint32_t', int, False),
  76. (waveforms.waveforms,
  77. 'wt', 'WT', 'uint8_t', int, False),
  78. ]