{"action":"created","issue":{"url":"https://api.github.com/repos/contiki-os/contiki/issues/736","labels_url":"https://api.github.com/repos/contiki-os/contiki/issues/736/labels{/name}","comments_url":"https://api.github.com/repos/contiki-os/contiki/issues/736/comments","events_url":"https://api.github.com/repos/contiki-os/contiki/issues/736/events","html_url":"https://github.com/contiki-os/contiki/pull/736","id":36792019,"number":736,"title":"Added support for SPI slave and SPI-accel drivers","user":{"login":"bmicho","id":2982016,"avatar_url":"https://avatars.githubusercontent.com/u/2982016?v=3","gravatar_id":"","url":"https://api.github.com/users/bmicho","html_url":"https://github.com/bmicho","followers_url":"https://api.github.com/users/bmicho/followers","following_url":"https://api.github.com/users/bmicho/following{/other_user}","gists_url":"https://api.github.com/users/bmicho/gists{/gist_id}","starred_url":"https://api.github.com/users/bmicho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmicho/subscriptions","organizations_url":"https://api.github.com/users/bmicho/orgs","repos_url":"https://api.github.com/users/bmicho/repos","events_url":"https://api.github.com/users/bmicho/events{/privacy}","received_events_url":"https://api.github.com/users/bmicho/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/contiki-os/contiki/labels/Platform%20/%20CPU","name":"Platform / CPU","color":"fbca04"},{"url":"https://api.github.com/repos/contiki-os/contiki/labels/timed%20out","name":"timed out","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"g-oikonomou","id":705207,"avatar_url":"https://avatars.githubusercontent.com/u/705207?v=3","gravatar_id":"","url":"https://api.github.com/users/g-oikonomou","html_url":"https://github.com/g-oikonomou","followers_url":"https://api.github.com/users/g-oikonomou/followers","following_url":"https://api.github.com/users/g-oikonomou/following{/other_user}","gists_url":"https://api.github.com/users/g-oikonomou/gists{/gist_id}","starred_url":"https://api.github.com/users/g-oikonomou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g-oikonomou/subscriptions","organizations_url":"https://api.github.com/users/g-oikonomou/orgs","repos_url":"https://api.github.com/users/g-oikonomou/repos","events_url":"https://api.github.com/users/g-oikonomou/events{/privacy}","received_events_url":"https://api.github.com/users/g-oikonomou/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2014-06-30T12:14:15Z","updated_at":"2015-09-28T11:20:57Z","closed_at":"2015-09-28T11:20:57Z","pull_request":{"url":"https://api.github.com/repos/contiki-os/contiki/pulls/736","html_url":"https://github.com/contiki-os/contiki/pull/736","diff_url":"https://github.com/contiki-os/contiki/pull/736.diff","patch_url":"https://github.com/contiki-os/contiki/pull/736.patch"},"body":"Added interupt support for slave SPI mode\r\n\r\nFixed minor bugs with PIN configuration:\r\nWhen CS is configured with peripheral mode, SPI_WRITE will always terminate the transmission after each byte. This is expected since it waits for SPI not BSY.\r\nfor multiple byte transmissions use SPI_WRITE_FAST.\r\n\r\nTI example software configures CS pins as software in accelerometer example. When i played with software controlled CS, SPI_WRITE_FAST() demonstrated a funny behaviour. In my oscilloscope the CS was changing values ... When CS is in software mode only use SPI_WRITE. SPI_WRITE works perfect in CS_Software mode.\r\n\r\n\r\nAdded check in SPI configuration of transmission size:\r\nNow there is a max - min size check  in api driver (both init and configure function)\r\n\r\nRemoved wait time from SPI Flush, There is no point to use SPI_WAITFOREORx() before emptying the FIFO. \r\nit breaks when it is used since it waits for FIFO Not to be empty in order to empty it... if something a SSI_BSY\r\nwait time should be added there to force the function to wait for end of transmission (if any) before erasing the FIFO\r\n\r\nAdded SPI master slave example. With 2 SMARTRF06 SPI master slave operation can be checked\r\nAdded smartrf06 accelerometer driver (not tested for calibrated)\r\nadded example with accelerometer"},"comment":{"url":"https://api.github.com/repos/contiki-os/contiki/issues/comments/143716770","html_url":"https://github.com/contiki-os/contiki/pull/736#issuecomment-143716770","issue_url":"https://api.github.com/repos/contiki-os/contiki/issues/736","id":143716770,"user":{"login":"simonduq","id":1425999,"avatar_url":"https://avatars.githubusercontent.com/u/1425999?v=3","gravatar_id":"","url":"https://api.github.com/users/simonduq","html_url":"https://github.com/simonduq","followers_url":"https://api.github.com/users/simonduq/followers","following_url":"https://api.github.com/users/simonduq/following{/other_user}","gists_url":"https://api.github.com/users/simonduq/gists{/gist_id}","starred_url":"https://api.github.com/users/simonduq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonduq/subscriptions","organizations_url":"https://api.github.com/users/simonduq/orgs","repos_url":"https://api.github.com/users/simonduq/repos","events_url":"https://api.github.com/users/simonduq/events{/privacy}","received_events_url":"https://api.github.com/users/simonduq/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T11:20:57Z","updated_at":"2015-09-28T11:20:57Z","body":"closing after timeout"}}