{"action":"created","issue":{"url":"https://api.github.com/repos/rs2k/raceflight/issues/51","labels_url":"https://api.github.com/repos/rs2k/raceflight/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/rs2k/raceflight/issues/51/comments","events_url":"https://api.github.com/repos/rs2k/raceflight/issues/51/events","html_url":"https://github.com/rs2k/raceflight/pull/51","id":126771147,"number":51,"title":"SPI driver cleanup","user":{"login":"MJ666","id":8107952,"avatar_url":"https://avatars.githubusercontent.com/u/8107952?v=3","gravatar_id":"","url":"https://api.github.com/users/MJ666","html_url":"https://github.com/MJ666","followers_url":"https://api.github.com/users/MJ666/followers","following_url":"https://api.github.com/users/MJ666/following{/other_user}","gists_url":"https://api.github.com/users/MJ666/gists{/gist_id}","starred_url":"https://api.github.com/users/MJ666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MJ666/subscriptions","organizations_url":"https://api.github.com/users/MJ666/orgs","repos_url":"https://api.github.com/users/MJ666/repos","events_url":"https://api.github.com/users/MJ666/events{/privacy}","received_events_url":"https://api.github.com/users/MJ666/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-14T23:19:01Z","updated_at":"2016-01-15T20:18:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rs2k/raceflight/pulls/51","html_url":"https://github.com/rs2k/raceflight/pull/51","diff_url":"https://github.com/rs2k/raceflight/pull/51.diff","patch_url":"https://github.com/rs2k/raceflight/pull/51.patch"},"body":"Moved all target specific code to the related target.h file. The SPI driver does not contain any target specific code anymore. It is tested for the SPI1 and SPI2 port on the ALIENFLIGHTF4 dev system. Need to be finally tested for the other targets. I plan to go ahead with this kind of updates to come to a more clean maintainable code. This will also make porting to CleanFlight and BetaFlight more easy in the future. Compiles for all F4 targets and the AW F1 and F3 without issues."},"comment":{"url":"https://api.github.com/repos/rs2k/raceflight/issues/comments/172079477","html_url":"https://github.com/rs2k/raceflight/pull/51#issuecomment-172079477","issue_url":"https://api.github.com/repos/rs2k/raceflight/issues/51","id":172079477,"user":{"login":"MJ666","id":8107952,"avatar_url":"https://avatars.githubusercontent.com/u/8107952?v=3","gravatar_id":"","url":"https://api.github.com/users/MJ666","html_url":"https://github.com/MJ666","followers_url":"https://api.github.com/users/MJ666/followers","following_url":"https://api.github.com/users/MJ666/following{/other_user}","gists_url":"https://api.github.com/users/MJ666/gists{/gist_id}","starred_url":"https://api.github.com/users/MJ666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MJ666/subscriptions","organizations_url":"https://api.github.com/users/MJ666/orgs","repos_url":"https://api.github.com/users/MJ666/repos","events_url":"https://api.github.com/users/MJ666/events{/privacy}","received_events_url":"https://api.github.com/users/MJ666/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T20:18:28Z","updated_at":"2016-01-15T20:18:28Z","body":"If there is nothing defined for an enabled devicle in the target.h file the driver default definitions will be used. As far I have checked they should fit for all targets. The ALIENFLIGHTF4 in examle is using all 3 SPI ports with the driver defaults."}}