diff --git a/ArduinoZeroTemplate.cproj b/ArduinoZeroTemplate.cproj index d5d221f1e7b74044884b0ea793786509be0124ef..5fb17d2d543dba46214d9d376159f5cea41fd6f3 100644 --- a/ArduinoZeroTemplate.cproj +++ b/ArduinoZeroTemplate.cproj @@ -32,13 +32,13 @@ <framework-data> <options> <option id="common.boards" value="Add" config="" content-id="Atmel.ASF" /> + <option id="sam0.drivers.adc" value="Add" config="polled" content-id="Atmel.ASF" /> <option id="sam0.drivers.dac" value="Add" config="polled" content-id="Atmel.ASF" /> <option id="sam0.drivers.port" value="Add" config="" content-id="Atmel.ASF" /> <option id="sam0.drivers.rtc" value="Add" config="count_polled" content-id="Atmel.ASF" /> <option id="sam0.drivers.sercom.usart" value="Add" config="callback" content-id="Atmel.ASF" /> <option id="sam0.drivers.system" value="Add" config="" content-id="Atmel.ASF" /> <option id="sam0.drivers.system.clock" value="Add" config="" content-id="Atmel.ASF" /> - <option id="sam0.drivers.adc" value="Add" config="polled" content-id="Atmel.ASF" /> <option id="sam0.drivers.wdt" value="Add" config="polled" content-id="Atmel.ASF" /> <option id="sam0.utils.linker_scripts" value="Add" config="" content-id="Atmel.ASF" /> </options> diff --git a/src/ArduinoZeroTemplate.h b/src/ArduinoZeroTemplate.h index e5c75b67fece170a62bbc8bd79c8b2f0c7c9a744..2e1859bd2efd62a862f2184a9903619b8fe59a22 100644 --- a/src/ArduinoZeroTemplate.h +++ b/src/ArduinoZeroTemplate.h @@ -137,7 +137,8 @@ Available for user // USART5 in UART mode if used: #define MAX_USART5_RX_BUFFER_LENGTH 5 - // Really need to add analogue in! + // Analog in addition in progress + // Configuration shall be set and how to read. Also if it should be callback or not // Functions void ArduinoZeroTemplateInit(void); diff --git a/src/macros.h b/src/macros.h index faf6a2f34723c5a2f17ecede133a9a7c82447a96..304bc67ea6c37f1f4bd458e36cda8eb90f55f3c6 100644 --- a/src/macros.h +++ b/src/macros.h @@ -93,8 +93,8 @@ Example for accessing register named REGISTER for the pin defined by PINMASK. REG_PORT_REGISTERx = PINMASK; - x is the group number. Example to set pin PB02: REG_PORT_OUTSET1 = PORT_PB02; -It works but as you can see that you must yourself take care of the group because the macro -combined the port and the group in the same definition. +It works but as you can see you must yourself take care of the group because the macro +combines the port and the group in the same definition. Read more here about writing to ports: https://electronics.stackexchange.com/questions/139117/atmels-arm-programming-without-asf