{"action":"created","issue":{"url":"https://api.github.com/repos/wiringX/wiringX/issues/60","repository_url":"https://api.github.com/repos/wiringX/wiringX","labels_url":"https://api.github.com/repos/wiringX/wiringX/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/wiringX/wiringX/issues/60/comments","events_url":"https://api.github.com/repos/wiringX/wiringX/issues/60/events","html_url":"https://github.com/wiringX/wiringX/pull/60","id":141839952,"number":60,"title":"adding support for C.H.I.P. ","user":{"login":"Soulsurfering","id":17856881,"avatar_url":"https://avatars.githubusercontent.com/u/17856881?v=3","gravatar_id":"","url":"https://api.github.com/users/Soulsurfering","html_url":"https://github.com/Soulsurfering","followers_url":"https://api.github.com/users/Soulsurfering/followers","following_url":"https://api.github.com/users/Soulsurfering/following{/other_user}","gists_url":"https://api.github.com/users/Soulsurfering/gists{/gist_id}","starred_url":"https://api.github.com/users/Soulsurfering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soulsurfering/subscriptions","organizations_url":"https://api.github.com/users/Soulsurfering/orgs","repos_url":"https://api.github.com/users/Soulsurfering/repos","events_url":"https://api.github.com/users/Soulsurfering/events{/privacy}","received_events_url":"https://api.github.com/users/Soulsurfering/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2016-03-18T11:21:51Z","updated_at":"2016-03-19T21:24:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wiringX/wiringX/pulls/60","html_url":"https://github.com/wiringX/wiringX/pull/60","diff_url":"https://github.com/wiringX/wiringX/pull/60.diff","patch_url":"https://github.com/wiringX/wiringX/pull/60.patch"},"body":"I have added a platform for C.H.I.P. (getchip.com).\r\n\r\nThis implementation supports:\r\n- chip->setup = &setup;\r\n- chip->pinMode = &chipPinMode;\r\n- chip->digitalWrite = &chipDigitalWrite;\r\n- chip->digitalRead = &chipDigitalRead;\r\n- chip->identify = &identify;\r\n- chip->isr = &chipISR;\r\n- chip->waitForInterrupt = &chipWaitForInterrupt;\r\n- chip->gc = &chipGC;\r\n- chip->validGPIO = &chipValidGPIO;\r\n\r\nPlease check the platform identification of \"bananapi.c\" and \"chip.c\" \r\n- [ ] bananapi.c  detects the CHIP hardware\r\n- [ ] chip.c  is not validated against Banana Pi hardware\r\n\r\nThis is the /proc/cpuinfo from my CHIP:\r\n`processor       : 0`\r\n`model name   : ARMv7 Processor rev 2 (v7l)`\r\n`BogoMIPS      : 1001.88`\r\n`Features         : half thumb fastmult vfp edsp neon vfpv3 tls vfpd32`\r\n`CPU implementer : 0x41`\r\n`CPU architecture: 7`\r\n`CPU variant    : 0x3`\r\n`CPU part             : 0xc08`\r\n`CPU revision  : 2`\r\n` `\r\n`Hardware      : Allwinner sun4i/sun5i Families`\r\n`Revision        : 0000`\r\n`Serial            : xxxxx`\r\n\r\nUnfortunately the pin connectors of CHIP are very different from other platforms: [Chip Connectors](http://docs.getchip.com/#pin-headers)\r\nI decided to map these pins:\r\n\r\n- Pin 0..7 -> XIO0 .. 7\r\n- Pin 8..15 -> CSID0 .. 7\r\n- Pin 16..20 -> LCDD3 .. 7\r\n- Pin 21..26 -> LCDD10 .. 15\r\n- Pin 27..32 -> LCDD18 .. 23\r\n- Pin 33 -> LCD-CLK\r\n- Pin 34 -> LCD-HSYNC\r\n- Pin 35 -> LCD-VSYNC\r\n- Pin 36 -> LCD-DE\r\n\r\nMemory mapped pin read and write works for Pin 8..36, but is not available for the Pin0..7 (XIO0..7), because these are connected via an I2C proxy.\r\n"},"comment":{"url":"https://api.github.com/repos/wiringX/wiringX/issues/comments/198787112","html_url":"https://github.com/wiringX/wiringX/pull/60#issuecomment-198787112","issue_url":"https://api.github.com/repos/wiringX/wiringX/issues/60","id":198787112,"user":{"login":"CurlyMoo","id":2429105,"avatar_url":"https://avatars.githubusercontent.com/u/2429105?v=3","gravatar_id":"","url":"https://api.github.com/users/CurlyMoo","html_url":"https://github.com/CurlyMoo","followers_url":"https://api.github.com/users/CurlyMoo/followers","following_url":"https://api.github.com/users/CurlyMoo/following{/other_user}","gists_url":"https://api.github.com/users/CurlyMoo/gists{/gist_id}","starred_url":"https://api.github.com/users/CurlyMoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CurlyMoo/subscriptions","organizations_url":"https://api.github.com/users/CurlyMoo/orgs","repos_url":"https://api.github.com/users/CurlyMoo/repos","events_url":"https://api.github.com/users/CurlyMoo/events{/privacy}","received_events_url":"https://api.github.com/users/CurlyMoo/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T21:24:33Z","updated_at":"2016-03-19T21:24:33Z","body":"That's when the brute force comes around... Just check all mapped addresses to see if the pin responds."}}