├── Output ├── tok.o ├── gmath.o ├── info.crf ├── info.o ├── main.crf ├── main.o ├── misc.crf ├── misc.o ├── parse.o ├── parser.o ├── time.crf ├── time.o ├── tok.crf ├── bsp_dma.o ├── bsp_ec20.o ├── bsp_exti.o ├── bsp_led.o ├── bsp_tim.o ├── context.o ├── core_cm3.o ├── generate.o ├── gmath.crf ├── mlx90614.o ├── oled_i2c.o ├── parse.crf ├── parser.crf ├── sentence.o ├── ORI_GPS.dep ├── bsp_dht11.crf ├── bsp_dht11.o ├── bsp_dma.crf ├── bsp_ec20.crf ├── bsp_exti.crf ├── bsp_led.crf ├── bsp_systick.o ├── bsp_tim.crf ├── bsp_usart1.o ├── bsp_usart2.o ├── context.crf ├── core_cm3.crf ├── core_delay.o ├── generate.crf ├── generator.crf ├── generator.o ├── gps_config.o ├── mlx90614.crf ├── oled_i2c.crf ├── sentence.crf ├── bsp_systick.crf ├── bsp_usart1.crf ├── bsp_usart2.crf ├── core_delay.crf ├── gps_config.crf ├── stm32f10x_dma.o ├── stm32f10x_i2c.o ├── stm32f10x_it.o ├── stm32f10x_rcc.o ├── stm32f10x_tim.o ├── nema_decode_test.o ├── stm32f10x_dma.crf ├── stm32f10x_exti.crf ├── stm32f10x_exti.o ├── stm32f10x_gpio.crf ├── stm32f10x_gpio.o ├── stm32f10x_i2c.crf ├── stm32f10x_it.crf ├── stm32f10x_rcc.crf ├── stm32f10x_tim.crf ├── stm32f10x_usart.o ├── system_stm32f10x.o ├── nema_decode_test.crf ├── stm32f10x_usart.crf ├── system_stm32f10x.crf ├── Template.build_log.htm ├── startup_stm32f10x_hd.d ├── core_cm3.d ├── time.d ├── info.d ├── context.d ├── sentence.d ├── Template.sct ├── gmath.d ├── Template_sct.Bak ├── tok.d ├── parser.d ├── generate.d ├── generator.d ├── parse.d ├── Template.lnp ├── misc.d ├── bsp_led.d ├── bsp_exti.d ├── mlx90614.d ├── core_delay.d ├── bsp_dma.d ├── bsp_dht11.d ├── bsp_usart1.d ├── bsp_systick.d ├── oled_i2c.d ├── stm32f10x_dma.d ├── stm32f10x_i2c.d ├── stm32f10x_rcc.d ├── stm32f10x_tim.d ├── system_stm32f10x.d ├── stm32f10x_exti.d ├── stm32f10x_gpio.d ├── bsp_tim.d ├── stm32f10x_usart.d ├── bsp_usart2.d ├── gps_config.d ├── bsp_ec20.d ├── stm32f10x_it.d ├── main.d └── nema_decode_test.d ├── User ├── main.c ├── dam │ ├── bsp_dma.c │ └── bsp_dma.h ├── ec20 │ ├── bsp_ec20.c │ └── bsp_ec20.h ├── oled │ ├── OLED_I2C.c │ ├── OLED_I2C.h │ └── codetab.h ├── stm32f10x_it.c ├── tim │ ├── bsp_tim.c │ └── bsp_tim.h ├── dht11 │ ├── bsp_dht11.c │ └── bsp_dht11.h ├── Bsp │ └── gps │ │ ├── gps_config.c │ │ └── gps_config.h ├── mlx90614 │ ├── mlx90614.c │ └── mlx90614.h ├── nema_decode_test.c ├── usart1 │ ├── bsp_usart1.c │ └── bsp_usart1.h ├── usart2 │ ├── bsp_usart2.c │ └── bsp_usart2.h ├── dwt_delay │ ├── core_delay.c │ └── core_delay.h ├── nmea_decode │ ├── src │ │ ├── time.c │ │ ├── parser.c │ │ ├── info.c │ │ ├── context.c │ │ ├── sentence.c │ │ ├── nmea.vcxproj │ │ └── tok.c │ └── include │ │ └── nmea │ │ ├── info.h │ │ ├── sentence.h │ │ ├── nmea.h │ │ ├── tok.h │ │ ├── units.h │ │ ├── context.h │ │ ├── time.h │ │ ├── config.h │ │ ├── parser.h │ │ ├── generate.h │ │ ├── generator.h │ │ ├── parse.h │ │ └── gmath.h ├── systick │ ├── bsp_systick.c │ └── bsp_systick.h ├── Infrared_beam │ ├── bsp_exti.c │ └── bsp_exti.h ├── nema_decode_test.h ├── led │ ├── bsp_led.c │ └── bsp_led.h ├── stm32f10x_it.h └── stm32f10x_conf.h ├── keilkill.bat ├── Libraries ├── CMSIS │ ├── stm32f10x.h │ └── system_stm32f10x.h └── FWlib │ ├── src │ ├── stm32f10x_i2c.c │ ├── stm32f10x_flash.c │ ├── stm32f10x_usart.c │ ├── stm32f10x_crc.c │ ├── stm32f10x_iwdg.c │ ├── stm32f10x_dbgmcu.c │ └── stm32f10x_wwdg.c │ └── inc │ ├── stm32f10x_crc.h │ ├── stm32f10x_wwdg.h │ ├── stm32f10x_dbgmcu.h │ ├── stm32f10x_iwdg.h │ ├── stm32f10x_rtc.h │ ├── stm32f10x_pwr.h │ ├── stm32f10x_cec.h │ └── stm32f10x_exti.h ├── Listing └── startup_stm32f10x_hd.lst ├── Project └── RVMDK(uv5) │ ├── RTE │ └── RTE_Components.h │ └── DebugConfig │ └── GPS_STM32F103ZE.dbgconf ├── Doc └── readme.txt └── README.md /Output/tok.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/tok.o -------------------------------------------------------------------------------- /User/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/main.c -------------------------------------------------------------------------------- /keilkill.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/keilkill.bat -------------------------------------------------------------------------------- /Output/gmath.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/gmath.o -------------------------------------------------------------------------------- /Output/info.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/info.crf -------------------------------------------------------------------------------- /Output/info.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/info.o -------------------------------------------------------------------------------- /Output/main.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/main.crf -------------------------------------------------------------------------------- /Output/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/main.o -------------------------------------------------------------------------------- /Output/misc.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/misc.crf -------------------------------------------------------------------------------- /Output/misc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/misc.o -------------------------------------------------------------------------------- /Output/parse.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/parse.o -------------------------------------------------------------------------------- /Output/parser.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/parser.o -------------------------------------------------------------------------------- /Output/time.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/time.crf -------------------------------------------------------------------------------- /Output/time.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/time.o -------------------------------------------------------------------------------- /Output/tok.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/tok.crf -------------------------------------------------------------------------------- /Output/bsp_dma.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/bsp_dma.o -------------------------------------------------------------------------------- /Output/bsp_ec20.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/bsp_ec20.o -------------------------------------------------------------------------------- /Output/bsp_exti.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/bsp_exti.o -------------------------------------------------------------------------------- /Output/bsp_led.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/bsp_led.o -------------------------------------------------------------------------------- /Output/bsp_tim.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/bsp_tim.o -------------------------------------------------------------------------------- /Output/context.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/context.o -------------------------------------------------------------------------------- /Output/core_cm3.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/core_cm3.o -------------------------------------------------------------------------------- /Output/generate.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/generate.o -------------------------------------------------------------------------------- /Output/gmath.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/gmath.crf -------------------------------------------------------------------------------- /Output/mlx90614.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/mlx90614.o -------------------------------------------------------------------------------- /Output/oled_i2c.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/oled_i2c.o -------------------------------------------------------------------------------- /Output/parse.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/parse.crf -------------------------------------------------------------------------------- /Output/parser.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/parser.crf -------------------------------------------------------------------------------- /Output/sentence.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/sentence.o -------------------------------------------------------------------------------- /Output/ORI_GPS.dep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/ORI_GPS.dep -------------------------------------------------------------------------------- /Output/bsp_dht11.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/bsp_dht11.crf -------------------------------------------------------------------------------- /Output/bsp_dht11.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/bsp_dht11.o -------------------------------------------------------------------------------- /Output/bsp_dma.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/bsp_dma.crf -------------------------------------------------------------------------------- /Output/bsp_ec20.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/bsp_ec20.crf -------------------------------------------------------------------------------- /Output/bsp_exti.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/bsp_exti.crf -------------------------------------------------------------------------------- /Output/bsp_led.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/bsp_led.crf -------------------------------------------------------------------------------- /Output/bsp_systick.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/bsp_systick.o -------------------------------------------------------------------------------- /Output/bsp_tim.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/bsp_tim.crf -------------------------------------------------------------------------------- /Output/bsp_usart1.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/bsp_usart1.o -------------------------------------------------------------------------------- /Output/bsp_usart2.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/bsp_usart2.o -------------------------------------------------------------------------------- /Output/context.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/context.crf -------------------------------------------------------------------------------- /Output/core_cm3.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/core_cm3.crf -------------------------------------------------------------------------------- /Output/core_delay.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/core_delay.o -------------------------------------------------------------------------------- /Output/generate.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/generate.crf -------------------------------------------------------------------------------- /Output/generator.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/generator.crf -------------------------------------------------------------------------------- /Output/generator.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/generator.o -------------------------------------------------------------------------------- /Output/gps_config.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/gps_config.o -------------------------------------------------------------------------------- /Output/mlx90614.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/mlx90614.crf -------------------------------------------------------------------------------- /Output/oled_i2c.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/oled_i2c.crf -------------------------------------------------------------------------------- /Output/sentence.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/sentence.crf -------------------------------------------------------------------------------- /User/dam/bsp_dma.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/dam/bsp_dma.c -------------------------------------------------------------------------------- /User/ec20/bsp_ec20.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/ec20/bsp_ec20.c -------------------------------------------------------------------------------- /User/ec20/bsp_ec20.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/ec20/bsp_ec20.h -------------------------------------------------------------------------------- /User/oled/OLED_I2C.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/oled/OLED_I2C.c -------------------------------------------------------------------------------- /User/oled/OLED_I2C.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/oled/OLED_I2C.h -------------------------------------------------------------------------------- /User/oled/codetab.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/oled/codetab.h -------------------------------------------------------------------------------- /User/stm32f10x_it.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/stm32f10x_it.c -------------------------------------------------------------------------------- /User/tim/bsp_tim.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/tim/bsp_tim.c -------------------------------------------------------------------------------- /Output/bsp_systick.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/bsp_systick.crf -------------------------------------------------------------------------------- /Output/bsp_usart1.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/bsp_usart1.crf -------------------------------------------------------------------------------- /Output/bsp_usart2.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/bsp_usart2.crf -------------------------------------------------------------------------------- /Output/core_delay.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/core_delay.crf -------------------------------------------------------------------------------- /Output/gps_config.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/gps_config.crf -------------------------------------------------------------------------------- /Output/stm32f10x_dma.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/stm32f10x_dma.o -------------------------------------------------------------------------------- /Output/stm32f10x_i2c.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/stm32f10x_i2c.o -------------------------------------------------------------------------------- /Output/stm32f10x_it.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/stm32f10x_it.o -------------------------------------------------------------------------------- /Output/stm32f10x_rcc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/stm32f10x_rcc.o -------------------------------------------------------------------------------- /Output/stm32f10x_tim.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/stm32f10x_tim.o -------------------------------------------------------------------------------- /User/dht11/bsp_dht11.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/dht11/bsp_dht11.c -------------------------------------------------------------------------------- /User/dht11/bsp_dht11.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/dht11/bsp_dht11.h -------------------------------------------------------------------------------- /Output/nema_decode_test.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/nema_decode_test.o -------------------------------------------------------------------------------- /Output/stm32f10x_dma.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/stm32f10x_dma.crf -------------------------------------------------------------------------------- /Output/stm32f10x_exti.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/stm32f10x_exti.crf -------------------------------------------------------------------------------- /Output/stm32f10x_exti.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/stm32f10x_exti.o -------------------------------------------------------------------------------- /Output/stm32f10x_gpio.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/stm32f10x_gpio.crf -------------------------------------------------------------------------------- /Output/stm32f10x_gpio.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/stm32f10x_gpio.o -------------------------------------------------------------------------------- /Output/stm32f10x_i2c.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/stm32f10x_i2c.crf -------------------------------------------------------------------------------- /Output/stm32f10x_it.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/stm32f10x_it.crf -------------------------------------------------------------------------------- /Output/stm32f10x_rcc.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/stm32f10x_rcc.crf -------------------------------------------------------------------------------- /Output/stm32f10x_tim.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/stm32f10x_tim.crf -------------------------------------------------------------------------------- /Output/stm32f10x_usart.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/stm32f10x_usart.o -------------------------------------------------------------------------------- /Output/system_stm32f10x.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/system_stm32f10x.o -------------------------------------------------------------------------------- /User/Bsp/gps/gps_config.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/Bsp/gps/gps_config.c -------------------------------------------------------------------------------- /User/Bsp/gps/gps_config.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/Bsp/gps/gps_config.h -------------------------------------------------------------------------------- /User/mlx90614/mlx90614.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/mlx90614/mlx90614.c -------------------------------------------------------------------------------- /User/mlx90614/mlx90614.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/mlx90614/mlx90614.h -------------------------------------------------------------------------------- /User/nema_decode_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/nema_decode_test.c -------------------------------------------------------------------------------- /User/usart1/bsp_usart1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/usart1/bsp_usart1.c -------------------------------------------------------------------------------- /User/usart1/bsp_usart1.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/usart1/bsp_usart1.h -------------------------------------------------------------------------------- /User/usart2/bsp_usart2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/usart2/bsp_usart2.c -------------------------------------------------------------------------------- /User/usart2/bsp_usart2.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/usart2/bsp_usart2.h -------------------------------------------------------------------------------- /Libraries/CMSIS/stm32f10x.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Libraries/CMSIS/stm32f10x.h -------------------------------------------------------------------------------- /Output/nema_decode_test.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/nema_decode_test.crf -------------------------------------------------------------------------------- /Output/stm32f10x_usart.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/stm32f10x_usart.crf -------------------------------------------------------------------------------- /Output/system_stm32f10x.crf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/system_stm32f10x.crf -------------------------------------------------------------------------------- /User/dwt_delay/core_delay.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/dwt_delay/core_delay.c -------------------------------------------------------------------------------- /User/nmea_decode/src/time.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/nmea_decode/src/time.c -------------------------------------------------------------------------------- /User/systick/bsp_systick.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/systick/bsp_systick.c -------------------------------------------------------------------------------- /Output/Template.build_log.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Output/Template.build_log.htm -------------------------------------------------------------------------------- /User/Infrared_beam/bsp_exti.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/Infrared_beam/bsp_exti.c -------------------------------------------------------------------------------- /User/Infrared_beam/bsp_exti.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/Infrared_beam/bsp_exti.h -------------------------------------------------------------------------------- /User/nmea_decode/src/parser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/nmea_decode/src/parser.c -------------------------------------------------------------------------------- /Listing/startup_stm32f10x_hd.lst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Listing/startup_stm32f10x_hd.lst -------------------------------------------------------------------------------- /Output/startup_stm32f10x_hd.d: -------------------------------------------------------------------------------- 1 | ..\..\output\startup_stm32f10x_hd.o: ..\..\Libraries\CMSIS\startup\startup_stm32f10x_hd.s 2 | -------------------------------------------------------------------------------- /Libraries/FWlib/src/stm32f10x_i2c.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Libraries/FWlib/src/stm32f10x_i2c.c -------------------------------------------------------------------------------- /Libraries/FWlib/src/stm32f10x_flash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Libraries/FWlib/src/stm32f10x_flash.c -------------------------------------------------------------------------------- /Libraries/FWlib/src/stm32f10x_usart.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/Libraries/FWlib/src/stm32f10x_usart.c -------------------------------------------------------------------------------- /User/nmea_decode/include/nmea/info.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/nmea_decode/include/nmea/info.h -------------------------------------------------------------------------------- /User/nmea_decode/include/nmea/sentence.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ORI2333/STM32_SmartBus/HEAD/User/nmea_decode/include/nmea/sentence.h -------------------------------------------------------------------------------- /Output/core_cm3.d: -------------------------------------------------------------------------------- 1 | ..\..\output\core_cm3.o: ..\..\Libraries\CMSIS\core_cm3.c 2 | ..\..\output\core_cm3.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 3 | -------------------------------------------------------------------------------- /User/nema_decode_test.h: -------------------------------------------------------------------------------- 1 | #ifndef __GPS_H 2 | #define __GPS_H 3 | 4 | #include "stm32f10x.h" 5 | 6 | 7 | 8 | 9 | void nmea_decode_test(void); 10 | 11 | 12 | 13 | 14 | #endif 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /User/tim/bsp_tim.h: -------------------------------------------------------------------------------- 1 | #ifndef _BSP_TIM_H 2 | #define _BSP_TIM_H 3 | 4 | #include "stm32f10x.h" 5 | 6 | void TIM4_Set(uint8_t sta); 7 | void TIM4_SetARR(uint16_t period); 8 | void TIM4_Init(uint16_t arr,uint16_t psc); 9 | 10 | 11 | #endif /* _BSP_TIM_H */ 12 | -------------------------------------------------------------------------------- /User/nmea_decode/src/info.c: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | 4 | #include "nmea/info.h" 5 | 6 | void nmea_zero_INFO(nmeaINFO *info) 7 | { 8 | memset(info, 0, sizeof(nmeaINFO)); 9 | nmea_time_now(&info->utc); 10 | info->sig = NMEA_SIG_BAD; 11 | info->fix = NMEA_FIX_BAD; 12 | } 13 | -------------------------------------------------------------------------------- /Output/time.d: -------------------------------------------------------------------------------- 1 | ..\..\output\time.o: ..\..\User\nmea_decode\src\time.c 2 | ..\..\output\time.o: ..\..\User\nmea_decode\include\nmea/time.h 3 | ..\..\output\time.o: ..\..\User\nmea_decode\include\nmea/config.h 4 | ..\..\output\time.o: D:\mdk\ARM\ARMCC\Bin\..\include\assert.h 5 | ..\..\output\time.o: D:\mdk\ARM\ARMCC\Bin\..\include\time.h 6 | -------------------------------------------------------------------------------- /Project/RVMDK(uv5)/RTE/RTE_Components.h: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * Auto generated Run-Time-Environment Component Configuration File 4 | * *** Do not modify ! *** 5 | * 6 | * Project: 'BH-F103' 7 | * Target: 'fatfs' 8 | */ 9 | 10 | #ifndef RTE_COMPONENTS_H 11 | #define RTE_COMPONENTS_H 12 | 13 | 14 | #endif /* RTE_COMPONENTS_H */ 15 | -------------------------------------------------------------------------------- /User/systick/bsp_systick.h: -------------------------------------------------------------------------------- 1 | #ifndef _BSP_SYSTICK_H 2 | #define _BSP_SYSTICK_H 3 | 4 | #include "stm32f10x.h" 5 | #include "core_cm3.h" 6 | 7 | void SysTick_Delay_us(uint32_t us); 8 | void SysTick_Delay_ms(uint32_t ms); 9 | void Delay_ms(uint32_t ms); 10 | void TimingDelay_Decrement(void); 11 | void SysTick_Init(void); 12 | #endif /* _BSP_SYSTICK_H */ 13 | -------------------------------------------------------------------------------- /Output/info.d: -------------------------------------------------------------------------------- 1 | ..\..\output\info.o: ..\..\User\nmea_decode\src\info.c 2 | ..\..\output\info.o: D:\mdk\ARM\ARMCC\Bin\..\include\string.h 3 | ..\..\output\info.o: ..\..\User\nmea_decode\include\nmea/info.h 4 | ..\..\output\info.o: ..\..\User\nmea_decode\include\nmea/time.h 5 | ..\..\output\info.o: ..\..\User\nmea_decode\include\nmea/config.h 6 | ..\..\output\info.o: D:\mdk\ARM\ARMCC\Bin\..\include\assert.h 7 | -------------------------------------------------------------------------------- /Doc/readme.txt: -------------------------------------------------------------------------------- 1 | /********************************************************************************* 2 | * 演示名称:智慧公交(硬件层) 3 | * 描述 :将地理位置信息,温湿度等信息通过MQTT协议上发到阿里云 4 | 5 | * 实验平台:STM32F103ZE(开发板)/STM32F103C8T6(核心板) 6 | * 7 | * 作者 :ORI(zzuli_zh) 8 | * 联系方式:Q1327408725 邮箱ori_zh@outlook.com 9 | * 时间 :2020-11 10 | **********************************************************************************/ -------------------------------------------------------------------------------- /Output/context.d: -------------------------------------------------------------------------------- 1 | ..\..\output\context.o: ..\..\User\nmea_decode\src\context.c 2 | ..\..\output\context.o: ..\..\User\nmea_decode\include\nmea/context.h 3 | ..\..\output\context.o: ..\..\User\nmea_decode\include\nmea/config.h 4 | ..\..\output\context.o: D:\mdk\ARM\ARMCC\Bin\..\include\assert.h 5 | ..\..\output\context.o: D:\mdk\ARM\ARMCC\Bin\..\include\string.h 6 | ..\..\output\context.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdarg.h 7 | ..\..\output\context.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdio.h 8 | -------------------------------------------------------------------------------- /Output/sentence.d: -------------------------------------------------------------------------------- 1 | ..\..\output\sentence.o: ..\..\User\nmea_decode\src\sentence.c 2 | ..\..\output\sentence.o: ..\..\User\nmea_decode\include\nmea/sentence.h 3 | ..\..\output\sentence.o: ..\..\User\nmea_decode\include\nmea/info.h 4 | ..\..\output\sentence.o: ..\..\User\nmea_decode\include\nmea/time.h 5 | ..\..\output\sentence.o: ..\..\User\nmea_decode\include\nmea/config.h 6 | ..\..\output\sentence.o: D:\mdk\ARM\ARMCC\Bin\..\include\assert.h 7 | ..\..\output\sentence.o: D:\mdk\ARM\ARMCC\Bin\..\include\string.h 8 | -------------------------------------------------------------------------------- /User/dam/bsp_dma.h: -------------------------------------------------------------------------------- 1 | #ifndef _BSP_DMA_H 2 | #define _BSP_DMA_H 3 | 4 | #include "stm32f10x.h" 5 | 6 | #define SENDBUFF_SIZE 5000 7 | #define USART_DR_ADDRESS (USART2_BASE+0x04) 8 | 9 | #define USART_TX_DMA_CLK RCC_AHBPeriph_DMA1 10 | #define USART_TX_DMAy_CHANNELx DMA1_Channel7 11 | #define USART_TX_DMA_FLAG_TC DMA1_FLAG_TC7 12 | 13 | void DMA_USARTx_TX_Config(void); 14 | void UART_DMA_Enable(DMA_Channel_TypeDef*DMA_CHx,u16 len); 15 | 16 | 17 | #endif /* _BSP_DMA_H */ 18 | 19 | -------------------------------------------------------------------------------- /Output/Template.sct: -------------------------------------------------------------------------------- 1 | ; ************************************************************* 2 | ; *** Scatter-Loading Description File generated by uVision *** 3 | ; ************************************************************* 4 | 5 | LR_IROM1 0x08000000 { ; load region 6 | ER_IROM1 0x08000000 0x00080000 { ; load address = execution address 7 | *.o (RESET, +First) 8 | *(InRoot$$Sections) 9 | .ANY (+RO) 10 | } 11 | RW_IRAM1 0x20000000 0x00010000 { ; RW data 12 | .ANY (+RW +ZI) 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /Output/gmath.d: -------------------------------------------------------------------------------- 1 | ..\..\output\gmath.o: ..\..\User\nmea_decode\src\gmath.c 2 | ..\..\output\gmath.o: ..\..\User\nmea_decode\include\nmea/gmath.h 3 | ..\..\output\gmath.o: ..\..\User\nmea_decode\include\nmea/info.h 4 | ..\..\output\gmath.o: ..\..\User\nmea_decode\include\nmea/time.h 5 | ..\..\output\gmath.o: ..\..\User\nmea_decode\include\nmea/config.h 6 | ..\..\output\gmath.o: D:\mdk\ARM\ARMCC\Bin\..\include\assert.h 7 | ..\..\output\gmath.o: D:\mdk\ARM\ARMCC\Bin\..\include\math.h 8 | ..\..\output\gmath.o: D:\mdk\ARM\ARMCC\Bin\..\include\float.h 9 | -------------------------------------------------------------------------------- /Output/Template_sct.Bak: -------------------------------------------------------------------------------- 1 | ; ************************************************************* 2 | ; *** Scatter-Loading Description File generated by uVision *** 3 | ; ************************************************************* 4 | 5 | LR_IROM1 0x08000000 0x00080000 { ; load region size_region 6 | ER_IROM1 0x08000000 0x00080000 { ; load address = execution address 7 | *.o (RESET, +First) 8 | *(InRoot$$Sections) 9 | .ANY (+RO) 10 | } 11 | RW_IRAM1 0x20000000 0x00010000 { ; RW data 12 | .ANY (+RW +ZI) 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /Output/tok.d: -------------------------------------------------------------------------------- 1 | ..\..\output\tok.o: ..\..\User\nmea_decode\src\tok.c 2 | ..\..\output\tok.o: ..\..\User\nmea_decode\include\nmea/tok.h 3 | ..\..\output\tok.o: ..\..\User\nmea_decode\include\nmea/config.h 4 | ..\..\output\tok.o: D:\mdk\ARM\ARMCC\Bin\..\include\assert.h 5 | ..\..\output\tok.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdarg.h 6 | ..\..\output\tok.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdlib.h 7 | ..\..\output\tok.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdio.h 8 | ..\..\output\tok.o: D:\mdk\ARM\ARMCC\Bin\..\include\ctype.h 9 | ..\..\output\tok.o: D:\mdk\ARM\ARMCC\Bin\..\include\string.h 10 | ..\..\output\tok.o: D:\mdk\ARM\ARMCC\Bin\..\include\limits.h 11 | -------------------------------------------------------------------------------- /User/nmea_decode/include/nmea/nmea.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * NMEA library 4 | * URL: http://nmea.sourceforge.net 5 | * Author: Tim (xtimor@gmail.com) 6 | * Licence: http://www.gnu.org/licenses/lgpl.html 7 | * $Id: nmea.h 17 2008-03-11 11:56:11Z xtimor $ 8 | * 9 | */ 10 | 11 | #ifndef __NMEA_H__ 12 | #define __NMEA_H__ 13 | 14 | #include "./config.h" 15 | #include "./units.h" 16 | #include "./gmath.h" 17 | #include "./info.h" 18 | #include "./sentence.h" 19 | #include "./generate.h" 20 | #include "./generator.h" 21 | #include "./parse.h" 22 | #include "./parser.h" 23 | #include "./context.h" 24 | void Delay2(__IO uint32_t nCount); 25 | 26 | #endif /* __NMEA_H__ */ 27 | -------------------------------------------------------------------------------- /User/nmea_decode/include/nmea/tok.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * NMEA library 4 | * URL: http://nmea.sourceforge.net 5 | * Author: Tim (xtimor@gmail.com) 6 | * Licence: http://www.gnu.org/licenses/lgpl.html 7 | * $Id: tok.h 4 2007-08-27 13:11:03Z xtimor $ 8 | * 9 | */ 10 | 11 | #ifndef __NMEA_TOK_H__ 12 | #define __NMEA_TOK_H__ 13 | 14 | #include "config.h" 15 | 16 | #ifdef __cplusplus 17 | extern "C" { 18 | #endif 19 | 20 | int nmea_calc_crc(const char *buff, int buff_sz); 21 | int nmea_atoi(const char *str, int str_sz, int radix); 22 | double nmea_atof(const char *str, int str_sz); 23 | int nmea_printf(char *buff, int buff_sz, const char *format, ...); 24 | int nmea_scanf(const char *buff, int buff_sz, const char *format, ...); 25 | 26 | #ifdef __cplusplus 27 | } 28 | #endif 29 | 30 | #endif /* __NMEA_TOK_H__ */ 31 | -------------------------------------------------------------------------------- /Output/parser.d: -------------------------------------------------------------------------------- 1 | ..\..\output\parser.o: ..\..\User\nmea_decode\src\parser.c 2 | ..\..\output\parser.o: ..\..\User\nmea_decode\include\nmea/tok.h 3 | ..\..\output\parser.o: ..\..\User\nmea_decode\include\nmea/config.h 4 | ..\..\output\parser.o: D:\mdk\ARM\ARMCC\Bin\..\include\assert.h 5 | ..\..\output\parser.o: ..\..\User\nmea_decode\include\nmea/parse.h 6 | ..\..\output\parser.o: ..\..\User\nmea_decode\include\nmea/sentence.h 7 | ..\..\output\parser.o: ..\..\User\nmea_decode\include\nmea/info.h 8 | ..\..\output\parser.o: ..\..\User\nmea_decode\include\nmea/time.h 9 | ..\..\output\parser.o: ..\..\User\nmea_decode\include\nmea/parser.h 10 | ..\..\output\parser.o: ..\..\User\nmea_decode\include\nmea/context.h 11 | ..\..\output\parser.o: D:\mdk\ARM\ARMCC\Bin\..\include\string.h 12 | ..\..\output\parser.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdlib.h 13 | -------------------------------------------------------------------------------- /Output/generate.d: -------------------------------------------------------------------------------- 1 | ..\..\output\generate.o: ..\..\User\nmea_decode\src\generate.c 2 | ..\..\output\generate.o: ..\..\User\nmea_decode\include\nmea/tok.h 3 | ..\..\output\generate.o: ..\..\User\nmea_decode\include\nmea/config.h 4 | ..\..\output\generate.o: D:\mdk\ARM\ARMCC\Bin\..\include\assert.h 5 | ..\..\output\generate.o: ..\..\User\nmea_decode\include\nmea/sentence.h 6 | ..\..\output\generate.o: ..\..\User\nmea_decode\include\nmea/info.h 7 | ..\..\output\generate.o: ..\..\User\nmea_decode\include\nmea/time.h 8 | ..\..\output\generate.o: ..\..\User\nmea_decode\include\nmea/generate.h 9 | ..\..\output\generate.o: ..\..\User\nmea_decode\include\nmea/units.h 10 | ..\..\output\generate.o: D:\mdk\ARM\ARMCC\Bin\..\include\string.h 11 | ..\..\output\generate.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdlib.h 12 | ..\..\output\generate.o: D:\mdk\ARM\ARMCC\Bin\..\include\math.h 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # STM32_SmartBus 2 | Realize data interaction between hardware and Alibaba Cloud platform through STM32, 4G, and MQTT protocols 3 | 通过STM32、4G和MQTT协议实现硬件与阿里云平台之间的数据交互 4 | 5 | 6 | # 说明 7 | 我知道这个系统还存在很多缺陷,比如裸机开发,代码逻辑不够清晰,而且繁琐。而且MQTT质量低,容易丢包。还有一些硬件选材不够合适,造成资源浪费。 8 | 恳请各位大佬提出意见,甚至可以一起完善这个项目,谢谢! 9 | I know that this system still has many flaws, such as bare metal development, the code logic is not clear enough, and cumbersome. Moreover, the quality of MQTT is low and packets are easily lost. In addition, some hardware materials are not suitable enough, causing a waste of resources. 10 | I sincerely ask you all for your opinions, and you can even improve this project together, thank you! 11 | 12 | 13 | **该项目仅供学习用** 14 | **This project is for learning purposes only** 15 | 16 | --- 17 | 2024.2.13 更新日志 18 | 19 | 复述了该项目的说明文档,详细见[智慧公交.md]。 20 | 该项目为个人在大二所立项,毕业后闲暇整理本科项目。 21 | -------------------------------------------------------------------------------- /Output/generator.d: -------------------------------------------------------------------------------- 1 | ..\..\output\generator.o: ..\..\User\nmea_decode\src\generator.c 2 | ..\..\output\generator.o: ..\..\User\nmea_decode\include\nmea/gmath.h 3 | ..\..\output\generator.o: ..\..\User\nmea_decode\include\nmea/info.h 4 | ..\..\output\generator.o: ..\..\User\nmea_decode\include\nmea/time.h 5 | ..\..\output\generator.o: ..\..\User\nmea_decode\include\nmea/config.h 6 | ..\..\output\generator.o: D:\mdk\ARM\ARMCC\Bin\..\include\assert.h 7 | ..\..\output\generator.o: ..\..\User\nmea_decode\include\nmea/generate.h 8 | ..\..\output\generator.o: ..\..\User\nmea_decode\include\nmea/sentence.h 9 | ..\..\output\generator.o: ..\..\User\nmea_decode\include\nmea/generator.h 10 | ..\..\output\generator.o: ..\..\User\nmea_decode\include\nmea/context.h 11 | ..\..\output\generator.o: D:\mdk\ARM\ARMCC\Bin\..\include\string.h 12 | ..\..\output\generator.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdlib.h 13 | -------------------------------------------------------------------------------- /User/nmea_decode/include/nmea/units.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * NMEA library 4 | * URL: http://nmea.sourceforge.net 5 | * Author: Tim (xtimor@gmail.com) 6 | * Licence: http://www.gnu.org/licenses/lgpl.html 7 | * $Id: units.h 4 2007-08-27 13:11:03Z xtimor $ 8 | * 9 | */ 10 | 11 | #ifndef __NMEA_UNITS_H__ 12 | #define __NMEA_UNITS_H__ 13 | 14 | #include "config.h" 15 | 16 | /* 17 | * Distance units 18 | */ 19 | 20 | #define NMEA_TUD_YARDS (1.0936) /**< Yeards, meter * NMEA_TUD_YARDS = yard */ 21 | #define NMEA_TUD_KNOTS (1.852) /**< Knots, kilometer / NMEA_TUD_KNOTS = knot */ 22 | #define NMEA_TUD_MILES (1.609) /**< Miles, kilometer / NMEA_TUD_MILES = mile */ 23 | 24 | /* 25 | * Speed units 26 | */ 27 | 28 | #define NMEA_TUS_MS (3.6) /**< Meters per seconds, (k/h) / NMEA_TUS_MS= (m/s) */ 29 | 30 | #endif /* __NMEA_UNITS_H__ */ 31 | -------------------------------------------------------------------------------- /Output/parse.d: -------------------------------------------------------------------------------- 1 | ..\..\output\parse.o: ..\..\User\nmea_decode\src\parse.c 2 | ..\..\output\parse.o: ..\..\User\nmea_decode\include\nmea/tok.h 3 | ..\..\output\parse.o: ..\..\User\nmea_decode\include\nmea/config.h 4 | ..\..\output\parse.o: D:\mdk\ARM\ARMCC\Bin\..\include\assert.h 5 | ..\..\output\parse.o: ..\..\User\nmea_decode\include\nmea/parse.h 6 | ..\..\output\parse.o: ..\..\User\nmea_decode\include\nmea/sentence.h 7 | ..\..\output\parse.o: ..\..\User\nmea_decode\include\nmea/info.h 8 | ..\..\output\parse.o: ..\..\User\nmea_decode\include\nmea/time.h 9 | ..\..\output\parse.o: ..\..\User\nmea_decode\include\nmea/context.h 10 | ..\..\output\parse.o: ..\..\User\nmea_decode\include\nmea/gmath.h 11 | ..\..\output\parse.o: ..\..\User\nmea_decode\include\nmea/units.h 12 | ..\..\output\parse.o: D:\mdk\ARM\ARMCC\Bin\..\include\string.h 13 | ..\..\output\parse.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdio.h 14 | -------------------------------------------------------------------------------- /User/nmea_decode/include/nmea/context.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * NMEA library 4 | * URL: http://nmea.sourceforge.net 5 | * Author: Tim (xtimor@gmail.com) 6 | * Licence: http://www.gnu.org/licenses/lgpl.html 7 | * $Id: context.h 4 2007-08-27 13:11:03Z xtimor $ 8 | * 9 | */ 10 | 11 | #ifndef __NMEA_CONTEXT_H__ 12 | #define __NMEA_CONTEXT_H__ 13 | 14 | #include "config.h" 15 | 16 | #define NMEA_DEF_PARSEBUFF (1024) 17 | #define NMEA_MIN_PARSEBUFF (256) 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | typedef void (*nmeaTraceFunc)(const char *str, int str_size); 24 | typedef void (*nmeaErrorFunc)(const char *str, int str_size); 25 | 26 | typedef struct _nmeaPROPERTY 27 | { 28 | nmeaTraceFunc trace_func; 29 | nmeaErrorFunc error_func; 30 | nmeaErrorFunc info_func; 31 | int parse_buff_size; 32 | 33 | } nmeaPROPERTY; 34 | 35 | nmeaPROPERTY * nmea_property(void); 36 | 37 | void nmea_trace(const char *str, ...); 38 | void nmea_trace_buff(const char *buff, int buff_size); 39 | void nmea_error(const char *str, ...); 40 | void nmea_info(const char *str, ...); 41 | 42 | #ifdef __cplusplus 43 | } 44 | #endif 45 | 46 | #endif /* __NMEA_CONTEXT_H__ */ 47 | -------------------------------------------------------------------------------- /User/nmea_decode/include/nmea/time.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * NMEA library 4 | * URL: http://nmea.sourceforge.net 5 | * Author: Tim (xtimor@gmail.com) 6 | * Licence: http://www.gnu.org/licenses/lgpl.html 7 | * $Id: time.h 4 2007-08-27 13:11:03Z xtimor $ 8 | * 9 | */ 10 | 11 | /*! \file */ 12 | 13 | #ifndef __NMEA_TIME_H__ 14 | #define __NMEA_TIME_H__ 15 | 16 | #include "config.h" 17 | 18 | #ifdef __cplusplus 19 | extern "C" { 20 | #endif 21 | 22 | /** 23 | * Date and time data 24 | * @see nmea_time_now 25 | */ 26 | typedef struct _nmeaTIME 27 | { 28 | int year; /**< Years since 1900 */ 29 | int mon; /**< Months since January - [1,12] */ 30 | int day; /**< Day of the month - [1,31] */ 31 | int hour; /**< Hours since midnight - [0,23] */ 32 | int min; /**< Minutes after the hour - [0,59] */ 33 | int sec; /**< Seconds after the minute - [0,59] */ 34 | int hsec; /**< Hundredth part of second - [0,99] */ 35 | 36 | } nmeaTIME; 37 | 38 | /** 39 | * \brief Get time now to nmeaTIME structure 40 | */ 41 | void nmea_time_now(nmeaTIME *t); 42 | 43 | #ifdef __cplusplus 44 | } 45 | #endif 46 | 47 | #endif /* __NMEA_TIME_H__ */ 48 | -------------------------------------------------------------------------------- /User/nmea_decode/include/nmea/config.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * NMEA library 4 | * URL: http://nmea.sourceforge.net 5 | * Author: Tim (xtimor@gmail.com) 6 | * Licence: http://www.gnu.org/licenses/lgpl.html 7 | * $Id: config.h 17 2008-03-11 11:56:11Z xtimor $ 8 | * 9 | */ 10 | 11 | #ifndef __NMEA_CONFIG_H__ 12 | #define __NMEA_CONFIG_H__ 13 | 14 | #define NMEA_VERSION ("0.5.3") 15 | #define NMEA_VERSION_MAJOR (0) 16 | #define NMEA_VERSION_MINOR (5) 17 | #define NMEA_VERSION_PATCH (3) 18 | 19 | #define NMEA_CONVSTR_BUF (256) 20 | #define NMEA_TIMEPARSE_BUF (256) 21 | #define NMEA_TXTPARSE_BUF (256) 22 | 23 | #if defined(WINCE) || defined(UNDER_CE) 24 | # define NMEA_CE 25 | #endif 26 | 27 | #if defined(WIN32) || defined(NMEA_CE) 28 | # define NMEA_WIN 29 | #else 30 | # define NMEA_UNI 31 | #endif 32 | 33 | #if defined(NMEA_WIN) && (_MSC_VER >= 1400) 34 | # pragma warning(disable: 4996) /* declared deprecated */ 35 | #endif 36 | 37 | #if defined(_MSC_VER) 38 | # define NMEA_POSIX(x) _##x 39 | # define NMEA_INLINE __inline 40 | #else 41 | # define NMEA_POSIX(x) x 42 | # define NMEA_INLINE inline 43 | #endif 44 | 45 | #if !defined(NDEBUG) && !defined(NMEA_CE) 46 | # include 47 | # define NMEA_ASSERT(x) //assert(x) //modify by fire 48 | #else 49 | # define NMEA_ASSERT(x) 50 | #endif 51 | 52 | #endif /* __NMEA_CONFIG_H__ */ 53 | -------------------------------------------------------------------------------- /Output/Template.lnp: -------------------------------------------------------------------------------- 1 | --cpu Cortex-M3 2 | "..\..\output\startup_stm32f10x_hd.o" 3 | "..\..\output\core_cm3.o" 4 | "..\..\output\system_stm32f10x.o" 5 | "..\..\output\misc.o" 6 | "..\..\output\stm32f10x_dma.o" 7 | "..\..\output\stm32f10x_exti.o" 8 | "..\..\output\stm32f10x_gpio.o" 9 | "..\..\output\stm32f10x_i2c.o" 10 | "..\..\output\stm32f10x_rcc.o" 11 | "..\..\output\stm32f10x_tim.o" 12 | "..\..\output\stm32f10x_usart.o" 13 | "..\..\output\main.o" 14 | "..\..\output\stm32f10x_it.o" 15 | "..\..\output\nema_decode_test.o" 16 | "..\..\output\bsp_systick.o" 17 | "..\..\output\core_delay.o" 18 | "..\..\output\bsp_dma.o" 19 | "..\..\output\gps_config.o" 20 | "..\..\output\bsp_ec20.o" 21 | "..\..\output\bsp_dht11.o" 22 | "..\..\output\bsp_led.o" 23 | "..\..\output\bsp_tim.o" 24 | "..\..\output\bsp_usart1.o" 25 | "..\..\output\bsp_usart2.o" 26 | "..\..\output\bsp_exti.o" 27 | "..\..\output\mlx90614.o" 28 | "..\..\output\oled_i2c.o" 29 | "..\..\output\context.o" 30 | "..\..\output\generate.o" 31 | "..\..\output\generator.o" 32 | "..\..\output\gmath.o" 33 | "..\..\output\info.o" 34 | "..\..\output\parse.o" 35 | "..\..\output\parser.o" 36 | "..\..\output\sentence.o" 37 | "..\..\output\time.o" 38 | "..\..\output\tok.o" 39 | --library_type=microlib --strict --scatter "..\..\Output\Template.sct" 40 | --summary_stderr --info summarysizes --map --xref --callgraph --symbols 41 | --info sizes --info totals --info unused --info veneers 42 | --list "..\..\Listing\Template.map" -o ..\..\Output\Template.axf -------------------------------------------------------------------------------- /User/nmea_decode/include/nmea/parser.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * NMEA library 4 | * URL: http://nmea.sourceforge.net 5 | * Author: Tim (xtimor@gmail.com) 6 | * Licence: http://www.gnu.org/licenses/lgpl.html 7 | * $Id: parser.h 4 2007-08-27 13:11:03Z xtimor $ 8 | * 9 | */ 10 | 11 | #ifndef __NMEA_PARSER_H__ 12 | #define __NMEA_PARSER_H__ 13 | 14 | #include "info.h" 15 | 16 | #ifdef __cplusplus 17 | extern "C" { 18 | #endif 19 | 20 | /* 21 | * high level 22 | */ 23 | 24 | typedef struct _nmeaPARSER 25 | { 26 | void *top_node; 27 | void *end_node; 28 | unsigned char *buffer; 29 | int buff_size; 30 | int buff_use; 31 | 32 | } nmeaPARSER; 33 | 34 | int nmea_parser_init(nmeaPARSER *parser); 35 | void nmea_parser_destroy(nmeaPARSER *parser); 36 | 37 | int nmea_parse( 38 | nmeaPARSER *parser, 39 | const char *buff, int buff_sz, 40 | nmeaINFO *info 41 | ); 42 | 43 | /* 44 | * low level 45 | */ 46 | 47 | int nmea_parser_push(nmeaPARSER *parser, const char *buff, int buff_sz); 48 | int nmea_parser_top(nmeaPARSER *parser); 49 | int nmea_parser_pop(nmeaPARSER *parser, void **pack_ptr); 50 | int nmea_parser_peek(nmeaPARSER *parser, void **pack_ptr); 51 | int nmea_parser_drop(nmeaPARSER *parser); 52 | int nmea_parser_buff_clear(nmeaPARSER *parser); 53 | int nmea_parser_queue_clear(nmeaPARSER *parser); 54 | 55 | #ifdef __cplusplus 56 | } 57 | #endif 58 | 59 | #endif /* __NMEA_PARSER_H__ */ 60 | -------------------------------------------------------------------------------- /User/led/bsp_led.c: -------------------------------------------------------------------------------- 1 | /********************************************************************************* 2 | 3 | * LED初始化文件 4 | 5 | **********************************************************************************/ 6 | 7 | #include "bsp_led.h" 8 | 9 | /** 10 | * @brief 初始化控制LED的IO 11 | * @param 无 12 | * @retval 无 13 | */ 14 | void LED_GPIO_Config(void) 15 | { 16 | /*定义一个GPIO_InitTypeDef类型的结构体*/ 17 | GPIO_InitTypeDef GPIO_InitStructure; 18 | 19 | /*开启LED相关的GPIO外设时钟*/ 20 | RCC_APB2PeriphClockCmd( LED1_GPIO_CLK | LED2_GPIO_CLK | LED3_GPIO_CLK, ENABLE); 21 | /*选择要控制的GPIO引脚*/ 22 | GPIO_InitStructure.GPIO_Pin = LED1_GPIO_PIN; 23 | 24 | /*设置引脚模式为通用推挽输出*/ 25 | GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; 26 | 27 | /*设置引脚速率为50MHz */ 28 | GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; 29 | 30 | /*调用库函数,初始化GPIO*/ 31 | GPIO_Init(LED1_GPIO_PORT, &GPIO_InitStructure); 32 | 33 | /*选择要控制的GPIO引脚*/ 34 | GPIO_InitStructure.GPIO_Pin = LED2_GPIO_PIN; 35 | 36 | /*调用库函数,初始化GPIO*/ 37 | GPIO_Init(LED2_GPIO_PORT, &GPIO_InitStructure); 38 | 39 | /*选择要控制的GPIO引脚*/ 40 | GPIO_InitStructure.GPIO_Pin = LED3_GPIO_PIN; 41 | 42 | /*调用库函数,初始化GPIOF*/ 43 | GPIO_Init(LED3_GPIO_PORT, &GPIO_InitStructure); 44 | 45 | /* 关闭所有led灯 */ 46 | GPIO_SetBits(LED1_GPIO_PORT, LED1_GPIO_PIN); 47 | 48 | /* 关闭所有led灯 */ 49 | GPIO_SetBits(LED2_GPIO_PORT, LED2_GPIO_PIN); 50 | 51 | /* 关闭所有led灯 */ 52 | GPIO_SetBits(LED3_GPIO_PORT, LED3_GPIO_PIN); 53 | } 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /User/nmea_decode/include/nmea/generate.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * NMEA library 4 | * URL: http://nmea.sourceforge.net 5 | * Author: Tim (xtimor@gmail.com) 6 | * Licence: http://www.gnu.org/licenses/lgpl.html 7 | * $Id: generate.h 4 2007-08-27 13:11:03Z xtimor $ 8 | * 9 | */ 10 | 11 | #ifndef __NMEA_GENERATE_H__ 12 | #define __NMEA_GENERATE_H__ 13 | 14 | #include "sentence.h" 15 | 16 | #ifdef __cplusplus 17 | extern "C" { 18 | #endif 19 | 20 | int nmea_generate( 21 | char *buff, int buff_sz, /* buffer */ 22 | const nmeaINFO *info, /* source info */ 23 | int generate_mask /* mask of sentence`s (e.g. GPGGA | GPGSA) */ 24 | ); 25 | 26 | int nmea_gen_GPGGA(char *buff, int buff_sz, nmeaGPGGA *pack); 27 | int nmea_gen_GPGSA(char *buff, int buff_sz, nmeaGPGSA *pack); 28 | int nmea_gen_GPGSV(char *buff, int buff_sz, nmeaGPGSV *pack); 29 | int nmea_gen_GPRMC(char *buff, int buff_sz, nmeaGPRMC *pack); 30 | int nmea_gen_GPVTG(char *buff, int buff_sz, nmeaGPVTG *pack); 31 | 32 | void nmea_info2GPGGA(const nmeaINFO *info, nmeaGPGGA *pack); 33 | void nmea_info2GPGSA(const nmeaINFO *info, nmeaGPGSA *pack); 34 | void nmea_info2GPRMC(const nmeaINFO *info, nmeaGPRMC *pack); 35 | void nmea_info2GPVTG(const nmeaINFO *info, nmeaGPVTG *pack); 36 | 37 | int nmea_gsv_npack(int sat_count); 38 | void nmea_info2GPGSV(const nmeaINFO *info, nmeaGPGSV *pack, int pack_idx); 39 | 40 | #ifdef __cplusplus 41 | } 42 | #endif 43 | 44 | #endif /* __NMEA_GENERATE_H__ */ 45 | -------------------------------------------------------------------------------- /User/dwt_delay/core_delay.h: -------------------------------------------------------------------------------- 1 | #ifndef __CORE_DELAY_H 2 | #define __CORE_DELAY_H 3 | 4 | #include "stm32f10x.h" 5 | 6 | #define USE_DWT_DELAY 1 /* 使用dwt内核精确延时 */ 7 | 8 | #if USE_DWT_DELAY 9 | #define USE_TICK_DELAY 0 /* 不使用SysTick延时 */ 10 | #else 11 | #define USE_TICK_DELAY 1 /* 使用SysTick延时 */ 12 | #endif 13 | 14 | 15 | /*简单任务管理*/ 16 | #define TASK_ENABLE 0 17 | #define NumOfTask 3 18 | 19 | 20 | #if USE_DWT_DELAY 21 | 22 | //#define Delay_ms(ms) CPU_TS_Tmr_Delay_MS(ms) 23 | //#define Delay_us(us) CPU_TS_Tmr_Delay_US(us) 24 | ///* 最大延时 60s=2的32次方/72000000 */ 25 | //#define Delay_s(s) CPU_TS_Tmr_Delay_S(s) 26 | 27 | /* 获取内核时钟频率 */ 28 | #define GET_CPU_ClkFreq() (SystemCoreClock) 29 | #define SysClockFreq (SystemCoreClock) 30 | /* 为方便使用,在延时函数内部调用CPU_TS_TmrInit函数初始化时间戳寄存器, 31 | 这样每次调用函数都会初始化一遍。 32 | 把本宏值设置为0,然后在main函数刚运行时调用CPU_TS_TmrInit可避免每次都初始化 */ 33 | 34 | #define CPU_TS_INIT_IN_DELAY_FUNCTION 1 35 | 36 | 37 | /******************************************************************************* 38 | * 函数声明 39 | ******************************************************************************/ 40 | uint32_t CPU_TS_TmrRd(void); 41 | void CPU_TS_TmrInit(void); 42 | 43 | //使用以下函数前必须先调用CPU_TS_TmrInit函数使能计数器,或使能宏CPU_TS_INIT_IN_DELAY_FUNCTION 44 | //最大延时值为60秒 45 | void CPU_TS_Tmr_Delay_US(uint32_t us); 46 | #define CPU_TS_Tmr_Delay_MS(ms) CPU_TS_Tmr_Delay_US(ms*1000) 47 | #define CPU_TS_Tmr_Delay_S(s) CPU_TS_Tmr_Delay_MS(s*1000) 48 | 49 | #endif 50 | 51 | #endif /* __CORE_DELAY_H */ 52 | -------------------------------------------------------------------------------- /User/nmea_decode/src/context.c: -------------------------------------------------------------------------------- 1 | 2 | #include "nmea/context.h" 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | nmeaPROPERTY * nmea_property(void) 9 | { 10 | static nmeaPROPERTY prop = { 11 | 0, 0, 0, NMEA_DEF_PARSEBUFF 12 | }; 13 | 14 | return ∝ 15 | } 16 | 17 | void nmea_trace(const char *str, ...) 18 | { 19 | int size; 20 | va_list arg_list; 21 | char buff[NMEA_DEF_PARSEBUFF]; 22 | nmeaTraceFunc func = nmea_property()->trace_func; 23 | 24 | if(func) 25 | { 26 | va_start(arg_list, str); 27 | size = NMEA_POSIX(vsnprintf)(&buff[0], NMEA_DEF_PARSEBUFF - 1, str, arg_list); 28 | va_end(arg_list); 29 | 30 | if(size > 0) 31 | (*func)(&buff[0], size); 32 | } 33 | } 34 | 35 | void nmea_trace_buff(const char *buff, int buff_size) 36 | { 37 | nmeaTraceFunc func = nmea_property()->trace_func; 38 | if(func && buff_size) 39 | (*func)(buff, buff_size); 40 | } 41 | 42 | void nmea_error(const char *str, ...) 43 | { 44 | int size; 45 | va_list arg_list; 46 | char buff[NMEA_DEF_PARSEBUFF]; 47 | nmeaErrorFunc func = nmea_property()->error_func; 48 | 49 | if(func) 50 | { 51 | va_start(arg_list, str); 52 | size = NMEA_POSIX(vsnprintf)(&buff[0], NMEA_DEF_PARSEBUFF - 1, str, arg_list); 53 | va_end(arg_list); 54 | 55 | if(size > 0) 56 | (*func)(&buff[0], size); 57 | } 58 | } 59 | 60 | 61 | void nmea_info(const char *str, ...) 62 | { 63 | int size; 64 | va_list arg_list; 65 | char buff[NMEA_DEF_PARSEBUFF]; 66 | nmeaErrorFunc func = nmea_property()->info_func; 67 | 68 | if(func) 69 | { 70 | va_start(arg_list, str); 71 | size = NMEA_POSIX(vsnprintf)(&buff[0], NMEA_DEF_PARSEBUFF - 1, str, arg_list); 72 | va_end(arg_list); 73 | 74 | if(size > 0) 75 | (*func)(&buff[0], size); 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /Output/misc.d: -------------------------------------------------------------------------------- 1 | ..\..\output\misc.o: ..\..\Libraries\FWlib\src\misc.c 2 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\misc.h 3 | ..\..\output\misc.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\misc.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\misc.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\misc.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\misc.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\misc.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\misc.o: ..\..\Libraries\FWlib\inc\misc.h 32 | -------------------------------------------------------------------------------- /Output/bsp_led.d: -------------------------------------------------------------------------------- 1 | ..\..\output\bsp_led.o: ..\..\User\led\bsp_led.c 2 | ..\..\output\bsp_led.o: ..\..\User\led\bsp_led.h 3 | ..\..\output\bsp_led.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\bsp_led.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\bsp_led.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\bsp_led.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\bsp_led.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\bsp_led.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\bsp_led.o: ..\..\Libraries\FWlib\inc\misc.h 32 | -------------------------------------------------------------------------------- /Output/bsp_exti.d: -------------------------------------------------------------------------------- 1 | ..\..\output\bsp_exti.o: ..\..\User\Infrared_beam\bsp_exti.c 2 | ..\..\output\bsp_exti.o: ..\..\User\Infrared_beam\bsp_exti.h 3 | ..\..\output\bsp_exti.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\bsp_exti.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\bsp_exti.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\bsp_exti.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\bsp_exti.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\bsp_exti.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\bsp_exti.o: ..\..\Libraries\FWlib\inc\misc.h 32 | -------------------------------------------------------------------------------- /Output/mlx90614.d: -------------------------------------------------------------------------------- 1 | ..\..\output\mlx90614.o: ..\..\User\mlx90614\mlx90614.c 2 | ..\..\output\mlx90614.o: ..\..\User\mlx90614\mlx90614.h 3 | ..\..\output\mlx90614.o: ..\..\User\systick\bsp_SysTick.h 4 | ..\..\output\mlx90614.o: ..\..\Libraries\CMSIS\stm32f10x.h 5 | ..\..\output\mlx90614.o: ..\..\Libraries\CMSIS\core_cm3.h 6 | ..\..\output\mlx90614.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 7 | ..\..\output\mlx90614.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 8 | ..\..\output\mlx90614.o: ..\..\User\stm32f10x_conf.h 9 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 10 | ..\..\output\mlx90614.o: ..\..\Libraries\CMSIS\stm32f10x.h 11 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 12 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 13 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 14 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 15 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 16 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 17 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 18 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 19 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 20 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 21 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 22 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 23 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 24 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 25 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 26 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 27 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 28 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 29 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 30 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 31 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 32 | ..\..\output\mlx90614.o: ..\..\Libraries\FWlib\inc\misc.h 33 | -------------------------------------------------------------------------------- /Output/core_delay.d: -------------------------------------------------------------------------------- 1 | ..\..\output\core_delay.o: ..\..\User\dwt_delay\core_delay.c 2 | ..\..\output\core_delay.o: ..\..\User\./dwt_delay/core_delay.h 3 | ..\..\output\core_delay.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\core_delay.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\core_delay.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\core_delay.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\core_delay.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\core_delay.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\core_delay.o: ..\..\Libraries\FWlib\inc\misc.h 32 | -------------------------------------------------------------------------------- /Output/bsp_dma.d: -------------------------------------------------------------------------------- 1 | ..\..\output\bsp_dma.o: ..\..\User\dam\bsp_dma.c 2 | ..\..\output\bsp_dma.o: ..\..\User\dam\bsp_dma.h 3 | ..\..\output\bsp_dma.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\bsp_dma.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\bsp_dma.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\bsp_dma.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\bsp_dma.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\bsp_dma.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\bsp_dma.o: ..\..\Libraries\FWlib\inc\misc.h 32 | ..\..\output\bsp_dma.o: ..\..\User\usart2\bsp_usart2.h 33 | ..\..\output\bsp_dma.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdio.h 34 | -------------------------------------------------------------------------------- /Output/bsp_dht11.d: -------------------------------------------------------------------------------- 1 | ..\..\output\bsp_dht11.o: ..\..\User\dht11\bsp_dht11.c 2 | ..\..\output\bsp_dht11.o: ..\..\User\./dht11/bsp_dht11.h 3 | ..\..\output\bsp_dht11.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\bsp_dht11.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\bsp_dht11.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\bsp_dht11.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\bsp_dht11.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\bsp_dht11.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\bsp_dht11.o: ..\..\Libraries\FWlib\inc\misc.h 32 | ..\..\output\bsp_dht11.o: ..\..\User\./dwt_delay/core_delay.h 33 | -------------------------------------------------------------------------------- /User/stm32f10x_it.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file Project/STM32F10x_StdPeriph_Template/stm32f10x_it.h 4 | * @author MCD Application Team 5 | * @version V3.5.0 6 | * @date 08-April-2011 7 | * @brief This file contains the headers of the interrupt handlers. 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE 13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY 14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING 15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE 16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 17 | * 18 | *

© COPYRIGHT 2011 STMicroelectronics

19 | ****************************************************************************** 20 | */ 21 | 22 | /* Define to prevent recursive inclusion -------------------------------------*/ 23 | #ifndef __STM32F10x_IT_H 24 | #define __STM32F10x_IT_H 25 | 26 | #ifdef __cplusplus 27 | extern "C" { 28 | #endif 29 | 30 | /* Includes ------------------------------------------------------------------*/ 31 | #include "stm32f10x.h" 32 | 33 | /* Exported types ------------------------------------------------------------*/ 34 | /* Exported constants --------------------------------------------------------*/ 35 | /* Exported macro ------------------------------------------------------------*/ 36 | /* Exported functions ------------------------------------------------------- */ 37 | 38 | void NMI_Handler(void); 39 | void HardFault_Handler(void); 40 | void MemManage_Handler(void); 41 | void BusFault_Handler(void); 42 | void UsageFault_Handler(void); 43 | void SVC_Handler(void); 44 | void DebugMon_Handler(void); 45 | void PendSV_Handler(void); 46 | void SysTick_Handler(void); 47 | 48 | #ifdef __cplusplus 49 | } 50 | #endif 51 | 52 | #endif /* __STM32F10x_IT_H */ 53 | 54 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ 55 | -------------------------------------------------------------------------------- /Output/bsp_usart1.d: -------------------------------------------------------------------------------- 1 | ..\..\output\bsp_usart1.o: ..\..\User\usart1\bsp_usart1.c 2 | ..\..\output\bsp_usart1.o: ..\..\User\usart1\bsp_usart1.h 3 | ..\..\output\bsp_usart1.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\bsp_usart1.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\bsp_usart1.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\bsp_usart1.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\bsp_usart1.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\bsp_usart1.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\bsp_usart1.o: ..\..\Libraries\FWlib\inc\misc.h 32 | ..\..\output\bsp_usart1.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdio.h 33 | -------------------------------------------------------------------------------- /User/nmea_decode/include/nmea/generator.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * NMEA library 4 | * URL: http://nmea.sourceforge.net 5 | * Author: Tim (xtimor@gmail.com) 6 | * Licence: http://www.gnu.org/licenses/lgpl.html 7 | * $Id: generator.h 4 2007-08-27 13:11:03Z xtimor $ 8 | * 9 | */ 10 | 11 | #ifndef __NMEA_GENERATOR_H__ 12 | #define __NMEA_GENERATOR_H__ 13 | 14 | #include "info.h" 15 | 16 | #ifdef __cplusplus 17 | extern "C" { 18 | #endif 19 | 20 | /* 21 | * high level 22 | */ 23 | 24 | struct _nmeaGENERATOR; 25 | 26 | enum nmeaGENTYPE 27 | { 28 | NMEA_GEN_NOISE = 0, 29 | NMEA_GEN_STATIC, 30 | NMEA_GEN_ROTATE, 31 | 32 | NMEA_GEN_SAT_STATIC, 33 | NMEA_GEN_SAT_ROTATE, 34 | NMEA_GEN_POS_RANDMOVE, 35 | 36 | NMEA_GEN_LAST 37 | }; 38 | 39 | struct _nmeaGENERATOR * nmea_create_generator(int type, nmeaINFO *info); 40 | void nmea_destroy_generator(struct _nmeaGENERATOR *gen); 41 | 42 | int nmea_generate_from( 43 | char *buff, int buff_sz, /* buffer */ 44 | nmeaINFO *info, /* source info */ 45 | struct _nmeaGENERATOR *gen, /* generator */ 46 | int generate_mask /* mask of sentence`s (e.g. GPGGA | GPGSA) */ 47 | ); 48 | 49 | /* 50 | * low level 51 | */ 52 | 53 | typedef int (*nmeaNMEA_GEN_INIT)(struct _nmeaGENERATOR *gen, nmeaINFO *info); 54 | typedef int (*nmeaNMEA_GEN_LOOP)(struct _nmeaGENERATOR *gen, nmeaINFO *info); 55 | typedef int (*nmeaNMEA_GEN_RESET)(struct _nmeaGENERATOR *gen, nmeaINFO *info); 56 | typedef int (*nmeaNMEA_GEN_DESTROY)(struct _nmeaGENERATOR *gen); 57 | 58 | typedef struct _nmeaGENERATOR 59 | { 60 | void *gen_data; 61 | nmeaNMEA_GEN_INIT init_call; 62 | nmeaNMEA_GEN_LOOP loop_call; 63 | nmeaNMEA_GEN_RESET reset_call; 64 | nmeaNMEA_GEN_DESTROY destroy_call; 65 | struct _nmeaGENERATOR *next; 66 | 67 | } nmeaGENERATOR; 68 | 69 | int nmea_gen_init(nmeaGENERATOR *gen, nmeaINFO *info); 70 | int nmea_gen_loop(nmeaGENERATOR *gen, nmeaINFO *info); 71 | int nmea_gen_reset(nmeaGENERATOR *gen, nmeaINFO *info); 72 | void nmea_gen_destroy(nmeaGENERATOR *gen); 73 | void nmea_gen_add(nmeaGENERATOR *to, nmeaGENERATOR *gen); 74 | 75 | #ifdef __cplusplus 76 | } 77 | #endif 78 | 79 | #endif /* __NMEA_GENERATOR_H__ */ 80 | -------------------------------------------------------------------------------- /Output/bsp_systick.d: -------------------------------------------------------------------------------- 1 | ..\..\output\bsp_systick.o: ..\..\User\systick\bsp_systick.c 2 | ..\..\output\bsp_systick.o: ..\..\User\systick\bsp_systick.h 3 | ..\..\output\bsp_systick.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\bsp_systick.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\bsp_systick.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\bsp_systick.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\bsp_systick.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\bsp_systick.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\bsp_systick.o: ..\..\Libraries\FWlib\inc\misc.h 32 | ..\..\output\bsp_systick.o: ..\..\User\led\bsp_led.h 33 | -------------------------------------------------------------------------------- /Output/oled_i2c.d: -------------------------------------------------------------------------------- 1 | ..\..\output\oled_i2c.o: ..\..\User\oled\OLED_I2C.c 2 | ..\..\output\oled_i2c.o: ..\..\User\oled\OLED_I2C.h 3 | ..\..\output\oled_i2c.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\oled_i2c.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\oled_i2c.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\oled_i2c.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\oled_i2c.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\oled_i2c.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\oled_i2c.o: ..\..\Libraries\FWlib\inc\misc.h 32 | ..\..\output\oled_i2c.o: ..\..\User\systick\bsp_SysTick.h 33 | ..\..\output\oled_i2c.o: ..\..\User\oled\codetab.h 34 | ..\..\output\oled_i2c.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdio.h 35 | -------------------------------------------------------------------------------- /Output/stm32f10x_dma.d: -------------------------------------------------------------------------------- 1 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\src\stm32f10x_dma.c 2 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 3 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\stm32f10x_dma.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\stm32f10x_dma.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\stm32f10x_dma.o: ..\..\Libraries\FWlib\inc\misc.h 32 | -------------------------------------------------------------------------------- /Output/stm32f10x_i2c.d: -------------------------------------------------------------------------------- 1 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\src\stm32f10x_i2c.c 2 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 3 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\stm32f10x_i2c.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\stm32f10x_i2c.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\stm32f10x_i2c.o: ..\..\Libraries\FWlib\inc\misc.h 32 | -------------------------------------------------------------------------------- /Output/stm32f10x_rcc.d: -------------------------------------------------------------------------------- 1 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\src\stm32f10x_rcc.c 2 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 3 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\stm32f10x_rcc.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\stm32f10x_rcc.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\stm32f10x_rcc.o: ..\..\Libraries\FWlib\inc\misc.h 32 | -------------------------------------------------------------------------------- /Output/stm32f10x_tim.d: -------------------------------------------------------------------------------- 1 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\src\stm32f10x_tim.c 2 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 3 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\stm32f10x_tim.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\stm32f10x_tim.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\stm32f10x_tim.o: ..\..\Libraries\FWlib\inc\misc.h 32 | -------------------------------------------------------------------------------- /Output/system_stm32f10x.d: -------------------------------------------------------------------------------- 1 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\CMSIS\system_stm32f10x.c 2 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\CMSIS\stm32f10x.h 3 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\CMSIS\core_cm3.h 4 | ..\..\output\system_stm32f10x.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 5 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 6 | ..\..\output\system_stm32f10x.o: ..\..\User\stm32f10x_conf.h 7 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 8 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\CMSIS\stm32f10x.h 9 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 10 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 11 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 12 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 13 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 14 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 15 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 16 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 17 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 18 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 19 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 20 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 21 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 22 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 23 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 24 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 25 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 26 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 27 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 28 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 29 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 30 | ..\..\output\system_stm32f10x.o: ..\..\Libraries\FWlib\inc\misc.h 31 | -------------------------------------------------------------------------------- /Output/stm32f10x_exti.d: -------------------------------------------------------------------------------- 1 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\src\stm32f10x_exti.c 2 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 3 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\stm32f10x_exti.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\stm32f10x_exti.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\stm32f10x_exti.o: ..\..\Libraries\FWlib\inc\misc.h 32 | -------------------------------------------------------------------------------- /Output/stm32f10x_gpio.d: -------------------------------------------------------------------------------- 1 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\src\stm32f10x_gpio.c 2 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 3 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\stm32f10x_gpio.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\stm32f10x_gpio.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\stm32f10x_gpio.o: ..\..\Libraries\FWlib\inc\misc.h 32 | -------------------------------------------------------------------------------- /Output/bsp_tim.d: -------------------------------------------------------------------------------- 1 | ..\..\output\bsp_tim.o: ..\..\User\tim\bsp_tim.c 2 | ..\..\output\bsp_tim.o: ..\..\User\tim\bsp_tim.h 3 | ..\..\output\bsp_tim.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\bsp_tim.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\bsp_tim.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\bsp_tim.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\bsp_tim.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\bsp_tim.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\bsp_tim.o: ..\..\Libraries\FWlib\inc\misc.h 32 | ..\..\output\bsp_tim.o: ..\..\User\usart2\bsp_usart2.h 33 | ..\..\output\bsp_tim.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdio.h 34 | ..\..\output\bsp_tim.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdarg.h 35 | ..\..\output\bsp_tim.o: D:\mdk\ARM\ARMCC\Bin\..\include\string.h 36 | -------------------------------------------------------------------------------- /Output/stm32f10x_usart.d: -------------------------------------------------------------------------------- 1 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\src\stm32f10x_usart.c 2 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 3 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\stm32f10x_usart.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\stm32f10x_usart.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\stm32f10x_usart.o: ..\..\Libraries\FWlib\inc\misc.h 32 | -------------------------------------------------------------------------------- /User/nmea_decode/include/nmea/parse.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * NMEA library 4 | * URL: http://nmea.sourceforge.net 5 | * Author: Tim (xtimor@gmail.com) 6 | * Licence: http://www.gnu.org/licenses/lgpl.html 7 | * $Id: parse.h 4 2007-08-27 13:11:03Z xtimor $ 8 | * 9 | */ 10 | 11 | #ifndef __NMEA_PARSE_H__ 12 | #define __NMEA_PARSE_H__ 13 | 14 | #include "sentence.h" 15 | 16 | #ifdef __cplusplus 17 | extern "C" { 18 | #endif 19 | 20 | int nmea_pack_type(const char *buff, int buff_sz); 21 | int nmea_find_tail(const char *buff, int buff_sz, int *res_crc); 22 | 23 | int nmea_parse_GPGGA(const char *buff, int buff_sz, nmeaGPGGA *pack); 24 | int nmea_parse_GPGSA(const char *buff, int buff_sz, nmeaGPGSA *pack); 25 | int nmea_parse_GPGSV(const char *buff, int buff_sz, nmeaGPGSV *pack); 26 | int nmea_parse_GPRMC(const char *buff, int buff_sz, nmeaGPRMC *pack); 27 | int nmea_parse_GPVTG(const char *buff, int buff_sz, nmeaGPVTG *pack); 28 | 29 | int nmea_parse_GNGGA(const char *buff, int buff_sz, nmeaGNGGA *pack); 30 | int nmea_parse_GNRMC(const char *buff, int buff_sz, nmeaGNRMC *pack); 31 | int nmea_parse_GNVTG(const char *buff, int buff_sz, nmeaGNVTG *pack); 32 | int nmea_parse_GNZDA(const char *buff, int buff_sz, nmeaGNZDA *pack); 33 | int nmea_parse_GNGLL(const char *buff, int buff_sz, nmeaGNGLL *pack); 34 | 35 | int nmea_parse_BDGSV(const char *buff, int buff_sz, nmeaBDGSV *pack); 36 | int nmea_parse_BDGSA(const char *buff, int buff_sz, nmeaBDGSA *pack); 37 | int nmea_parse_GPTXT(const char *buff, int buff_sz, nmeaGPTXT *pack); 38 | 39 | void nmea_GPGGA2info(nmeaGPGGA *pack, nmeaINFO *info); 40 | void nmea_GPGSA2info(nmeaGPGSA *pack, nmeaINFO *info); 41 | void nmea_GPGSV2info(nmeaGPGSV *pack, nmeaINFO *info); 42 | void nmea_GPRMC2info(nmeaGPRMC *pack, nmeaINFO *info); 43 | void nmea_GPVTG2info(nmeaGPVTG *pack, nmeaINFO *info); 44 | 45 | void nmea_GNGGA2info(nmeaGNGGA *pack, nmeaINFO *info); 46 | void nmea_GNRMC2info(nmeaGNRMC *pack, nmeaINFO *info); 47 | void nmea_GNVTG2info(nmeaGNVTG *pack, nmeaINFO *info); 48 | void nmea_GNZDA2info(nmeaGNZDA *pack, nmeaINFO *info); 49 | void nmea_GNGLL2info(nmeaGNGLL *pack, nmeaINFO *info); 50 | 51 | void nmea_BDGSV2info(nmeaBDGSV *pack, nmeaINFO *info); 52 | void nmea_BDGSA2info(nmeaBDGSA *pack, nmeaINFO *info); 53 | void nmea_GPTXT2info(nmeaGPTXT *pack, nmeaINFO *info); 54 | 55 | #ifdef __cplusplus 56 | } 57 | #endif 58 | 59 | #endif /* __NMEA_PARSE_H__ */ 60 | -------------------------------------------------------------------------------- /Libraries/CMSIS/system_stm32f10x.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file system_stm32f10x.h 4 | * @author MCD Application Team 5 | * @version V3.5.0 6 | * @date 11-March-2011 7 | * @brief CMSIS Cortex-M3 Device Peripheral Access Layer System Header File. 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE 13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY 14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING 15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE 16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 17 | * 18 | *

© COPYRIGHT 2011 STMicroelectronics

19 | ****************************************************************************** 20 | */ 21 | 22 | /** @addtogroup CMSIS 23 | * @{ 24 | */ 25 | 26 | /** @addtogroup stm32f10x_system 27 | * @{ 28 | */ 29 | 30 | /** 31 | * @brief Define to prevent recursive inclusion 32 | */ 33 | #ifndef __SYSTEM_STM32F10X_H 34 | #define __SYSTEM_STM32F10X_H 35 | 36 | #ifdef __cplusplus 37 | extern "C" { 38 | #endif 39 | 40 | /** @addtogroup STM32F10x_System_Includes 41 | * @{ 42 | */ 43 | 44 | /** 45 | * @} 46 | */ 47 | 48 | 49 | /** @addtogroup STM32F10x_System_Exported_types 50 | * @{ 51 | */ 52 | 53 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ 54 | 55 | /** 56 | * @} 57 | */ 58 | 59 | /** @addtogroup STM32F10x_System_Exported_Constants 60 | * @{ 61 | */ 62 | 63 | /** 64 | * @} 65 | */ 66 | 67 | /** @addtogroup STM32F10x_System_Exported_Macros 68 | * @{ 69 | */ 70 | 71 | /** 72 | * @} 73 | */ 74 | 75 | /** @addtogroup STM32F10x_System_Exported_Functions 76 | * @{ 77 | */ 78 | 79 | extern void SystemInit(void); 80 | extern void SystemCoreClockUpdate(void); 81 | /** 82 | * @} 83 | */ 84 | 85 | #ifdef __cplusplus 86 | } 87 | #endif 88 | 89 | #endif /*__SYSTEM_STM32F10X_H */ 90 | 91 | /** 92 | * @} 93 | */ 94 | 95 | /** 96 | * @} 97 | */ 98 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ 99 | -------------------------------------------------------------------------------- /Libraries/FWlib/inc/stm32f10x_crc.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file stm32f10x_crc.h 4 | * @author MCD Application Team 5 | * @version V3.5.0 6 | * @date 11-March-2011 7 | * @brief This file contains all the functions prototypes for the CRC firmware 8 | * library. 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 13 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE 14 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY 15 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING 16 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE 17 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 18 | * 19 | *

© COPYRIGHT 2011 STMicroelectronics

20 | ****************************************************************************** 21 | */ 22 | 23 | /* Define to prevent recursive inclusion -------------------------------------*/ 24 | #ifndef __STM32F10x_CRC_H 25 | #define __STM32F10x_CRC_H 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | /* Includes ------------------------------------------------------------------*/ 32 | #include "stm32f10x.h" 33 | 34 | /** @addtogroup STM32F10x_StdPeriph_Driver 35 | * @{ 36 | */ 37 | 38 | /** @addtogroup CRC 39 | * @{ 40 | */ 41 | 42 | /** @defgroup CRC_Exported_Types 43 | * @{ 44 | */ 45 | 46 | /** 47 | * @} 48 | */ 49 | 50 | /** @defgroup CRC_Exported_Constants 51 | * @{ 52 | */ 53 | 54 | /** 55 | * @} 56 | */ 57 | 58 | /** @defgroup CRC_Exported_Macros 59 | * @{ 60 | */ 61 | 62 | /** 63 | * @} 64 | */ 65 | 66 | /** @defgroup CRC_Exported_Functions 67 | * @{ 68 | */ 69 | 70 | void CRC_ResetDR(void); 71 | uint32_t CRC_CalcCRC(uint32_t Data); 72 | uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength); 73 | uint32_t CRC_GetCRC(void); 74 | void CRC_SetIDRegister(uint8_t IDValue); 75 | uint8_t CRC_GetIDRegister(void); 76 | 77 | #ifdef __cplusplus 78 | } 79 | #endif 80 | 81 | #endif /* __STM32F10x_CRC_H */ 82 | /** 83 | * @} 84 | */ 85 | 86 | /** 87 | * @} 88 | */ 89 | 90 | /** 91 | * @} 92 | */ 93 | 94 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ 95 | -------------------------------------------------------------------------------- /Output/bsp_usart2.d: -------------------------------------------------------------------------------- 1 | ..\..\output\bsp_usart2.o: ..\..\User\usart2\bsp_usart2.c 2 | ..\..\output\bsp_usart2.o: ..\..\User\usart2\bsp_usart2.h 3 | ..\..\output\bsp_usart2.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\bsp_usart2.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\bsp_usart2.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\bsp_usart2.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\bsp_usart2.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\bsp_usart2.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\bsp_usart2.o: ..\..\Libraries\FWlib\inc\misc.h 32 | ..\..\output\bsp_usart2.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdio.h 33 | ..\..\output\bsp_usart2.o: ..\..\User\dam\bsp_dma.h 34 | ..\..\output\bsp_usart2.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdarg.h 35 | ..\..\output\bsp_usart2.o: D:\mdk\ARM\ARMCC\Bin\..\include\string.h 36 | ..\..\output\bsp_usart2.o: ..\..\User\tim\bsp_tim.h 37 | -------------------------------------------------------------------------------- /User/nmea_decode/src/sentence.c: -------------------------------------------------------------------------------- 1 | 2 | #include "nmea/sentence.h" 3 | 4 | #include 5 | 6 | void nmea_zero_GPGGA(nmeaGPGGA *pack) 7 | { 8 | memset(pack, 0, sizeof(nmeaGPGGA)); 9 | nmea_time_now(&pack->utc); 10 | pack->ns = 'N'; 11 | pack->ew = 'E'; 12 | pack->elv_units = 'M'; 13 | pack->diff_units = 'M'; 14 | } 15 | 16 | void nmea_zero_GPGSA(nmeaGPGSA *pack) 17 | { 18 | memset(pack, 0, sizeof(nmeaGPGSA)); 19 | pack->fix_mode = 'A'; 20 | pack->fix_type = NMEA_FIX_BAD; 21 | } 22 | 23 | void nmea_zero_GPGSV(nmeaGPGSV *pack) 24 | { 25 | memset(pack, 0, sizeof(nmeaGPGSV)); 26 | } 27 | 28 | void nmea_zero_GPRMC(nmeaGPRMC *pack) 29 | { 30 | memset(pack, 0, sizeof(nmeaGPRMC)); 31 | nmea_time_now(&pack->utc); 32 | pack->status = 'V'; 33 | pack->ns = 'N'; 34 | pack->ew = 'E'; 35 | pack->declin_ew = 'E'; 36 | } 37 | 38 | void nmea_zero_GPVTG(nmeaGPVTG *pack) 39 | { 40 | memset(pack, 0, sizeof(nmeaGPVTG)); 41 | pack->dir_t = 'T'; 42 | pack->dec_m = 'M'; 43 | pack->spn_n = 'N'; 44 | pack->spk_k = 'K'; 45 | } 46 | 47 | void nmea_zero_GNGGA(nmeaGNGGA *pack) 48 | { 49 | memset(pack, 0, sizeof(nmeaGNGGA)); 50 | nmea_time_now(&pack->utc); 51 | pack->uLat = 'N'; 52 | pack->uLon = 'E'; 53 | pack->uMsl = 'M'; 54 | pack->uSep = 'M'; 55 | } 56 | 57 | void nmea_zero_GNRMC(nmeaGNRMC *pack) 58 | { 59 | memset(pack, 0, sizeof(nmeaGNRMC)); 60 | nmea_time_now(&pack->utc); 61 | pack->status = 'V'; 62 | pack->uLat = 'N'; 63 | pack->uLon = 'E'; 64 | pack->mvE = 'E'; 65 | } 66 | 67 | void nmea_zero_GNVTG(nmeaGNVTG *pack) 68 | { 69 | memset(pack, 0, sizeof(nmeaGNVTG)); 70 | pack->T = 'T'; 71 | pack->M = 'M'; 72 | pack->N = 'N'; 73 | pack->K = 'K'; 74 | } 75 | 76 | void nmea_zero_GNZDA(nmeaGNZDA *pack) 77 | { 78 | memset(pack, 0, sizeof(nmeaGNZDA)); 79 | nmea_time_now(&pack->utc); 80 | } 81 | 82 | void nmea_zero_GNGLL(nmeaGNGLL *pack) 83 | { 84 | memset(pack, 0, sizeof(nmeaGNGLL)); 85 | nmea_time_now(&pack->utc); 86 | pack->Value = 'V'; 87 | pack->uLat = 'N'; 88 | pack->uLon = 'E'; 89 | } 90 | 91 | void nmea_zero_BDGSA(nmeaBDGSA *pack) 92 | { 93 | memset(pack, 0, sizeof(nmeaBDGSA)); 94 | pack->Smode = 'A'; 95 | pack->FS = NMEA_FIX_BAD; 96 | } 97 | 98 | void nmea_zero_GPTXT(nmeaGPTXT *pack) 99 | { 100 | memset(pack, 0, sizeof(nmeaGPTXT)); 101 | 102 | } 103 | -------------------------------------------------------------------------------- /User/nmea_decode/include/nmea/gmath.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * NMEA library 4 | * URL: http://nmea.sourceforge.net 5 | * Author: Tim (xtimor@gmail.com) 6 | * Licence: http://www.gnu.org/licenses/lgpl.html 7 | * $Id: gmath.h 17 2008-03-11 11:56:11Z xtimor $ 8 | * 9 | */ 10 | 11 | #ifndef __NMEA_GMATH_H__ 12 | #define __NMEA_GMATH_H__ 13 | 14 | #include "info.h" 15 | 16 | #define NMEA_PI (3.141592653589793) /**< PI value */ 17 | #define NMEA_PI180 (NMEA_PI / 180) /**< PI division by 180 */ 18 | #define NMEA_EARTHRADIUS_KM (6378) /**< Earth's mean radius in km */ 19 | #define NMEA_EARTHRADIUS_M (NMEA_EARTHRADIUS_KM * 1000) /**< Earth's mean radius in m */ 20 | #define NMEA_EARTH_SEMIMAJORAXIS_M (6378137.0) /**< Earth's semi-major axis in m according WGS84 */ 21 | #define NMEA_EARTH_SEMIMAJORAXIS_KM (NMEA_EARTHMAJORAXIS_KM / 1000) /**< Earth's semi-major axis in km according WGS 84 */ 22 | #define NMEA_EARTH_FLATTENING (1 / 298.257223563) /**< Earth's flattening according WGS 84 */ 23 | #define NMEA_DOP_FACTOR (5) /**< Factor for translating DOP to meters */ 24 | 25 | #ifdef __cplusplus 26 | extern "C" { 27 | #endif 28 | 29 | /* 30 | * degree VS radian 31 | */ 32 | 33 | double nmea_degree2radian(double val); 34 | double nmea_radian2degree(double val); 35 | 36 | /* 37 | * NDEG (NMEA degree) 38 | */ 39 | 40 | double nmea_ndeg2degree(double val); 41 | double nmea_degree2ndeg(double val); 42 | 43 | double nmea_ndeg2radian(double val); 44 | double nmea_radian2ndeg(double val); 45 | 46 | /* 47 | * DOP 48 | */ 49 | 50 | double nmea_calc_pdop(double hdop, double vdop); 51 | double nmea_dop2meters(double dop); 52 | double nmea_meters2dop(double meters); 53 | 54 | /* 55 | * positions work 56 | */ 57 | 58 | void nmea_info2pos(const nmeaINFO *info, nmeaPOS *pos); 59 | void nmea_pos2info(const nmeaPOS *pos, nmeaINFO *info); 60 | 61 | double nmea_distance( 62 | const nmeaPOS *from_pos, 63 | const nmeaPOS *to_pos 64 | ); 65 | 66 | double nmea_distance_ellipsoid( 67 | const nmeaPOS *from_pos, 68 | const nmeaPOS *to_pos, 69 | double *from_azimuth, 70 | double *to_azimuth 71 | ); 72 | 73 | int nmea_move_horz( 74 | const nmeaPOS *start_pos, 75 | nmeaPOS *end_pos, 76 | double azimuth, 77 | double distance 78 | ); 79 | 80 | int nmea_move_horz_ellipsoid( 81 | const nmeaPOS *start_pos, 82 | nmeaPOS *end_pos, 83 | double azimuth, 84 | double distance, 85 | double *end_azimuth 86 | ); 87 | 88 | #ifdef __cplusplus 89 | } 90 | #endif 91 | 92 | #endif /* __NMEA_GMATH_H__ */ 93 | -------------------------------------------------------------------------------- /Output/gps_config.d: -------------------------------------------------------------------------------- 1 | ..\..\output\gps_config.o: ..\..\User\Bsp\gps\gps_config.c 2 | ..\..\output\gps_config.o: ..\..\User\Bsp\./gps/gps_config.h 3 | ..\..\output\gps_config.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\gps_config.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\gps_config.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\gps_config.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\gps_config.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\gps_config.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\gps_config.o: ..\..\Libraries\FWlib\inc\misc.h 32 | ..\..\output\gps_config.o: ..\..\User\nmea_decode\include\nmea/nmea.h 33 | ..\..\output\gps_config.o: ..\..\User\nmea_decode\include\nmea/./config.h 34 | ..\..\output\gps_config.o: D:\mdk\ARM\ARMCC\Bin\..\include\assert.h 35 | ..\..\output\gps_config.o: ..\..\User\nmea_decode\include\nmea/./units.h 36 | ..\..\output\gps_config.o: ..\..\User\nmea_decode\include\nmea/./gmath.h 37 | ..\..\output\gps_config.o: ..\..\User\nmea_decode\include\nmea/./info.h 38 | ..\..\output\gps_config.o: ..\..\User\nmea_decode\include\nmea/./time.h 39 | ..\..\output\gps_config.o: ..\..\User\nmea_decode\include\nmea/./sentence.h 40 | ..\..\output\gps_config.o: ..\..\User\nmea_decode\include\nmea/./generate.h 41 | ..\..\output\gps_config.o: ..\..\User\nmea_decode\include\nmea/./generator.h 42 | ..\..\output\gps_config.o: ..\..\User\nmea_decode\include\nmea/./parse.h 43 | ..\..\output\gps_config.o: ..\..\User\nmea_decode\include\nmea/./parser.h 44 | ..\..\output\gps_config.o: ..\..\User\nmea_decode\include\nmea/./context.h 45 | ..\..\output\gps_config.o: ..\..\User\usart1\bsp_usart1.h 46 | ..\..\output\gps_config.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdio.h 47 | -------------------------------------------------------------------------------- /User/led/bsp_led.h: -------------------------------------------------------------------------------- 1 | #ifndef __LED_H 2 | #define __LED_H 3 | 4 | 5 | #include "stm32f10x.h" 6 | 7 | 8 | /* 定义LED连接的GPIO端口, 用户只需要修改下面的代码即可改变控制的LED引脚 */ 9 | // R-红色 10 | #define LED1_GPIO_PORT GPIOB /* GPIO端口 */ 11 | #define LED1_GPIO_CLK RCC_APB2Periph_GPIOB /* GPIO端口时钟 */ 12 | #define LED1_GPIO_PIN GPIO_Pin_5 /* 连接到SCL时钟线的GPIO */ 13 | 14 | // G-绿色 15 | #define LED2_GPIO_PORT GPIOB /* GPIO端口 */ 16 | #define LED2_GPIO_CLK RCC_APB2Periph_GPIOB /* GPIO端口时钟 */ 17 | #define LED2_GPIO_PIN GPIO_Pin_0 /* 连接到SCL时钟线的GPIO */ 18 | 19 | // B-蓝色 20 | #define LED3_GPIO_PORT GPIOB /* GPIO端口 */ 21 | #define LED3_GPIO_CLK RCC_APB2Periph_GPIOB /* GPIO端口时钟 */ 22 | #define LED3_GPIO_PIN GPIO_Pin_1 /* 连接到SCL时钟线的GPIO */ 23 | 24 | 25 | /** the macro definition to trigger the led on or off 26 | * 1 - off 27 | *0 - on 28 | */ 29 | #define ON 0 30 | #define OFF 1 31 | 32 | /* 使用标准的固件库控制IO*/ 33 | #define LED1(a) if (a) \ 34 | GPIO_SetBits(LED1_GPIO_PORT,LED1_GPIO_PIN);\ 35 | else \ 36 | GPIO_ResetBits(LED1_GPIO_PORT,LED1_GPIO_PIN) 37 | 38 | #define LED2(a) if (a) \ 39 | GPIO_SetBits(LED2_GPIO_PORT,LED2_GPIO_PIN);\ 40 | else \ 41 | GPIO_ResetBits(LED2_GPIO_PORT,LED2_GPIO_PIN) 42 | 43 | #define LED3(a) if (a) \ 44 | GPIO_SetBits(LED3_GPIO_PORT,LED3_GPIO_PIN);\ 45 | else \ 46 | GPIO_ResetBits(LED3_GPIO_PORT,LED3_GPIO_PIN) 47 | 48 | 49 | /* 直接操作寄存器的方法控制IO */ 50 | #define digitalHi(p,i) {p->BSRR=i;} //输出为高电平 51 | #define digitalLo(p,i) {p->BRR=i;} //输出低电平 52 | #define digitalToggle(p,i) {p->ODR ^=i;} //输出反转状态 53 | 54 | 55 | /* 定义控制IO的宏 */ 56 | #define LED1_TOGGLE digitalToggle(LED1_GPIO_PORT,LED1_GPIO_PIN) 57 | #define LED1_OFF digitalHi(LED1_GPIO_PORT,LED1_GPIO_PIN) 58 | #define LED1_ON digitalLo(LED1_GPIO_PORT,LED1_GPIO_PIN) 59 | 60 | #define LED2_TOGGLE digitalToggle(LED2_GPIO_PORT,LED2_GPIO_PIN) 61 | #define LED2_OFF digitalHi(LED2_GPIO_PORT,LED2_GPIO_PIN) 62 | #define LED2_ON digitalLo(LED2_GPIO_PORT,LED2_GPIO_PIN) 63 | 64 | #define LED3_TOGGLE digitalToggle(LED3_GPIO_PORT,LED3_GPIO_PIN) 65 | #define LED3_OFF digitalHi(LED3_GPIO_PORT,LED3_GPIO_PIN) 66 | #define LED3_ON digitalLo(LED3_GPIO_PORT,LED3_GPIO_PIN) 67 | 68 | /* 基本混色,后面高级用法使用PWM可混出全彩颜色,且效果更好 */ 69 | 70 | //红 71 | #define LED_RED \ 72 | LED1_ON;\ 73 | LED2_OFF\ 74 | LED3_OFF 75 | 76 | //绿 77 | #define LED_GREEN \ 78 | LED1_OFF;\ 79 | LED2_ON\ 80 | LED3_OFF 81 | 82 | //蓝 83 | #define LED_BLUE \ 84 | LED1_OFF;\ 85 | LED2_OFF\ 86 | LED3_ON 87 | 88 | 89 | //黄(红+绿) 90 | #define LED_YELLOW \ 91 | LED1_ON;\ 92 | LED2_ON\ 93 | LED3_OFF 94 | //紫(红+蓝) 95 | #define LED_PURPLE \ 96 | LED1_ON;\ 97 | LED2_OFF\ 98 | LED3_ON 99 | 100 | //青(绿+蓝) 101 | #define LED_CYAN \ 102 | LED1_OFF;\ 103 | LED2_ON\ 104 | LED3_ON 105 | 106 | //白(红+绿+蓝) 107 | #define LED_WHITE \ 108 | LED1_ON;\ 109 | LED2_ON\ 110 | LED3_ON 111 | 112 | //黑(全部关闭) 113 | #define LED_RGBOFF \ 114 | LED1_OFF;\ 115 | LED2_OFF\ 116 | LED3_OFF 117 | 118 | void LED_GPIO_Config(void); 119 | 120 | #endif /* __LED_H */ 121 | -------------------------------------------------------------------------------- /Libraries/FWlib/inc/stm32f10x_wwdg.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file stm32f10x_wwdg.h 4 | * @author MCD Application Team 5 | * @version V3.5.0 6 | * @date 11-March-2011 7 | * @brief This file contains all the functions prototypes for the WWDG firmware 8 | * library. 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 13 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE 14 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY 15 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING 16 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE 17 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 18 | * 19 | *

© COPYRIGHT 2011 STMicroelectronics

20 | ****************************************************************************** 21 | */ 22 | 23 | /* Define to prevent recursive inclusion -------------------------------------*/ 24 | #ifndef __STM32F10x_WWDG_H 25 | #define __STM32F10x_WWDG_H 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | /* Includes ------------------------------------------------------------------*/ 32 | #include "stm32f10x.h" 33 | 34 | /** @addtogroup STM32F10x_StdPeriph_Driver 35 | * @{ 36 | */ 37 | 38 | /** @addtogroup WWDG 39 | * @{ 40 | */ 41 | 42 | /** @defgroup WWDG_Exported_Types 43 | * @{ 44 | */ 45 | 46 | /** 47 | * @} 48 | */ 49 | 50 | /** @defgroup WWDG_Exported_Constants 51 | * @{ 52 | */ 53 | 54 | /** @defgroup WWDG_Prescaler 55 | * @{ 56 | */ 57 | 58 | #define WWDG_Prescaler_1 ((uint32_t)0x00000000) 59 | #define WWDG_Prescaler_2 ((uint32_t)0x00000080) 60 | #define WWDG_Prescaler_4 ((uint32_t)0x00000100) 61 | #define WWDG_Prescaler_8 ((uint32_t)0x00000180) 62 | #define IS_WWDG_PRESCALER(PRESCALER) (((PRESCALER) == WWDG_Prescaler_1) || \ 63 | ((PRESCALER) == WWDG_Prescaler_2) || \ 64 | ((PRESCALER) == WWDG_Prescaler_4) || \ 65 | ((PRESCALER) == WWDG_Prescaler_8)) 66 | #define IS_WWDG_WINDOW_VALUE(VALUE) ((VALUE) <= 0x7F) 67 | #define IS_WWDG_COUNTER(COUNTER) (((COUNTER) >= 0x40) && ((COUNTER) <= 0x7F)) 68 | 69 | /** 70 | * @} 71 | */ 72 | 73 | /** 74 | * @} 75 | */ 76 | 77 | /** @defgroup WWDG_Exported_Macros 78 | * @{ 79 | */ 80 | /** 81 | * @} 82 | */ 83 | 84 | /** @defgroup WWDG_Exported_Functions 85 | * @{ 86 | */ 87 | 88 | void WWDG_DeInit(void); 89 | void WWDG_SetPrescaler(uint32_t WWDG_Prescaler); 90 | void WWDG_SetWindowValue(uint8_t WindowValue); 91 | void WWDG_EnableIT(void); 92 | void WWDG_SetCounter(uint8_t Counter); 93 | void WWDG_Enable(uint8_t Counter); 94 | FlagStatus WWDG_GetFlagStatus(void); 95 | void WWDG_ClearFlag(void); 96 | 97 | #ifdef __cplusplus 98 | } 99 | #endif 100 | 101 | #endif /* __STM32F10x_WWDG_H */ 102 | 103 | /** 104 | * @} 105 | */ 106 | 107 | /** 108 | * @} 109 | */ 110 | 111 | /** 112 | * @} 113 | */ 114 | 115 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ 116 | -------------------------------------------------------------------------------- /User/stm32f10x_conf.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file Project/STM32F10x_StdPeriph_Template/stm32f10x_conf.h 4 | * @author MCD Application Team 5 | * @version V3.5.0 6 | * @date 08-April-2011 7 | * @brief Library configuration file. 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE 13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY 14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING 15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE 16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 17 | * 18 | *

© COPYRIGHT 2011 STMicroelectronics

19 | ****************************************************************************** 20 | */ 21 | 22 | /* Define to prevent recursive inclusion -------------------------------------*/ 23 | #ifndef __STM32F10x_CONF_H 24 | #define __STM32F10x_CONF_H 25 | 26 | /* Includes ------------------------------------------------------------------*/ 27 | /* Uncomment/Comment the line below to enable/disable peripheral header file inclusion */ 28 | #include "stm32f10x_adc.h" 29 | #include "stm32f10x_bkp.h" 30 | #include "stm32f10x_can.h" 31 | #include "stm32f10x_cec.h" 32 | #include "stm32f10x_crc.h" 33 | #include "stm32f10x_dac.h" 34 | #include "stm32f10x_dbgmcu.h" 35 | #include "stm32f10x_dma.h" 36 | #include "stm32f10x_exti.h" 37 | #include "stm32f10x_flash.h" 38 | #include "stm32f10x_fsmc.h" 39 | #include "stm32f10x_gpio.h" 40 | #include "stm32f10x_i2c.h" 41 | #include "stm32f10x_iwdg.h" 42 | #include "stm32f10x_pwr.h" 43 | #include "stm32f10x_rcc.h" 44 | #include "stm32f10x_rtc.h" 45 | #include "stm32f10x_sdio.h" 46 | #include "stm32f10x_spi.h" 47 | #include "stm32f10x_tim.h" 48 | #include "stm32f10x_usart.h" 49 | #include "stm32f10x_wwdg.h" 50 | #include "misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */ 51 | /* Exported types ------------------------------------------------------------*/ 52 | /* Exported constants --------------------------------------------------------*/ 53 | /* Uncomment the line below to expanse the "assert_param" macro in the 54 | Standard Peripheral Library drivers code */ 55 | /* #define USE_FULL_ASSERT 1 */ 56 | 57 | /* Exported macro ------------------------------------------------------------*/ 58 | #ifdef USE_FULL_ASSERT 59 | 60 | /** 61 | * @brief The assert_param macro is used for function's parameters check. 62 | * @param expr: If expr is false, it calls assert_failed function which reports 63 | * the name of the source file and the source line number of the call 64 | * that failed. If expr is true, it returns no value. 65 | * @retval None 66 | */ 67 | #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__)) 68 | /* Exported functions ------------------------------------------------------- */ 69 | void assert_failed(uint8_t* file, uint32_t line); 70 | #else 71 | #define assert_param(expr) ((void)0) 72 | #endif /* USE_FULL_ASSERT */ 73 | 74 | #endif /* __STM32F10x_CONF_H */ 75 | 76 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ 77 | -------------------------------------------------------------------------------- /Output/bsp_ec20.d: -------------------------------------------------------------------------------- 1 | ..\..\output\bsp_ec20.o: ..\..\User\ec20\bsp_ec20.c 2 | ..\..\output\bsp_ec20.o: ..\..\User\ec20\bsp_ec20.h 3 | ..\..\output\bsp_ec20.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\bsp_ec20.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\bsp_ec20.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\bsp_ec20.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\bsp_ec20.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\bsp_ec20.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\bsp_ec20.o: ..\..\Libraries\FWlib\inc\misc.h 32 | ..\..\output\bsp_ec20.o: ..\..\User\usart1\bsp_usart1.h 33 | ..\..\output\bsp_ec20.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdio.h 34 | ..\..\output\bsp_ec20.o: D:\mdk\ARM\ARMCC\Bin\..\include\string.h 35 | ..\..\output\bsp_ec20.o: ..\..\User\usart2\bsp_usart2.h 36 | ..\..\output\bsp_ec20.o: D:\mdk\ARM\ARMCC\Bin\..\include\math.h 37 | ..\..\output\bsp_ec20.o: ..\..\User\systick\bsp_systick.h 38 | ..\..\output\bsp_ec20.o: ..\..\User\dht11\bsp_dht11.h 39 | ..\..\output\bsp_ec20.o: ..\..\User\nmea_decode\include\nmea/nmea.h 40 | ..\..\output\bsp_ec20.o: ..\..\User\nmea_decode\include\nmea/./config.h 41 | ..\..\output\bsp_ec20.o: D:\mdk\ARM\ARMCC\Bin\..\include\assert.h 42 | ..\..\output\bsp_ec20.o: ..\..\User\nmea_decode\include\nmea/./units.h 43 | ..\..\output\bsp_ec20.o: ..\..\User\nmea_decode\include\nmea/./gmath.h 44 | ..\..\output\bsp_ec20.o: ..\..\User\nmea_decode\include\nmea/./info.h 45 | ..\..\output\bsp_ec20.o: ..\..\User\nmea_decode\include\nmea/./time.h 46 | ..\..\output\bsp_ec20.o: ..\..\User\nmea_decode\include\nmea/./sentence.h 47 | ..\..\output\bsp_ec20.o: ..\..\User\nmea_decode\include\nmea/./generate.h 48 | ..\..\output\bsp_ec20.o: ..\..\User\nmea_decode\include\nmea/./generator.h 49 | ..\..\output\bsp_ec20.o: ..\..\User\nmea_decode\include\nmea/./parse.h 50 | ..\..\output\bsp_ec20.o: ..\..\User\nmea_decode\include\nmea/./parser.h 51 | ..\..\output\bsp_ec20.o: ..\..\User\nmea_decode\include\nmea/./context.h 52 | ..\..\output\bsp_ec20.o: ..\..\User\nema_decode_test.h 53 | ..\..\output\bsp_ec20.o: ..\..\User\stm32f10x_it.h 54 | -------------------------------------------------------------------------------- /Output/stm32f10x_it.d: -------------------------------------------------------------------------------- 1 | ..\..\output\stm32f10x_it.o: ..\..\User\stm32f10x_it.c 2 | ..\..\output\stm32f10x_it.o: ..\..\User\stm32f10x_it.h 3 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\stm32f10x_it.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\stm32f10x_it.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\stm32f10x_it.o: ..\..\Libraries\FWlib\inc\misc.h 32 | ..\..\output\stm32f10x_it.o: ..\..\User\usart1\bsp_usart1.h 33 | ..\..\output\stm32f10x_it.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdio.h 34 | ..\..\output\stm32f10x_it.o: ..\..\User\systick\bsp_systick.h 35 | ..\..\output\stm32f10x_it.o: ..\..\User\usart2\bsp_usart2.h 36 | ..\..\output\stm32f10x_it.o: ..\..\User\tim\bsp_tim.h 37 | ..\..\output\stm32f10x_it.o: ..\..\User\Bsp\./gps/gps_config.h 38 | ..\..\output\stm32f10x_it.o: ..\..\User\nmea_decode\include\nmea/nmea.h 39 | ..\..\output\stm32f10x_it.o: ..\..\User\nmea_decode\include\nmea/./config.h 40 | ..\..\output\stm32f10x_it.o: D:\mdk\ARM\ARMCC\Bin\..\include\assert.h 41 | ..\..\output\stm32f10x_it.o: ..\..\User\nmea_decode\include\nmea/./units.h 42 | ..\..\output\stm32f10x_it.o: ..\..\User\nmea_decode\include\nmea/./gmath.h 43 | ..\..\output\stm32f10x_it.o: ..\..\User\nmea_decode\include\nmea/./info.h 44 | ..\..\output\stm32f10x_it.o: ..\..\User\nmea_decode\include\nmea/./time.h 45 | ..\..\output\stm32f10x_it.o: ..\..\User\nmea_decode\include\nmea/./sentence.h 46 | ..\..\output\stm32f10x_it.o: ..\..\User\nmea_decode\include\nmea/./generate.h 47 | ..\..\output\stm32f10x_it.o: ..\..\User\nmea_decode\include\nmea/./generator.h 48 | ..\..\output\stm32f10x_it.o: ..\..\User\nmea_decode\include\nmea/./parse.h 49 | ..\..\output\stm32f10x_it.o: ..\..\User\nmea_decode\include\nmea/./parser.h 50 | ..\..\output\stm32f10x_it.o: ..\..\User\nmea_decode\include\nmea/./context.h 51 | ..\..\output\stm32f10x_it.o: ..\..\User\Infrared_beam\bsp_exti.h 52 | ..\..\output\stm32f10x_it.o: ..\..\User\led\bsp_led.h 53 | -------------------------------------------------------------------------------- /Output/main.d: -------------------------------------------------------------------------------- 1 | ..\..\output\main.o: ..\..\User\main.c 2 | ..\..\output\main.o: ..\..\User\led\bsp_led.h 3 | ..\..\output\main.o: ..\..\Libraries\CMSIS\stm32f10x.h 4 | ..\..\output\main.o: ..\..\Libraries\CMSIS\core_cm3.h 5 | ..\..\output\main.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 6 | ..\..\output\main.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 7 | ..\..\output\main.o: ..\..\User\stm32f10x_conf.h 8 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 9 | ..\..\output\main.o: ..\..\Libraries\CMSIS\stm32f10x.h 10 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 11 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 12 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 13 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 14 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 15 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 16 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 17 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 18 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 19 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 20 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 21 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 22 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 23 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 24 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 25 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 26 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 27 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 28 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 29 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 30 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 31 | ..\..\output\main.o: ..\..\Libraries\FWlib\inc\misc.h 32 | ..\..\output\main.o: ..\..\User\usart1\bsp_usart1.h 33 | ..\..\output\main.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdio.h 34 | ..\..\output\main.o: D:\mdk\ARM\ARMCC\Bin\..\include\string.h 35 | ..\..\output\main.o: ..\..\User\usart2\bsp_usart2.h 36 | ..\..\output\main.o: ..\..\User\ec20\bsp_ec20.h 37 | ..\..\output\main.o: D:\mdk\ARM\ARMCC\Bin\..\include\math.h 38 | ..\..\output\main.o: ..\..\User\systick\bsp_systick.h 39 | ..\..\output\main.o: ..\..\User\dam\bsp_dma.h 40 | ..\..\output\main.o: ..\..\User\tim\bsp_tim.h 41 | ..\..\output\main.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdlib.h 42 | ..\..\output\main.o: ..\..\User\Bsp\./gps/gps_config.h 43 | ..\..\output\main.o: ..\..\User\nmea_decode\include\nmea/nmea.h 44 | ..\..\output\main.o: ..\..\User\nmea_decode\include\nmea/./config.h 45 | ..\..\output\main.o: D:\mdk\ARM\ARMCC\Bin\..\include\assert.h 46 | ..\..\output\main.o: ..\..\User\nmea_decode\include\nmea/./units.h 47 | ..\..\output\main.o: ..\..\User\nmea_decode\include\nmea/./gmath.h 48 | ..\..\output\main.o: ..\..\User\nmea_decode\include\nmea/./info.h 49 | ..\..\output\main.o: ..\..\User\nmea_decode\include\nmea/./time.h 50 | ..\..\output\main.o: ..\..\User\nmea_decode\include\nmea/./sentence.h 51 | ..\..\output\main.o: ..\..\User\nmea_decode\include\nmea/./generate.h 52 | ..\..\output\main.o: ..\..\User\nmea_decode\include\nmea/./generator.h 53 | ..\..\output\main.o: ..\..\User\nmea_decode\include\nmea/./parse.h 54 | ..\..\output\main.o: ..\..\User\nmea_decode\include\nmea/./parser.h 55 | ..\..\output\main.o: ..\..\User\nmea_decode\include\nmea/./context.h 56 | ..\..\output\main.o: ..\..\User\nema_decode_test.h 57 | ..\..\output\main.o: ..\..\User\./dht11/bsp_dht11.h 58 | ..\..\output\main.o: ..\..\User\Infrared_beam\bsp_exti.h 59 | ..\..\output\main.o: ..\..\User\stm32f10x_it.h 60 | ..\..\output\main.o: ..\..\User\mlx90614\mlx90614.h 61 | ..\..\output\main.o: ..\..\User\oled\OLED_I2C.h 62 | -------------------------------------------------------------------------------- /Libraries/FWlib/src/stm32f10x_crc.c: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file stm32f10x_crc.c 4 | * @author MCD Application Team 5 | * @version V3.5.0 6 | * @date 11-March-2011 7 | * @brief This file provides all the CRC firmware functions. 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE 13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY 14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING 15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE 16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 17 | * 18 | *

© COPYRIGHT 2011 STMicroelectronics

19 | ****************************************************************************** 20 | */ 21 | 22 | /* Includes ------------------------------------------------------------------*/ 23 | #include "stm32f10x_crc.h" 24 | 25 | /** @addtogroup STM32F10x_StdPeriph_Driver 26 | * @{ 27 | */ 28 | 29 | /** @defgroup CRC 30 | * @brief CRC driver modules 31 | * @{ 32 | */ 33 | 34 | /** @defgroup CRC_Private_TypesDefinitions 35 | * @{ 36 | */ 37 | 38 | /** 39 | * @} 40 | */ 41 | 42 | /** @defgroup CRC_Private_Defines 43 | * @{ 44 | */ 45 | 46 | /** 47 | * @} 48 | */ 49 | 50 | /** @defgroup CRC_Private_Macros 51 | * @{ 52 | */ 53 | 54 | /** 55 | * @} 56 | */ 57 | 58 | /** @defgroup CRC_Private_Variables 59 | * @{ 60 | */ 61 | 62 | /** 63 | * @} 64 | */ 65 | 66 | /** @defgroup CRC_Private_FunctionPrototypes 67 | * @{ 68 | */ 69 | 70 | /** 71 | * @} 72 | */ 73 | 74 | /** @defgroup CRC_Private_Functions 75 | * @{ 76 | */ 77 | 78 | /** 79 | * @brief Resets the CRC Data register (DR). 80 | * @param None 81 | * @retval None 82 | */ 83 | void CRC_ResetDR(void) 84 | { 85 | /* Reset CRC generator */ 86 | CRC->CR = CRC_CR_RESET; 87 | } 88 | 89 | /** 90 | * @brief Computes the 32-bit CRC of a given data word(32-bit). 91 | * @param Data: data word(32-bit) to compute its CRC 92 | * @retval 32-bit CRC 93 | */ 94 | uint32_t CRC_CalcCRC(uint32_t Data) 95 | { 96 | CRC->DR = Data; 97 | 98 | return (CRC->DR); 99 | } 100 | 101 | /** 102 | * @brief Computes the 32-bit CRC of a given buffer of data word(32-bit). 103 | * @param pBuffer: pointer to the buffer containing the data to be computed 104 | * @param BufferLength: length of the buffer to be computed 105 | * @retval 32-bit CRC 106 | */ 107 | uint32_t CRC_CalcBlockCRC(uint32_t pBuffer[], uint32_t BufferLength) 108 | { 109 | uint32_t index = 0; 110 | 111 | for(index = 0; index < BufferLength; index++) 112 | { 113 | CRC->DR = pBuffer[index]; 114 | } 115 | return (CRC->DR); 116 | } 117 | 118 | /** 119 | * @brief Returns the current CRC value. 120 | * @param None 121 | * @retval 32-bit CRC 122 | */ 123 | uint32_t CRC_GetCRC(void) 124 | { 125 | return (CRC->DR); 126 | } 127 | 128 | /** 129 | * @brief Stores a 8-bit data in the Independent Data(ID) register. 130 | * @param IDValue: 8-bit value to be stored in the ID register 131 | * @retval None 132 | */ 133 | void CRC_SetIDRegister(uint8_t IDValue) 134 | { 135 | CRC->IDR = IDValue; 136 | } 137 | 138 | /** 139 | * @brief Returns the 8-bit data stored in the Independent Data(ID) register 140 | * @param None 141 | * @retval 8-bit value of the ID register 142 | */ 143 | uint8_t CRC_GetIDRegister(void) 144 | { 145 | return (CRC->IDR); 146 | } 147 | 148 | /** 149 | * @} 150 | */ 151 | 152 | /** 153 | * @} 154 | */ 155 | 156 | /** 157 | * @} 158 | */ 159 | 160 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ 161 | -------------------------------------------------------------------------------- /Output/nema_decode_test.d: -------------------------------------------------------------------------------- 1 | ..\..\output\nema_decode_test.o: ..\..\User\nema_decode_test.c 2 | ..\..\output\nema_decode_test.o: ..\..\Libraries\CMSIS\stm32f10x.h 3 | ..\..\output\nema_decode_test.o: ..\..\Libraries\CMSIS\core_cm3.h 4 | ..\..\output\nema_decode_test.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdint.h 5 | ..\..\output\nema_decode_test.o: ..\..\Libraries\CMSIS\system_stm32f10x.h 6 | ..\..\output\nema_decode_test.o: ..\..\User\stm32f10x_conf.h 7 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_adc.h 8 | ..\..\output\nema_decode_test.o: ..\..\Libraries\CMSIS\stm32f10x.h 9 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_bkp.h 10 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_can.h 11 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_cec.h 12 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_crc.h 13 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_dac.h 14 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_dbgmcu.h 15 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_dma.h 16 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_exti.h 17 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_flash.h 18 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_fsmc.h 19 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_gpio.h 20 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_i2c.h 21 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_iwdg.h 22 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_pwr.h 23 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_rcc.h 24 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_rtc.h 25 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_sdio.h 26 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_spi.h 27 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_tim.h 28 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_usart.h 29 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\stm32f10x_wwdg.h 30 | ..\..\output\nema_decode_test.o: ..\..\Libraries\FWlib\inc\misc.h 31 | ..\..\output\nema_decode_test.o: ..\..\User\usart1\bsp_usart1.h 32 | ..\..\output\nema_decode_test.o: D:\mdk\ARM\ARMCC\Bin\..\include\stdio.h 33 | ..\..\output\nema_decode_test.o: ..\..\User\Bsp\./gps/gps_config.h 34 | ..\..\output\nema_decode_test.o: ..\..\User\nmea_decode\include\nmea/nmea.h 35 | ..\..\output\nema_decode_test.o: ..\..\User\nmea_decode\include\nmea/./config.h 36 | ..\..\output\nema_decode_test.o: D:\mdk\ARM\ARMCC\Bin\..\include\assert.h 37 | ..\..\output\nema_decode_test.o: ..\..\User\nmea_decode\include\nmea/./units.h 38 | ..\..\output\nema_decode_test.o: ..\..\User\nmea_decode\include\nmea/./gmath.h 39 | ..\..\output\nema_decode_test.o: ..\..\User\nmea_decode\include\nmea/./info.h 40 | ..\..\output\nema_decode_test.o: ..\..\User\nmea_decode\include\nmea/./time.h 41 | ..\..\output\nema_decode_test.o: ..\..\User\nmea_decode\include\nmea/./sentence.h 42 | ..\..\output\nema_decode_test.o: ..\..\User\nmea_decode\include\nmea/./generate.h 43 | ..\..\output\nema_decode_test.o: ..\..\User\nmea_decode\include\nmea/./generator.h 44 | ..\..\output\nema_decode_test.o: ..\..\User\nmea_decode\include\nmea/./parse.h 45 | ..\..\output\nema_decode_test.o: ..\..\User\nmea_decode\include\nmea/./parser.h 46 | ..\..\output\nema_decode_test.o: ..\..\User\nmea_decode\include\nmea/./context.h 47 | ..\..\output\nema_decode_test.o: ..\..\User\nema_decode_test.h 48 | ..\..\output\nema_decode_test.o: ..\..\User\ec20\bsp_ec20.h 49 | ..\..\output\nema_decode_test.o: D:\mdk\ARM\ARMCC\Bin\..\include\string.h 50 | ..\..\output\nema_decode_test.o: ..\..\User\usart2\bsp_usart2.h 51 | ..\..\output\nema_decode_test.o: D:\mdk\ARM\ARMCC\Bin\..\include\math.h 52 | ..\..\output\nema_decode_test.o: ..\..\User\systick\bsp_systick.h 53 | ..\..\output\nema_decode_test.o: ..\..\User\led\bsp_led.h 54 | ..\..\output\nema_decode_test.o: ..\..\User\mlx90614\mlx90614.h 55 | ..\..\output\nema_decode_test.o: ..\..\User\oled\OLED_I2C.h 56 | -------------------------------------------------------------------------------- /Libraries/FWlib/inc/stm32f10x_dbgmcu.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file stm32f10x_dbgmcu.h 4 | * @author MCD Application Team 5 | * @version V3.5.0 6 | * @date 11-March-2011 7 | * @brief This file contains all the functions prototypes for the DBGMCU 8 | * firmware library. 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 13 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE 14 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY 15 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING 16 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE 17 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 18 | * 19 | *

© COPYRIGHT 2011 STMicroelectronics

20 | ****************************************************************************** 21 | */ 22 | 23 | /* Define to prevent recursive inclusion -------------------------------------*/ 24 | #ifndef __STM32F10x_DBGMCU_H 25 | #define __STM32F10x_DBGMCU_H 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | /* Includes ------------------------------------------------------------------*/ 32 | #include "stm32f10x.h" 33 | 34 | /** @addtogroup STM32F10x_StdPeriph_Driver 35 | * @{ 36 | */ 37 | 38 | /** @addtogroup DBGMCU 39 | * @{ 40 | */ 41 | 42 | /** @defgroup DBGMCU_Exported_Types 43 | * @{ 44 | */ 45 | 46 | /** 47 | * @} 48 | */ 49 | 50 | /** @defgroup DBGMCU_Exported_Constants 51 | * @{ 52 | */ 53 | 54 | #define DBGMCU_SLEEP ((uint32_t)0x00000001) 55 | #define DBGMCU_STOP ((uint32_t)0x00000002) 56 | #define DBGMCU_STANDBY ((uint32_t)0x00000004) 57 | #define DBGMCU_IWDG_STOP ((uint32_t)0x00000100) 58 | #define DBGMCU_WWDG_STOP ((uint32_t)0x00000200) 59 | #define DBGMCU_TIM1_STOP ((uint32_t)0x00000400) 60 | #define DBGMCU_TIM2_STOP ((uint32_t)0x00000800) 61 | #define DBGMCU_TIM3_STOP ((uint32_t)0x00001000) 62 | #define DBGMCU_TIM4_STOP ((uint32_t)0x00002000) 63 | #define DBGMCU_CAN1_STOP ((uint32_t)0x00004000) 64 | #define DBGMCU_I2C1_SMBUS_TIMEOUT ((uint32_t)0x00008000) 65 | #define DBGMCU_I2C2_SMBUS_TIMEOUT ((uint32_t)0x00010000) 66 | #define DBGMCU_TIM8_STOP ((uint32_t)0x00020000) 67 | #define DBGMCU_TIM5_STOP ((uint32_t)0x00040000) 68 | #define DBGMCU_TIM6_STOP ((uint32_t)0x00080000) 69 | #define DBGMCU_TIM7_STOP ((uint32_t)0x00100000) 70 | #define DBGMCU_CAN2_STOP ((uint32_t)0x00200000) 71 | #define DBGMCU_TIM15_STOP ((uint32_t)0x00400000) 72 | #define DBGMCU_TIM16_STOP ((uint32_t)0x00800000) 73 | #define DBGMCU_TIM17_STOP ((uint32_t)0x01000000) 74 | #define DBGMCU_TIM12_STOP ((uint32_t)0x02000000) 75 | #define DBGMCU_TIM13_STOP ((uint32_t)0x04000000) 76 | #define DBGMCU_TIM14_STOP ((uint32_t)0x08000000) 77 | #define DBGMCU_TIM9_STOP ((uint32_t)0x10000000) 78 | #define DBGMCU_TIM10_STOP ((uint32_t)0x20000000) 79 | #define DBGMCU_TIM11_STOP ((uint32_t)0x40000000) 80 | 81 | #define IS_DBGMCU_PERIPH(PERIPH) ((((PERIPH) & 0x800000F8) == 0x00) && ((PERIPH) != 0x00)) 82 | /** 83 | * @} 84 | */ 85 | 86 | /** @defgroup DBGMCU_Exported_Macros 87 | * @{ 88 | */ 89 | 90 | /** 91 | * @} 92 | */ 93 | 94 | /** @defgroup DBGMCU_Exported_Functions 95 | * @{ 96 | */ 97 | 98 | uint32_t DBGMCU_GetREVID(void); 99 | uint32_t DBGMCU_GetDEVID(void); 100 | void DBGMCU_Config(uint32_t DBGMCU_Periph, FunctionalState NewState); 101 | 102 | #ifdef __cplusplus 103 | } 104 | #endif 105 | 106 | #endif /* __STM32F10x_DBGMCU_H */ 107 | /** 108 | * @} 109 | */ 110 | 111 | /** 112 | * @} 113 | */ 114 | 115 | /** 116 | * @} 117 | */ 118 | 119 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ 120 | -------------------------------------------------------------------------------- /Libraries/FWlib/inc/stm32f10x_iwdg.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file stm32f10x_iwdg.h 4 | * @author MCD Application Team 5 | * @version V3.5.0 6 | * @date 11-March-2011 7 | * @brief This file contains all the functions prototypes for the IWDG 8 | * firmware library. 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 13 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE 14 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY 15 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING 16 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE 17 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 18 | * 19 | *

© COPYRIGHT 2011 STMicroelectronics

20 | ****************************************************************************** 21 | */ 22 | 23 | /* Define to prevent recursive inclusion -------------------------------------*/ 24 | #ifndef __STM32F10x_IWDG_H 25 | #define __STM32F10x_IWDG_H 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | /* Includes ------------------------------------------------------------------*/ 32 | #include "stm32f10x.h" 33 | 34 | /** @addtogroup STM32F10x_StdPeriph_Driver 35 | * @{ 36 | */ 37 | 38 | /** @addtogroup IWDG 39 | * @{ 40 | */ 41 | 42 | /** @defgroup IWDG_Exported_Types 43 | * @{ 44 | */ 45 | 46 | /** 47 | * @} 48 | */ 49 | 50 | /** @defgroup IWDG_Exported_Constants 51 | * @{ 52 | */ 53 | 54 | /** @defgroup IWDG_WriteAccess 55 | * @{ 56 | */ 57 | 58 | #define IWDG_WriteAccess_Enable ((uint16_t)0x5555) 59 | #define IWDG_WriteAccess_Disable ((uint16_t)0x0000) 60 | #define IS_IWDG_WRITE_ACCESS(ACCESS) (((ACCESS) == IWDG_WriteAccess_Enable) || \ 61 | ((ACCESS) == IWDG_WriteAccess_Disable)) 62 | /** 63 | * @} 64 | */ 65 | 66 | /** @defgroup IWDG_prescaler 67 | * @{ 68 | */ 69 | 70 | #define IWDG_Prescaler_4 ((uint8_t)0x00) 71 | #define IWDG_Prescaler_8 ((uint8_t)0x01) 72 | #define IWDG_Prescaler_16 ((uint8_t)0x02) 73 | #define IWDG_Prescaler_32 ((uint8_t)0x03) 74 | #define IWDG_Prescaler_64 ((uint8_t)0x04) 75 | #define IWDG_Prescaler_128 ((uint8_t)0x05) 76 | #define IWDG_Prescaler_256 ((uint8_t)0x06) 77 | #define IS_IWDG_PRESCALER(PRESCALER) (((PRESCALER) == IWDG_Prescaler_4) || \ 78 | ((PRESCALER) == IWDG_Prescaler_8) || \ 79 | ((PRESCALER) == IWDG_Prescaler_16) || \ 80 | ((PRESCALER) == IWDG_Prescaler_32) || \ 81 | ((PRESCALER) == IWDG_Prescaler_64) || \ 82 | ((PRESCALER) == IWDG_Prescaler_128)|| \ 83 | ((PRESCALER) == IWDG_Prescaler_256)) 84 | /** 85 | * @} 86 | */ 87 | 88 | /** @defgroup IWDG_Flag 89 | * @{ 90 | */ 91 | 92 | #define IWDG_FLAG_PVU ((uint16_t)0x0001) 93 | #define IWDG_FLAG_RVU ((uint16_t)0x0002) 94 | #define IS_IWDG_FLAG(FLAG) (((FLAG) == IWDG_FLAG_PVU) || ((FLAG) == IWDG_FLAG_RVU)) 95 | #define IS_IWDG_RELOAD(RELOAD) ((RELOAD) <= 0xFFF) 96 | /** 97 | * @} 98 | */ 99 | 100 | /** 101 | * @} 102 | */ 103 | 104 | /** @defgroup IWDG_Exported_Macros 105 | * @{ 106 | */ 107 | 108 | /** 109 | * @} 110 | */ 111 | 112 | /** @defgroup IWDG_Exported_Functions 113 | * @{ 114 | */ 115 | 116 | void IWDG_WriteAccessCmd(uint16_t IWDG_WriteAccess); 117 | void IWDG_SetPrescaler(uint8_t IWDG_Prescaler); 118 | void IWDG_SetReload(uint16_t Reload); 119 | void IWDG_ReloadCounter(void); 120 | void IWDG_Enable(void); 121 | FlagStatus IWDG_GetFlagStatus(uint16_t IWDG_FLAG); 122 | 123 | #ifdef __cplusplus 124 | } 125 | #endif 126 | 127 | #endif /* __STM32F10x_IWDG_H */ 128 | /** 129 | * @} 130 | */ 131 | 132 | /** 133 | * @} 134 | */ 135 | 136 | /** 137 | * @} 138 | */ 139 | 140 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ 141 | -------------------------------------------------------------------------------- /Libraries/FWlib/inc/stm32f10x_rtc.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file stm32f10x_rtc.h 4 | * @author MCD Application Team 5 | * @version V3.5.0 6 | * @date 11-March-2011 7 | * @brief This file contains all the functions prototypes for the RTC firmware 8 | * library. 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 13 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE 14 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY 15 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING 16 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE 17 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 18 | * 19 | *

© COPYRIGHT 2011 STMicroelectronics

20 | ****************************************************************************** 21 | */ 22 | 23 | /* Define to prevent recursive inclusion -------------------------------------*/ 24 | #ifndef __STM32F10x_RTC_H 25 | #define __STM32F10x_RTC_H 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | /* Includes ------------------------------------------------------------------*/ 32 | #include "stm32f10x.h" 33 | 34 | /** @addtogroup STM32F10x_StdPeriph_Driver 35 | * @{ 36 | */ 37 | 38 | /** @addtogroup RTC 39 | * @{ 40 | */ 41 | 42 | /** @defgroup RTC_Exported_Types 43 | * @{ 44 | */ 45 | 46 | /** 47 | * @} 48 | */ 49 | 50 | /** @defgroup RTC_Exported_Constants 51 | * @{ 52 | */ 53 | 54 | /** @defgroup RTC_interrupts_define 55 | * @{ 56 | */ 57 | 58 | #define RTC_IT_OW ((uint16_t)0x0004) /*!< Overflow interrupt */ 59 | #define RTC_IT_ALR ((uint16_t)0x0002) /*!< Alarm interrupt */ 60 | #define RTC_IT_SEC ((uint16_t)0x0001) /*!< Second interrupt */ 61 | #define IS_RTC_IT(IT) ((((IT) & (uint16_t)0xFFF8) == 0x00) && ((IT) != 0x00)) 62 | #define IS_RTC_GET_IT(IT) (((IT) == RTC_IT_OW) || ((IT) == RTC_IT_ALR) || \ 63 | ((IT) == RTC_IT_SEC)) 64 | /** 65 | * @} 66 | */ 67 | 68 | /** @defgroup RTC_interrupts_flags 69 | * @{ 70 | */ 71 | 72 | #define RTC_FLAG_RTOFF ((uint16_t)0x0020) /*!< RTC Operation OFF flag */ 73 | #define RTC_FLAG_RSF ((uint16_t)0x0008) /*!< Registers Synchronized flag */ 74 | #define RTC_FLAG_OW ((uint16_t)0x0004) /*!< Overflow flag */ 75 | #define RTC_FLAG_ALR ((uint16_t)0x0002) /*!< Alarm flag */ 76 | #define RTC_FLAG_SEC ((uint16_t)0x0001) /*!< Second flag */ 77 | #define IS_RTC_CLEAR_FLAG(FLAG) ((((FLAG) & (uint16_t)0xFFF0) == 0x00) && ((FLAG) != 0x00)) 78 | #define IS_RTC_GET_FLAG(FLAG) (((FLAG) == RTC_FLAG_RTOFF) || ((FLAG) == RTC_FLAG_RSF) || \ 79 | ((FLAG) == RTC_FLAG_OW) || ((FLAG) == RTC_FLAG_ALR) || \ 80 | ((FLAG) == RTC_FLAG_SEC)) 81 | #define IS_RTC_PRESCALER(PRESCALER) ((PRESCALER) <= 0xFFFFF) 82 | 83 | /** 84 | * @} 85 | */ 86 | 87 | /** 88 | * @} 89 | */ 90 | 91 | /** @defgroup RTC_Exported_Macros 92 | * @{ 93 | */ 94 | 95 | /** 96 | * @} 97 | */ 98 | 99 | /** @defgroup RTC_Exported_Functions 100 | * @{ 101 | */ 102 | 103 | void RTC_ITConfig(uint16_t RTC_IT, FunctionalState NewState); 104 | void RTC_EnterConfigMode(void); 105 | void RTC_ExitConfigMode(void); 106 | uint32_t RTC_GetCounter(void); 107 | void RTC_SetCounter(uint32_t CounterValue); 108 | void RTC_SetPrescaler(uint32_t PrescalerValue); 109 | void RTC_SetAlarm(uint32_t AlarmValue); 110 | uint32_t RTC_GetDivider(void); 111 | void RTC_WaitForLastTask(void); 112 | void RTC_WaitForSynchro(void); 113 | FlagStatus RTC_GetFlagStatus(uint16_t RTC_FLAG); 114 | void RTC_ClearFlag(uint16_t RTC_FLAG); 115 | ITStatus RTC_GetITStatus(uint16_t RTC_IT); 116 | void RTC_ClearITPendingBit(uint16_t RTC_IT); 117 | 118 | #ifdef __cplusplus 119 | } 120 | #endif 121 | 122 | #endif /* __STM32F10x_RTC_H */ 123 | /** 124 | * @} 125 | */ 126 | 127 | /** 128 | * @} 129 | */ 130 | 131 | /** 132 | * @} 133 | */ 134 | 135 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ 136 | -------------------------------------------------------------------------------- /Libraries/FWlib/inc/stm32f10x_pwr.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file stm32f10x_pwr.h 4 | * @author MCD Application Team 5 | * @version V3.5.0 6 | * @date 11-March-2011 7 | * @brief This file contains all the functions prototypes for the PWR firmware 8 | * library. 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 13 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE 14 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY 15 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING 16 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE 17 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 18 | * 19 | *

© COPYRIGHT 2011 STMicroelectronics

20 | ****************************************************************************** 21 | */ 22 | 23 | /* Define to prevent recursive inclusion -------------------------------------*/ 24 | #ifndef __STM32F10x_PWR_H 25 | #define __STM32F10x_PWR_H 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | /* Includes ------------------------------------------------------------------*/ 32 | #include "stm32f10x.h" 33 | 34 | /** @addtogroup STM32F10x_StdPeriph_Driver 35 | * @{ 36 | */ 37 | 38 | /** @addtogroup PWR 39 | * @{ 40 | */ 41 | 42 | /** @defgroup PWR_Exported_Types 43 | * @{ 44 | */ 45 | 46 | /** 47 | * @} 48 | */ 49 | 50 | /** @defgroup PWR_Exported_Constants 51 | * @{ 52 | */ 53 | 54 | /** @defgroup PVD_detection_level 55 | * @{ 56 | */ 57 | 58 | #define PWR_PVDLevel_2V2 ((uint32_t)0x00000000) 59 | #define PWR_PVDLevel_2V3 ((uint32_t)0x00000020) 60 | #define PWR_PVDLevel_2V4 ((uint32_t)0x00000040) 61 | #define PWR_PVDLevel_2V5 ((uint32_t)0x00000060) 62 | #define PWR_PVDLevel_2V6 ((uint32_t)0x00000080) 63 | #define PWR_PVDLevel_2V7 ((uint32_t)0x000000A0) 64 | #define PWR_PVDLevel_2V8 ((uint32_t)0x000000C0) 65 | #define PWR_PVDLevel_2V9 ((uint32_t)0x000000E0) 66 | #define IS_PWR_PVD_LEVEL(LEVEL) (((LEVEL) == PWR_PVDLevel_2V2) || ((LEVEL) == PWR_PVDLevel_2V3)|| \ 67 | ((LEVEL) == PWR_PVDLevel_2V4) || ((LEVEL) == PWR_PVDLevel_2V5)|| \ 68 | ((LEVEL) == PWR_PVDLevel_2V6) || ((LEVEL) == PWR_PVDLevel_2V7)|| \ 69 | ((LEVEL) == PWR_PVDLevel_2V8) || ((LEVEL) == PWR_PVDLevel_2V9)) 70 | /** 71 | * @} 72 | */ 73 | 74 | /** @defgroup Regulator_state_is_STOP_mode 75 | * @{ 76 | */ 77 | 78 | #define PWR_Regulator_ON ((uint32_t)0x00000000) 79 | #define PWR_Regulator_LowPower ((uint32_t)0x00000001) 80 | #define IS_PWR_REGULATOR(REGULATOR) (((REGULATOR) == PWR_Regulator_ON) || \ 81 | ((REGULATOR) == PWR_Regulator_LowPower)) 82 | /** 83 | * @} 84 | */ 85 | 86 | /** @defgroup STOP_mode_entry 87 | * @{ 88 | */ 89 | 90 | #define PWR_STOPEntry_WFI ((uint8_t)0x01) 91 | #define PWR_STOPEntry_WFE ((uint8_t)0x02) 92 | #define IS_PWR_STOP_ENTRY(ENTRY) (((ENTRY) == PWR_STOPEntry_WFI) || ((ENTRY) == PWR_STOPEntry_WFE)) 93 | 94 | /** 95 | * @} 96 | */ 97 | 98 | /** @defgroup PWR_Flag 99 | * @{ 100 | */ 101 | 102 | #define PWR_FLAG_WU ((uint32_t)0x00000001) 103 | #define PWR_FLAG_SB ((uint32_t)0x00000002) 104 | #define PWR_FLAG_PVDO ((uint32_t)0x00000004) 105 | #define IS_PWR_GET_FLAG(FLAG) (((FLAG) == PWR_FLAG_WU) || ((FLAG) == PWR_FLAG_SB) || \ 106 | ((FLAG) == PWR_FLAG_PVDO)) 107 | 108 | #define IS_PWR_CLEAR_FLAG(FLAG) (((FLAG) == PWR_FLAG_WU) || ((FLAG) == PWR_FLAG_SB)) 109 | /** 110 | * @} 111 | */ 112 | 113 | /** 114 | * @} 115 | */ 116 | 117 | /** @defgroup PWR_Exported_Macros 118 | * @{ 119 | */ 120 | 121 | /** 122 | * @} 123 | */ 124 | 125 | /** @defgroup PWR_Exported_Functions 126 | * @{ 127 | */ 128 | 129 | void PWR_DeInit(void); 130 | void PWR_BackupAccessCmd(FunctionalState NewState); 131 | void PWR_PVDCmd(FunctionalState NewState); 132 | void PWR_PVDLevelConfig(uint32_t PWR_PVDLevel); 133 | void PWR_WakeUpPinCmd(FunctionalState NewState); 134 | void PWR_EnterSTOPMode(uint32_t PWR_Regulator, uint8_t PWR_STOPEntry); 135 | void PWR_EnterSTANDBYMode(void); 136 | FlagStatus PWR_GetFlagStatus(uint32_t PWR_FLAG); 137 | void PWR_ClearFlag(uint32_t PWR_FLAG); 138 | 139 | #ifdef __cplusplus 140 | } 141 | #endif 142 | 143 | #endif /* __STM32F10x_PWR_H */ 144 | /** 145 | * @} 146 | */ 147 | 148 | /** 149 | * @} 150 | */ 151 | 152 | /** 153 | * @} 154 | */ 155 | 156 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ 157 | -------------------------------------------------------------------------------- /Libraries/FWlib/src/stm32f10x_iwdg.c: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file stm32f10x_iwdg.c 4 | * @author MCD Application Team 5 | * @version V3.5.0 6 | * @date 11-March-2011 7 | * @brief This file provides all the IWDG firmware functions. 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE 13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY 14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING 15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE 16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 17 | * 18 | *

© COPYRIGHT 2011 STMicroelectronics

19 | ****************************************************************************** 20 | */ 21 | 22 | /* Includes ------------------------------------------------------------------*/ 23 | #include "stm32f10x_iwdg.h" 24 | 25 | /** @addtogroup STM32F10x_StdPeriph_Driver 26 | * @{ 27 | */ 28 | 29 | /** @defgroup IWDG 30 | * @brief IWDG driver modules 31 | * @{ 32 | */ 33 | 34 | /** @defgroup IWDG_Private_TypesDefinitions 35 | * @{ 36 | */ 37 | 38 | /** 39 | * @} 40 | */ 41 | 42 | /** @defgroup IWDG_Private_Defines 43 | * @{ 44 | */ 45 | 46 | /* ---------------------- IWDG registers bit mask ----------------------------*/ 47 | 48 | /* KR register bit mask */ 49 | #define KR_KEY_Reload ((uint16_t)0xAAAA) 50 | #define KR_KEY_Enable ((uint16_t)0xCCCC) 51 | 52 | /** 53 | * @} 54 | */ 55 | 56 | /** @defgroup IWDG_Private_Macros 57 | * @{ 58 | */ 59 | 60 | /** 61 | * @} 62 | */ 63 | 64 | /** @defgroup IWDG_Private_Variables 65 | * @{ 66 | */ 67 | 68 | /** 69 | * @} 70 | */ 71 | 72 | /** @defgroup IWDG_Private_FunctionPrototypes 73 | * @{ 74 | */ 75 | 76 | /** 77 | * @} 78 | */ 79 | 80 | /** @defgroup IWDG_Private_Functions 81 | * @{ 82 | */ 83 | 84 | /** 85 | * @brief Enables or disables write access to IWDG_PR and IWDG_RLR registers. 86 | * @param IWDG_WriteAccess: new state of write access to IWDG_PR and IWDG_RLR registers. 87 | * This parameter can be one of the following values: 88 | * @arg IWDG_WriteAccess_Enable: Enable write access to IWDG_PR and IWDG_RLR registers 89 | * @arg IWDG_WriteAccess_Disable: Disable write access to IWDG_PR and IWDG_RLR registers 90 | * @retval None 91 | */ 92 | void IWDG_WriteAccessCmd(uint16_t IWDG_WriteAccess) 93 | { 94 | /* Check the parameters */ 95 | assert_param(IS_IWDG_WRITE_ACCESS(IWDG_WriteAccess)); 96 | IWDG->KR = IWDG_WriteAccess; 97 | } 98 | 99 | /** 100 | * @brief Sets IWDG Prescaler value. 101 | * @param IWDG_Prescaler: specifies the IWDG Prescaler value. 102 | * This parameter can be one of the following values: 103 | * @arg IWDG_Prescaler_4: IWDG prescaler set to 4 104 | * @arg IWDG_Prescaler_8: IWDG prescaler set to 8 105 | * @arg IWDG_Prescaler_16: IWDG prescaler set to 16 106 | * @arg IWDG_Prescaler_32: IWDG prescaler set to 32 107 | * @arg IWDG_Prescaler_64: IWDG prescaler set to 64 108 | * @arg IWDG_Prescaler_128: IWDG prescaler set to 128 109 | * @arg IWDG_Prescaler_256: IWDG prescaler set to 256 110 | * @retval None 111 | */ 112 | void IWDG_SetPrescaler(uint8_t IWDG_Prescaler) 113 | { 114 | /* Check the parameters */ 115 | assert_param(IS_IWDG_PRESCALER(IWDG_Prescaler)); 116 | IWDG->PR = IWDG_Prescaler; 117 | } 118 | 119 | /** 120 | * @brief Sets IWDG Reload value. 121 | * @param Reload: specifies the IWDG Reload value. 122 | * This parameter must be a number between 0 and 0x0FFF. 123 | * @retval None 124 | */ 125 | void IWDG_SetReload(uint16_t Reload) 126 | { 127 | /* Check the parameters */ 128 | assert_param(IS_IWDG_RELOAD(Reload)); 129 | IWDG->RLR = Reload; 130 | } 131 | 132 | /** 133 | * @brief Reloads IWDG counter with value defined in the reload register 134 | * (write access to IWDG_PR and IWDG_RLR registers disabled). 135 | * @param None 136 | * @retval None 137 | */ 138 | void IWDG_ReloadCounter(void) 139 | { 140 | IWDG->KR = KR_KEY_Reload; 141 | } 142 | 143 | /** 144 | * @brief Enables IWDG (write access to IWDG_PR and IWDG_RLR registers disabled). 145 | * @param None 146 | * @retval None 147 | */ 148 | void IWDG_Enable(void) 149 | { 150 | IWDG->KR = KR_KEY_Enable; 151 | } 152 | 153 | /** 154 | * @brief Checks whether the specified IWDG flag is set or not. 155 | * @param IWDG_FLAG: specifies the flag to check. 156 | * This parameter can be one of the following values: 157 | * @arg IWDG_FLAG_PVU: Prescaler Value Update on going 158 | * @arg IWDG_FLAG_RVU: Reload Value Update on going 159 | * @retval The new state of IWDG_FLAG (SET or RESET). 160 | */ 161 | FlagStatus IWDG_GetFlagStatus(uint16_t IWDG_FLAG) 162 | { 163 | FlagStatus bitstatus = RESET; 164 | /* Check the parameters */ 165 | assert_param(IS_IWDG_FLAG(IWDG_FLAG)); 166 | if ((IWDG->SR & IWDG_FLAG) != (uint32_t)RESET) 167 | { 168 | bitstatus = SET; 169 | } 170 | else 171 | { 172 | bitstatus = RESET; 173 | } 174 | /* Return the flag status */ 175 | return bitstatus; 176 | } 177 | 178 | /** 179 | * @} 180 | */ 181 | 182 | /** 183 | * @} 184 | */ 185 | 186 | /** 187 | * @} 188 | */ 189 | 190 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ 191 | -------------------------------------------------------------------------------- /Libraries/FWlib/src/stm32f10x_dbgmcu.c: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file stm32f10x_dbgmcu.c 4 | * @author MCD Application Team 5 | * @version V3.5.0 6 | * @date 11-March-2011 7 | * @brief This file provides all the DBGMCU firmware functions. 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE 13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY 14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING 15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE 16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 17 | * 18 | *

© COPYRIGHT 2011 STMicroelectronics

19 | ****************************************************************************** 20 | */ 21 | 22 | /* Includes ------------------------------------------------------------------*/ 23 | #include "stm32f10x_dbgmcu.h" 24 | 25 | /** @addtogroup STM32F10x_StdPeriph_Driver 26 | * @{ 27 | */ 28 | 29 | /** @defgroup DBGMCU 30 | * @brief DBGMCU driver modules 31 | * @{ 32 | */ 33 | 34 | /** @defgroup DBGMCU_Private_TypesDefinitions 35 | * @{ 36 | */ 37 | 38 | /** 39 | * @} 40 | */ 41 | 42 | /** @defgroup DBGMCU_Private_Defines 43 | * @{ 44 | */ 45 | 46 | #define IDCODE_DEVID_MASK ((uint32_t)0x00000FFF) 47 | /** 48 | * @} 49 | */ 50 | 51 | /** @defgroup DBGMCU_Private_Macros 52 | * @{ 53 | */ 54 | 55 | /** 56 | * @} 57 | */ 58 | 59 | /** @defgroup DBGMCU_Private_Variables 60 | * @{ 61 | */ 62 | 63 | /** 64 | * @} 65 | */ 66 | 67 | /** @defgroup DBGMCU_Private_FunctionPrototypes 68 | * @{ 69 | */ 70 | 71 | /** 72 | * @} 73 | */ 74 | 75 | /** @defgroup DBGMCU_Private_Functions 76 | * @{ 77 | */ 78 | 79 | /** 80 | * @brief Returns the device revision identifier. 81 | * @param None 82 | * @retval Device revision identifier 83 | */ 84 | uint32_t DBGMCU_GetREVID(void) 85 | { 86 | return(DBGMCU->IDCODE >> 16); 87 | } 88 | 89 | /** 90 | * @brief Returns the device identifier. 91 | * @param None 92 | * @retval Device identifier 93 | */ 94 | uint32_t DBGMCU_GetDEVID(void) 95 | { 96 | return(DBGMCU->IDCODE & IDCODE_DEVID_MASK); 97 | } 98 | 99 | /** 100 | * @brief Configures the specified peripheral and low power mode behavior 101 | * when the MCU under Debug mode. 102 | * @param DBGMCU_Periph: specifies the peripheral and low power mode. 103 | * This parameter can be any combination of the following values: 104 | * @arg DBGMCU_SLEEP: Keep debugger connection during SLEEP mode 105 | * @arg DBGMCU_STOP: Keep debugger connection during STOP mode 106 | * @arg DBGMCU_STANDBY: Keep debugger connection during STANDBY mode 107 | * @arg DBGMCU_IWDG_STOP: Debug IWDG stopped when Core is halted 108 | * @arg DBGMCU_WWDG_STOP: Debug WWDG stopped when Core is halted 109 | * @arg DBGMCU_TIM1_STOP: TIM1 counter stopped when Core is halted 110 | * @arg DBGMCU_TIM2_STOP: TIM2 counter stopped when Core is halted 111 | * @arg DBGMCU_TIM3_STOP: TIM3 counter stopped when Core is halted 112 | * @arg DBGMCU_TIM4_STOP: TIM4 counter stopped when Core is halted 113 | * @arg DBGMCU_CAN1_STOP: Debug CAN2 stopped when Core is halted 114 | * @arg DBGMCU_I2C1_SMBUS_TIMEOUT: I2C1 SMBUS timeout mode stopped when Core is halted 115 | * @arg DBGMCU_I2C2_SMBUS_TIMEOUT: I2C2 SMBUS timeout mode stopped when Core is halted 116 | * @arg DBGMCU_TIM5_STOP: TIM5 counter stopped when Core is halted 117 | * @arg DBGMCU_TIM6_STOP: TIM6 counter stopped when Core is halted 118 | * @arg DBGMCU_TIM7_STOP: TIM7 counter stopped when Core is halted 119 | * @arg DBGMCU_TIM8_STOP: TIM8 counter stopped when Core is halted 120 | * @arg DBGMCU_CAN2_STOP: Debug CAN2 stopped when Core is halted 121 | * @arg DBGMCU_TIM15_STOP: TIM15 counter stopped when Core is halted 122 | * @arg DBGMCU_TIM16_STOP: TIM16 counter stopped when Core is halted 123 | * @arg DBGMCU_TIM17_STOP: TIM17 counter stopped when Core is halted 124 | * @arg DBGMCU_TIM9_STOP: TIM9 counter stopped when Core is halted 125 | * @arg DBGMCU_TIM10_STOP: TIM10 counter stopped when Core is halted 126 | * @arg DBGMCU_TIM11_STOP: TIM11 counter stopped when Core is halted 127 | * @arg DBGMCU_TIM12_STOP: TIM12 counter stopped when Core is halted 128 | * @arg DBGMCU_TIM13_STOP: TIM13 counter stopped when Core is halted 129 | * @arg DBGMCU_TIM14_STOP: TIM14 counter stopped when Core is halted 130 | * @param NewState: new state of the specified peripheral in Debug mode. 131 | * This parameter can be: ENABLE or DISABLE. 132 | * @retval None 133 | */ 134 | void DBGMCU_Config(uint32_t DBGMCU_Periph, FunctionalState NewState) 135 | { 136 | /* Check the parameters */ 137 | assert_param(IS_DBGMCU_PERIPH(DBGMCU_Periph)); 138 | assert_param(IS_FUNCTIONAL_STATE(NewState)); 139 | 140 | if (NewState != DISABLE) 141 | { 142 | DBGMCU->CR |= DBGMCU_Periph; 143 | } 144 | else 145 | { 146 | DBGMCU->CR &= ~DBGMCU_Periph; 147 | } 148 | } 149 | 150 | /** 151 | * @} 152 | */ 153 | 154 | /** 155 | * @} 156 | */ 157 | 158 | /** 159 | * @} 160 | */ 161 | 162 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ 163 | -------------------------------------------------------------------------------- /User/nmea_decode/src/nmea.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {462522F4-3517-4507-A9C9-1D51DEBC4824} 15 | nmea 16 | Win32Proj 17 | 18 | 19 | 20 | StaticLibrary 21 | v120 22 | MultiByte 23 | true 24 | 25 | 26 | StaticLibrary 27 | v120 28 | MultiByte 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | <_ProjectFileVersion>12.0.21005.1 42 | 43 | 44 | ../build/$(Platform)/$(Configuration)/$(ProjectName)\ 45 | ../build/$(Platform)/$(Configuration)/$(ProjectName)\ 46 | 47 | 48 | ../build/$(Platform)/$(Configuration)/$(ProjectName)\ 49 | ../build/$(Platform)/$(Configuration)/$(ProjectName)\ 50 | 51 | 52 | 53 | Disabled 54 | ../include;%(AdditionalIncludeDirectories) 55 | WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions) 56 | true 57 | 58 | EnableFastChecks 59 | MultiThreadedDebugDLL 60 | 61 | Level4 62 | ProgramDatabase 63 | CompileAsC 64 | 65 | 66 | ../lib/$(ProjectName)_d.lib 67 | 68 | 69 | 70 | 71 | ../include;%(AdditionalIncludeDirectories) 72 | WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) 73 | 74 | MultiThreaded 75 | 76 | Level4 77 | ProgramDatabase 78 | CompileAsC 79 | 80 | 81 | ../lib/$(ProjectName).lib 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | -------------------------------------------------------------------------------- /Libraries/FWlib/src/stm32f10x_wwdg.c: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file stm32f10x_wwdg.c 4 | * @author MCD Application Team 5 | * @version V3.5.0 6 | * @date 11-March-2011 7 | * @brief This file provides all the WWDG firmware functions. 8 | ****************************************************************************** 9 | * @attention 10 | * 11 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 12 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE 13 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY 14 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING 15 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE 16 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 17 | * 18 | *

© COPYRIGHT 2011 STMicroelectronics

19 | ****************************************************************************** 20 | */ 21 | 22 | /* Includes ------------------------------------------------------------------*/ 23 | #include "stm32f10x_wwdg.h" 24 | #include "stm32f10x_rcc.h" 25 | 26 | /** @addtogroup STM32F10x_StdPeriph_Driver 27 | * @{ 28 | */ 29 | 30 | /** @defgroup WWDG 31 | * @brief WWDG driver modules 32 | * @{ 33 | */ 34 | 35 | /** @defgroup WWDG_Private_TypesDefinitions 36 | * @{ 37 | */ 38 | 39 | /** 40 | * @} 41 | */ 42 | 43 | /** @defgroup WWDG_Private_Defines 44 | * @{ 45 | */ 46 | 47 | /* ----------- WWDG registers bit address in the alias region ----------- */ 48 | #define WWDG_OFFSET (WWDG_BASE - PERIPH_BASE) 49 | 50 | /* Alias word address of EWI bit */ 51 | #define CFR_OFFSET (WWDG_OFFSET + 0x04) 52 | #define EWI_BitNumber 0x09 53 | #define CFR_EWI_BB (PERIPH_BB_BASE + (CFR_OFFSET * 32) + (EWI_BitNumber * 4)) 54 | 55 | /* --------------------- WWDG registers bit mask ------------------------ */ 56 | 57 | /* CR register bit mask */ 58 | #define CR_WDGA_Set ((uint32_t)0x00000080) 59 | 60 | /* CFR register bit mask */ 61 | #define CFR_WDGTB_Mask ((uint32_t)0xFFFFFE7F) 62 | #define CFR_W_Mask ((uint32_t)0xFFFFFF80) 63 | #define BIT_Mask ((uint8_t)0x7F) 64 | 65 | /** 66 | * @} 67 | */ 68 | 69 | /** @defgroup WWDG_Private_Macros 70 | * @{ 71 | */ 72 | 73 | /** 74 | * @} 75 | */ 76 | 77 | /** @defgroup WWDG_Private_Variables 78 | * @{ 79 | */ 80 | 81 | /** 82 | * @} 83 | */ 84 | 85 | /** @defgroup WWDG_Private_FunctionPrototypes 86 | * @{ 87 | */ 88 | 89 | /** 90 | * @} 91 | */ 92 | 93 | /** @defgroup WWDG_Private_Functions 94 | * @{ 95 | */ 96 | 97 | /** 98 | * @brief Deinitializes the WWDG peripheral registers to their default reset values. 99 | * @param None 100 | * @retval None 101 | */ 102 | void WWDG_DeInit(void) 103 | { 104 | RCC_APB1PeriphResetCmd(RCC_APB1Periph_WWDG, ENABLE); 105 | RCC_APB1PeriphResetCmd(RCC_APB1Periph_WWDG, DISABLE); 106 | } 107 | 108 | /** 109 | * @brief Sets the WWDG Prescaler. 110 | * @param WWDG_Prescaler: specifies the WWDG Prescaler. 111 | * This parameter can be one of the following values: 112 | * @arg WWDG_Prescaler_1: WWDG counter clock = (PCLK1/4096)/1 113 | * @arg WWDG_Prescaler_2: WWDG counter clock = (PCLK1/4096)/2 114 | * @arg WWDG_Prescaler_4: WWDG counter clock = (PCLK1/4096)/4 115 | * @arg WWDG_Prescaler_8: WWDG counter clock = (PCLK1/4096)/8 116 | * @retval None 117 | */ 118 | void WWDG_SetPrescaler(uint32_t WWDG_Prescaler) 119 | { 120 | uint32_t tmpreg = 0; 121 | /* Check the parameters */ 122 | assert_param(IS_WWDG_PRESCALER(WWDG_Prescaler)); 123 | /* Clear WDGTB[1:0] bits */ 124 | tmpreg = WWDG->CFR & CFR_WDGTB_Mask; 125 | /* Set WDGTB[1:0] bits according to WWDG_Prescaler value */ 126 | tmpreg |= WWDG_Prescaler; 127 | /* Store the new value */ 128 | WWDG->CFR = tmpreg; 129 | } 130 | 131 | /** 132 | * @brief Sets the WWDG window value. 133 | * @param WindowValue: specifies the window value to be compared to the downcounter. 134 | * This parameter value must be lower than 0x80. 135 | * @retval None 136 | */ 137 | void WWDG_SetWindowValue(uint8_t WindowValue) 138 | { 139 | __IO uint32_t tmpreg = 0; 140 | 141 | /* Check the parameters */ 142 | assert_param(IS_WWDG_WINDOW_VALUE(WindowValue)); 143 | /* Clear W[6:0] bits */ 144 | 145 | tmpreg = WWDG->CFR & CFR_W_Mask; 146 | 147 | /* Set W[6:0] bits according to WindowValue value */ 148 | tmpreg |= WindowValue & (uint32_t) BIT_Mask; 149 | 150 | /* Store the new value */ 151 | WWDG->CFR = tmpreg; 152 | } 153 | 154 | /** 155 | * @brief Enables the WWDG Early Wakeup interrupt(EWI). 156 | * @param None 157 | * @retval None 158 | */ 159 | void WWDG_EnableIT(void) 160 | { 161 | *(__IO uint32_t *) CFR_EWI_BB = (uint32_t)ENABLE; 162 | } 163 | 164 | /** 165 | * @brief Sets the WWDG counter value. 166 | * @param Counter: specifies the watchdog counter value. 167 | * This parameter must be a number between 0x40 and 0x7F. 168 | * @retval None 169 | */ 170 | void WWDG_SetCounter(uint8_t Counter) 171 | { 172 | /* Check the parameters */ 173 | assert_param(IS_WWDG_COUNTER(Counter)); 174 | /* Write to T[6:0] bits to configure the counter value, no need to do 175 | a read-modify-write; writing a 0 to WDGA bit does nothing */ 176 | WWDG->CR = Counter & BIT_Mask; 177 | } 178 | 179 | /** 180 | * @brief Enables WWDG and load the counter value. 181 | * @param Counter: specifies the watchdog counter value. 182 | * This parameter must be a number between 0x40 and 0x7F. 183 | * @retval None 184 | */ 185 | void WWDG_Enable(uint8_t Counter) 186 | { 187 | /* Check the parameters */ 188 | assert_param(IS_WWDG_COUNTER(Counter)); 189 | WWDG->CR = CR_WDGA_Set | Counter; 190 | } 191 | 192 | /** 193 | * @brief Checks whether the Early Wakeup interrupt flag is set or not. 194 | * @param None 195 | * @retval The new state of the Early Wakeup interrupt flag (SET or RESET) 196 | */ 197 | FlagStatus WWDG_GetFlagStatus(void) 198 | { 199 | return (FlagStatus)(WWDG->SR); 200 | } 201 | 202 | /** 203 | * @brief Clears Early Wakeup interrupt flag. 204 | * @param None 205 | * @retval None 206 | */ 207 | void WWDG_ClearFlag(void) 208 | { 209 | WWDG->SR = (uint32_t)RESET; 210 | } 211 | 212 | /** 213 | * @} 214 | */ 215 | 216 | /** 217 | * @} 218 | */ 219 | 220 | /** 221 | * @} 222 | */ 223 | 224 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ 225 | -------------------------------------------------------------------------------- /User/nmea_decode/src/tok.c: -------------------------------------------------------------------------------- 1 | 2 | 3 | #include "nmea/tok.h" 4 | 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | #define NMEA_TOKS_COMPARE (1) 13 | #define NMEA_TOKS_PERCENT (2) 14 | #define NMEA_TOKS_WIDTH (3) 15 | #define NMEA_TOKS_TYPE (4) 16 | 17 | /** 18 | * \brief Calculate control sum of binary buffer 19 | */ 20 | int nmea_calc_crc(const char *buff, int buff_sz) 21 | { 22 | int chsum = 0, 23 | it; 24 | 25 | for(it = 0; it < buff_sz; ++it) 26 | chsum ^= (int)buff[it]; 27 | 28 | return chsum; 29 | } 30 | 31 | /** 32 | * \brief Convert string to number 33 | */ 34 | int nmea_atoi(const char *str, int str_sz, int radix) 35 | { 36 | char *tmp_ptr; 37 | char buff[NMEA_CONVSTR_BUF]; 38 | int res = 0; 39 | 40 | if(str_sz < NMEA_CONVSTR_BUF) 41 | { 42 | memcpy(&buff[0], str, str_sz); 43 | buff[str_sz] = '\0'; 44 | res = strtol(&buff[0], &tmp_ptr, radix); 45 | } 46 | 47 | return res; 48 | } 49 | 50 | /** 51 | * \brief Convert string to fraction number 52 | */ 53 | double nmea_atof(const char *str, int str_sz) 54 | { 55 | char *tmp_ptr; 56 | char buff[NMEA_CONVSTR_BUF]; 57 | double res = 0; 58 | 59 | if(str_sz < NMEA_CONVSTR_BUF) 60 | { 61 | memcpy(&buff[0], str, str_sz); 62 | buff[str_sz] = '\0'; 63 | res = strtod(&buff[0], &tmp_ptr); 64 | } 65 | 66 | return res; 67 | } 68 | 69 | /** 70 | * \brief Formating string (like standart printf) with CRC tail (*CRC) 71 | */ 72 | int nmea_printf(char *buff, int buff_sz, const char *format, ...) 73 | { 74 | int retval, add = 0; 75 | va_list arg_ptr; 76 | 77 | if(buff_sz <= 0) 78 | return 0; 79 | 80 | va_start(arg_ptr, format); 81 | 82 | retval = NMEA_POSIX(vsnprintf)(buff, buff_sz, format, arg_ptr); 83 | 84 | if(retval > 0) 85 | { 86 | add = NMEA_POSIX(snprintf)( 87 | buff + retval, buff_sz - retval, "*%02x\r\n", 88 | nmea_calc_crc(buff + 1, retval - 1)); 89 | } 90 | 91 | retval += add; 92 | 93 | if(retval < 0 || retval > buff_sz) 94 | { 95 | memset(buff, ' ', buff_sz); 96 | retval = buff_sz; 97 | } 98 | 99 | va_end(arg_ptr); 100 | 101 | return retval; 102 | } 103 | 104 | /** 105 | * \brief Analyse string (specificate for NMEA sentences) 106 | */ 107 | int nmea_scanf(const char *buff, int buff_sz, const char *format, ...) 108 | { 109 | const char *beg_tok; 110 | const char *end_buf = buff + buff_sz; 111 | 112 | va_list arg_ptr; 113 | int tok_type = NMEA_TOKS_COMPARE; 114 | int width = 0; 115 | const char *beg_fmt = 0; 116 | int snum = 0, unum = 0; 117 | 118 | int tok_count = 0; 119 | void *parg_target; 120 | 121 | va_start(arg_ptr, format); 122 | 123 | for(; *format && buff < end_buf; ++format) 124 | { 125 | switch(tok_type) 126 | { 127 | case NMEA_TOKS_COMPARE: 128 | if('%' == *format) 129 | tok_type = NMEA_TOKS_PERCENT; 130 | else if(*buff++ != *format) 131 | goto fail; 132 | break; 133 | case NMEA_TOKS_PERCENT: 134 | width = 0; 135 | beg_fmt = format; 136 | tok_type = NMEA_TOKS_WIDTH; 137 | case NMEA_TOKS_WIDTH: 138 | if(isdigit(*format)) 139 | break; 140 | { 141 | tok_type = NMEA_TOKS_TYPE; 142 | if(format > beg_fmt) 143 | width = nmea_atoi(beg_fmt, (int)(format - beg_fmt), 10); 144 | } 145 | case NMEA_TOKS_TYPE: 146 | beg_tok = buff; 147 | 148 | if(!width && ('c' == *format || 'C' == *format) && *buff != format[1]) 149 | width = 1; 150 | 151 | if(width) 152 | { 153 | if(buff + width <= end_buf) 154 | buff += width; 155 | else 156 | goto fail; 157 | } 158 | else 159 | { 160 | if(!format[1] || (0 == (buff = (char *)memchr(buff, format[1], end_buf - buff)))) 161 | buff = end_buf; 162 | } 163 | 164 | if(buff > end_buf) 165 | goto fail; 166 | 167 | tok_type = NMEA_TOKS_COMPARE; 168 | tok_count++; 169 | 170 | parg_target = 0; width = (int)(buff - beg_tok); 171 | 172 | switch(*format) 173 | { 174 | case 'c': 175 | case 'C': 176 | parg_target = (void *)va_arg(arg_ptr, char *); 177 | if(width && 0 != (parg_target)) 178 | *((char *)parg_target) = *beg_tok; 179 | break; 180 | case 's': 181 | case 'S': 182 | parg_target = (void *)va_arg(arg_ptr, char *); 183 | if(width && 0 != (parg_target)) 184 | { 185 | memcpy(parg_target, beg_tok, width); 186 | ((char *)parg_target)[width] = '\0'; 187 | } 188 | break; 189 | case 'f': 190 | case 'g': 191 | case 'G': 192 | case 'e': 193 | case 'E': 194 | parg_target = (void *)va_arg(arg_ptr, double *); 195 | if(width && 0 != (parg_target)) 196 | *((double *)parg_target) = nmea_atof(beg_tok, width); 197 | break; 198 | }; 199 | 200 | if(parg_target) 201 | break; 202 | if(0 == (parg_target = (void *)va_arg(arg_ptr, int *))) 203 | break; 204 | if(!width) 205 | break; 206 | 207 | switch(*format) 208 | { 209 | case 'd': 210 | case 'i': 211 | snum = nmea_atoi(beg_tok, width, 10); 212 | memcpy(parg_target, &snum, sizeof(int)); 213 | break; 214 | case 'u': 215 | unum = nmea_atoi(beg_tok, width, 10); 216 | memcpy(parg_target, &unum, sizeof(unsigned int)); 217 | break; 218 | case 'x': 219 | case 'X': 220 | unum = nmea_atoi(beg_tok, width, 16); 221 | memcpy(parg_target, &unum, sizeof(unsigned int)); 222 | break; 223 | case 'o': 224 | unum = nmea_atoi(beg_tok, width, 8); 225 | memcpy(parg_target, &unum, sizeof(unsigned int)); 226 | break; 227 | default: 228 | goto fail; 229 | }; 230 | 231 | break; 232 | }; 233 | } 234 | 235 | fail: 236 | 237 | va_end(arg_ptr); 238 | 239 | return tok_count; 240 | } 241 | -------------------------------------------------------------------------------- /Project/RVMDK(uv5)/DebugConfig/GPS_STM32F103ZE.dbgconf: -------------------------------------------------------------------------------- 1 | // <<< Use Configuration Wizard in Context Menu >>> 2 | // Debug MCU Configuration 3 | // DBG_SLEEP 4 | // Debug Sleep Mode 5 | // 0: (FCLK=On, HCLK=Off) FCLK is clocked by the system clock as previously configured by the software while HCLK is disabled 6 | // 1: (FCLK=On, HCLK=On) HCLK is fed by the same clock that is provided to FCLK 7 | // DBG_STOP 8 | // Debug Stop Mode 9 | // 0: (FCLK=Off, HCLK=Off) Clock controller disables all clocks 10 | // 1: (FCLK=On, HCLK=On) FCLK and HCLK are provided by the internal RC oscillator which remains active 11 | // DBG_STANDBY 12 | // Debug Standby Mode 13 | // 0: (FCLK=Off, HCLK=Off) The whole digital part is unpowered. 14 | // 1: (FCLK=On, HCLK=On) Digital part is powered and FCLK and HCLK are provided by the internal RC oscillator which remains active 15 | // DBG_IWDG_STOP 16 | // Debug independent watchdog stopped when core is halted 17 | // 0: The watchdog counter clock continues even if the core is halted 18 | // 1: The watchdog counter clock is stopped when the core is halted 19 | // DBG_WWDG_STOP 20 | // Debug window watchdog stopped when core is halted 21 | // 0: The window watchdog counter clock continues even if the core is halted 22 | // 1: The window watchdog counter clock is stopped when the core is halted 23 | // DBG_TIM1_STOP 24 | // Timer 1 counter stopped when core is halted 25 | // 0: The clock of the involved Timer Counter is fed even if the core is halted 26 | // 1: The clock of the involved Timer counter is stopped when the core is halted 27 | // DBG_TIM2_STOP 28 | // Timer 2 counter stopped when core is halted 29 | // 0: The clock of the involved Timer Counter is fed even if the core is halted 30 | // 1: The clock of the involved Timer counter is stopped when the core is halted 31 | // DBG_TIM3_STOP 32 | // Timer 3 counter stopped when core is halted 33 | // 0: The clock of the involved Timer Counter is fed even if the core is halted 34 | // 1: The clock of the involved Timer counter is stopped when the core is halted 35 | // DBG_TIM4_STOP 36 | // Timer 4 counter stopped when core is halted 37 | // 0: The clock of the involved Timer Counter is fed even if the core is halted 38 | // 1: The clock of the involved Timer counter is stopped when the core is halted 39 | // DBG_CAN1_STOP 40 | // Debug CAN1 stopped when Core is halted 41 | // 0: Same behavior as in normal mode 42 | // 1: CAN1 receive registers are frozen 43 | // DBG_I2C1_SMBUS_TIMEOUT 44 | // I2C1 SMBUS timeout mode stopped when Core is halted 45 | // 0: Same behavior as in normal mode 46 | // 1: The SMBUS timeout is frozen 47 | // DBG_I2C2_SMBUS_TIMEOUT 48 | // I2C2 SMBUS timeout mode stopped when Core is halted 49 | // 0: Same behavior as in normal mode 50 | // 1: The SMBUS timeout is frozen 51 | // DBG_TIM8_STOP 52 | // Timer 8 counter stopped when core is halted 53 | // 0: The clock of the involved timer counter is fed even if the core is halted, and the outputs behave normally. 54 | // 1: The clock of the involved timer counter is stopped when the core is halted, and the outputs are disabled (as if there were an emergency stop in response to a break event). 55 | // DBG_TIM5_STOP 56 | // Timer 5 counter stopped when core is halted 57 | // 0: The clock of the involved timer counter is fed even if the core is halted, and the outputs behave normally. 58 | // 1: The clock of the involved timer counter is stopped when the core is halted, and the outputs are disabled (as if there were an emergency stop in response to a break event). 59 | // DBG_TIM6_STOP 60 | // Timer 6 counter stopped when core is halted 61 | // 0: The clock of the involved timer counter is fed even if the core is halted, and the outputs behave normally. 62 | // 1: The clock of the involved timer counter is stopped when the core is halted, and the outputs are disabled (as if there were an emergency stop in response to a break event). 63 | // DBG_TIM7_STOP 64 | // Timer 7 counter stopped when core is halted 65 | // 0: The clock of the involved timer counter is fed even if the core is halted, and the outputs behave normally. 66 | // 1: The clock of the involved timer counter is stopped when the core is halted, and the outputs are disabled (as if there were an emergency stop in response to a break event). 67 | // DBG_CAN2_STOP 68 | // Debug CAN2 stopped when Core is halted 69 | // 0: Same behavior as in normal mode 70 | // 1: CAN2 receive registers are frozen 71 | // DBG_TIM12_STOP 72 | // Timer 12 counter stopped when core is halted 73 | // 0: The clock of the involved timer counter is fed even if the core is halted, and the outputs behave normally. 74 | // 1: The clock of the involved timer counter is stopped when the core is halted, and the outputs are disabled (as if there were an emergency stop in response to a break event). 75 | // DBG_TIM13_STOP 76 | // Timer 13 counter stopped when core is halted 77 | // 0: The clock of the involved timer counter is fed even if the core is halted, and the outputs behave normally. 78 | // 1: The clock of the involved timer counter is stopped when the core is halted, and the outputs are disabled (as if there were an emergency stop in response to a break event). 79 | // DBG_TIM14_STOP 80 | // Timer 14 counter stopped when core is halted 81 | // 0: The clock of the involved timer counter is fed even if the core is halted, and the outputs behave normally. 82 | // 1: The clock of the involved timer counter is stopped when the core is halted, and the outputs are disabled (as if there were an emergency stop in response to a break event). 83 | // DBG_TIM9_STOP 84 | // Timer 9 counter stopped when core is halted 85 | // 0: The clock of the involved timer counter is fed even if the core is halted, and the outputs behave normally. 86 | // 1: The clock of the involved timer counter is stopped when the core is halted, and the outputs are disabled (as if there were an emergency stop in response to a break event). 87 | // DBG_TIM10_STOP 88 | // Timer 10 counter stopped when core is halted 89 | // 0: The clock of the involved timer counter is fed even if the core is halted, and the outputs behave normally. 90 | // 1: The clock of the involved timer counter is stopped when the core is halted, and the outputs are disabled (as if there were an emergency stop in response to a break event). 91 | // DBG_TIM11_STOP 92 | // Timer 11 counter stopped when core is halted 93 | // 0: The clock of the involved timer counter is fed even if the core is halted, and the outputs behave normally. 94 | // 1: The clock of the involved timer counter is stopped when the core is halted, and the outputs are disabled (as if there were an emergency stop in response to a break event). 95 | // 96 | DbgMCU_CR = 0x00000007; 97 | // <<< end of configuration section >>> -------------------------------------------------------------------------------- /Libraries/FWlib/inc/stm32f10x_cec.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file stm32f10x_cec.h 4 | * @author MCD Application Team 5 | * @version V3.5.0 6 | * @date 11-March-2011 7 | * @brief This file contains all the functions prototypes for the CEC firmware 8 | * library. 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 13 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE 14 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY 15 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING 16 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE 17 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 18 | * 19 | *

© COPYRIGHT 2011 STMicroelectronics

20 | ****************************************************************************** 21 | */ 22 | 23 | /* Define to prevent recursive inclusion -------------------------------------*/ 24 | #ifndef __STM32F10x_CEC_H 25 | #define __STM32F10x_CEC_H 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | /* Includes ------------------------------------------------------------------*/ 32 | #include "stm32f10x.h" 33 | 34 | /** @addtogroup STM32F10x_StdPeriph_Driver 35 | * @{ 36 | */ 37 | 38 | /** @addtogroup CEC 39 | * @{ 40 | */ 41 | 42 | 43 | /** @defgroup CEC_Exported_Types 44 | * @{ 45 | */ 46 | 47 | /** 48 | * @brief CEC Init structure definition 49 | */ 50 | typedef struct 51 | { 52 | uint16_t CEC_BitTimingMode; /*!< Configures the CEC Bit Timing Error Mode. 53 | This parameter can be a value of @ref CEC_BitTiming_Mode */ 54 | uint16_t CEC_BitPeriodMode; /*!< Configures the CEC Bit Period Error Mode. 55 | This parameter can be a value of @ref CEC_BitPeriod_Mode */ 56 | }CEC_InitTypeDef; 57 | 58 | /** 59 | * @} 60 | */ 61 | 62 | /** @defgroup CEC_Exported_Constants 63 | * @{ 64 | */ 65 | 66 | /** @defgroup CEC_BitTiming_Mode 67 | * @{ 68 | */ 69 | #define CEC_BitTimingStdMode ((uint16_t)0x00) /*!< Bit timing error Standard Mode */ 70 | #define CEC_BitTimingErrFreeMode CEC_CFGR_BTEM /*!< Bit timing error Free Mode */ 71 | 72 | #define IS_CEC_BIT_TIMING_ERROR_MODE(MODE) (((MODE) == CEC_BitTimingStdMode) || \ 73 | ((MODE) == CEC_BitTimingErrFreeMode)) 74 | /** 75 | * @} 76 | */ 77 | 78 | /** @defgroup CEC_BitPeriod_Mode 79 | * @{ 80 | */ 81 | #define CEC_BitPeriodStdMode ((uint16_t)0x00) /*!< Bit period error Standard Mode */ 82 | #define CEC_BitPeriodFlexibleMode CEC_CFGR_BPEM /*!< Bit period error Flexible Mode */ 83 | 84 | #define IS_CEC_BIT_PERIOD_ERROR_MODE(MODE) (((MODE) == CEC_BitPeriodStdMode) || \ 85 | ((MODE) == CEC_BitPeriodFlexibleMode)) 86 | /** 87 | * @} 88 | */ 89 | 90 | 91 | /** @defgroup CEC_interrupts_definition 92 | * @{ 93 | */ 94 | #define CEC_IT_TERR CEC_CSR_TERR 95 | #define CEC_IT_TBTRF CEC_CSR_TBTRF 96 | #define CEC_IT_RERR CEC_CSR_RERR 97 | #define CEC_IT_RBTF CEC_CSR_RBTF 98 | #define IS_CEC_GET_IT(IT) (((IT) == CEC_IT_TERR) || ((IT) == CEC_IT_TBTRF) || \ 99 | ((IT) == CEC_IT_RERR) || ((IT) == CEC_IT_RBTF)) 100 | /** 101 | * @} 102 | */ 103 | 104 | 105 | /** @defgroup CEC_Own_Address 106 | * @{ 107 | */ 108 | #define IS_CEC_ADDRESS(ADDRESS) ((ADDRESS) < 0x10) 109 | /** 110 | * @} 111 | */ 112 | 113 | /** @defgroup CEC_Prescaler 114 | * @{ 115 | */ 116 | #define IS_CEC_PRESCALER(PRESCALER) ((PRESCALER) <= 0x3FFF) 117 | 118 | /** 119 | * @} 120 | */ 121 | 122 | /** @defgroup CEC_flags_definition 123 | * @{ 124 | */ 125 | 126 | /** 127 | * @brief ESR register flags 128 | */ 129 | #define CEC_FLAG_BTE ((uint32_t)0x10010000) 130 | #define CEC_FLAG_BPE ((uint32_t)0x10020000) 131 | #define CEC_FLAG_RBTFE ((uint32_t)0x10040000) 132 | #define CEC_FLAG_SBE ((uint32_t)0x10080000) 133 | #define CEC_FLAG_ACKE ((uint32_t)0x10100000) 134 | #define CEC_FLAG_LINE ((uint32_t)0x10200000) 135 | #define CEC_FLAG_TBTFE ((uint32_t)0x10400000) 136 | 137 | /** 138 | * @brief CSR register flags 139 | */ 140 | #define CEC_FLAG_TEOM ((uint32_t)0x00000002) 141 | #define CEC_FLAG_TERR ((uint32_t)0x00000004) 142 | #define CEC_FLAG_TBTRF ((uint32_t)0x00000008) 143 | #define CEC_FLAG_RSOM ((uint32_t)0x00000010) 144 | #define CEC_FLAG_REOM ((uint32_t)0x00000020) 145 | #define CEC_FLAG_RERR ((uint32_t)0x00000040) 146 | #define CEC_FLAG_RBTF ((uint32_t)0x00000080) 147 | 148 | #define IS_CEC_CLEAR_FLAG(FLAG) ((((FLAG) & (uint32_t)0xFFFFFF03) == 0x00) && ((FLAG) != 0x00)) 149 | 150 | #define IS_CEC_GET_FLAG(FLAG) (((FLAG) == CEC_FLAG_BTE) || ((FLAG) == CEC_FLAG_BPE) || \ 151 | ((FLAG) == CEC_FLAG_RBTFE) || ((FLAG)== CEC_FLAG_SBE) || \ 152 | ((FLAG) == CEC_FLAG_ACKE) || ((FLAG) == CEC_FLAG_LINE) || \ 153 | ((FLAG) == CEC_FLAG_TBTFE) || ((FLAG) == CEC_FLAG_TEOM) || \ 154 | ((FLAG) == CEC_FLAG_TERR) || ((FLAG) == CEC_FLAG_TBTRF) || \ 155 | ((FLAG) == CEC_FLAG_RSOM) || ((FLAG) == CEC_FLAG_REOM) || \ 156 | ((FLAG) == CEC_FLAG_RERR) || ((FLAG) == CEC_FLAG_RBTF)) 157 | 158 | /** 159 | * @} 160 | */ 161 | 162 | /** 163 | * @} 164 | */ 165 | 166 | /** @defgroup CEC_Exported_Macros 167 | * @{ 168 | */ 169 | 170 | /** 171 | * @} 172 | */ 173 | 174 | /** @defgroup CEC_Exported_Functions 175 | * @{ 176 | */ 177 | void CEC_DeInit(void); 178 | void CEC_Init(CEC_InitTypeDef* CEC_InitStruct); 179 | void CEC_Cmd(FunctionalState NewState); 180 | void CEC_ITConfig(FunctionalState NewState); 181 | void CEC_OwnAddressConfig(uint8_t CEC_OwnAddress); 182 | void CEC_SetPrescaler(uint16_t CEC_Prescaler); 183 | void CEC_SendDataByte(uint8_t Data); 184 | uint8_t CEC_ReceiveDataByte(void); 185 | void CEC_StartOfMessage(void); 186 | void CEC_EndOfMessageCmd(FunctionalState NewState); 187 | FlagStatus CEC_GetFlagStatus(uint32_t CEC_FLAG); 188 | void CEC_ClearFlag(uint32_t CEC_FLAG); 189 | ITStatus CEC_GetITStatus(uint8_t CEC_IT); 190 | void CEC_ClearITPendingBit(uint16_t CEC_IT); 191 | 192 | #ifdef __cplusplus 193 | } 194 | #endif 195 | 196 | #endif /* __STM32F10x_CEC_H */ 197 | 198 | /** 199 | * @} 200 | */ 201 | 202 | /** 203 | * @} 204 | */ 205 | 206 | /** 207 | * @} 208 | */ 209 | 210 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ 211 | -------------------------------------------------------------------------------- /Libraries/FWlib/inc/stm32f10x_exti.h: -------------------------------------------------------------------------------- 1 | /** 2 | ****************************************************************************** 3 | * @file stm32f10x_exti.h 4 | * @author MCD Application Team 5 | * @version V3.5.0 6 | * @date 11-March-2011 7 | * @brief This file contains all the functions prototypes for the EXTI firmware 8 | * library. 9 | ****************************************************************************** 10 | * @attention 11 | * 12 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 13 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE 14 | * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY 15 | * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING 16 | * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE 17 | * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 18 | * 19 | *

© COPYRIGHT 2011 STMicroelectronics

20 | ****************************************************************************** 21 | */ 22 | 23 | /* Define to prevent recursive inclusion -------------------------------------*/ 24 | #ifndef __STM32F10x_EXTI_H 25 | #define __STM32F10x_EXTI_H 26 | 27 | #ifdef __cplusplus 28 | extern "C" { 29 | #endif 30 | 31 | /* Includes ------------------------------------------------------------------*/ 32 | #include "stm32f10x.h" 33 | 34 | /** @addtogroup STM32F10x_StdPeriph_Driver 35 | * @{ 36 | */ 37 | 38 | /** @addtogroup EXTI 39 | * @{ 40 | */ 41 | 42 | /** @defgroup EXTI_Exported_Types 43 | * @{ 44 | */ 45 | 46 | /** 47 | * @brief EXTI mode enumeration 48 | */ 49 | 50 | typedef enum 51 | { 52 | EXTI_Mode_Interrupt = 0x00, 53 | EXTI_Mode_Event = 0x04 54 | }EXTIMode_TypeDef; 55 | 56 | #define IS_EXTI_MODE(MODE) (((MODE) == EXTI_Mode_Interrupt) || ((MODE) == EXTI_Mode_Event)) 57 | 58 | /** 59 | * @brief EXTI Trigger enumeration 60 | */ 61 | 62 | typedef enum 63 | { 64 | EXTI_Trigger_Rising = 0x08, 65 | EXTI_Trigger_Falling = 0x0C, 66 | EXTI_Trigger_Rising_Falling = 0x10 67 | }EXTITrigger_TypeDef; 68 | 69 | #define IS_EXTI_TRIGGER(TRIGGER) (((TRIGGER) == EXTI_Trigger_Rising) || \ 70 | ((TRIGGER) == EXTI_Trigger_Falling) || \ 71 | ((TRIGGER) == EXTI_Trigger_Rising_Falling)) 72 | /** 73 | * @brief EXTI Init Structure definition 74 | */ 75 | 76 | typedef struct 77 | { 78 | uint32_t EXTI_Line; /*!< Specifies the EXTI lines to be enabled or disabled. 79 | This parameter can be any combination of @ref EXTI_Lines */ 80 | 81 | EXTIMode_TypeDef EXTI_Mode; /*!< Specifies the mode for the EXTI lines. 82 | This parameter can be a value of @ref EXTIMode_TypeDef */ 83 | 84 | EXTITrigger_TypeDef EXTI_Trigger; /*!< Specifies the trigger signal active edge for the EXTI lines. 85 | This parameter can be a value of @ref EXTIMode_TypeDef */ 86 | 87 | FunctionalState EXTI_LineCmd; /*!< Specifies the new state of the selected EXTI lines. 88 | This parameter can be set either to ENABLE or DISABLE */ 89 | }EXTI_InitTypeDef; 90 | 91 | /** 92 | * @} 93 | */ 94 | 95 | /** @defgroup EXTI_Exported_Constants 96 | * @{ 97 | */ 98 | 99 | /** @defgroup EXTI_Lines 100 | * @{ 101 | */ 102 | 103 | #define EXTI_Line0 ((uint32_t)0x00001) /*!< External interrupt line 0 */ 104 | #define EXTI_Line1 ((uint32_t)0x00002) /*!< External interrupt line 1 */ 105 | #define EXTI_Line2 ((uint32_t)0x00004) /*!< External interrupt line 2 */ 106 | #define EXTI_Line3 ((uint32_t)0x00008) /*!< External interrupt line 3 */ 107 | #define EXTI_Line4 ((uint32_t)0x00010) /*!< External interrupt line 4 */ 108 | #define EXTI_Line5 ((uint32_t)0x00020) /*!< External interrupt line 5 */ 109 | #define EXTI_Line6 ((uint32_t)0x00040) /*!< External interrupt line 6 */ 110 | #define EXTI_Line7 ((uint32_t)0x00080) /*!< External interrupt line 7 */ 111 | #define EXTI_Line8 ((uint32_t)0x00100) /*!< External interrupt line 8 */ 112 | #define EXTI_Line9 ((uint32_t)0x00200) /*!< External interrupt line 9 */ 113 | #define EXTI_Line10 ((uint32_t)0x00400) /*!< External interrupt line 10 */ 114 | #define EXTI_Line11 ((uint32_t)0x00800) /*!< External interrupt line 11 */ 115 | #define EXTI_Line12 ((uint32_t)0x01000) /*!< External interrupt line 12 */ 116 | #define EXTI_Line13 ((uint32_t)0x02000) /*!< External interrupt line 13 */ 117 | #define EXTI_Line14 ((uint32_t)0x04000) /*!< External interrupt line 14 */ 118 | #define EXTI_Line15 ((uint32_t)0x08000) /*!< External interrupt line 15 */ 119 | #define EXTI_Line16 ((uint32_t)0x10000) /*!< External interrupt line 16 Connected to the PVD Output */ 120 | #define EXTI_Line17 ((uint32_t)0x20000) /*!< External interrupt line 17 Connected to the RTC Alarm event */ 121 | #define EXTI_Line18 ((uint32_t)0x40000) /*!< External interrupt line 18 Connected to the USB Device/USB OTG FS 122 | Wakeup from suspend event */ 123 | #define EXTI_Line19 ((uint32_t)0x80000) /*!< External interrupt line 19 Connected to the Ethernet Wakeup event */ 124 | 125 | #define IS_EXTI_LINE(LINE) ((((LINE) & (uint32_t)0xFFF00000) == 0x00) && ((LINE) != (uint16_t)0x00)) 126 | #define IS_GET_EXTI_LINE(LINE) (((LINE) == EXTI_Line0) || ((LINE) == EXTI_Line1) || \ 127 | ((LINE) == EXTI_Line2) || ((LINE) == EXTI_Line3) || \ 128 | ((LINE) == EXTI_Line4) || ((LINE) == EXTI_Line5) || \ 129 | ((LINE) == EXTI_Line6) || ((LINE) == EXTI_Line7) || \ 130 | ((LINE) == EXTI_Line8) || ((LINE) == EXTI_Line9) || \ 131 | ((LINE) == EXTI_Line10) || ((LINE) == EXTI_Line11) || \ 132 | ((LINE) == EXTI_Line12) || ((LINE) == EXTI_Line13) || \ 133 | ((LINE) == EXTI_Line14) || ((LINE) == EXTI_Line15) || \ 134 | ((LINE) == EXTI_Line16) || ((LINE) == EXTI_Line17) || \ 135 | ((LINE) == EXTI_Line18) || ((LINE) == EXTI_Line19)) 136 | 137 | 138 | /** 139 | * @} 140 | */ 141 | 142 | /** 143 | * @} 144 | */ 145 | 146 | /** @defgroup EXTI_Exported_Macros 147 | * @{ 148 | */ 149 | 150 | /** 151 | * @} 152 | */ 153 | 154 | /** @defgroup EXTI_Exported_Functions 155 | * @{ 156 | */ 157 | 158 | void EXTI_DeInit(void); 159 | void EXTI_Init(EXTI_InitTypeDef* EXTI_InitStruct); 160 | void EXTI_StructInit(EXTI_InitTypeDef* EXTI_InitStruct); 161 | void EXTI_GenerateSWInterrupt(uint32_t EXTI_Line); 162 | FlagStatus EXTI_GetFlagStatus(uint32_t EXTI_Line); 163 | void EXTI_ClearFlag(uint32_t EXTI_Line); 164 | ITStatus EXTI_GetITStatus(uint32_t EXTI_Line); 165 | void EXTI_ClearITPendingBit(uint32_t EXTI_Line); 166 | 167 | #ifdef __cplusplus 168 | } 169 | #endif 170 | 171 | #endif /* __STM32F10x_EXTI_H */ 172 | /** 173 | * @} 174 | */ 175 | 176 | /** 177 | * @} 178 | */ 179 | 180 | /** 181 | * @} 182 | */ 183 | 184 | /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ 185 | --------------------------------------------------------------------------------