#include "config.h"
#include "lib_mcu/flash/flash_drv.h"
Go to the source code of this file.
Defines | |
#define | LED_PORT PORTD |
#define | LED_DDR DDRD |
#define | LED_PIN PIND |
#define | LED0_BIT PIND5 |
#define | LED1_BIT PIND6 |
#define | LED2_BIT PIND7 |
#define | Leds_init() (LED_DDR |= (1<<LED0_BIT) | (1<<LED1_BIT) | (1<<LED2_BIT)) |
#define | Led0_init() (LED_DDR |= (1<<LED0_BIT)) |
#define | Led1_init() (LED_DDR |= (1<<LED1_BIT)) |
#define | Led2_init() (LED_DDR |= (1<<LED2_BIT)) |
#define | Leds_on() (LED_PORT |= (1<<LED0_BIT) | (1<<LED1_BIT) | (1<<LED2_BIT)) |
#define | Leds_off() (LED_PORT &= ~((1<<LED0_BIT) | (1<<LED1_BIT) | (1<<LED2_BIT))) |
#define | Leds_set_val(val) (Leds_off(),LED_PORT |= (val<<5)&((1<<LED0_BIT) | (1<<LED1_BIT) | (1<<LED2_BIT))) |
#define | Leds_get_val() (LED_PORT>>5) |
#define | Led0_on() (LED_PORT |= (1<<LED0_BIT)) |
#define | Led1_on() (LED_PORT |= (1<<LED1_BIT)) |
#define | Led2_on() (LED_PORT |= (1<<LED2_BIT)) |
#define | Led0_off() (LED_PORT &= ~(1<<LED0_BIT)) |
#define | Led1_off() (LED_PORT &= ~(1<<LED1_BIT)) |
#define | Led2_off() (LED_PORT &= ~(1<<LED2_BIT)) |
#define | Led0_toggle() (LED_PIN |= (1<<LED0_BIT)) |
#define | Led1_toggle() (LED_PIN |= (1<<LED1_BIT)) |
#define | Led2_toggle() (LED_PIN |= (1<<LED2_BIT)) |
#define | Is_led0_on() (LED_PIN & (1<<LED0_BIT) ? TRUE : FALSE) |
#define | Is_led1_on() (LED_PIN & (1<<LED1_BIT) ? TRUE : FALSE) |
#define | Is_led2_on() (LED_PIN & (1<<LED2_BIT) ? TRUE : FALSE) |
#define | Joy_init() {DDRC &= ~0x40; PORTC |= 0x40; if(!Is_JTAG_enable()) {DDRF &= ~0xF0; PORTF |= 0xF0;}} |
#define | Is_joy_right() (Is_JTAG_enable() || (PINF & (1<<PINF7)) ? FALSE : TRUE) |
#define | Is_joy_not_right() ((!Is_JTAG_enable()) && (PINF & (1<<PINF7)) ? TRUE : FALSE) |
#define | Is_joy_select() (Is_JTAG_enable() || (PINF & (1<<PINF6)) ? FALSE : TRUE) |
#define | Is_joy_not_select() ((!Is_JTAG_enable()) && (PINF & (1<<PINF6)) ? TRUE : FALSE) |
#define | Is_joy_up() (Is_JTAG_enable() || (PINF & (1<<PINF5)) ? FALSE : TRUE) |
#define | Is_joy_not_up() ((!Is_JTAG_enable()) && (PINF & (1<<PINF5)) ? TRUE : FALSE) |
#define | Is_joy_left() (Is_JTAG_enable() || (PINF & (1<<PINF4)) ? FALSE : TRUE) |
#define | Is_joy_not_left() ((!Is_JTAG_enable()) && (PINF & (1<<PINF4)) ? TRUE : FALSE) |
#define | Is_joy_down() ((PINC & (1<<PINC6)) ? FALSE : TRUE) |
#define | Is_joy_not_down() ((PINC & (1<<PINC6)) ? TRUE : FALSE) |
#define | Switches_enable_it() |
Enable interrupts for switches (no possible). | |
#define | Switches_disable_it() |
Disable interrupts for switches (no possible). | |
#define | Hwb_button_init() (DDRE &= ~(1<<PINE2), PORTE |= (1<<PINE2)) |
#define | Is_hwb() ((PINE & (1<<PINE2)) ? FALSE : TRUE) |
#define | Is_not_hwb() ((PINE & (1<<PINE2)) ? TRUE : FALSE) |
#define | DF_4_MB |
#define | DF_NB_MEM 1 |
#define | Df_init_spi() |
#define | Df_select_0() (PORTE &= ~(1<<PINE6)) |
#define | Df_desel_all() (PORTE |= (1<<PINE6)) |
#define | Mmc_init_spi() |
#define | Mmc_sd_select() (PORTB &= ~(1<<PINB0)) |
#define | Mmc_sd_unselect() (PORTB |= (1<<PINB0)) |
#define | Enable_DAC_pwm() Timerhs_enable_pwm_d() |
#define | Enable_buck_pwm() Timerhs_enable_pwm_a() |
#define | Set_DAC_pwm(v) Timerhs_set_compare_d(v) |
#define | Set_buck_pwm(v) Timerhs_set_compare_a(v) |
#define | ADC_MIC_CH 0x21 |
EVK 527 ADC Channel Definition. | |
#define | ADC_TEMP_CH 0x00 |
#define | Dac_micro_init() (DDRD &= ~(1<<PIND6)) |
this define is set in config.h file |
Definition in file evk_527.h.
#define Dac_micro_init | ( | ) | (DDRD &= ~(1<<PIND6)) |