{"action":"created","issue":{"url":"https://api.github.com/repos/0xc0170/project_generator/issues/67","labels_url":"https://api.github.com/repos/0xc0170/project_generator/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/0xc0170/project_generator/issues/67/comments","events_url":"https://api.github.com/repos/0xc0170/project_generator/issues/67/events","html_url":"https://github.com/0xc0170/project_generator/issues/67","id":62540692,"number":67,"title":"Board definitions - external location?","user":{"login":"0xc0170","id":2963726,"avatar_url":"https://avatars.githubusercontent.com/u/2963726?v=3","gravatar_id":"","url":"https://api.github.com/users/0xc0170","html_url":"https://github.com/0xc0170","followers_url":"https://api.github.com/users/0xc0170/followers","following_url":"https://api.github.com/users/0xc0170/following{/other_user}","gists_url":"https://api.github.com/users/0xc0170/gists{/gist_id}","starred_url":"https://api.github.com/users/0xc0170/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xc0170/subscriptions","organizations_url":"https://api.github.com/users/0xc0170/orgs","repos_url":"https://api.github.com/users/0xc0170/repos","events_url":"https://api.github.com/users/0xc0170/events{/privacy}","received_events_url":"https://api.github.com/users/0xc0170/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/0xc0170/project_generator/labels/type:%20feature","name":"type: feature","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-17T23:21:17Z","updated_at":"2015-03-19T23:17:02Z","closed_at":null,"body":"In the #52, it was proposed by @aethaniel , to have board definitions outside of the project_generator. Or at least to be able to pass the yaml record with board definitions for a project, then use that information internally to get the right information.\r\n\r\n```\r\n    board_def = {\r\n        # Freescale FRDM boards\r\n        'frdm-k20d50m': {\r\n            'uvision': 'MK20DX128xxx5',\r\n            'gcc' : 'cortex-m4',\r\n        },\r\n        'frdm-kl25z' : {\r\n            'iar' : 'MKL25Z128xxx4',\r\n            'gcc' : 'cortex-m0+',\r\n        },\r\n        'frdm-k64f' : {\r\n            'uvision' : 'MK64FN1M0xxx12',\r\n            'gcc' : 'cortex-m4f',\r\n        },\r\n\r\n        # mbed boards\r\n        'mbed-lpc1768' : {\r\n            'uvision' : 'LPC1768',\r\n            'iar' : 'LPC1768',\r\n            'coide' : 'LPC1768',\r\n            'gcc' : 'cortex-m3',\r\n        },\r\n\r\n        # ST Disco boards\r\n        'disco_f407vg' : {\r\n            'coide' : 'STM32F407VG',\r\n            'gcc' : 'cortex-m4',\r\n        },\r\n    }\r\n``` \r\n\r\nThis can be expressed in the yaml file, provided externally, and the pg just gets the board. This ticket is to start a discussion how it can be implemented so it scales. The initial idea was to have a common place, but probably would be better to have a repo with all these definitions, which can be easily pulled and used."},"comment":{"url":"https://api.github.com/repos/0xc0170/project_generator/issues/comments/83799054","html_url":"https://github.com/0xc0170/project_generator/issues/67#issuecomment-83799054","issue_url":"https://api.github.com/repos/0xc0170/project_generator/issues/67","id":83799054,"user":{"login":"0xc0170","id":2963726,"avatar_url":"https://avatars.githubusercontent.com/u/2963726?v=3","gravatar_id":"","url":"https://api.github.com/users/0xc0170","html_url":"https://github.com/0xc0170","followers_url":"https://api.github.com/users/0xc0170/followers","following_url":"https://api.github.com/users/0xc0170/following{/other_user}","gists_url":"https://api.github.com/users/0xc0170/gists{/gist_id}","starred_url":"https://api.github.com/users/0xc0170/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xc0170/subscriptions","organizations_url":"https://api.github.com/users/0xc0170/orgs","repos_url":"https://api.github.com/users/0xc0170/repos","events_url":"https://api.github.com/users/0xc0170/events{/privacy}","received_events_url":"https://api.github.com/users/0xc0170/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T23:17:02Z","updated_at":"2015-03-19T23:17:02Z","body":"The problem here is mcu name. I decided to follow tools name because each tool names MCU differently (many of MCU are the same but from 10 I have seen, 2 were different, like uvision names it XYZ and IAR XYX). I agree with boards, then we have to find how to name MCU.\r\n\r\n```\r\nproject_generator_definitions/\r\n    boards/\r\n        frdm-k20d50m.yaml\r\n        mbed-lpc1768.yaml\r\n    mcu/\r\n        uvision/\r\n            MK20DX128xxx5.yaml\r\n        iar/\r\n            MK20DX128.yaml\r\n        coide/\r\n           K20D50M.yaml\r\n```\r\n\r\nThis is not ideal.. I made up the example above, but there are cases when this is true. Each tool has own naming.. So ideally would be that mcu/mk20dx128xxx5 as that one seems to be accroding their reference manual. But who decides what names is correct? :) "}}