Keyboard firmwares for Atmel AVR and Cortex-M
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

zip.py 989B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. """
  2. mbed SDK
  3. Copyright (c) 2011-2013 ARM Limited
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. """
  14. from exporters import Exporter
  15. from os.path import basename
  16. class ZIP(Exporter):
  17. NAME = 'ZIP'
  18. TARGETS = [
  19. ]
  20. USING_MICROLIB = [
  21. ]
  22. FILE_TYPES = {
  23. 'c_sources':'1',
  24. 'cpp_sources':'8',
  25. 's_sources':'2'
  26. }
  27. def get_toolchain(self):
  28. return 'uARM' if (self.target in self.USING_MICROLIB) else 'ARM'
  29. def generate(self):
  30. return True