{"action":"opened","issue":{"url":"https://api.github.com/repos/grbl/grbl/issues/802","labels_url":"https://api.github.com/repos/grbl/grbl/issues/802/labels{/name}","comments_url":"https://api.github.com/repos/grbl/grbl/issues/802/comments","events_url":"https://api.github.com/repos/grbl/grbl/issues/802/events","html_url":"https://github.com/grbl/grbl/issues/802","id":106609491,"number":802,"title":"Compiling with make ATMEGA2560","user":{"login":"vlachoudis","id":3834594,"avatar_url":"https://avatars.githubusercontent.com/u/3834594?v=3","gravatar_id":"","url":"https://api.github.com/users/vlachoudis","html_url":"https://github.com/vlachoudis","followers_url":"https://api.github.com/users/vlachoudis/followers","following_url":"https://api.github.com/users/vlachoudis/following{/other_user}","gists_url":"https://api.github.com/users/vlachoudis/gists{/gist_id}","starred_url":"https://api.github.com/users/vlachoudis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlachoudis/subscriptions","organizations_url":"https://api.github.com/users/vlachoudis/orgs","repos_url":"https://api.github.com/users/vlachoudis/repos","events_url":"https://api.github.com/users/vlachoudis/events{/privacy}","received_events_url":"https://api.github.com/users/vlachoudis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-15T17:51:31Z","updated_at":"2015-09-15T17:51:31Z","closed_at":null,"body":"I've tried to compile the latest version 0.9j using the CPU_MAP ATMEGA2560\r\nfrom the command line, but it fails with a lot of error messages. Probably some include is missing?\r\n\r\navr-gcc -Wall -Os -DF_CPU=16000000 -mmcu=atmega328p -I. -ffunction-sections -fdata-sections -MMD -MP -c grbl/spindle_control.c -o build/spindle_control.o\r\nIn file included from grbl/cpu_map.h:37:0,\r\n                 from grbl/grbl.h:47,\r\n                 from grbl/spindle_control.c:22:\r\ngrbl/spindle_control.c: In function 'spindle_init':\r\ngrbl/cpu_map/cpu_map_atmega2560.h:135:28: error: 'DDRH' undeclared (first use in this function)\r\n   #define SPINDLE_PWM_DDR  DDRH\r\n                            ^\r\ngrbl/spindle_control.c:30:5: note: in expansion of macro 'SPINDLE_PWM_DDR'\r\n     SPINDLE_PWM_DDR |= (1<<SPINDLE_PWM_BIT); // Configure as PWM output pin.\r\n     ^\r\ngrbl/cpu_map/cpu_map_atmega2560.h:135:28: note: each undeclared identifier is reported only once for each function it appears in\r\n   #define SPINDLE_PWM_DDR  DDRH\r\n                            ^\r\ngrbl/spindle_control.c:30:5: note: in expansion of macro 'SPINDLE_PWM_DDR'\r\n     SPINDLE_PWM_DDR |= (1<<SPINDLE_PWM_BIT); // Configure as PWM output pin.\r\n     ^\r\ngrbl/cpu_map/cpu_map_atmega2560.h:82:33: error: 'DDRE' undeclared (first use in this function)\r\n #define SPINDLE_DIRECTION_DDR   DDRE\r\n"}}