/* Test stub for stm32f10x.h */ #ifndef __STM32F10X_H #define __STM32F10X_H #include #include typedef enum { RESET = 0, SET = !RESET } FlagStatus; typedef enum { DISABLE = 0, ENABLE = !DISABLE } FunctionalState; typedef struct { int dummy; } GPIO_TypeDef; typedef struct { int dummy; } GPIO_InitTypeDef; typedef struct { int dummy; } USART_TypeDef; typedef struct { int dummy; } USART_InitTypeDef; #define GPIO_Pin_0 0x0001 #define GPIO_Pin_1 0x0002 #define GPIO_Pin_2 0x0004 #define GPIO_Pin_6 0x0040 #define GPIO_Pin_9 0x0200 #define GPIO_Pin_10 0x0400 #define GPIO_Mode_Out_PP 0x10 #define GPIO_Mode_IN_FLOATING 0x04 #define GPIO_Mode_AF_PP 0x18 #define GPIO_Speed_10MHz 0x01 #define GPIO_Speed_50MHz 0x03 #define USART_WordLength_8b 0x0000 #define USART_StopBits_1 0x0000 #define USART_Parity_No 0x0000 #define USART_HardwareFlowControl_None 0x0000 #define USART_Mode_Tx 0x0008 #define USART_Mode_Rx 0x0004 #define USART_FLAG_TXE 0x0080 #define RCC_APB2Periph_GPIOA 0x00000004 #define RCC_APB2Periph_GPIOB 0x00000008 #define RCC_APB2Periph_GPIOC 0x00000010 #define RCC_APB2Periph_GPIOD 0x00000020 #define RCC_APB2Periph_GPIOE 0x00000040 #define RCC_APB2Periph_USART1 0x00004000 #define RCC_APB2PeriphClockCmd(p, s) do {} while(0) #define GPIO_Init(p, g) do {} while(0) #define GPIO_StructInit(g) do {} while(0) #define GPIO_SetBits(p, pin) do {} while(0) #define GPIO_ResetBits(p, pin) do {} while(0) #define GPIO_ReadInputDataBit(p, pin) 0 #define USART_Init(p, u) do {} while(0) #define USART_StructInit(u) do {} while(0) #define USART_Cmd(p, s) do {} while(0) #define USART_GetFlagStatus(p, f) (SET) #define USART_SendData(p, d) do {} while(0) #define NVIC_SetPriorityGrouping(g) do {} while(0) #define NVIC_PriorityGroup_2 0x05 extern uint32_t SystemCoreClock; #endif