Microchip® Advanced Software Framework

conf_test.h File Reference

Unit test configuration.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

Macros

Unit test configuration
#define CONF_TEST_USART   &USARTC0
 USART to redirect STDIO to. More...
 
#define CONF_TEST_BAUDRATE   38400
 Baudrate of USART. More...
 
#define CONF_TEST_CHARLENGTH   USART_CHSIZE_8BIT_gc
 Character length (bits) of USART. More...
 
#define CONF_TEST_PARITY   USART_PMODE_DISABLED_gc
 Parity mode of USART. More...
 
#define CONF_TEST_STOPBITS   false
 Stop bit configuration of USART. More...
 
#define MEMORY_BLOCK_SIZE   512
 Size of memory blocks used in copy tests. More...
 
#define DEST_BLOCK_TC_SIZE   16
 Size of destination block used in trigger/callback test. More...
 
#define DOUBLE_BUFFER_REPEATS   16
 Number of times to repeat copy in double buffer test. More...
 
#define TIMER   TCC0
 Timer used in DMA fixed read/trigger/callback test. More...
 
#define TIMER_PERIOD   4096
 Period of timer. More...
 
#define TIMER_RESOLUTION   8192
 Resolution of timer. More...
 

Enumerations

enum  dma_channels {
  DMA_CHANNEL_0,
  DMA_CHANNEL_1,
  DMA_CHANNEL_2,
  DMA_CHANNEL_3
}
 

#define CONF_TEST_BAUDRATE   38400

Baudrate of USART.

Note
38400 baud

Referenced by main().

#define CONF_TEST_CHARLENGTH   USART_CHSIZE_8BIT_gc

Character length (bits) of USART.

Note
8-bit character length

Referenced by main().

#define CONF_TEST_PARITY   USART_PMODE_DISABLED_gc

Parity mode of USART.

Note
No parity check

Referenced by main().

#define CONF_TEST_STOPBITS   false

Stop bit configuration of USART.

Note
No extra stop bit, i.e., use 1

Referenced by main().

#define CONF_TEST_USART   &USARTC0

USART to redirect STDIO to.

Note
USART0 on PORTC routed through board controller to USB

Referenced by main().

#define DEST_BLOCK_TC_SIZE   16

Size of destination block used in trigger/callback test.

Note
Size of triggered/interrupt test destination data block

Referenced by run_dma_triggered_with_callback().

#define DOUBLE_BUFFER_REPEATS   16

Number of times to repeat copy in double buffer test.

Note
Number of repeats for double buffer test

Referenced by run_dma_double_buffering_test().

#define MEMORY_BLOCK_SIZE   512

Size of memory blocks used in copy tests.

Note
Size of memory blocks to copy

Referenced by run_dma_direction_test(), run_dma_double_buffering_test(), run_dma_error_handling_test(), and run_dma_memory_copy_burst_length_test().

#define TIMER   TCC0

Timer used in DMA fixed read/trigger/callback test.

Note
Timers used in DMA fixed read/trigger/callback test

Referenced by dma_transfer_is_complete(), and run_dma_triggered_with_callback().

#define TIMER_PERIOD   4096

Period of timer.

Note
Period used in DMA fixed read/trigger/callback test

Referenced by run_dma_triggered_with_callback().

#define TIMER_RESOLUTION   8192

Resolution of timer.

Note
Timer resolution

Referenced by run_dma_triggered_with_callback().

Note
DMA channels available
Enumerator
DMA_CHANNEL_0 
DMA_CHANNEL_1 
DMA_CHANNEL_2 
DMA_CHANNEL_3