Project 9
Stepper Motor
|
Neff Site |
Header file for the XMEGA-A1 Xplained evaluation board. More...
Go to the source code of this file.
Macros | |
#define | GPIO_LOW_PORT PORTD |
#define | GPIO_HIGH_PORT PORTR |
#define | GPIO_LOW_PINS_gp 0 |
#define | GPIO_LOW_PINS_gm 0x3F |
#define | GPIO_HIGH_PINS_gp 6 |
#define | GPIO_HIGH_PINS_gm 0xC0 |
#define | GPIO_PIN0_bp PIN0_bp |
#define | GPIO_PIN1_bp PIN1_bp |
#define | GPIO_PIN2_bp PIN2_bp |
#define | GPIO_PIN3_bp PIN3_bp |
#define | GPIO_PIN4_bp PIN4_bp |
#define | GPIO_PIN5_bp PIN5_bp |
#define | GPIO_PIN6_bp PIN0_bp |
#define | GPIO_PIN7_bp PIN1_bp |
#define | GPIO_PIN0_bm PIN0_bm |
#define | GPIO_PIN1_bm PIN1_bm |
#define | GPIO_PIN2_bm PIN2_bm |
#define | GPIO_PIN3_bm PIN3_bm |
#define | GPIO_PIN4_bm PIN4_bm |
#define | GPIO_PIN5_bm PIN5_bm |
#define | GPIO_PIN6_bm PIN0_bm |
#define | GPIO_PIN7_bm PIN1_bm |
#define | GPIO_PIN0CTRL GPIO_LOW_PORT.PIN0CTRL |
#define | GPIO_PIN1CTRL GPIO_LOW_PORT.PIN1CTRL |
#define | GPIO_PIN2CTRL GPIO_LOW_PORT.PIN2CTRL |
#define | GPIO_PIN3CTRL GPIO_LOW_PORT.PIN3CTRL |
#define | GPIO_PIN4CTRL GPIO_LOW_PORT.PIN4CTRL |
#define | GPIO_PIN5CTRL GPIO_LOW_PORT.PIN5CTRL |
#define | GPIO_PIN6CTRL GPIO_HIGH_PORT.PIN0CTRL |
#define | GPIO_PIN7CTRL GPIO_HIGH_PORT.PIN1CTRL |
#define | GPIO_READ() ((GPIO_LOW_PORT.IN & GPIO_LOW_PINS_gm) | ((GPIO_HIGH_PORT.IN << GPIO_HIGH_PINS_gp) & GPIO_HIGH_PINS_gm)) |
Read all GPIO pins More... | |
#define | GPIO_WRITE(VAL) GPIO_LOW_PORT.OUT = (VAL) & GPIO_LOW_PINS_gm; GPIO_HIGH_PORT.OUT = (((VAL) & GPIO_HIGH_PINS_gm) >> GPIO_HIGH_PINS_gp); |
Set all GPIO pins More... | |
#define | LED_PORT PORTE |
#define | LED_PINS_gp 0 |
#define | LED_PINS_gm 0xFF |
#define | LED0_PIN_bp PIN0_bp |
#define | LED1_PIN_bp PIN1_bp |
#define | LED2_PIN_bp PIN2_bp |
#define | LED3_PIN_bp PIN3_bp |
#define | LED4_PIN_bp PIN4_bp |
#define | LED5_PIN_bp PIN5_bp |
#define | LED6_PIN_bp PIN6_bp |
#define | LED7_PIN_bp PIN7_bp |
#define | LED0_PIN_bm PIN0_bm |
#define | LED1_PIN_bm PIN1_bm |
#define | LED2_PIN_bm PIN2_bm |
#define | LED3_PIN_bm PIN3_bm |
#define | LED4_PIN_bm PIN4_bm |
#define | LED5_PIN_bm PIN5_bm |
#define | LED6_PIN_bm PIN6_bm |
#define | LED7_PIN_bm PIN7_bm |
#define | BUTTON_LOW_PORT PORTD |
#define | BUTTON_HIGH_PORT PORTR |
#define | BUTTON_LOW_PINS_gp 0 |
#define | BUTTON_LOW_PINS_gm 0x3F |
#define | BUTTON_HIGH_PINS_gp 6 |
#define | BUTTON_HIGH_PINS_gm 0xC0 |
#define | BUTTON0_PIN_bp PIN0_bp |
#define | BUTTON1_PIN_bp PIN1_bp |
#define | BUTTON2_PIN_bp PIN2_bp |
#define | BUTTON3_PIN_bp PIN3_bp |
#define | BUTTON4_PIN_bp PIN4_bp |
#define | BUTTON5_PIN_bp PIN5_bp |
#define | BUTTON6_PIN_bp PIN0_bp |
#define | BUTTON7_PIN_bp PIN1_bp |
#define | BUTTON0_PIN_bm PIN0_bm |
#define | BUTTON1_PIN_bm PIN1_bm |
#define | BUTTON2_PIN_bm PIN2_bm |
#define | BUTTON3_PIN_bm PIN3_bm |
#define | BUTTON4_PIN_bm PIN4_bm |
#define | BUTTON5_PIN_bm PIN5_bm |
#define | BUTTON6_PIN_bm PIN0_bm |
#define | BUTTON7_PIN_bm PIN1_bm |
#define | BUTTON0_PINCTRL BUTTON_LOW_PORT.PIN0CTRL |
#define | BUTTON1_PINCTRL BUTTON_LOW_PORT.PIN1CTRL |
#define | BUTTON2_PINCTRL BUTTON_LOW_PORT.PIN2CTRL |
#define | BUTTON3_PINCTRL BUTTON_LOW_PORT.PIN3CTRL |
#define | BUTTON4_PINCTRL BUTTON_LOW_PORT.PIN4CTRL |
#define | BUTTON5_PINCTRL BUTTON_LOW_PORT.PIN5CTRL |
#define | BUTTON6_PINCTRL BUTTON_HIGH_PORT.PIN0CTRL |
#define | BUTTON7_PINCTRL BUTTON_HIGH_PORT.PIN1CTRL |
#define | BUTTONS_READ() ((BUTTON_LOW_PORT.IN & BUTTON_LOW_PINS_gm) | ((BUTTON_HIGH_PORT.IN << BUTTON_HIGH_PINS_gp) & BUTTON_HIGH_PINS_gm)) |
Read all push buttons More... | |
#define | BUTTON_PRESSED(BUTTON) (!(BUTTONS_READ() & (1 << BUTTON))) |
Check if push button is pressed More... | |
#define | USART0_RX_PIN_bm PIN2_bm |
#define | USART0_TX_PIN_bm PIN3_bm |
#define | USART1_RX_PIN_bm PIN6_bm |
#define | USART1_TX_PIN_bm PIN7_bm |
#define | USB_USART_PORT PORTC |
#define | USB_USART_MODULE USARTC0 |
#define | USB_USART_RX_PIN_bm USART0_RX_PIN_bm |
#define | USB_USART_TX_PIN_bm USART0_TX_PIN_bm |
#define | USB_USART_RXC_vect USARTC0_RXC_vect |
#define | USB_USART_DRE_vect USARTC0_DRE_vect |
#define | USB_USART_BSEL 11 |
#define | USB_USART_BSCALE (-7) |
#define | USB_USART_CONFIG (USART_CHSIZE_8BIT_gc | USART_PMODE_DISABLED_gc) |
#define | USB_USART_SPEED 115200 |
#define | SENSOR_PORT PORTB |
#define | SENSOR_ADC_MODULE ADCB |
#define | LIGHT_SENSOR_SIGNAL_PIN_bp PIN1_bp |
#define | LIGHT_SENSOR_SIGNAL_PIN_bm PIN1_bm |
#define | LIGHT_SENSOR_ADC_INPUT ADC_CH_MUXPOS_PIN1_gc |
#define | TEMPERATURE_SENSOR_SIGNAL_PIN_bp PIN0_bp |
#define | TEMPERATURE_SENSOR_SIGNAL_PIN_bm PIN0_bm |
#define | TEMPERATURE_SENSOR_ENABLE_PIN_bp PIN3_bp |
#define | TEMPERATURE_SENSOR_ENABLE_PIN_bm PIN3_bm |
#define | TEMPERATURE_SENSOR_ADC_INPUT ADC_CH_MUXPOS_PIN0_gc |
#define | SPEAKER_SIGNAL_PORT PORTB |
#define | SPEAKER_SIGNAL_PIN_bp PIN2_bp |
#define | SPEAKER_SIGNAL_PIN_bm PIN2_bm |
#define | SPEAKER_SHUTDOWN_PORT PORTQ |
#define | SPEAKER_SHUTDOWN_PIN_bp PIN3_bp |
#define | SPEAKER_SHUTDOWN_PIN_bm PIN3_bm |
#define | SPEAKER_DAC_MODULE DACB |
#define | SPEAKER_DAC_CHANNEL 0 |
#define | OSC_INTERNAL_2HZ 2000000L |
#define | OSC_INTERNAL_32HZ 32000000L |
#define | OSC_DEFAULT_HZ OSC_INTERNAL_2HZ |
#define | F_CPU OSC_INTERNAL_2HZ |
Header file for the XMEGA-A1 Xplained evaluation board.
This header provides constants for the following components on the board:
#define SENSOR_ADC_MODULE ADCB |
#define SENSOR_PORT PORTB |
Contact | Generated by 1.8.13 |