#ifndef _SYSTEMS_H #define _SYSTEMS_H #ifdef STM32F30X #include #include #include #define LEDPORT GPIOB #define LEDPIN 8 #elif defined( STM32F40_41xxx ) #include #include #include #define LED_AHB_PORT RCC_AHB1Periph_GPIOD #define LEDPORT GPIOD #define LEDPIN 15 #else #error Unsupported device. #endif void send_openocd_command(int command, void *message); void send_text( const char * text ); void _delay_us(uint32_t us); void ConfigureLED(); #define LED_TOGGLE {LEDPORT->ODR ^= (1<BSRR = (1<BRR = (1<BSRRL = (1<BSRRH = (1<