Xmega_a1_xplained Development Board board. h

Source: Internet
Author: User
/*************************************** * ********************************** Board Definitions * **************************************** **********************************/
# Ifndef _ x1__a1_xplained __# DEFINE _ x1__a1_xplained __
// Defines valid for both Boards. # define ledport Porte
// Timer/Counter defines. # define ledport_timer0 tce0 # define ledport_awex awexe
# Define read_switches (switchportl. In & switchportl_mask_gc) | (switchporth. in <switchporth_offset ))
# Define switchportl portd # define switchporth portr # define switchportl_mask_gc
(0x3f <0) // pin 0-5 # define switchporth_mask_gc
(0x03 <0) // pin 0-1
// Pin 0-1 on portr are used to represent switch 6-7, // In order to position the bits riey in a byte they // need to be shifted with an offset # define switchporth_offset 6
# Define testport portc
# Define switchport_int0_vect portd_int0_vect # define switchporth_int0_vect portr_int0_vect
// ADC defines # define ntc_enable ()
(Portb. pin3ctrl = (portb. pin3ctrl &~ Port_opc_gm) | port_opc_pulldown_gc ))
// Usart defines # define usart usartc0 # define usart_port portc
# Define usart_rxc_vect usartc0_rxc_vect # define usart_dre_vect usartc0_dre_vect
# Define dma_ch_trigsrc_usart_dre_gc dma_ch_trigsrc_usartc0_dre_gc # define dma_ch_trigsrc_usart_rxc_gc dma_ch_trigsrc_usartc0_rxc_gc
// Twi defines # define Twi Twic # define twiport portc
# Define prptwi prpd // The port not used for Twi
# Define twi_twim_vect twic_twim_vect # define twi_twis_vect twic_twis_vect
# Endif/_ x1__a1_xplained __

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.