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.

68 lines
2.3KB

  1. #!/usr/bin/python2.5
  2. #
  3. # Copyright 2012 Olivier Gillet.
  4. #
  5. # Author: Olivier Gillet (olivier@mutable-instruments.net)
  6. #
  7. # This program is free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation, either version 3 of the License, or
  10. # (at your option) any later version.
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. #
  18. # -----------------------------------------------------------------------------
  19. #
  20. # Master resources file.
  21. header = """// Copyright 2012 Olivier Gillet.
  22. //
  23. // Author: Olivier Gillet (olivier@mutable-instruments.net)
  24. //
  25. // This program is free software: you can redistribute it and/or modify
  26. // it under the terms of the GNU General Public License as published by
  27. // the Free Software Foundation, either version 3 of the License, or
  28. // (at your option) any later version.
  29. // This program is distributed in the hope that it will be useful,
  30. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  31. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  32. // GNU General Public License for more details.
  33. // You should have received a copy of the GNU General Public License
  34. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  35. //
  36. // -----------------------------------------------------------------------------
  37. //
  38. // Resources definitions.
  39. //
  40. // Automatically generated with:
  41. // make resources
  42. """
  43. namespace = 'grids'
  44. target = 'grids'
  45. modifier = 'PROGMEM'
  46. types = ['uint8_t', 'uint16_t']
  47. includes = """
  48. #include "avrlib/base.h"
  49. #include <avr/pgmspace.h>
  50. """
  51. import lookup_tables
  52. create_specialized_manager = True
  53. resources = [
  54. ('dummy', 'string', 'STR_RES', 'prog_char', str, True),
  55. (lookup_tables.lookup_tables,
  56. 'lookup_table', 'LUT_RES', 'prog_uint16_t', int, True),
  57. (lookup_tables.lookup_tables32,
  58. 'lookup_table32', 'LUT_RES', 'prog_uint32_t', int, True),
  59. (lookup_tables.drum_map_nodes,
  60. 'node', 'NODE', 'prog_uint8_t', int, True),
  61. ]