Hi,
I am new to ASF and I am trying to get familier with it. I am trying to do a simple Serial USART example on my SAMD21. This example in the docs gives a step by step, but its doesn't tell me where some constants/macros are defined eg. which module I need to add to my solution in AS7.
void configure_usart(void) { struct usart_config config_usart; usart_get_config_defaults(&config_usart); config_usart.baudrate = 9600; config_usart.mux_setting = EDBG_CDC_SERCOM_MUX_SETTING; config_usart.pinmux_pad0 = EDBG_CDC_SERCOM_PINMUX_PAD0; config_usart.pinmux_pad1 = EDBG_CDC_SERCOM_PINMUX_PAD1; config_usart.pinmux_pad2 = EDBG_CDC_SERCOM_PINMUX_PAD2; config_usart.pinmux_pad3 = EDBG_CDC_SERCOM_PINMUX_PAD3; while (usart_init(&usart_instance, EDBG_CDC_MODULE, &config_usart) != STATUS_OK) { } usart_enable(&usart_instance); }
I get the following error:
'EDBG_CDC_SERCOM_MUX_SETTING' undeclared (first use in this function)
What modules are these defined?
Here is whats I my project so far